Пример #1
0
        public void BindComboBox()
        {
            orgLogic.BindComboBox(cboOperOrgID, new HR_OrgParam {
            });
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] { "Currency", "Warehouse", "UnitCode" }
            });

            dictLineLogic.BindComboBox(cboCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(colCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(colWarehouse, "Warehouse", itemLineList);
            dictLineLogic.BindComboBox(colUnit, "UnitCode", itemLineList);
        }
Пример #2
0
        public void BindComboBox()
        {
            orgLogic.BindComboBox(cboOperOrgID, new HR_OrgParam {
            });
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] { "TransportCompany", "FreightPaymentType", "Currency", "Warehouse", "UnitCode" }
            });

            dictLineLogic.BindComboBox(cboTransportCompany, "TransportCompany", itemLineList);
            dictLineLogic.BindComboBox(cboFreightClearForm, "FreightPaymentType", itemLineList);
            dictLineLogic.BindComboBox(cboCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(colCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(colWarehouse, "Warehouse", itemLineList);
            dictLineLogic.BindComboBox(colUnit, "UnitCode", itemLineList);
        }
Пример #3
0
        public void BindComboBox()
        {
            orgLogic.BindComboBox(cboOperOrgID, new HR_OrgParam {
            });
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] {
                    "StkInBillType", "FreightPaymentType", "Currency", "UnitCode", "TaxRate", "Warehouse"
                }
            });

            dictLineLogic.BindComboBox(cboCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(cboTaxRate, "TaxRate", itemLineList);

            dictLineLogic.BindComboBox(cboBillType, "StkInBillType", itemLineList);
            dictLineLogic.BindComboBox(colCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(colUnit, "UnitCode", itemLineList);
            dictLineLogic.BindComboBox(colInvType, "InvType", itemLineList);
            dictLineLogic.BindComboBox(colWarehouse, "Warehouse", itemLineList);
            dictLineLogic.BindComboBox(colTaxRate, "TaxRate", itemLineList);
        }
Пример #4
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;
        }
Пример #5
0
        public void BindComboBox()
        {
            orgLogic.BindComboBox(cboPurOrgID, new HR_OrgParam {
            });
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] {
                    "PurTransportCompany", "FreightPaymentType", "ClearingForm", "Currency", "UnitCode", "InvType", "InvoiceType", "TaxRate"
                }
            });

            dictLineLogic.BindComboBox(cboTransportCompany, "PurTransportCompany", itemLineList);
            dictLineLogic.BindComboBox(cboFreightClearForm, "FreightPaymentType", itemLineList);
            dictLineLogic.BindComboBox(cboClearingForm, "ClearingForm", itemLineList);
            dictLineLogic.BindComboBox(cboCurrency, "Currency", itemLineList);
            dictLineLogic.BindComboBox(cboInvoiceType, "InvoiceType", itemLineList);
            dictLineLogic.BindComboBox(cboTaxRate, "TaxRate", itemLineList);
            dictLineLogic.BindComboBox(cboInvType, "InvType", itemLineList);

            dictLineLogic.BindComboBox(colInvType, "InvType", itemLineList);
            dictLineLogic.BindComboBox(colUnit, "UnitCode", itemLineList);
        }
Пример #6
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);
        }
Пример #7
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;
        }