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.shrlon.dlg.ws_dlg_search_lawmember_ctrl { public partial class DsMainSearch : DataSourceFormView { public DataSet1.DT_MAINDataTable DATA { get; set; } public void InitDsMainSearch(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DT_MAIN; this.EventItemChanged = "OnDsMainSearchItemChanged"; this.EventClicked = "OnDsMainSearchClicked"; this.InitDataSource(pw, FormView1, this.DATA, "dsMainSearch"); this.Button.Add("b_search"); this.Button.Add("b_reset"); this.Register(); } public void DdLoanTypeCode() { string sql = @" select membgroup_code, membgroup_code || ' ' || membgroup_desc as loantype_desc, 1 as sorter from mbucfmembgroup where coop_id = {0} union select '', '', 0 from dual order by sorter, membgroup_code"; sql = WebUtil.SQLFormat(sql, state.SsCoopControl); DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "loan_type", "loantype_desc", "membgroup_code"); } } }