后台日志管理和网站信息设计(5)
来源:未知 责任编辑:责任编辑 发表时间:2014-04-20 03:40 点击:次
1: /// <summary>
2: /// 删除系统日志
3: /// </summary>
4: /// <param name="context">删除系统日志</param>
5: public void RemoveSystemLog(HttpContext context)
6: {
7: //清空三天前的日志
8: context.Response.Write(new SystemLogBLL().CearSystemLog());
9: }
10: /// <summary>
11: /// 获取系统日志信息
12: /// </summary>
13: /// <param name="context"></param>
14: public void SearchSystemLog(HttpContext context)
15: {
16: //查询条件
17: string key = context.Request["key"];
18: //分页
19: int pageIndex = Convert.ToInt32(context.Request["pageIndex"]);
20: int pageSize = Convert.ToInt32(context.Request["pageSize"]);
21: //字段排序
22: String sortField = context.Request["sortField"];
23: String sortOrder = context.Request["sortOrder"];
24: string strCondition = "";
25: //对搜索内容进行验证
26: if (!Common.Tools.IsValidInput(ref key, false))
27: {
28: return;
29: }
30: else
31: strCondition =SystemLogBLL.ConfirmCondition(key);//判断查询条件
32: SystemLogBLL bll = new SystemLogBLL();
33: //分页数据读取
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>