wangsheng
2021-12-01 5944b55b1486943c696a3beb004d564dceb81cf2
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
 
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<SysUser>, 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<GwStrategy> 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)"<tr class=\"row-" + (object)(num % 2) + "\" ><td><input type=\"checkbox\" name=\"checkbox\" value=\"" + (object)gwStrategy.StrategyId + "\" /></td><td>" + gwStrategy.StrategyName + "</td><td nowrap=\"true\">";
                str = string.Concat(new object[4]
        {
          (object) str,
          (object) "<a class=\"operator\" href=\"javascript:disEdit('",
          (object) gwStrategy.StrategyId,
          (object) "');\">"
        });
                str += "\t<img src=\"images/op_01.gif\" alt=\"编辑\" title=\"编辑\" />";
                str += "</a>";
                str = string.Concat(new object[4]
        {
          (object) str,
          (object) "<a class=\"operator\" href=\"javascript:disDel('",
          (object) gwStrategy.StrategyId,
          (object) "');\">"
        });
                str += "\t<img src=\"images/op_03.gif\" alt=\"删除\" title=\"删除\" />";
                str += "</a>";
                str += "</td>";
                str += "</tr>";
            }
        }
        else
            str += "<tr><td colspan=\"8\" style=\"padding-left:5px;\">暂无信息</td></tr>";
        return str;
    }
}