private void LoadCbo() { //Tỉnh clsTinhQuanHuyen_BUS BUSQH = new clsTinhQuanHuyen_BUS(); cboTinh.DataSource = BUSQH.LayDanhSachTinhThanh(); cboTinh.DisplayMember = "TENTINH"; cboTinh.ValueMember = "MATINH"; cboTinh.SelectedIndex = 0; //Quận Huyện clsTinhQuanHuyen_BUS BUSTT = new clsTinhQuanHuyen_BUS(); cboQuanHuyen.DataSource = BUSTT.LayDanhSachQuanHuyen(cboTinh.SelectedValue.ToString()); cboQuanHuyen.DisplayMember = "TENQH"; cboQuanHuyen.ValueMember = "MAQH"; //quốc tịch clsQuocTich_BUS BUSQT = new clsQuocTich_BUS(); cboQuocTich.DataSource = BUSQT.LayDSQuocTich(); cboQuocTich.DisplayMember = "TENQT"; cboQuocTich.ValueMember = "MAQT"; //tôn giáo clsTonGiao_BUS BUSTG = new clsTonGiao_BUS(); cboTonGiao.DataSource = BUSTG.LayDanhSachTonGiao(); cboTonGiao.DisplayMember = "TENTG"; cboTonGiao.ValueMember = "MATG"; cboTonGiao.AutoCompleteMode = AutoCompleteMode.SuggestAppend; cboTonGiao.AutoCompleteSource = AutoCompleteSource.ListItems; //Mối quan hệ clsMoiQuanHe_BUS BUSMQH = new clsMoiQuanHe_BUS(); //Phòng Ban clsPhongBan_BUS BUSPB = new clsPhongBan_BUS(); cboPhongBan.DataSource = BUSPB.LayDanhSachPhongBan(); cboPhongBan.DisplayMember = "TENPB"; cboPhongBan.ValueMember = "MAPB"; //tìm kiếm List <clsPhongBan_DTO> lsPhongBan_TK = BUSPB.LayDanhSachPhongBan(); clsPhongBan_DTO pb = new clsPhongBan_DTO(); pb.TENPB = "Tất cả"; pb.MAPB = "0"; lsPhongBan_TK.Insert(0, pb); cboPhongBan_TK.DataSource = lsPhongBan_TK; cboPhongBan_TK.DisplayMember = "TENPB"; cboPhongBan_TK.ValueMember = "MAPB"; //chức vụ clsChucVu_BUS BUSCV = new clsChucVu_BUS(); cboChucVu.DataSource = BUSCV.LayDanhSachChucVu(); cboChucVu.DisplayMember = "TENCV"; cboChucVu.ValueMember = "MACV"; //Học Vấn clsBangCap_BUS BUSBC = new clsBangCap_BUS(); cboTrinhDo.DataSource = BUSBC.LayDanhSachBangCap(); cboTrinhDo.DisplayMember = "TENBC"; cboTrinhDo.ValueMember = "MABC"; //bacluong clsBacLuong_BUS BUSBACLUONG = new clsBacLuong_BUS(); cboBacLuong.DataSource = BUSBACLUONG.LayDSBacLuong(); cboBacLuong.ValueMember = "BAC"; cboBacLuong.DisplayMember = "TENBAC"; //dân tộc clsDanToc_BUS BUSDT = new clsDanToc_BUS(); cboDanToc.DataSource = BUSDT.LayDSDanToc(); cboDanToc.ValueMember = "MaDT"; cboDanToc.DisplayMember = "TenDT"; cboDanToc.AutoCompleteMode = AutoCompleteMode.SuggestAppend; cboDanToc.AutoCompleteSource = AutoCompleteSource.ListItems; }
private void LayHeSoLuong(string MaCV, string MaBAC) { clsBacLuong_BUS bus = new clsBacLuong_BUS(); txtHeSo.Text = bus.LayHeSoLuong(MaCV, MaBAC).ToString(); }