Ejemplo n.º 1
0
        private void OnAddPhieuThu()
        {
            dlgAddPhieuThuHopDong dlg = new dlgAddPhieuThuHopDong();

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                DisplayAsThread();
            }
        }
Ejemplo n.º 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();
            }
        }