using Common; using Dao; using Model; using System; using System.Collections.Generic; using System.Text; using System.Web; using System.Web.Profile; using System.Web.SessionState; using System.Web.UI.HtmlControls; public partial class GwRptCode : PageBase, IRequiresSessionState { protected void Page_Load(object sender, EventArgs e) { this.CheckRight("103", FailedOperation.HistoryGoBack); if (this.IsPostBack) return; this.LoadRptAccountList(); } private void LoadRptAccountList() { using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao()) { List list = gwRptCodeDao.LoadRptAccountList(); StringBuilder stringBuilder = new StringBuilder(); int num = 0; foreach (RptAccount rptAcc in list) { stringBuilder.AppendFormat("{1}{2}{3}{4}{5}{6}", num++ % 2, rptAcc.Spid,rptAcc.Proportion+"%",rptAcc.TimeSpan,rptAcc.Threshold,rptAcc.WhitePhone, rptAcc.CreateTime); stringBuilder.AppendFormat("删除", (object)rptAcc.Spid); } this.ViewState["list"] = (object)stringBuilder.ToString(); } } }