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; using DataLibrary; namespace Saving.Applications.trading.ws_cancle_scalesone_ctrl { public partial class DsMain : DataSourceFormView { public DataSet1.DataTable1DataTable DATA { get; set; } public void InitdsMain(PageWeb pw) { css1.Visible = false; css2.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DataTable1; this.InitDataSource(pw, FormView1, this.DATA, "dsMain"); this.EventItemChanged = "OnDsMainItemChanged"; this.EventClicked = "OnDsMainClicked"; this.Button.Add("bsearch"); this.Register(); } public void RetriveProduct_no() { string sql = null; sql = "select product_no,product_no ||' : '|| product_desc as product_desc, 1 as sorter from stproductmaster where productgroup_code = '003' and coop_id = '" + state.SsCoopId + "' "; sql += "union select '','',0 from dual order by sorter, product_no"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "product_no", "product_desc", "product_no"); } } }