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.
88 lines
2.4 KiB
88 lines
2.4 KiB
3 months ago
|
using MESClassLibrary.BLL.Check;
|
||
|
using MESClassLibrary.EFModel;
|
||
|
using MESClassLibrary.Model;
|
||
|
using NPOI.SS.UserModel;
|
||
|
using NPOI.XSSF.UserModel;
|
||
|
using org.in2bits.MyXls;
|
||
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Data;
|
||
|
using System.IO;
|
||
|
using System.Linq;
|
||
|
using System.Web;
|
||
|
|
||
|
namespace MESWebSite.HttpHandlers
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// PaintingInspectionRepair 的摘要说明
|
||
|
/// </summary>
|
||
|
public class PaintingInspectionRepair : 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":
|
||
|
QueryExcelNew();
|
||
|
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 inspectResult = Request.Params["inspectResult"];
|
||
|
|
||
|
|
||
|
if (string.IsNullOrEmpty(page))
|
||
|
{
|
||
|
page = "0";
|
||
|
}
|
||
|
if (string.IsNullOrEmpty(pagesize))
|
||
|
{
|
||
|
pagesize = "15";
|
||
|
}
|
||
|
InspectResultBLL bll = new InspectResultBLL();
|
||
|
Response.Write(bll.SearchInfoByRepair(page, pagesize, StartTime, EndTime, inspectResult));
|
||
|
Response.End();
|
||
|
}
|
||
|
|
||
|
void QueryExcelNew()
|
||
|
{
|
||
|
string StartTime = Request.Params["StartTime"];
|
||
|
string EndTime = Request.Params["EndTime"];
|
||
|
string inspectResult = Request.Params["inspectResult"];
|
||
|
|
||
|
InspectResultBLL bll = new InspectResultBLL();
|
||
|
//List<tb_InspectResult> list = bll.SearchInfoByRepair(StartTime, EndTime, inspectResult);
|
||
|
}
|
||
|
|
||
|
public bool IsReusable
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|