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_npl_tracking_ctrl { public partial class DsTodolist : DataSourceRepeater { public DataSet2.LNLAWCOLLDataTable DATA { get; set; } public void InitDsTodolist(PageWeb pw) { css1.Visible = false; DataSet2 ds = new DataSet2(); this.DATA = ds.LNLAWCOLL; this.EventItemChanged = "OnDsTodolistItemChanged"; this.EventClicked = "OnDsTodolistClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsTodolist"); this.Button.Add("b_delcoll"); this.Register(); } // public void DdGrploanpermiss() // { // string sql = @" // select // loantype_code, prefix||' '||loantype_desc as display, 1 as sorter // from lnloantype // union // select '','',0 from dual order by sorter, loantype_code // "; // DataTable dt = WebUtil.Query(sql); // this.DropDownDataBind(dt, "loantype_clear", "display", "loantype_code"); // } public void Retrieve(string tracking_no) { string sql = @"select * from LNLAWCOLL where ( ( LNLAWCOLL.coop_id = {0} ) and ( LNLAWCOLL.loancontract_no = {1} ) )"; sql = WebUtil.SQLFormat(sql, state.SsCoopId, tracking_no); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }