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_reqloan_law_ctrl { public partial class DsColl : DataSourceRepeater { public DataSet1.LNLAWCOLLDataTable DATA { get; set; } public void InitDsAdd(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.LNLAWCOLL; this.EventItemChanged = "OnDsCollItemChanged"; this.EventClicked = "OnDsCollClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsColl"); this.Button.Add("b_delcoll"); this.Button.Add("b_searchc"); this.Register(); } public void RetrieveDsColl(string docno) { string sql = @"select * from LNLAWCOLL where ( ( LNLAWCOLL.coop_id = {0} ) and ( LNLAWCOLL.loancontract_no like {1} ) )"; sql = WebUtil.SQLFormat(sql, state.SsCoopId, "%" + docno); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }