Example #1
0
        public void getData(string MaKH)
        {
            txtMaKH.Text = MaKH;
            KhachHang kh = KhachHangBUS.ChiTietKH(MaKH);

            gridLookupKhuVuc.EditValue = kh.MaKhuVuc;
            txtTenKH.Text       = kh.TenKH;
            txtDiaChi.Text      = kh.DiaChi;
            txtDienThoai.Text   = kh.DienThoai;
            txtEmail.Text       = kh.Email;
            txtGioiHanNo.Text   = kh.GioiHanNo.ToString();
            txtNoHienTai.Text   = kh.NoHienTai.ToString();
            txtTaiKhoan.Text    = kh.TaiKhoan;
            txtNganHang.Text    = kh.NganHang;
            txtNguoiLienHe.Text = kh.NguoiLienHe;
            txtMaSoThue.Text    = kh.MaSoThue;
            if (kh.ConQuanLy == true)
            {
                checkBox1.Checked = true;
            }
            else
            {
                checkBox1.Checked = false;
            }
        }