Beispiel #1
0
        protected override void OnNew()
        {
            var f = new FrmThongTinKH(string.Empty);

            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                OnReload();
            }

            ReloadButtons();
        }
Beispiel #2
0
 private void KhachHangSearchLookUpEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Plus)
     {
         var f = new FrmThongTinKH();
         if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             khachHangTableAdapter.Fill(data.KhachHang);
             KhachHangSearchLookUpEdit.EditValue = f.MaKH;
         }
     }
 }
Beispiel #3
0
        protected override void OnEdit()
        {
            var k = customGridView1.GetFocusedDataRow() as CRMData.KhachHangRow;

            if (k == null)
            {
                return;
            }

            var f = new FrmThongTinKH(k.MaKH);

            f.ChucNang = ChucNang;
            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                OnReload();
            }

            ReloadButtons();
        }