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.u_cri_date_rdate_coopid { public partial class DsMain : DataSourceFormView { public DataSet1.DataTable1DataTable DATA { get; set; } public void InitDsMain(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DataTable1; this.InitDataSource(pw, FormView1, this.DATA, "dsMain"); this.EventItemChanged = "OnDsMainItemChanged"; this.EventClicked = "OnDsMainClicked"; this.Register(); } public void Dd_type() { String sql = @"select coop_id, DEPTTYPE_GROUP, DEPTTYPE_GROUP||'-'||depttype_desc as display, depttype_desc,1 as sorter from DPDEPTMIDGROUP union select '','','','',0 from dual order by sorter,DEPTTYPE_GROUP"; sql = WebUtil.SQLFormat(sql); DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "as_type", "display", "DEPTTYPE_GROUP"); } 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"); } } }