//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 初始化上级栏目(SJLMH)下拉列表 SJLMH.DataSource = GetDataSource_SJLMH(); SJLMH.DataTextField = "LMM"; SJLMH.DataValueField = "LMH"; SJLMH.DataBind(); SJLMH.Items.Insert(0, new ListItem("请选择上级栏目", "")); // 初始化栏目列表样式(LMLBYS)下拉列表 LMLBYS.DataSource = GetDataSource_LMLBYS(); LMLBYS.DataTextField = "MC"; LMLBYS.DataValueField = "DM"; LMLBYS.DataBind(); // 初始化列表内容栏目(SFLBLM)下拉列表 SFLBLM.DataSource = GetDataSource_SFLBLM(); SFLBLM.DataTextField = "MC"; SFLBLM.DataValueField = "DM"; SFLBLM.DataBind(); // 初始化外部栏目(SFWBURL)下拉列表 SFWBURL.DataSource = GetDataSource_SFWBURL(); SFWBURL.DataTextField = "MC"; SFWBURL.DataValueField = "DM"; SFWBURL.DataBind(); }
//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 查询报告列表 FilterReportDataBind((string)Session[ConstantsManager.SESSION_USER_ID], FilterReportList); // 主表 // 初始化上级栏目(SJLMH)下拉列表 SJLMH.DataSource = GetDataSource_SJLMH_AdvanceSearch(); SJLMH.DataTextField = "LMM"; SJLMH.DataValueField = "LMH"; SJLMH.DataBind(); SJLMH.Items.Insert(0, new ListItem("选择上级栏目", "")); // 初始化栏目列表样式(LMLBYS)下拉列表 LMLBYS.DataSource = GetDataSource_LMLBYS_AdvanceSearch(); LMLBYS.DataTextField = "MC"; LMLBYS.DataValueField = "DM"; LMLBYS.DataBind(); LMLBYS.Items.Insert(0, new ListItem("选择栏目列表样式", "")); // 一对一相关表 }