using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CoreSavingLibrary; using DataLibrary; namespace Saving.Applications.hr.ws_hr_master_ctrl { public partial class DsAssist : DataSourceRepeater { public DataSet1.HREMPLOYEEASSISTDataTable DATA { get; set; } public void InitDsAssist(PageWeb pw) { css1.Visible = false; DataSet1 ds = new DataSet1(); this.DATA = ds.HREMPLOYEEASSIST; this.EventItemChanged = "OnDsAssistItemChanged"; this.EventClicked = "OnDsAssistClicked"; this.InitDataSource(pw, Repeater1, this.DATA, "dsAssist"); this.Button.Add("b_del"); this.Register(); } public void Retrieve(string as_empno) { string sql = @" select hremployeeassist.coop_id, hremployeeassist.emp_no, hremployeeassist.seq_no, hremployeeassist.assist_code, hremployeeassist.assist_date, hremployeeassist.assist_desc, hremployeeassist.assist_amt, hremployeeassist.assist_remark from hremployeeassist where hremployeeassist.coop_id = {0} and hremployeeassist.emp_no = {1}"; sql = WebUtil.SQLFormat(sql, state.SsCoopControl, as_empno); Sdt dt = WebUtil.QuerySdt(sql); this.ImportData(dt); } } }