Ejemplo n.º 1
0
 private void FrmTuyChonKhachHang_Load(object sender, EventArgs e)
 {
     blKhachHang     = new BL_KhachHang(this);
     blLoaiKhachHang = new BL_LoaiKhachHang(this);
     rbnNam.Checked  = true;
     //Lấy dữ liệu lên combobox Loại khách hàng
     cbxLoaiKhachHang.DataSource    = blLoaiKhachHang.LayDanhSachLoaiKhachHang();
     cbxLoaiKhachHang.DisplayMember = "TenLoaiKhachHang";
     cbxLoaiKhachHang.ValueMember   = "ID_LoaiKhachHang";
     if (v != 1)
     {
         cbxLoaiKhachHang.SelectedValue = (int)dataGridViewRow.Cells["ID_LOAIKHACHHANG"].Value;
         txtIDKhachHang.Text            = dataGridViewRow.Cells["ID_KHACHHANG"].Value.ToString();
         txtTenKhachHang.Text           = dataGridViewRow.Cells["TenKhachHang"].Value.ToString();
         txtSoDienThoai.Text            = dataGridViewRow.Cells["SDT"].Value.ToString();
         dtpNgaySinh.Value = ((DateTime)dataGridViewRow.Cells["NgaySinh"].Value).Date;
         if (dataGridViewRow.Cells["GioiTinh"].Value.ToString() == "Nam")
         {
             rbnNam.Checked = true;
         }
         else
         {
             rbnNU.Checked = true;
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Tạo hàm dựng cho form Sử dụng dịch vụ với tham số là quyền truyền vào
 /// </summary>
 /// <param name="quyen"></param>
 public FrmSuDungDichVu(int quyen)
 {
     InitializeComponent();
     blBan          = new BL_Ban(this);
     blHoaDon       = new BL_HoaDon(this);
     blLoaiThucPham = new BL_LoaiThucPham(this);
     blThucPham     = new BL_ThucPham(this);
     blNhanVien     = new BL_NhanVien(this);
     blKhachHang    = new BL_KhachHang(this);
     blKhuyenMai    = new BL_KhuyenMai(this);
     this.quyen     = quyen;
 }
Ejemplo n.º 3
0
 public FrmKhachHang()
 {
     InitializeComponent();
     blKhachHang = new BL_KhachHang(this);
 }