using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CoreSavingLibrary; using System.Data; namespace Saving.Applications.trading.ws_td_constant_config_ctrl { public partial class DsDetail : DataSourceRepeater { public DataSet1.DSDETAILDataTable DATA { get; private set; } public void InitdsDetail(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DSDETAIL; this.Button.Add("b_del"); this.InitDataSource(pw, Repeater1, this.DATA, "dsDetail"); this.EventItemChanged = "OnDsDetailItemChanged"; this.EventClicked = "BtOnDsDetailClicked"; this.Register(); } public void RetrieveDetail(string coop_id) { string sql = @"select coop_id, coop_name, addr_no as coop_addr, addr_tambol as coop_tumbon, addr_amphur as coop_amphur, addr_province as coop_province, addr_postcode as coop_postcode, addr_phone as coop_phone from cmcoopmaster where coop_id={0}"; sql = WebUtil.SQLFormat(sql, coop_id); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }