using System; using System.Collections.Generic; using System.Linq; using System.Web; using MESClassLibrary.BLL.Record243; using MESClassLibrary.BLL.Record247; namespace MESWebSite.HttpHandlers { /// /// Record_243Handler 的摘要说明 /// public class Record_243Handler : 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 BoxNo = Request.Params["BoxNo"]; string PartNo2 = Request.Params["PartNo2"]; string PartNo1 = Request.Params["PartNo1"]; string OrderNo = Request.Params["OrderNo"]; if (string.IsNullOrEmpty(page)) { page = "0"; } if (string.IsNullOrEmpty(pagesize)) { pagesize = "15"; } Record243BLL bll = new Record243BLL(); Response.Write(bll.SearchInfoAll(page, pagesize, StartTime, EndTime, BoxNo, PartNo2, PartNo1, OrderNo)); Response.End(); } public bool IsReusable { get { return false; } } } }