using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CoreSavingLibrary; using System.Data; namespace Saving.CriteriaIReport.Share_Paper_year { public partial class DsMain : DataSourceFormView { public DataSet1.DataTable2DataTable DATA { get; set; } public void InitDsMain(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DataTable2; this.InitDataSource(pw, FormView1, this.DATA, "dsMain"); this.EventItemChanged = "OnDsMainItemChanged"; this.EventClicked = "OnDsMainClicked"; this.Register(); } public void DdCoopId() { String sql = @" SELECT COOP_ID, COOP_NAME FROM CMCOOPMASTER "; sql = WebUtil.SQLFormat(sql); DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "coop_id", "coop_name", "coop_id"); } // public void DdMembgroup() // { // string sql = @"SELECT a.* FROM( select membgroup_code, // CONCAT(CONCAT(membgroup_code,' '),membgroup_desc) as display,1 as sorter from // mbucfmembgroup // union // select ''as membgroup_code,''as display,0 as sorter from dual)a // order by a.sorter,a.membgroup_code" // ; // sql = WebUtil.SQLFormat(sql); // this.DropDownDataBind(sql, "membgroup_start", "display", "membgroup_code"); // this.DropDownDataBind(sql, "membgroup_end", "display", "membgroup_code"); // } } }