一厂MES,含注塑,喷涂,冲孔
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.

69 lines
1.8 KiB

2 months ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MESClassLibrary.BLL.BasicInfo;
using MESClassLibrary.BLL.TruckBox;
namespace MESWebSite.HttpHandlers
{
/// <summary>
/// RetrospectSearchHandler 的摘要说明
/// </summary>
public class RetrospectSearchHandler : 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;
case "QueryExcel":
//QueryExcel();
break;
}
}
void QueryList()
{
string page = _request.Params["page"];
string pageSize = _request.Params["rows"];
string barCode = _request.Params["barcode"];
string startTime = _request.Params["startTime"];
string endTime = _request.Params["endTime"];
if (string.IsNullOrEmpty(page))
{
page = "0";
}
if (string.IsNullOrEmpty(pageSize))
{
pageSize = "15";
}
RetrospectSearchBll bll = new RetrospectSearchBll();
_response.Write(bll.SearchInfoAll(page, pageSize, barCode, startTime, endTime));
_response.End();
}
public bool IsReusable
{
get
{
return false;
}
}
}
}