コード例 #1
0
ファイル: BienLaiTraGop.cs プロジェクト: kiennt9295/QLCHDTDD
        private void tsbthem1_Click(object sender, EventArgs e)
        {
            Bienlaitragop2 frm = new Bienlaitragop2();

            frm.THEM = true;
            frm.MABL = DEMBL2.ToString();
            frm.ShowDialog();
            LoadDatabienlai();
        }
コード例 #2
0
        private void danhSáchPhiếuTrảGópToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bienlaitragop2 frm = new Bienlaitragop2();

            frm.THEM = true;
            frm.MABL = dembienlai.ToString();
            frm.ShowDialog();
            Bienlai();
        }
コード例 #3
0
ファイル: BienLaiTraGop.cs プロジェクト: kiennt9295/QLCHDTDD
        private void tsbsua1_Click(object sender, EventArgs e)
        {
            Bienlaitragop2 frm = new Bienlaitragop2();

            frm.THEM = false;
            if (DEMBL1 == 0)
            {
                MessageBox.Show("Bạn chưa chọn Biên lai để cập nhật thông tin mới.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                if (gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "MABL") != null)
                {
                    frm.MABL = gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "MABL").ToString();
                }
                if (gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "MANV") != null)
                {
                    frm.MANV = int.Parse(gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "MANV").ToString());
                }
                if (gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "NGAYLAP") != null)
                {
                    frm.NGAY = gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "NGAYLAP").ToString();
                }
                if (gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "MAKH") != null)
                {
                    frm.MAKH = gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "MAKH").ToString();
                }
                if (gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "SOTIEN") != null)
                {
                    frm.SOTIEN = gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "SOTIEN").ToString();
                }
                if (gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "GHICHU") != null)
                {
                    frm.GHICHU = gvBienlai.GetRowCellValue(gvBienlai.FocusedRowHandle, "GHICHU").ToString();
                }
                frm.ShowDialog();
            }
            LoadDatabienlai();
        }