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.Applications.ap_deposit.ws_yrreq_excal_ctrl { public partial class DsMain : DataSourceFormView { public DataSet1.DataTable1DataTable DATA { get; set; } public void InitStatement(PageWeb pw) { css1.Visible = false; css2.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DataTable1; this.EventItemChanged = "OnDsMainItemChanged"; this.EventClicked = "OnDsMainClicked"; // this. // this.Button.Add("b_memsearch"); this.InitDataSource(pw, FormView1, this.DATA, "dsMain"); this.Register(); } public void Ddtofrom_accid() { string sql = @" select account_id,account_id||' '||account_name as account_desc,1 as sorter from accmaster union select '','',0 from dual order by sorter, account_id asc"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "tofrom_accid", "account_desc", "account_id"); } } }