|
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;
|
}
|
}
|