//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 查询报告列表 FilterReportDataBind((string)Session[ConstantsManager.SESSION_USER_ID], FilterReportList); // 主表 // 初始化用户组(UserGroupID)下拉列表 UserGroupID.DataSource = GetDataSource_UserGroupID_AdvanceSearch(); UserGroupID.DataTextField = "UserGroupName"; UserGroupID.DataValueField = "UserGroupID"; UserGroupID.DataBind(); UserGroupID.RepeatColumns = 1; // 初始化所属单位(SubjectID)下拉列表 SubjectID.DataSource = GetDataSource_SubjectID_AdvanceSearch(); SubjectID.DataTextField = "DWMC"; SubjectID.DataValueField = "DWBH"; SubjectID.DataBind(); SubjectID.RepeatColumns = 1; // 初始化性别(XB)下拉列表 XB.DataSource = GetDataSource_XB_AdvanceSearch(); XB.DataTextField = "MC"; XB.DataValueField = "DM"; XB.DataBind(); XB.RepeatColumns = 1; // 初始化民族(MZ)下拉列表 MZ.DataSource = GetDataSource_MZ_AdvanceSearch(); MZ.DataTextField = "MC"; MZ.DataValueField = "DM"; MZ.DataBind(); MZ.RepeatColumns = 1; // 初始化政治面貌(ZZMM)下拉列表 ZZMM.DataSource = GetDataSource_ZZMM_AdvanceSearch(); ZZMM.DataTextField = "MC"; ZZMM.DataValueField = "DM"; ZZMM.DataBind(); ZZMM.RepeatColumns = 1; // 初始化用户状态(UserStatus)下拉列表 UserStatus.DataSource = GetDataSource_UserStatus_AdvanceSearch(); UserStatus.DataTextField = "MC"; UserStatus.DataValueField = "DM"; UserStatus.DataBind(); UserStatus.Items.Insert(0, new ListItem("选择用户状态", "")); // 一对一相关表 }
//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 初始化用户组(UserGroupID)下拉列表 UserGroupID.DataSource = GetDataSource_UserGroupID(); UserGroupID.DataTextField = "UserGroupName"; UserGroupID.DataValueField = "UserGroupID"; UserGroupID.DataBind(); // 初始化所属单位(SubjectID)下拉列表 SubjectID.DataSource = GetDataSource_SubjectID(); SubjectID.DataTextField = "DWMC"; SubjectID.DataValueField = "DWBH"; SubjectID.DataBind(); // 初始化性别(XB)下拉列表 XB.DataSource = GetDataSource_XB(); XB.DataTextField = "MC"; XB.DataValueField = "DM"; XB.DataBind(); // 初始化民族(MZ)下拉列表 MZ.DataSource = GetDataSource_MZ(); MZ.DataTextField = "MC"; MZ.DataValueField = "DM"; MZ.DataBind(); // 初始化政治面貌(ZZMM)下拉列表 ZZMM.DataSource = GetDataSource_ZZMM(); ZZMM.DataTextField = "MC"; ZZMM.DataValueField = "DM"; ZZMM.DataBind(); // 初始化用户状态(UserStatus)下拉列表 UserStatus.DataSource = GetDataSource_UserStatus(); UserStatus.DataTextField = "MC"; UserStatus.DataValueField = "DM"; UserStatus.DataBind(); }