private void smiThanhToan_Click(object sender, EventArgs e)
        {
            frmThanhToanNhapLai frm = new frmThanhToanNhapLai(Business.ChungTu, Business.ListChungTuThanhToan);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                //them thanh toan
                foreach (ChungTuThanhToanInfor tt in frm.lstThanhToanSelected)
                {
                    ((BindingList <ChungTuThanhToanInfor>)gvHinhThucThanhToan.DataSource).Add(tt);
                }
                //cap nhat tien thanh toan
                UpdateTienThanhToan();
            }
        }
Example #2
0
        private void LapPhieuChiNhapLai()
        {
            frmThanhToanNhapLai frm = new frmThanhToanNhapLai(Business);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                //tham thanh toan
                foreach (ChungTuThanhToanInfor tt in frm.lstThanhToanSelected)
                {
                    ((BindingList <ChungTuThanhToanInfor>)gHinhThucThanhToan.DataSource).Add(tt);
                }
                //cap nhat tien thanh toan
                UpdateTienThanhToan();
            }
        }