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.shrlon.ws_sl_collateral_master_ctrl { public partial class DsCollucf : DataSourceFormView { public DataSet1.LNCOLLCONSTANTDataTable DATA { get; set; } public void InitDsLand(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.LNCOLLCONSTANT; this.EventItemChanged = "OnDsCollucfItemChanged"; this.EventClicked = "OnDsCollucfClicked"; this.InitDataSource(pw, FormView1, this.DATA, "dsCollucf"); this.TableName = "lncollconstant"; this.Register(); } public void Retrieve() { String sql = @"select detail3,detail4,people_name,people_position from lncollconstant where coop_id = {0} "; sql = WebUtil.SQLFormat(sql, state.SsCoopControl); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); // DdCollmasttype(); } public void DdCollmasttype() { string sql = @"select collmasttype_code,collmasttype_desc, 1 as sorter from lnucfcollmasttype union select '','',0 from dual order by sorter, collmasttype_code"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "collmasttype_code", "collmasttype_desc", "collmasttype_code"); } public void DdLandRetive(String member_no) { string sql = @"select tambol_desc as pos_tambol ,t_amphur as pos_amphur,t_province as pos_province from mbmembmaster where member_no = '" + member_no + "' and coop_id = '" + state.SsCoopControl + "' "; DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }