//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 查询报告列表 FilterReportDataBind((string)Session[ConstantsManager.SESSION_USER_ID], FilterReportList); // 主表 // 初始化课程系列(KCXLBH)下拉列表 KCXLBH.DataSource = GetDataSource_KCXLBH_AdvanceSearch(); KCXLBH.DataTextField = "KCXLMC"; KCXLBH.DataValueField = "KCXLBH"; KCXLBH.DataBind(); KCXLBH.RepeatColumns = 1; // 初始化课程(KCBH)下拉列表 KCBH.DataTextField = "KCMC"; KCBH.DataValueField = "KCBH"; KCXLBHCoupled(); // 初始化教师(SKJS)下拉列表 SKJS.DataSource = GetDataSource_SKJS_AdvanceSearch(); SKJS.DataTextField = "UserNickName"; SKJS.DataValueField = "UserID"; SKJS.DataBind(); SKJS.Items.Insert(0, new ListItem("选择教师", "")); // 一对一相关表 }
//===================================================================== // FunctionName : InitalizeDataBind /// <summary> /// 初始化数据绑定 /// </summary> //===================================================================== protected void InitalizeDataBind() { // 初始化课程系列(KCXLBH)下拉列表 KCXLBH.DataSource = GetDataSource_KCXLBH(); KCXLBH.DataTextField = "KCXLMC"; KCXLBH.DataValueField = "KCXLBH"; KCXLBH.DataBind(); // 初始化课程(KCBH)下拉列表 KCBH.DataTextField = "KCMC"; KCBH.DataValueField = "KCBH"; KCXLBHCoupled(); // 初始化教师(SKJS)下拉列表 SKJS.DataSource = GetDataSource_SKJS(); SKJS.DataTextField = "UserNickName"; SKJS.DataValueField = "UserID"; SKJS.DataBind(); }