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];
     }
 }
 void frm_RefreshInsert(DOKhachHang doKhachHang)
 {
     Fix.PLRefresh();
 }
 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;
 }
 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");
 }