using System; using CoreSavingLibrary; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; namespace Saving.Applications.shrlon.ws_sl_sliploan_law_ctrl { public partial class DsPrint : DataSourceFormView { public DataSet1.SLSLIPPAYINDETDataTable DATA { get; set; } public string IsShow = "visible"; public void InitDsPrint(PageWeb pw) { css1.Visible = false; css2.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.SLSLIPPAYINDET; //this.EventItemChanged = "OnDsMainItemChanged"; this.InitDataSource(pw, FormView1, this.DATA, "dsPrint"); this.EventItemChanged = "OndsPrintItemChanged"; this.EventClicked = "OndsPrintClicked"; this.Register(); this.Button.Add("b_memsearch"); // this.Button.Add("b_ref"); } public void DdGEtContact(string memno) { string sql = @" SELECT a.* FROM( select LOANCONTRACT_NO, 1 as sorter from LNCONTMASTER WHERE MEMBER_NO = '"+memno+@"' and principal_balance > 0 union select 'เลือกสัญญา' as LOANCONTRACT_NO ,0 as sorter from dual)a order by a.sorter,a.LOANCONTRACT_NO"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "LOANCONTRACT_NO", "LOANCONTRACT_NO", "LOANCONTRACT_NO"); } } }