using System; using System.Collections.Generic; using System.Linq; using System.Web; using MESClassLibrary.BLL.BasicInfo; using MESClassLibrary.BLL.Painting; namespace MESWebSite.HttpHandlers { /// /// BucketStateHandler 的摘要说明 /// 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; } } } }