GetSystemSettingDataByCode_WCF.ashx 1002 B

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