using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using CoreSavingLibrary; namespace Saving.Applications.shrlon.ws_sl_loan_edit_ctrl { public partial class DsPeriod : DataSourceRepeater { public DataSet1.LNCONTPERIODPAYDETDataTable DATA { get; set; } public void InitDsPeriod(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.LNCONTPERIODPAYDET; this.EventItemChanged = "OnDsTodolistItemChanged"; this.EventClicked = "OnDsTodolistClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsPeriod"); this.Button.Add("b_delperiod"); this.Register(); } public void Retrieve(string tracking_no) { string sql = @"select * from LNCONTPERIODPAYDET where ( ( LNCONTPERIODPAYDET.coop_id = {0} ) and ( LNCONTPERIODPAYDET.loancontract_no = {1} ) )"; sql = WebUtil.SQLFormat(sql, state.SsCoopId, tracking_no); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }