示例#1
0
        private void OnAddPhieuThu()
        {
            dlgAddPhieuThuHopDong dlg = new dlgAddPhieuThuHopDong();

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                DisplayAsThread();
            }
        }
示例#2
0
        private void OnViewPhieuThuHopDong()
        {
            if (dgPhieuThu.SelectedRows == null || dgPhieuThu.SelectedRows.Count <= 0)
            {
                return;
            }

            DataRow drPhieuThu        = (dgPhieuThu.SelectedRows[0].DataBoundItem as DataRowView).Row;
            dlgAddPhieuThuHopDong dlg = new dlgAddPhieuThuHopDong(drPhieuThu);

            if (dlg.ShowDialog(this) == DialogResult.Cancel)
            {
                if (dlg.IsExportedInvoice)
                {
                    HighlightExportedInvoice();
                }
            }
            else
            {
                HighlightExportedInvoice();
            }
        }