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

187 lines
6.2 KiB

using PaintingScreen.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Tools;
namespace PaintingScreen.Handler
{
/// <summary>
/// FiveScreenHandler 的摘要说明
/// </summary>
public class FiveScreenHandler : 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 "getPainting1_1":
getPainting1_1();
break;
case "getPainting1_2":
getPainting1_2();
break;
case "getPainting1_3":
getPainting1_3();
break;
case "getPainting1_4":
getPainting1_4();
break;
case "getPainting2_1":
getPainting2_1();
break;
case "getPainting2_2":
getPainting2_2();
break;
case "getPainting2_3":
getPainting2_3();
break;
case "getPainting2_4":
getPainting2_4();
break;
case "getPainting3_1":
getPainting3_1();
break;
case "getPainting3_2":
getPainting3_2();
break;
case "getPainting3_3":
getPainting3_3();
break;
case "getPainting3_4":
getPainting3_4();
break;
case "getInjection1_1":
getInjection1_1();
break;
case "getInjection1_2":
getInjection1_2();
break;
case "getInjection1_3":
getInjection1_3();
break;
case "getInjection1_4":
getInjection1_4();
break;
}
}
public bool IsReusable
{
get
{
return false;
}
}
void getPainting1_1()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂一次合格率","月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting1_2()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂一次合格率", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting1_3()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂总合格率", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting1_4()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂总合格率", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting2_1()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂设备利用率", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting2_2()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂设备利用率", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting2_3()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("运行滑撬数", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting2_4()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("运行滑撬数", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting3_1()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂入库套数", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting3_2()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("喷涂入库套数", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting3_3()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("发货数", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getPainting3_4()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("发货数", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getInjection1_1()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("注塑合格率", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getInjection1_2()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("注塑合格率", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getInjection1_3()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("注塑设备利用率", "月报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
void getInjection1_4()
{
FiveScreenModel md = FiveScreenFunction.getFiveScreenModel("注塑设备利用率", "日报");
Response.Write(JSONTools.ScriptSerialize(md));
Response.End();
}
}
}