using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Web.SessionState; using System.Web.Profile; using Common; using Dao; using Model; using System.Text; using System.Collections.Generic; public partial class GwOpStop : PageBase, IRequiresSessionState { private List GwPoolList; public string SelectedGwPoolID { get; set; } protected void Page_Load(object sender, EventArgs e) { this.CheckRight("202", FailedOperation.ErrorMsgOnly); using (GwBlackPoolDao gwBlackPoolDao = new GwBlackPoolDao()) this.GwPoolList = gwBlackPoolDao.LoadOpInfoList(); } protected string GenerateOPIDOptions() { StringBuilder stringBuilder = new StringBuilder(); if (this.GwPoolList.Count == 0) { stringBuilder.Append(""); } else { stringBuilder.Append(""); foreach (GwBlackPool gwBlackPool in this.GwPoolList) { if (this.AppContext.ContainsTargetID("202", gwBlackPool.PoolID.ToString())) stringBuilder.AppendFormat("", (object)gwBlackPool.PoolID, (object)gwBlackPool.PoolName, gwBlackPool.PoolID.ToString() == this.SelectedGwPoolID ? (object)"selected" : (object)""); } } return stringBuilder.ToString(); } }