using Common; using Dao; using Model; using System; using System.Collections.Generic; using System.Web; using System.Web.Profile; using System.Web.SessionState; public partial class _GwStrategy : PageBase, IRequiresSessionState { private string _strategyId; private string _strategyName; public string StrategyId { get { return this._strategyId; } set { this._strategyId = value; } } public string StrategyName { get { return this._strategyName; } set { this._strategyName = value; } } protected void Page_Load(object sender, EventArgs e) { this.CheckRight("101", FailedOperation.HistoryGoBack); if (this.IsPostBack) return; this.ViewState["list"] = (object)this.getList(); } public string getList() { this.StrategyId = this.Request["StrategyId"]; this.StrategyName = this.Request["StrategyName"]; GwStrategyDao gwStrategyDao = new GwStrategyDao(); int PageIndex = DataConverter.StrToPageInt((object)this.Request["page"], 1); int pageSize = 20; int recordcount; List list = gwStrategyDao.LoadInfoList(this.StrategyId, this.StrategyName, out recordcount, pageSize, PageIndex); string str = ""; if (list != null && list.Count > 0) { int num = 0; foreach (GwStrategy gwStrategy in list) { ++num; str = str + (object)"" + gwStrategy.StrategyName + ""; str = string.Concat(new object[4] { (object) str, (object) "" }); str += "\t\"编辑\""; str += ""; str = string.Concat(new object[4] { (object) str, (object) "" }); str += "\t\"删除\""; str += ""; str += ""; str += ""; } } else str += "暂无信息"; return str; } }