private void FormGiayTo_Load(object sender, EventArgs e) { for (int i = 0; i < Chung.LayDSQuyenHan(Chung.loaiNhanVien).Count; i++) { if (Chung.LayDSQuyenHan(Chung.loaiNhanVien)[i].Contains("Chỉnh sửa")) { break; } if (i == Chung.LayDSQuyenHan(Chung.loaiNhanVien).Count - 1) { AnButton(); } } if (!kt) { dgvGiayTo.DataSource = giayToBLL.LayDanhSachGiayTo(); cbMaDO.DataSource = diaOcBLL.LayDanhSachDiaOc(); cbMaDO.DisplayMember = "MaDiaOc"; cbMaDO.ValueMember = "MaDiaOc"; } }
private void LoadDiaOc() { dgvDiaOc.DataSource = diaOcBLL.LayDanhSachDiaOc(); dgvDiaOc.Columns["TrangThaiKiemDuyetDO"].DisplayIndex = 17; dgvDiaOc.Columns["LyDoKhongDuyetDO"].DisplayIndex = 18; }