Esempio n. 1
0
        public void BindComboBox()
        {
            zoneLogic.BindComboBox(cboArea, new CRM_ZoneParam {
                ZType = 1
            });
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] {
                    "Duty", "Industry", "DataSource", "GoodsSource", "PriceLevel", "CompanyLevel", "CompanyNature", "CompanyCreditRating", "CompanyInStage", "CustStatus", "CustDealType", "ClearingForm", "Currency"
                }
            });

            orgLogic.BindComboBox(cboOrgID, new HR_OrgParam {
            });
            deptLogic.BindComboBox(cboDeptID, new HR_DepartmentParam {
            });
            dictLineLogic.BindComboBox(cboDuty, "Duty", itemLineList);
            dictLineLogic.BindComboBox(cboIndustry, "Industry", itemLineList);
            dictLineLogic.BindComboBox(cboDataSource, "DataSource", itemLineList);
            dictLineLogic.BindComboBox(cboGoodsSource, "GoodsSource", itemLineList);
            dictLineLogic.BindComboBox(cboPriceLevel, "PriceLevel", itemLineList);
            dictLineLogic.BindComboBox(cboRank, "CompanyLevel", itemLineList);
            dictLineLogic.BindComboBox(cboBusinessNature, "CompanyNature", itemLineList);
            dictLineLogic.BindComboBox(cboCreditRating, "CompanyCreditRating", itemLineList);
            dictLineLogic.BindComboBox(cboInStage, "CompanyInStage", itemLineList);
            dictLineLogic.BindComboBox(cboCustStatus, "CustStatus", itemLineList);
            dictLineLogic.BindComboBox(cboCustDealType, "CustDealType", itemLineList);
            dictLineLogic.BindComboBox(cboClearingForm, "ClearingForm", itemLineList);
            dictLineLogic.BindComboBox(cboCurrencyCode, "Currency", itemLineList);

            //dictLogic
            List <KeyValuePair <string, string> > kvList = new List <KeyValuePair <string, string> > ();

            kvList.Add(new KeyValuePair <string, string>("", ""));
            kvList.Add(new KeyValuePair <string, string>("男", "男"));
            kvList.Add(new KeyValuePair <string, string>("女", "女"));
            colGender.DisplayMember = "Key";
            colGender.ValueMember   = "Value";
            colGender.DataSource    = kvList;
        }
Esempio n. 2
0
        public void InitData()
        {
            orgLogic.BindComboBox(cboOrgID, new HR_OrgParam()
            {
            });
            deptLogic.BindComboBox(cboDeptID, new HR_DepartmentParam()
            {
            });

            List <HR_EmployeeResult> empList = empLogic.GetEmpList(new HR_EmployeeParam()
            {
            });

            empLogic.BindComboBox(cboManagerEmpID, empList);
            empLogic.BindComboBox(cboLastEditEmpID, empList);
            //empLogic.BindComboBox(cboRelationSales, empList);
            //empLogic.BindComboBox(cboRelationBuyers, empList);
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] {
                    "Probation", "Position", "EmpStatus", "Gender", "Nation", "Marriage", "Education", "Professional", "Currency", "EmpIsActive"
                }
            });

            dictLineLogic.BindComboBox(cboProbation, "Probation", itemLineList);
            dictLineLogic.BindComboBox(cboPositionID, "Position", itemLineList);
            dictLineLogic.BindComboBox(cboEmpStatus, "EmpStatus", itemLineList);
            dictLineLogic.BindComboBox(cboSex, "Gender", itemLineList);
            dictLineLogic.BindComboBox(cboNation, "Nation", itemLineList);
            dictLineLogic.BindComboBox(cboMarriage, "Marriage", itemLineList);
            dictLineLogic.BindComboBox(cboEducation, "Education", itemLineList);
            dictLineLogic.BindComboBox(cboProfessional, "Professional", itemLineList);
            dictLineLogic.BindComboBox(cboDefaultSaleCurreny, "Currency", itemLineList);
            dictLineLogic.BindComboBox(cboDefaultBuyCurreny, "Currency", itemLineList);
            dictLineLogic.BindComboBox(cboIsActive, "EmpIsActive", itemLineList);
            //dictLineLogic.BindComboBox(cboCustStatus, new SYS_DictItemLineParam { ItemCode = "CustStatus" }, pgList.ResultJoinList);
            //dictLineLogic.BindComboBox(cboCustDealType, new SYS_DictItemLineParam { ItemCode = "CustDealType" }, pgList.ResultJoinList);
            //dictLineLogic.BindComboBox(cboClearingForm, new SYS_DictItemLineParam { ItemCode = "ClearingForm" }, pgList.ResultJoinList);
        }
Esempio n. 3
0
        public void BindComboBox()
        {
            zoneLogic.BindComboBox(cboArea, new CRM_ZoneParam {
                ZType = 1
            });
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] {
                    "Duty", "SupplierFamiliarity", "SupplierGuaranteePeriod", "DataSource", "GoodsSource", "CompanyNature", "ClearingForm", "Currency"
                }
            });

            orgLogic.BindComboBox(cboOrgID, new HR_OrgParam {
            });
            deptLogic.BindComboBox(cboDeptID, new HR_DepartmentParam {
            });

            dictLineLogic.BindComboBox(cboDuty, "Duty", itemLineList);
            dictLineLogic.BindComboBox(cboFamiliarity, "SupplierFamiliarity", itemLineList);
            dictLineLogic.BindComboBox(cboGuaranteePeriod, "SupplierGuaranteePeriod", itemLineList);
            dictLineLogic.BindComboBox(cboDataSource, "DataSource", itemLineList);
            dictLineLogic.BindComboBox(cboGoodsSource, "GoodsSource", itemLineList);
            dictLineLogic.BindComboBox(cboBusinessNature, "CompanyNature", itemLineList);
            dictLineLogic.BindComboBox(cboClearingForm, "ClearingForm", itemLineList);
            dictLineLogic.BindComboBox(cboCurrencyCode, "Currency", itemLineList);

            //dictLogic
            List <KeyValuePair <string, string> > kvList = new List <KeyValuePair <string, string> >();

            kvList.Add(new KeyValuePair <string, string>("", ""));
            kvList.Add(new KeyValuePair <string, string>("男", "男"));
            kvList.Add(new KeyValuePair <string, string>("女", "女"));
            colGender.DisplayMember = "Key";
            colGender.ValueMember   = "Value";
            colGender.DataSource    = kvList;
        }