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 DsDetail6 : DataSourceRepeater { public DataSet1.DSDETAIL6DataTable DATA { get; private set; } public void InitdsDetail6(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DSDETAIL6; //this.Button.Add("b_del"); this.InitDataSource(pw, Repeater1, this.DATA, "dsDetail6"); this.EventItemChanged = "OnDsDetail6ItemChanged"; this.EventClicked = "BtOnDsDetail6Clicked"; this.Register(); } public void Retrieve(string coop_id) { string sql = @"select producttype_code, coop_id, producttype_desc, '' as accid_cash, '' as accid_buy, '' as accid_sale, '' as accid_receive, '' as accid_sent, '' as accid_invat, '' as accid_outvat from stucfproducttype where coop_id={0} order by producttype_code"; sql = WebUtil.SQLFormat(sql, coop_id); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }