%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Collections.Generic; public class Handler : 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"]; string j = Request.Params["pa"]; switch (method) { case "GetTable1": GetTable1(); break; case "GetTable2": GetTable2(); break; case "GetTable3": GetTable3(); break; case "GetTable4": GetTable4(); break; case "GetTable5": GetTable5(); break; case "GetTable6": GetTable6(); break; case "GetTableX1": GetTableX1(Convert.ToInt16(j)); break; case "GetTableX2": GetTableX2(Convert.ToInt16(j)); break; case "GetTableX": GetTableX(Convert.ToInt16(j)); break; case "GetPlanTable": GetPlanTable(); break; default: break; } } public bool IsReusable { get { return false; } } #region 注塑车间塑料粒子加料目视看板 void GetTable1() { string html = "
" + "烘干料筒" + " | "; } if (i % 2 == 0) { html += "" + list[i].Drum + " | "; } else { html += "" + list[i].Drum + " | "; } break; case 1: if (i == 0) { html += "" + "注塑机号" + " | "; } if (i % 2 == 0) { html += "" + list[i].Station + " | "; } else { html += "" + list[i].Station + " | "; } break; case 2: if (i == 0) { html += "" + "产品名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].ProductName + " | "; } else { html += "" + list[i].ProductName + " | "; } break; case 3: if (i == 0) { html += "" + "原料名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].MaterialName + " | "; } else { html += "" + list[i].MaterialName + " | "; } break; case 4: if (i == 0) { html += "" + "加料批次" + " | "; } if (i % 2 == 0) { html += "" + list[i].BatchNo + " | "; } else { html += "" + list[i].BatchNo + " | "; } break; case 5: if (i == 0) { html += "" + "加料时间" + " | "; } if (i % 2 == 0) { html += "" + list[i].Time1 + " | "; } else { html += "" + list[i].Time1 + " | "; } break; } } html += "
" + "烘干料筒" + " | "; } if (i % 2 == 0) { html += "" + list[i].Drum + " | "; } else { html += "" + list[i].Drum + " | "; } break; case 1: if (i == 5) { html += "" + "注塑机号" + " | "; } if (i % 2 == 0) { html += "" + list[i].Station + " | "; } else { html += "" + list[i].Station + " | "; } break; case 2: if (i == 5) { html += "" + "产品名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].ProductName + " | "; } else { html += "" + list[i].ProductName + " | "; } break; case 3: if (i == 5) { html += "" + "原料名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].MaterialName + " | "; } else { html += "" + list[i].MaterialName + " | "; } break; case 4: if (i == 5) { html += "" + "加料批次" + " | "; } if (i % 2 == 0) { html += "" + list[i].BatchNo + " | "; } else { html += "" + list[i].BatchNo + " | "; } break; case 5: if (i == 5) { html += "" + "加料时间" + " | "; } if (i % 2 == 0) { html += "" + list[i].Time1 + " | "; } else { html += "" + list[i].Time1 + " | "; } break; } } html += "
" + "烘干料筒" + " | "; } if (i % 2 == 0) { html += "" + list[i].Drum + " | "; } else { html += "" + list[i].Drum + " | "; } break; case 1: if (i == 5) { html += "" + "注塑机号" + " | "; } if (i % 2 == 0) { html += "" + list[i].Station + " | "; } else { html += "" + list[i].Station + " | "; } break; case 2: if (i == 5) { html += "" + "产品名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].ProductName + " | "; } else { html += "" + list[i].ProductName + " | "; } break; case 3: if (i == 5) { html += "" + "原料名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].MaterialName + " | "; } else { html += "" + list[i].MaterialName + " | "; } break; case 4: if (i == 5) { html += "" + "加料批次" + " | "; } if (i % 2 == 0) { html += "" + list[i].BatchNo + " | "; } else { html += "" + list[i].BatchNo + " | "; } break; case 5: if (i == 5) { html += "" + "加料时间" + " | "; } if (i % 2 == 0) { html += "" + list[i].Time1 + " | "; } else { html += "" + list[i].Time1 + " | "; } break; } } html += "
" + "烘干料筒" + " | "; } if (i % 2 == 0) { html += "" + list[i].Drum + " | "; } else { html += "" + list[i].Drum + " | "; } break; case 1: if (i == 5) { html += "" + "注塑机号" + " | "; } if (i % 2 == 0) { html += "" + list[i].Station + " | "; } else { html += "" + list[i].Station + " | "; } break; case 2: if (i == 5) { html += "" + "产品名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].ProductName + " | "; } else { html += "" + list[i].ProductName + " | "; } break; case 3: if (i == 5) { html += "" + "原料名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].MaterialName + " | "; } else { html += "" + list[i].MaterialName + " | "; } break; case 4: if (i == 5) { html += "" + "加料批次" + " | "; } if (i % 2 == 0) { html += "" + list[i].BatchNo + " | "; } else { html += "" + list[i].BatchNo + " | "; } break; case 5: if (i == 5) { html += "" + "加料时间" + " | "; } if (i % 2 == 0) { html += "" + list[i].Time1 + " | "; } else { html += "" + list[i].Time1 + " | "; } break; } } html += "
" + "烘干料筒" + " | "; } if (i % 2 == 0) { html += "" + list[i].Drum + " | "; } else { html += "" + list[i].Drum + " | "; } break; case 1: if (i == 5) { html += "" + "注塑机号" + " | "; } if (i % 2 == 0) { html += "" + list[i].Station + " | "; } else { html += "" + list[i].Station + " | "; } break; case 2: if (i == 5) { html += "" + "产品名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].ProductName + " | "; } else { html += "" + list[i].ProductName + " | "; } break; case 3: if (i == 5) { html += "" + "原料名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].MaterialName + " | "; } else { html += "" + list[i].MaterialName + " | "; } break; case 4: if (i == 5) { html += "" + "加料批次" + " | "; } if (i % 2 == 0) { html += "" + list[i].BatchNo + " | "; } else { html += "" + list[i].BatchNo + " | "; } break; case 5: if (i == 5) { html += "" + "加料时间" + " | "; } if (i % 2 == 0) { html += "" + list[i].Time1 + " | "; } else { html += "" + list[i].Time1 + " | "; } break; } } html += "
" + "烘干料筒" + " | "; } if (i % 2 == 0) { html += "" + list[i].Drum + " | "; } else { html += "" + list[i].Drum + " | "; } break; case 1: if (i == 5) { html += "" + "注塑机号" + " | "; } if (i % 2 == 0) { html += "" + list[i].Station + " | "; } else { html += "" + list[i].Station + " | "; } break; case 2: if (i == 5) { html += "" + "产品名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].ProductName + " | "; } else { html += "" + list[i].ProductName + " | "; } break; case 3: if (i == 5) { html += "" + "原料名称" + " | "; } if (i % 2 == 0) { html += "" + list[i].MaterialName + " | "; } else { html += "" + list[i].MaterialName + " | "; } break; case 4: if (i == 5) { html += "" + "加料批次" + " | "; } if (i % 2 == 0) { html += "" + list[i].BatchNo + " | "; } else { html += "" + list[i].BatchNo + " | "; } break; case 5: if (i == 5) { html += "" + "加料时间" + " | "; } if (i % 2 == 0) { html += "" + list[i].Time1 + " | "; } else { html += "" + list[i].Time1 + " | "; } break; } } html += "
" + "烘干料筒" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].Drum + " | "; } else { html += "" + list[tmp].Drum + " | "; } break; case 1: tmp = k + i; if ((tmp == 0) || (tmp == 10) || (tmp == 20)) { html += "" + "注塑机号" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].Station + " | "; } else { html += "" + list[tmp].Station + " | "; } break; case 2: tmp = k + i; if ((tmp == 0) || (tmp == 10) || (tmp == 20)) { html += "" + "产品名称" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].ProductName + " | "; } else { html += "" + list[tmp].ProductName + " | "; } break; case 3: tmp = k + i; if ((tmp == 0) || (tmp == 10) || (tmp == 20)) { html += "" + "原料名称" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].MaterialName + " | "; } else { html += "" + list[tmp].MaterialName + " | "; } break; case 4: tmp = k + i; if ((tmp == 0) || (tmp == 10) || (tmp == 20)) { html += "" + "加料批次" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].BatchNo + " | "; } else { html += "" + list[tmp].BatchNo + " | "; } break; case 5: tmp = k + i; if ((tmp == 0) || (tmp == 10) || (tmp == 20)) { html += "" + "加料时间" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].Time1 + " | "; } else { html += "" + list[tmp].Time1 + " | "; } break; } } } html += "
" + "烘干料筒" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].Drum + " | "; } else { html += "" + list[tmp].Drum + " | "; } break; case 1: tmp = k + i; if ((tmp == 5) || (tmp == 15)) { html += "" + "注塑机号" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].Station + " | "; } else { html += "" + list[tmp].Station + " | "; } break; case 2: tmp = k + i; if ((tmp == 5) || (tmp == 15)) { html += "" + "产品名称" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].ProductName + " | "; } else { html += "" + list[tmp].ProductName + " | "; } break; case 3: tmp = k + i; if ((tmp == 5) || (tmp == 15)) { html += "" + "原料名称" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].MaterialName + " | "; } else { html += "" + list[tmp].MaterialName + " | "; } break; case 4: tmp = k + i; if ((tmp == 5) || (tmp == 15)) { html += "" + "加料批次" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].BatchNo + " | "; } else { html += "" + list[tmp].BatchNo + " | "; } break; case 5: tmp = k + i; if ((tmp == 5) || (tmp == 15)) { html += "" + "加料时间" + " | "; } if (tmp % 2 == 0) { html += "" + list[tmp].Time1 + " | "; } else { html += "" + list[tmp].Time1 + " | "; } break; } } } html += "