protected override void OnLoad(EventArgs e) { lstDuAn = DUAN_BUL.LoadTatCaDuAn(); dtgvDuAn.DataSource = typeof(List <DUAN_DTO>); dtgvDuAn.DataSource = lstDuAn; //EditDataGridView(); lstPhongBan = PHONGBAN_BUL.LoadComboBoxPhongBan(); coboPhongBan.DataSource = lstPhongBan; coboPhongBan.DisplayMember = "TenPB"; coboPhongBan.ValueMember = "MaPB"; }
protected override void OnLoad(EventArgs e) { lstPhongBan = PHONGBAN_BUL.LoadTatCaPhongBan(); lstPhongBan_TruongPhong = PHONGBAN_BUL.LoadComboBoxPhongBan(); cboTruongPhong.DataSource = lstPhongBan_TruongPhong; cboTruongPhong.DisplayMember = "TenTP"; cboTruongPhong.ValueMember = "MaTP"; dgvPhongBan.DataSource = typeof(List <PHONGBAN_DTO>); dgvPhongBan.DataSource = lstPhongBan; EditDataGridView();; }
protected override void OnLoad(EventArgs e) { lstNhanVien = NHANVIEN_BUL.LoadTatCaNhanVien(); lstNhanVien_NGS = NHANVIEN_BUL.LoadComboBoxNGS(); lstPhongBan = PHONGBAN_BUL.LoadComboBoxPhongBan(); cboNguoiGS.DataSource = lstNhanVien_NGS; cboNguoiGS.DisplayMember = "HoTen"; cboNguoiGS.ValueMember = "MaNV"; cboPhongBan.DataSource = lstPhongBan; cboPhongBan.DisplayMember = "TenPB"; cboPhongBan.ValueMember = "MaPB"; dgvNhanVien.DataSource = typeof(List <NHANVIEN_DTO>); dgvNhanVien.DataSource = lstNhanVien; EditDataGridView(); }
private void coboPhongBan_SelectedIndexChanged(object sender, EventArgs e) { PHONGBAN_BUL.LoadComboBoxPhongBan(); }