private void groupControl1_Paint(object sender, PaintEventArgs e) { Utilities.user = nvBUS.LayThongTinBanThan(Utilities.user.MaNV); lb_manv.Text = Utilities.user.MaNV; lb_tennv.Text = Utilities.user.HoTenNV; if (Convert.ToString(Utilities.user.GioiTinhNV) == "0") { lb_gtnv.Text = "Nam"; } else { lb_gtnv.Text = "Nữ"; } lb_nsnv.Text = Convert.ToString(Utilities.user.NgaySinhNV); lb_dtnv.Text = Utilities.user.DienThoaiNV; lb_dcnv.Text = Utilities.user.DiaChiNV; lb_emailnv.Text = Utilities.user.EmailNV; lb_nvl.Text = Convert.ToString(Utilities.user.NgayVaoLam); if (Convert.ToString(Utilities.user.QuyenHan) == "0") { lb_qh.Text = "Quản Lý"; } else { lb_qh.Text = "Nhân Viên"; } hien_anh(); }
private void groupControl1_Paint(object sender, PaintEventArgs e) { Utilities.user = nvBUS.LayThongTinBanThan(Utilities.user.MaNV); txtMaNV.Text = Utilities.user.MaNV; txtHoTenNV.Text = Utilities.user.HoTenNV; //lỗi. không lấy đúng if (Convert.ToString(Utilities.user.GioiTinhNV) == "True") { txtGioiTinh.Text = "Nam"; } else { txtGioiTinh.Text = "Nữ"; } dateNgaySinh.Text = Convert.ToString(Utilities.user.NgaySinhNV); txtSdt.Text = Utilities.user.DienThoaiNV; txtDiaChi.Text = Utilities.user.DiaChiNV; txtEmail.Text = Utilities.user.EmailNV; dateNgayVaoLam.Text = Convert.ToString(Utilities.user.NgayVaoLam); //lỗi. không lấy đúng if (Convert.ToString(Utilities.user.QuyenHan) == "True") { txtQuyenHan.Text = "Quản Lý"; } else { txtQuyenHan.Text = "Nhân Viên"; } }