wzp
2021-09-16 37080f5d0add35dc528212ece83adff1db6c50ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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<SysUser>, IRequiresSessionState
{
    private List<GwBlackPool> 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("<option value=\"\">暂无黑名单池</option>");
        }
        else
        {
            stringBuilder.Append("<option value=\"\">不设置</option>");
            foreach (GwBlackPool gwBlackPool in this.GwPoolList)
            {
                if (this.AppContext.ContainsTargetID("202", gwBlackPool.PoolID.ToString()))
 
                    stringBuilder.AppendFormat("<option value=\"{0}\" {2}>{1}</option>", (object)gwBlackPool.PoolID, (object)gwBlackPool.PoolName, gwBlackPool.PoolID.ToString() == this.SelectedGwPoolID ? (object)"selected" : (object)"");
            }
        }
        return stringBuilder.ToString();
    }
}