Example #1
0
 private void loadNV()
 {
     if (MaNV != null)
     {
         dt = _NhanVienBUS.LayNVTheoMaNV(MaNV);
         txtTenDangNhap.Text = dt.Rows[0]["TenDangNhap"].ToString();
         txtTenNV.Text       = dt.Rows[0]["TenNhanVien"].ToString();
         txtMK.Text          = dt.Rows[0]["MatKhau"].ToString();
         txtSoDT.Text        = dt.Rows[0]["SoDT"].ToString();
         txtEmail.Text       = dt.Rows[0]["Email"].ToString();
         txtDiaChi.Text      = dt.Rows[0]["DiaChi"].ToString();
         txtCMND.Text        = dt.Rows[0]["CMND"].ToString();
         picHinhAnh.Image    = new Bitmap(dt.Rows[0]["HinhDaiDien"].ToString());
         int iQuyen = Convert.ToInt16(dt.Rows[0]["Quyen"].ToString());
         cbbChucVu.SelectedIndex = iQuyen == 0 ? 1 : 0;
     }
 }