Web/Admin/SystemLog/List.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Web.Admin.SystemLog
{
public partial class List : Web.UI.ManagePage
{
public int pcount; //总条数
public int page; //当前页
public int pagesize; //设置每页显示的大小
protected void Page_Load(object sender, EventArgs e)
{
this.pagesize = webset.LogPageNum;
if (!int.TryParse(Request.Params["page"] as string, out this.page))
{
this.page = 0;
}
if (!Page.IsPostBack)
{
chkLoginLevel("viewSystemLog");
this.RptBind("");
}
}
#region 数据列表绑定
private void RptBind(string strWhere)
{
BLL.SystemLog bll = new BLL.SystemLog();
//获得总条数
this.pcount = bll.GetCount(strWhere);
if (this.pcount > 0)
{
this.lbtnDel.Enabled = true;
}
else
{
this.lbtnDel.Enabled = false;
}
this.rptList.DataSource = bll.GetPageList(this.pagesize, this.page, strWhere, "AddTime desc");
this.rptList.DataBind();
}
#endregion
//删除
protected void lbtnDel_Click(object sender, EventArgs e)
{
chkLoginLevel("delSystemLog");
BLL.SystemLog bll = new BLL.SystemLog();
//清空日志
int num = bll.Delete(7);
//保存日志
SaveLogs("[系统日志]共清空了" + num + "条日志!");
JscriptPrint("共清空了" + num + "条日志!", "List.aspx", "Success");
后面还有 3 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。