//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 查询报告列表 FilterReportDataBind((string)Session[ConstantsManager.SESSION_USER_ID], FilterReportList); // 主表 // 初始化用户编号(UserID)下拉列表 UserID.DataSource = GetDataSource_UserID_AdvanceSearch(); UserID.DataTextField = "UserLoginName"; UserID.DataValueField = "UserID"; UserID.DataBind(); UserID.Items.Insert(0, new ListItem("选择用户编号", "")); // 初始化共享报告(GXBG)下拉列表 GXBG.DataSource = GetDataSource_GXBG_AdvanceSearch(); GXBG.DataTextField = "MC"; GXBG.DataValueField = "DM"; GXBG.DataBind(); GXBG.Items.Insert(0, new ListItem("选择共享报告", "")); // 初始化系统报告(XTBG)下拉列表 XTBG.DataSource = GetDataSource_XTBG_AdvanceSearch(); XTBG.DataTextField = "MC"; XTBG.DataValueField = "DM"; XTBG.DataBind(); XTBG.Items.Insert(0, new ListItem("选择系统报告", "")); // 一对一相关表 }
//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 初始化用户编号(UserID)下拉列表 UserID.DataSource = GetDataSource_UserID(); UserID.DataTextField = "UserLoginName"; UserID.DataValueField = "UserID"; UserID.DataBind(); // 初始化共享报告(GXBG)下拉列表 GXBG.DataSource = GetDataSource_GXBG(); GXBG.DataTextField = "MC"; GXBG.DataValueField = "DM"; GXBG.DataBind(); // 初始化系统报告(XTBG)下拉列表 XTBG.DataSource = GetDataSource_XTBG(); XTBG.DataTextField = "MC"; XTBG.DataValueField = "DM"; XTBG.DataBind(); }