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 DsColl : DataSourceRepeater { public DataSet1.LNCONTCOLLDataTable DATA { get; set; } public void InitDsTodolist(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.LNCONTCOLL; this.EventItemChanged = "OnDsTodolistItemChanged"; this.EventClicked = "OnDsTodolistClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsColl"); this.Button.Add("b_delcoll"); this.Register(); } public void Retrieve(string tracking_no) { string sql = @"select * from LNCONTCOLL where ( ( LNCONTCOLL.coop_id = {0} ) and ( LNCONTCOLL.loancontract_no = {1} ) )"; sql = WebUtil.SQLFormat(sql, state.SsCoopId, tracking_no); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }