xuwei 2 лет назад
Родитель
Сommit
d8d0c6745d
2 измененных файлов с 26 добавлено и 0 удалено
  1. BIN
      wwwroot/Bin/DK.XuWei.WebMes.dll
  2. 26 0
      wwwroot/api/plc/plc_test.ashx

BIN
wwwroot/Bin/DK.XuWei.WebMes.dll


+ 26 - 0
wwwroot/api/plc/plc_test.ashx

@@ -0,0 +1,26 @@
+<%@ WebHandler Language="C#" Class="plc_test" %>
+
+using System;
+using System.Web;
+using System.Collections.Generic;
+using Curtain.Net.Sockets;
+using DK.XuWei.WebMes;
+
+public class plc_test : IHttpHandler
+{
+
+    public void ProcessRequest(HttpContext context)
+    {
+        context.Response.ContentType = "text/plain";
+        context.Response.Write(new JsonResult(context.Request["barcode"]).ToJson());
+    }
+
+    public bool IsReusable
+    {
+        get
+        {
+            return false;
+        }
+    }
+
+}