/// <summary> /// 生成评价项细则选项 /// </summary> /// <param name="ExpressCode"></param> /// <param name="IsMulti"></param> /// <returns></returns> protected string GetOptionDetails(string ExpressCode, bool IsMulti) { string inputmodel = "<INPUT id={0} type={1} value={2} name={3}><LABEL title=\"{4}\" for={5}>{6} </LABEL>"; StringBuilder sb = new StringBuilder(); Tz888.BLL.TFZS.MeasureStandard bll = new Tz888.BLL.TFZS.MeasureStandard(); List <Tz888.Model.TFZS.TFZS_MeasureStandard> lists = new List <Tz888.Model.TFZS.TFZS_MeasureStandard>(); lists = bll.GetListByExpressCode(ExpressCode); string Type = "radio"; if (IsMulti) { Type = "checkbox"; } foreach (Tz888.Model.TFZS.TFZS_MeasureStandard model in lists) { string temp = string.Format(inputmodel, Type + model.MeasureCode.Trim(), Type, model.MeasureCode.Trim(), Type + "_" + ExpressCode.Trim(), model.MeasureName.Trim(), Type + model.MeasureCode.Trim(), model.MeasureName.Trim()); sb.Append(temp); } return(sb.ToString()); }
private void InitOptions() { #region 加载评价数据 Tz888.BLL.TFZS.MeasureStandard msbll = new Tz888.BLL.TFZS.MeasureStandard(); this.cblIsNewIndustry.DataSource = msbll.GetListByExpressCode("35"); this.cblIsNewIndustry.DataValueField = "MeasureCode"; this.cblIsNewIndustry.DataTextField = "MeasureName"; this.cblIsNewIndustry.DataBind(); this.cblProjectInstance.DataSource = msbll.GetListByExpressCode("36"); this.cblProjectInstance.DataValueField = "MeasureCode"; this.cblProjectInstance.DataTextField = "MeasureName"; this.cblProjectInstance.DataBind(); this.rbl16.DataSource = msbll.GetListByExpressCode("16"); this.rbl16.DataValueField = "MeasureCode"; this.rbl16.DataTextField = "MeasureName"; this.rbl16.DataBind(); this.cbl17.DataSource = msbll.GetListByExpressCode("17"); this.cbl17.DataValueField = "MeasureCode"; this.cbl17.DataTextField = "MeasureName"; this.cbl17.DataBind(); this.rbl18.DataSource = msbll.GetListByExpressCode("18"); this.rbl18.DataValueField = "MeasureCode"; this.rbl18.DataTextField = "MeasureName"; this.rbl18.DataBind(); this.rbl19.DataSource = msbll.GetListByExpressCode("19"); this.rbl19.DataValueField = "MeasureCode"; this.rbl19.DataTextField = "MeasureName"; this.rbl19.DataBind(); this.rbl20.DataSource = msbll.GetListByExpressCode("20"); this.rbl20.DataValueField = "MeasureCode"; this.rbl20.DataTextField = "MeasureName"; this.rbl20.DataBind(); this.rbl21.DataSource = msbll.GetListByExpressCode("21"); this.rbl21.DataValueField = "MeasureCode"; this.rbl21.DataTextField = "MeasureName"; this.rbl21.DataBind(); this.cbl22.DataSource = msbll.GetListByExpressCode("22"); this.cbl22.DataValueField = "MeasureCode"; this.cbl22.DataTextField = "MeasureName"; this.cbl22.DataBind(); this.rbl23.DataSource = msbll.GetListByExpressCode("23"); this.rbl23.DataValueField = "MeasureCode"; this.rbl23.DataTextField = "MeasureName"; this.rbl23.DataBind(); this.cbl24.DataSource = msbll.GetListByExpressCode("24"); this.cbl24.DataValueField = "MeasureCode"; this.cbl24.DataTextField = "MeasureName"; this.cbl24.DataBind(); this.rbl25.DataSource = msbll.GetListByExpressCode("25"); this.rbl25.DataValueField = "MeasureCode"; this.rbl25.DataTextField = "MeasureName"; this.rbl25.DataBind(); this.rbl26.DataSource = msbll.GetListByExpressCode("26"); this.rbl26.DataValueField = "MeasureCode"; this.rbl26.DataTextField = "MeasureName"; this.rbl26.DataBind(); this.rbl27.DataSource = msbll.GetListByExpressCode("27"); this.rbl27.DataValueField = "MeasureCode"; this.rbl27.DataTextField = "MeasureName"; this.rbl27.DataBind(); this.rbl28.DataSource = msbll.GetListByExpressCode("28"); this.rbl28.DataValueField = "MeasureCode"; this.rbl28.DataTextField = "MeasureName"; this.rbl28.DataBind(); this.rbl29.DataSource = msbll.GetListByExpressCode("29"); this.rbl29.DataValueField = "MeasureCode"; this.rbl29.DataTextField = "MeasureName"; this.rbl29.DataBind(); this.rbl30.DataSource = msbll.GetListByExpressCode("30"); this.rbl30.DataValueField = "MeasureCode"; this.rbl30.DataTextField = "MeasureName"; this.rbl30.DataBind(); this.rbl31.DataSource = msbll.GetListByExpressCode("31"); this.rbl31.DataValueField = "MeasureCode"; this.rbl31.DataTextField = "MeasureName"; this.rbl31.DataBind(); this.rbl32.DataSource = msbll.GetListByExpressCode("32"); this.rbl32.DataValueField = "MeasureCode"; this.rbl32.DataTextField = "MeasureName"; this.rbl32.DataBind(); this.rbl33.DataSource = msbll.GetListByExpressCode("33"); this.rbl33.DataValueField = "MeasureCode"; this.rbl33.DataTextField = "MeasureName"; this.rbl33.DataBind(); this.cbl34.DataSource = msbll.GetListByExpressCode("34"); this.cbl34.DataValueField = "MeasureCode"; this.cbl34.DataTextField = "MeasureName"; this.cbl34.DataBind(); #endregion }
private void InitOptions() { #region 加载评价数据 Tz888.BLL.TFZS.MeasureStandard msbll = new Tz888.BLL.TFZS.MeasureStandard(); this.cblIsNewIndustry.DataSource = msbll.GetListByExpressCode("35"); this.cblIsNewIndustry.DataValueField = "MeasureCode"; this.cblIsNewIndustry.DataTextField = "MeasureName"; this.cblIsNewIndustry.DataBind(); this.cblProjectInstance.DataSource = msbll.GetListByExpressCode("36"); this.cblProjectInstance.DataValueField = "MeasureCode"; this.cblProjectInstance.DataTextField = "MeasureName"; this.cblProjectInstance.DataBind(); this.cbl1.DataSource = msbll.GetListByExpressCode("1"); this.cbl1.DataValueField = "MeasureCode"; this.cbl1.DataTextField = "MeasureName"; this.cbl1.DataBind(); this.rbl2.DataSource = msbll.GetListByExpressCode("2"); this.rbl2.DataValueField = "MeasureCode"; this.rbl2.DataTextField = "MeasureName"; this.rbl2.DataBind(); this.rbl3.DataSource = msbll.GetListByExpressCode("3"); this.rbl3.DataValueField = "MeasureCode"; this.rbl3.DataTextField = "MeasureName"; this.rbl3.DataBind(); this.rbl4.DataSource = msbll.GetListByExpressCode("4"); this.rbl4.DataValueField = "MeasureCode"; this.rbl4.DataTextField = "MeasureName"; this.rbl4.DataBind(); this.rbl5.DataSource = msbll.GetListByExpressCode("5"); this.rbl5.DataValueField = "MeasureCode"; this.rbl5.DataTextField = "MeasureName"; this.rbl5.DataBind(); this.rbl6.DataSource = msbll.GetListByExpressCode("6"); this.rbl6.DataValueField = "MeasureCode"; this.rbl6.DataTextField = "MeasureName"; this.rbl6.DataBind(); this.rbl7.DataSource = msbll.GetListByExpressCode("7"); this.rbl7.DataValueField = "MeasureCode"; this.rbl7.DataTextField = "MeasureName"; this.rbl7.DataBind(); this.rbl8.DataSource = msbll.GetListByExpressCode("8"); this.rbl8.DataValueField = "MeasureCode"; this.rbl8.DataTextField = "MeasureName"; this.rbl8.DataBind(); this.rbl9.DataSource = msbll.GetListByExpressCode("9"); this.rbl9.DataValueField = "MeasureCode"; this.rbl9.DataTextField = "MeasureName"; this.rbl9.DataBind(); this.rbl10.DataSource = msbll.GetListByExpressCode("10"); this.rbl10.DataValueField = "MeasureCode"; this.rbl10.DataTextField = "MeasureName"; this.rbl10.DataBind(); this.rbl11.DataSource = msbll.GetListByExpressCode("11"); this.rbl11.DataValueField = "MeasureCode"; this.rbl11.DataTextField = "MeasureName"; this.rbl11.DataBind(); this.cbl12.DataSource = msbll.GetListByExpressCode("12"); this.cbl12.DataValueField = "MeasureCode"; this.cbl12.DataTextField = "MeasureName"; this.cbl12.DataBind(); this.cbl13.DataSource = msbll.GetListByExpressCode("13"); this.cbl13.DataValueField = "MeasureCode"; this.cbl13.DataTextField = "MeasureName"; this.cbl13.DataBind(); this.rbl14.DataSource = msbll.GetListByExpressCode("14"); this.rbl14.DataValueField = "MeasureCode"; this.rbl14.DataTextField = "MeasureName"; this.rbl14.DataBind(); this.cbl15.DataSource = msbll.GetListByExpressCode("15"); this.cbl15.DataValueField = "MeasureCode"; this.cbl15.DataTextField = "MeasureName"; this.cbl15.DataBind(); #endregion }