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; namespace Saving.Applications.shrlon.ws_sl_collateral_master_ctrl { public partial class DsDetail : DataSourceFormView { public DataSet1.LNCOLLMASTERDataTable DATA { get; set; } public void InitDsDetail(PageWeb pw) { css1.Visible = false; css2.Visible = false; DataSet1 ds = new DataSet1(); // this.DATA2 = ds.lncollconstant; this.DATA = ds.LNCOLLMASTER; this.EventItemChanged = "OnDsDetailItemChanged"; this.EventClicked = "OnDsDetailClicked"; this.InitDataSource(pw, FormView1, this.DATA, "dsDetail"); this.Button.Add("b_matesearch"); this.TableName = "LNCOLLMASTER"; this.Register(); } public void DdAssettype() { string sql = @" SELECT assettype_code, assettype_desc, assettype_prefix FROM lnucfassettype order by assettype_code ASC"; DataTable dt = WebUtil.Query(sql); this.DropDownDataBind(dt, "assettype_code", "assettype_desc", "assettype_code"); } public void Retrieve(string as_mrtgno) { string ls_sql = @"select int_rate,mortgage_type,mortgage_landnum, father_name ,mortgage_partamt,mortgage_partall,mather_name,refcoll_name,land_office, mrtg_name1,mrtg_personid1,mrtg_age1,mrtg_nationality1,mrtg_matename1,mrtg_citizenship1,mrtg_village1,mrtg_address1,mrtg_moo1,mrtg_soi1,mrtg_road1,mrtg_tambol1,mrtg_amphur1, mrtg_province1,mrtg_name2,mrtg_personid2,mrtg_age2,mrtg_nationality2,mrtg_citizenship2,mrtg_parentname2,mrtg_matename2,mrtg_village2,mrtg_address2, mrtg_moo2,mrtg_soi2,mrtg_road2,mrtg_tambol2,mrtg_amphur2,mrtg_province2 , detail3,detail4 ,people_name ,people_position , REFCOLL_MEMNO,mrtg_phone1,mrtg_phone2 from lncollmaster where coop_id = {0} and collmast_no = {1} "; ls_sql = WebUtil.SQLFormat(ls_sql, state.SsCoopControl, as_mrtgno); DataTable dt = WebUtil.Query(ls_sql); this.ImportData(dt); } } }