Ejemplo 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;
        }
Ejemplo n.º 2
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;
        }