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.w_sheet_markconference_ctrl { public partial class DsDataConferene : DataSourceRepeater { public DataSet1.DataConfereneDataTable DATA { get; set; } public void InitDs(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.DataConferene; this.InitDataSource(pw, Repeater1, this.DATA, "DsDataConferene"); this.EventItemChanged = "OnDsListItemChanged"; this.Register(); } public void RetrieveConference() { String sql = @"SELECT MBMEMBMASTER.MEMB_NAME , MBUCFPRENAME.PRENAME_DESC , MBUCFMEMBGROUP.MEMBGROUP_DESC , MBMARKCONFERENCE.CONFERENCE_FLAG , MBMARKCONFERENCE.CONFERENCE_DATE , MBMEMBMASTER.MEMB_SURNAME , MBMARKCONFERENCE.CONFERENCE_MARK , MBMEMBMASTER.MEMBGROUP_CODE , MBMARKCONFERENCE.MEMBER_NO , MBMARKCONFERENCE.SEQ_NO , MBMARKCONFERENCE.ACCOUNT_YEAR FROM MBMARKCONFERENCE , MBMEMBMASTER , MBUCFPRENAME , MBUCFMEMBGROUP WHERE ( MBMEMBMASTER.MEMBER_NO = MBMARKCONFERENCE.MEMBER_NO (+)) and ( MBUCFPRENAME.PRENAME_CODE = MBMEMBMASTER.PRENAME_CODE ) and ( MBUCFMEMBGROUP.MEMBGROUP_CODE = MBMEMBMASTER.MEMBGROUP_CODE ) and ( ( MBMARKCONFERENCE.ACCOUNT_YEAR = '2559' ) and ( MBMARKCONFERENCE.SEQ_NO = 1 ) and ( MBMARKCONFERENCE.CONFERENCE_DATE = to_date('10102016','dd/mm/yyyy') ) and ( MBMEMBMASTER.MEMBGROUP_CODE = '001' ) and MBMARKCONFERENCE.member_no like '%0019041%' ) "; sql = WebUtil.SQLFormat(sql); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); // Sdt dt = WebUtil.QuerySdt(sql); } } }