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; using DataLibrary; namespace Saving.Applications.trading.ws_td_oil_check_ctrl { public partial class DsMain : DataSourceFormView { public DataSet1.dsMainDataTable DATA { get; private set; } public void InitDsMain(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.dsMain; this.InitDataSource(pw, FormView1, this.DATA, "dsMain"); this.EventItemChanged = "OnDsMainItemChanged"; this.EventClicked = "OnDsMainClicked"; this.Register(); } // public void DdStoreid() // { // string sql = @" // select store_id || ' : ' || store_desc as store_id // from ststore // where coop_id = '" + state.SsCoopId + "' " + // "order by store_id asc "; // ; // sql = WebUtil.SQLFormat(sql); // this.DropDownDataBind(sql, "store_id", "store_id", "store_id"); // } // public void RetriveMaster() // { // string sql = @"select ststockcheck_docno // from ststockcheck // where end_date = to_date('" + state.SsWorkDate + "','dd/mm/yyyy')"; // sql = WebUtil.SQLFormat(sql); // DataTable dt = WebUtil.Query(sql); // ImportData(dt); // this.DdStoreid(); // } } }