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.admin.w_sheet_grouppermiss_ctrl { public partial class DsGroupshow : DataSourceRepeater { public DataSet1.amsecusersDataTable DATA { get; set; } public void InitDsGroupshow(PageWeb pw) { DataSet1 ds = new DataSet1(); this.DATA = ds.amsecusers; this.EventItemChanged = "OnDsGroupshowItemChanged"; this.EventClicked = "OnDsGroupshowClicked"; this.InitDataSource(pw, RepeaterGroupshow, this.DATA, "dsGroupshow"); this.Register(); } public void RetrieveGroupshow(string user_name) { string sql = @" SELECT * FROM amsecusers where user_type = '2' and user_name = {0}"; sql = WebUtil.SQLFormat(sql, user_name); DataTable dt = WebUtil.Query(sql); this.ImportData(dt); } } }