一厂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.
 
 
 
 
 

63 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MESClassLibrary.BLL.BasicInfo;
using MESClassLibrary.BLL.Painting;
namespace MESWebSite.HttpHandlers
{
/// <summary>
/// BucketStateHandler 的摘要说明
/// </summary>
public class BucketStateHandler : 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;
}
}
void QueryList()
{
string page = Request.Params["page"];
string pageSize = Request.Params["rows"];
string bucketCode = Request.Params["bucketCode"];
string paintCode = Request.Params["paintCode"];
if (string.IsNullOrEmpty(page))
{
page = "0";
}
if (string.IsNullOrEmpty(pageSize))
{
pageSize = "15";
}
BucketStateBLL bll = new BucketStateBLL();
Response.Write(bll.SearchInfo(page, pageSize, bucketCode, paintCode));
Response.End();
}
public bool IsReusable
{
get
{
return false;
}
}
}
}