You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.8 KiB
72 lines
1.8 KiB
using MESClassLibrary.BLL.Record247;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace MESWebSite.HttpHandlers
|
|
{
|
|
/// <summary>
|
|
/// Record_247Handler 的摘要说明
|
|
/// </summary>
|
|
public class Record_247Handler : 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;
|
|
|
|
}
|
|
|
|
}
|
|
public bool IsReusable
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
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";
|
|
}
|
|
|
|
Record247BLL bll = new Record247BLL();
|
|
Response.Write(bll.SearchInfoAll(page, pagesize, StartTime, EndTime, BoxNo, PartNo2, PartNo1, OrderNo));
|
|
Response.End();
|
|
|
|
}
|
|
|
|
}
|
|
}
|