/// <summary> /// Khởi tạo các combobox /// </summary> private void LoadCombobox() { // khởi tạo combobox AutoComboBox auto = new AutoComboBox(); // Khởi tạo điều kiện gọi danh mục List <string> lstDieuKien = new List <string>(); // khởi tạo combobox auto = new AutoComboBox(); auto.GenAutoComboBox(ref lstSourceChiNhanh, ref cmbChiNhanh, DatabaseConstant.DanhSachTruyVan.COMBOBOX_CNHANH.getValue(), null, ClientInformation.MaDonVi); // khởi tạo combobox auto = new AutoComboBox(); auto.GenAutoComboBox(ref lstSourcePhongGD, ref cmbPhongGD, DatabaseConstant.DanhSachTruyVan.COMBOBOX_PHONG_GD.getValue()); LoadComboboxPhongGD(); auto = new AutoComboBox(); auto.GenComboBox_Nam(ref cmbNam); auto = new AutoComboBox(); auto.GenComboBox_Quy(ref cmbQuy); lstDieuKien = new List <string>(); lstDieuKien.Add(DatabaseConstant.DanhMuc.DONG_TIEN_CAC_NUOC.getValue()); // khởi tạo combobox auto = new AutoComboBox(); auto.GenAutoComboBox(ref lstSourceLoaiTien, ref cmbLoaiTien, DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue(), lstDieuKien); lstDieuKien = new List <string>(); lstDieuKien.Add(DatabaseConstant.DanhMuc.NGON_NGU.getValue()); // khởi tạo combobox auto = new AutoComboBox(); auto.GenAutoComboBox(ref lstSourceNgonNgu, ref cmbNgonNgu, DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue(), lstDieuKien, ApplicationConstant.LoaiNgonNguBaoCao.vi_VN.layGiaTri()); lstDieuKien = new List <string>(); lstDieuKien.Add(DatabaseConstant.DanhMuc.DINH_DANG_BAO_CAO.getValue()); // khởi tạo combobox auto = new AutoComboBox(); auto.GenAutoComboBox(ref lstSourceDinhDang, ref cmbDinhDang, DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue(), lstDieuKien, ApplicationConstant.LoaiDinhDangBaoCao.EXCEL.layGiaTri()); }