public void InitData(long id)
 {
     this._KhachHang = DAKhachHangX.Instance.LoadAll(id);
     if (_KhachHang.KH_ID == 0)
     {
         _KhachHang.KH_ID = HelpDB.getDatabase().GetID("G_NGHIEP_VU");
         gridControlThongTinLienHe.DataSource = _KhachHang.DetailDataSetTTLH.Tables[0];
         gridControlThongTinLienLac.DataSource = _KhachHang.DetailDataSetTTLL.Tables[0];
     }
     else
     {
         TenKH.EditValue = _KhachHang.TEN_KHACH_HANG;
         DiaChi.EditValue = _KhachHang.DIA_CHI;
         DienThoai.EditValue = _KhachHang.DIEN_THOAI;
         Fax.EditValue = _KhachHang.FAX;
         Email.EditValue = _KhachHang.EMAIL;
         WebSite.EditValue = _KhachHang.WEBSITE;
         customerTreeNKH.SetSelectedID(_KhachHang.NKH_ID);
         LinhVucHoatDong.EditValue = _KhachHang.LINH_VUC_HOAT_DONG;
         ThongTinThem.EditValue = _KhachHang.THONG_TIN_THEM;
         gridControlThongTinLienHe.DataSource = _KhachHang.DetailDataSetTTLH.Tables[0];
         gridControlThongTinLienLac.DataSource = _KhachHang.DetailDataSetTTLL.Tables[0];
     }
 }
Exemplo n.º 2
0
 void frm_RefreshInsert(DOKhachHang doKhachHang)
 {
     Fix.PLRefresh();
 }
Exemplo n.º 3
0
 void frm_RefreshUpdate(DOKhachHang doKhachHang)
 {
     DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
     row["TEN_KHACH_HANG"] = doKhachHang.TEN_KHACH_HANG;
     row["DIA_CHI"] = doKhachHang.DIA_CHI;
     row["DIEN_THOAI"] = doKhachHang.DIEN_THOAI;
     row["FAX"] = doKhachHang.FAX;
     row["EMAIL"] = doKhachHang.EMAIL;
 }
Exemplo n.º 4
0
 public void InitData(long id)
 {
     this._KhachHang = DAKhachHangX.Instance.LoadAll(id);
     if (_KhachHang.KH_ID == 0)
         _KhachHang.KH_ID = HelpDB.getDatabase().GetID("G_NGHIEP_VU");
 }