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_npl_tracking_ctrl { public partial class DsStm : DataSourceRepeater { public DataSet2.LNLAWSTATEMENTDataTable DATA { get; set; } public void InitdsStm(PageWeb pw) { css1.Visible = false; css2.Visible = false; DataSet2 ds = new DataSet2(); this.DATA = ds.LNLAWSTATEMENT; this.EventItemChanged = "OndsStmItemChanged"; this.EventClicked = "OndsStmClicked"; this.InitDataSource(pw, Repeater2, this.DATA, "dsStm"); // this.Button.Add("b_memsearch"); //this.Button.Add("b_contsearch"); this.Register(); } public void RetrievedsStm(string payinslip_no) { String sql = @" SELECT * FROM lnlawstatement WHERE ( ( lnlawstatement.COOP_ID = {0} ) AND ( lnlawstatement.loancontract_no = {1} ) ) order by seq_no "; //if( isnull( interest_period ) or interest_period <= 0, 0, //if( ( interest_payamt - bfintarr_amt ) > 0 , ( interest_payamt - bfintarr_amt ), 0 ) ) sql = WebUtil.SQLFormat(sql, state.SsCoopId, payinslip_no); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }