GetDashBoard.ashx 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <%@ WebHandler Language="C#" Class="GetDashBoard" %>
  2. using System;
  3. using System.Web;
  4. using System.Web.SessionState;
  5. using System.Collections.Generic;
  6. using System.Configuration;
  7. using System.Data;
  8. using Curtain.DataAccess;
  9. using Curtain.Log;
  10. using DK.XuWei.WebMes;
  11. using Newtonsoft.Json.Linq;
  12. public class GetDashBoard : IHttpHandler,IRequiresSessionState
  13. {
  14. public void ProcessRequest(HttpContext context)
  15. {
  16. //看板数据
  17. JArray array = new JArray();
  18. array.Add(new JObject(new JProperty("name", "【正式】月度缺陷统计表"),new JProperty("url", "/main/DashBoard/hg5010_month.html")));
  19. array.Add(new JObject(new JProperty("name", "【正式】月度缺陷统计表(固定表头)"),new JProperty("url", "/main/DashBoard/hg5010_month_fix.html")));
  20. array.Add(new JObject(new JProperty("name", "【正式】各缺陷类型缺陷率"),new JProperty("url", "/main/Procedure/test5/demo.html")));
  21. array.Add(new JObject(new JProperty("name", "【正式】成检看板"),new JProperty("url", "/main/Procedure/test3/index.html")));
  22. array.Add(new JObject(new JProperty("name", "【正式】质量看板"),new JProperty("url", "/main/Procedure/test6/QualityBulletinBoard.html")));
  23. array.Add(new JObject(new JProperty("name", "【正式】机械手施釉看板"),new JProperty("url", "/main/Procedure/test7/GlazingQuality.html")));
  24. array.Add(new JObject(new JProperty("name", "【正式】上水质量看板"),new JProperty("url", "/main/Procedure/test16/SecondaryCheck.html")));
  25. array.Add(new JObject(new JProperty("name", "【正式】二检质量看板(旧)"),new JProperty("url", "/main/Procedure/test8/SecondaryCheck.html")));
  26. array.Add(new JObject(new JProperty("name", "【正式】登窑看板"),new JProperty("url", "/main/Procedure/test9/DenKiln.html")));
  27. array.Add(new JObject(new JProperty("name", "【正式】一检看板"),new JProperty("url", "/main/Procedure/test10/Onecheck.html")));
  28. array.Add(new JObject(new JProperty("name", "【正式】小件看板"),new JProperty("url", "/main/Procedure/test11/SmallKanban.html")));
  29. array.Add(new JObject(new JProperty("name", "【正式】打磨看板"),new JProperty("url", "/main/Procedure/test12/BurnishKanban.html")));
  30. array.Add(new JObject(new JProperty("name", "【正式】成检分级质量看板"),new JProperty("url", "/main/Procedure/test13/GradingData.html")));
  31. array.Add(new JObject(new JProperty("name", "【正式】施釉节拍看板(一期)"),new JProperty("url", "/main/Procedure/test14/GlazingBeats.html")));
  32. array.Add(new JObject(new JProperty("name", "【正式】施釉节拍看板(二期)"),new JProperty("url", "/main/Procedure/test15/GlazingBeats2.html")));
  33. array.Add(new JObject(new JProperty("name", "【测试】烧成工序看板"),new JProperty("url", "/main/Procedure/test/demo.html")));
  34. array.Add(new JObject(new JProperty("name", "【测试】功能检测看板"),new JProperty("url", "/main/Procedure/test1/demo.html")));
  35. array.Add(new JObject(new JProperty("name", "【测试】包装工序看板"),new JProperty("url", "/main/Procedure/test2/demo.html")));
  36. array.Add(new JObject(new JProperty("name", "【测试】次品区看板"),new JProperty("url", "/main/Procedure/test3/demo.html")));
  37. array.Add(new JObject(new JProperty("name", "【测试】成检工序看板"),new JProperty("url", "/main/Procedure/test4/demo.html")));
  38. array.Add(new JObject(new JProperty("name", "【手机】当日产品"),new JProperty("url", "/main/phone/001/index.html")));
  39. context.Response.Write(array.ToString());
  40. }
  41. public bool IsReusable
  42. {
  43. get
  44. {
  45. return false;
  46. }
  47. }
  48. }