using System; using System.Collections.Generic; using System.Linq; using System.Web; using MESClassLibrary.BLL.BasicInfo; namespace MESWebSite.HttpHandlers { /// /// LogHandler 的摘要说明 /// public class LogHandler : IHttpHandler { HttpRequest Request = null; HttpResponse Response = null; public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; Request = context.Request; Response = context.Response; string method = Request.Params["method"]; switch (method) { case "QueryList": QueryList(); break; default: break; } } void QueryList() { string page = Request.Params["page"]; string pagesize = Request.Params["rows"]; string StartTime = Request.Params["StartTime"]; string EndTime = Request.Params["EndTime"]; string Op = Request.Params["Op"]; if (string.IsNullOrEmpty(page)) { page = "0"; } if (string.IsNullOrEmpty(pagesize)) { pagesize = "15"; } LogBLL bll = new LogBLL(); Response.Write(bll.SearchSearchInfoAll(page, pagesize, StartTime,EndTime,Op)); Response.End(); } public bool IsReusable { get { return false; } } } }