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.ws_sl_slip_cancel_ctrl { public partial class DsList : DataSourceRepeater { public DataSet1.DT_LISTDataTable DATA { get; set; } public void InitDsList(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DT_LIST; this.EventItemChanged = "OnDsListItemChanged"; this.EventClicked = "OnDsListClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsList"); this.Register(); } public void Retrieve(string memb_no) { String sql = @" select slslippayin.payinslip_no, slslippayin.sliptype_code, slslippayin.slip_date from slslippayin where ( slslippayin.memcoop_id = {0} ) and ( slslippayin.member_no = {1} ) and ( slslippayin.sliptype_code in ('PX','PMP') ) and ( slslippayin.slip_status = 1 ) order by slslippayin.payinslip_no desc"; sql = WebUtil.SQLFormat(sql, state.SsCoopControl, memb_no); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }