private void GetItem(int _id) { T_KhachHang _obj = new T_KhachHang(); KhachhangDAL _objDAL = new KhachhangDAL(); _obj = _objDAL.GetOneFromT_KhachHangByID(_id); this.txt_TenKH.Text = _obj.Ten_KhachHang; this.txt_Diachi.Text = _obj.DiaChi; this.txt_Dienthoai.Text = _obj.SoDienThoai; this.txt_Email.Text = _obj.Email; this.txt_Fax.Text = _obj.FAX; this.txt_Masothue.Text = _obj.MaSoThue; this.txt_Mota.Text = _obj.Ghichu; this.txt_Nguoidaidien.Text = _obj.NguoiDaiDien; this.txt_Taikhoan.Text = _obj.TaiKhoan; this.txt_Tendaydu.Text = _obj.Tendaydu; }
protected string TenKhachHang(string _Id) { string strReturn = ""; T_KhachHang _kh = new T_KhachHang(); KhachhangDAL _dal = new KhachhangDAL(); if (!String.IsNullOrEmpty(_Id) && Convert.ToInt32(_Id) > 0) { _kh = _dal.GetOneFromT_KhachHangByID(Convert.ToInt32(_Id)); strReturn = _kh.Ten_KhachHang; } else { strReturn = ""; } return(strReturn); }
private void GetItem(int _id) { T_KhachHang _obj = new T_KhachHang(); KhachhangDAL _objDAL = new KhachhangDAL(); _obj = _objDAL.GetOneFromT_KhachHangByID(_id); this.txt_TenKH.Text = _obj.Ten_KhachHang; this.txt_Diachi.Text = _obj.DiaChi; this.txt_Dienthoai.Text = _obj.SoDienThoai; this.txt_Email.Text = _obj.Email; this.txt_Fax.Text = _obj.FAX; this.txt_Masothue.Text = _obj.MaSoThue; this.txt_Mota.Text = _obj.Ghichu; this.txt_Nguoidaidien.Text = _obj.NguoiDaiDien; this.txt_Taikhoan.Text = _obj.TaiKhoan; this.txt_Tendaydu.Text = _obj.Tendaydu; //ddl_LoaiKH.SelectedIndex = UltilFunc.GetIndexControl(ddl_LoaiKH, _obj.Loai_KH.ToString()); }