GetDutyJobsByUserIDAndProductionID_WCF.ashx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <%@ WebHandler Language="C#" Class="GetDutyJobsByUserIDAndProductionID_WCF" %>
  2. using System.Web;
  3. using System.Web.SessionState;
  4. using System.Web.Configuration;
  5. using Newtonsoft.Json.Linq;
  6. using Curtain.DataAccess;
  7. using Curtain.Log;
  8. using DK.XuWei.WebMes;
  9. /// <summary>
  10. /// 从WCF接口获取 责任工种
  11. /// xuwei 2019-11-11
  12. /// </summary>
  13. public class GetDutyJobsByUserIDAndProductionID_WCF : IHttpHandler, IReadOnlySessionState
  14. {
  15. public void ProcessRequest(HttpContext context)
  16. {
  17. context.Response.ContentType = "text/plain";
  18. WCF wcf = new WCF();
  19. wcf.Para = wcf.LoadParaBySession();
  20. wcf.Para.Add("classesSettingID", context.Request["classessettingid"].ToString());
  21. wcf.Para.Add("defectid", context.Request["defectid"].ToString());
  22. wcf.Para.Add("procedureID", context.Request["procedureid"].ToString());
  23. string jsonStr = wcf.Post("/DKService/PDAModuleService/GetDutyJobsByUserIDAndProductionID");
  24. jsonStr = ("{'success':true,'message':'操作成功!','rows':" + jsonStr + "}").Replace("'","\"");
  25. context.Response.Write(jsonStr);
  26. }
  27. public bool IsReusable
  28. {
  29. get
  30. {
  31. return false;
  32. }
  33. }
  34. }