using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using CoreSavingLibrary; namespace Saving.Applications.trading.ws_td_sale_scale_ctrl { public partial class DsScale : DataSourceFormView { public DataSet1.DSSCALEDataTable DATA { get; private set; } public void InitdsScale(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DSSCALE; this.InitDataSource(pw, FormViewMain, this.DATA, "dsScale"); this.EventItemChanged = "OnDsScaleItemChanged"; this.EventClicked = "OnDsScaleClicked"; this.Button.Add("b_product_no"); this.Button.Add("b_scale_in"); this.Button.Add("b_scale_out"); this.Register(); } public void DdDebtType() { string sql = "select debtfromtype_code, debtfromtype_desc from stucfdebtfromtype where coop_id=" + state.SsCoopId + " and item_status = 1 order by debtfromtype_code"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "debtfromtype_code", "debtfromtype_desc", "debtfromtype_code"); } } }