/// <summary> /// 绑定问卷类型数据源 /// 作者:姚东 /// 时间:20100922 /// </summary> private void BindData() { DataTable dt = new SurveyTableQuery().GetClassID(); ddlSurveyClass.DataSource = dt; ddlSurveyClass.DataValueField = "CID"; ddlSurveyClass.DataTextField = "SurveyClassName"; ddlSurveyClass.DataBind(); }
/// <summary> /// 获得调查问卷信息 /// </summary> private DataSet GetData(string UserID) { DataSet ds = new SurveyTableQuery().GetSurveyInfo(SurveyName, State, Active, ClassID, BeginDate, EndDate, viewpage1.CurrentPageIndex, viewpage1.PageSize, UserID); return(ds); }