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_coll_print_ctrl { public partial class DsMoney : DataSourceFormView { public DataSet1.LNCOLLMASTER1DataTable DATA { get; set; } public string IsShow = "visible"; public void InitDsMoney(PageWeb pw) { css1.Visible = false; css2.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.LNCOLLMASTER1; this.EventItemChanged = "OnDsMoneyItemChanged"; this.EventClicked = "OnDsMoneyClicked"; this.InitDataSource(pw, FormView1, this.DATA, "dsMoney"); this.Register(); } public void RetrieveMoney(string memno) { string sql = @"select collmast_no,member_no,mortgage_count,first_mrtg_amt,secound_mrtg_amt ,old_mrtg_amt,this_mrtg_amt from lncollmaster where collmast_no ={1} and coop_id = {0}"; sql = WebUtil.SQLFormat(sql, state.SsCoopControl, memno); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }