| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <%@ WebHandler Language="C#" Class="SaveBarCodeLogo_WCF" %>
- using System.Web;
- using System.Web.SessionState;
- using System.Web.Configuration;
- using Newtonsoft.Json.Linq;
- using Curtain.DataAccess;
- using Curtain.Log;
- using DK.XuWei.WebMes;
- /// <summary>
- /// 从WCF接口获取 商标设定
- /// xuwei 2019-10-26
- /// </summary>
- public class SaveBarCodeLogo_WCF : IHttpHandler, IRequiresSessionState
- {
- public void ProcessRequest(HttpContext context)
- {
- WCF wcf = new WCF();
- wcf.Para = wcf.LoadParaBySession();
- wcf.Para.Add(new JProperty("barcode", context.Request["barcode"]));
- wcf.Para.Add(new JProperty("logoid", context.Request["logoid"]));
- string jsonStr = wcf.Post("/DKService/PDAModuleService/InspectionSaveBarCodeLogo");
- if (jsonStr != "")
- {
- jsonStr = ("{'success':true,'message':'操作成功!','rows':'" + jsonStr + "'}").Replace("'","\"");
- }
- else
- {
- jsonStr = ("{'success':false,'message':'操作失败!','rows':'" + jsonStr + "'}").Replace("'","\"");
- }
- context.Response.Write(jsonStr);
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
|