private void LoadCombobox()
        {
            COMBOBOX_DTO        combo       = null;
            List <string>       lstDieuKien = null;
            List <COMBOBOX_DTO> lstCombobox = new List <COMBOBOX_DTO>();

            //Loại phụ cấp
            lstDieuKien = new List <string>();
            lstDieuKien.Add("LOAI_PHU_CAP");
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC_NHAN_SU.getValue();
            combo.combobox    = cmbLoaiPhuCap;
            combo.lstSource   = lstSourceLoaiPhuCap;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Phụ cấp cho
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_NS_NHOM_CTV.getValue();
            combo.combobox    = cmbPhuCapCho;
            combo.lstSource   = lstSourcePhuCapCho;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            AutoComboBox auto = new AutoComboBox();

            auto.GenAutoComboBoxTheoList(ref lstCombobox);

            cmbLoaiPhuCap.SelectedIndex = 0;
        }
Beispiel #2
0
        private void LoadCombobox()
        {
            COMBOBOX_DTO        combo       = null;
            List <string>       lstDieuKien = null;
            List <COMBOBOX_DTO> lstCombobox = new List <COMBOBOX_DTO>();
            AutoComboBox        auCombo     = new AutoComboBox();

            try
            {
                //Loại khách hàng
                lstDieuKien = new List <string>();
                lstDieuKien.Add("LOAI_DTUONG_KTHAC_TNGUYEN");
                combo             = new COMBOBOX_DTO();
                combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
                combo.combobox    = cmbLoaiDoiTuong;
                combo.lstSource   = lstLoaiDoiTuong;
                combo.lstDieuKien = lstDieuKien;
                combo.maChon      = "NSD";
                lstCombobox.Add(combo);

                //Gen combobox
                auCombo.GenAutoComboBoxTheoList(ref lstCombobox);
            }
            catch (Exception ex)
            {
                CommonFunction.ThongBaoLoi(ex);
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
            }
        }
        private void LoadCombobox()
        {
            try
            {
                COMBOBOX_DTO        combo       = null;
                List <string>       lstDieuKien = new List <string>();
                List <COMBOBOX_DTO> lstCombobox = new List <COMBOBOX_DTO>();
                AutoComboBox        auCombo     = new AutoComboBox();

                //Add value
                lstSourceLoaiTien.Insert(0, new AutoCompleteEntry(LLanguage.SearchResourceByKey("U.DungChung.TatCa"), new string[2] {
                    "%", "0"
                }));
                lstSourceThoiHanVay.Insert(0, new AutoCompleteEntry(LLanguage.SearchResourceByKey("U.DungChung.TatCa"), new string[2] {
                    "%", "0"
                }));

                //Loại tiền
                combo           = new COMBOBOX_DTO();
                combo.maCSo     = DatabaseConstant.DanhSachTruyVan.COMBOBOX_LOAITIEN.getValue();
                combo.combobox  = cmbLoaiTien;
                combo.lstSource = lstSourceLoaiTien;
                combo.maChon    = ClientInformation.MaDongNoiTe;
                lstCombobox.Add(combo);

                //Loại vay
                lstDieuKien = new List <string>();
                combo       = new COMBOBOX_DTO();
                lstDieuKien.Add(DatabaseConstant.DanhMuc.THOI_HAN_VAY_VON.getValue());

                combo.maChon      = BusinessConstant.THOI_HAN_CHO_VAY.NGAN_HAN.layGiaTri();
                combo.combobox    = cmbLoaiVay;
                combo.lstSource   = lstSourceThoiHanVay;
                combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
                combo.lstDieuKien = lstDieuKien;
                lstCombobox.Add(combo);

                //Gen combobox
                auCombo.GenAutoComboBoxTheoList(ref lstCombobox);
                cmbLoaiTien.SelectedIndex = 0;
                cmbLoaiVay.SelectedIndex  = 0;
            }
            catch (Exception ex)
            {
                LMessage.ShowMessage("M.DungChung.LoiChung", LMessage.MessageBoxType.Error);
                LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
            }
        }
Beispiel #4
0
        private void LoadCombobox()
        {
            COMBOBOX_DTO        combo       = null;
            List <string>       lstDieuKien = null;
            List <COMBOBOX_DTO> lstCombobox = new List <COMBOBOX_DTO>();

            //Loại phụ cấp
            lstDieuKien = new List <string>();
            lstDieuKien.Add("NS_DM_DU_AN");
            lstDieuKien.Add(ClientInformation.MaDonVi);
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC_NHAN_SU_THEO_BANG.getValue();
            combo.combobox    = cmbDuAn;
            combo.lstSource   = lstSourceDuAn;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            AutoComboBox auto = new AutoComboBox();

            auto.GenAutoComboBoxTheoList(ref lstCombobox);

            cmbDuAn.SelectedIndex = 0;



            DataSet dsNQL = new NhanSuProcess().GetDanhSachHoSo(ClientInformation.MaDonViGiaoDich, BusinessConstant.TrangThaiNghiepVu.DA_DUYET.layGiaTri(), BusinessConstant.LOAI_HO_SO.CHINH_THUC.layGiaTri());

            if (dsNQL != null && dsNQL.Tables[0].Rows.Count > 0)
            {
                ((GridViewComboBoxColumn)grid.Columns["NQL"]).ItemsSource = dsNQL.Tables[0].DefaultView;
            }
            else
            {
                ((GridViewComboBoxColumn)grid.Columns["NQL"]).ItemsSource = null;
            }
        }
Beispiel #5
0
        /// <summary>
        /// Load du lieu vao combobox
        /// </summary>
        private void LoadDuLieuCombobox()
        {
            COMBOBOX_DTO        combo       = null;
            List <string>       lstDieuKien = null;
            List <COMBOBOX_DTO> lstCombobox = new List <COMBOBOX_DTO>();

            //Giới tính
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.GIOI_TINH.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbGioiTinh;
            combo.lstSource   = lstSourceGioiTinh;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Dân tộc
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.DAN_TOC.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbDanToc;
            combo.lstSource   = lstSourceDanToc;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Mối quan hệ
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.MOI_QUAN_HE.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbQuanHeVoiThanhVien;
            combo.lstSource   = lstSourceMoiQuanHe;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Nghề nghiệp
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.NGHE_NGHIEP.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbNgheNghiep;
            combo.lstSource   = lstSourceNgheNghiep;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Tình trạng sức khỏe
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.TINH_TRANG_SUC_KHOE.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbTinhTrangSucKhoe;
            combo.lstSource   = lstSourceSucKhoe;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Trình độ học vấn
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.TRINH_DO_HOC_VAN.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbTrinhDoHocVan;
            combo.lstSource   = lstSourceTrinhDoHocVan;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Quan hệ kinh tế
            lstDieuKien = new List <string>();
            lstDieuKien.Add(DatabaseConstant.DanhMuc.QUAN_HE_KT.getValue());
            combo             = new COMBOBOX_DTO();
            combo.maCSo       = DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue();
            combo.combobox    = cmbQuanHeKT;
            combo.lstSource   = lstSourceQuanHeKT;
            combo.lstDieuKien = lstDieuKien;
            lstCombobox.Add(combo);

            //Nơi cấp
            combo           = new COMBOBOX_DTO();
            combo.maCSo     = DatabaseConstant.DanhSachTruyVan.COMBOBOX_TINHTP.getValue();
            combo.combobox  = cmbNoiCap;
            combo.lstSource = lstSourceNoiCap;
            lstCombobox.Add(combo);

            AutoComboBox auto = new AutoComboBox();

            auto.GenAutoComboBoxTheoList(ref lstCombobox);
        }