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.mbshr.ws_sl_reqgain_true_ctrl { public partial class DsDetail : DataSourceRepeater { public DataSet1.MBGAINMASTERDataTable DATA { get; set; } public void InitDsDetail(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.MBGAINMASTER; this.EventItemChanged = "OnDsDetailItemChanged"; this.EventClicked = "OnDsDetailClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsDetail"); this.Button.Add("b_del"); this.Register(); } public void Retrieve(string mem_no) { String sql = @"SELECT * FROM MBGAINMASTER WHERE COOP_ID ={0} AND MEMBER_NO ={1}"; sql = WebUtil.SQLFormat(sql, state.SsCoopControl, mem_no); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } public void DdRealtion() { string sql = @" SELECT CONCERN_CODE, GAIN_CONCERN FROM MBUCFGAINCONCERN order by CONCERN_CODE"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "gain_relation", "GAIN_CONCERN", "CONCERN_CODE"); } } }