严智鑫
2025-03-14 c41e1c8b82b8f4c7b149e0576c9a37bc5b2dbb85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<%@page import="com.northglass.Optima.OptimaHelper"%>
<%@page import="org.json.JSONObject"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="com.northglass.Globel.mes"%>
<%@page import="com.northglass.SqlHelper.*"%>
<%@page import="java.io.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <script src="${ctx}/static/jquery/jquery-3.1.0.min.js" type="text/javascript"></script>
<title>Insert title here</title>
</head>
<body>
 
<button onclick="clk();">获取</button>
<script>
    function clk(){
        var a=`
        {
            "GongCheng":"P1110001",
              "Param": {
                "ComputeTimes": 0
              },
              "Polygons": [
                {
                  "width": 1300.0,
                  "height": 800.0,
                  "thickness": 6.0,
                  "LM1": 0.0,
                  "LM2": 0.0,
                  "DM1": 0.0,
                  "DM2": 0.0,
                  "JiaHao": "A1",
                  "CutomName": "北玻",
                  "orderid": "NG1234/1",
                  "xuhao": "1",
                  "count": 100,
                  "gongcheng": "P123",
                  "rownumber": 1,
                  "liuchengka":"NG1234567/1"
                }
              ],
              "Stocks": [
                {
                  "up": 0.0,
                  "down": 0.0,
                  "left": 0.0,
                  "right": 0.0,
                  "width": 3660.0,
                  "height": 2440.0,
                  "count": 50,
                  "libposition": "a1",
                  "Color": "白玻",
                  "thickness": 6.0,
                  "supplyer": "北玻",
                  "wuliao_number": "A000001"
                }
              ]
            }    
        `;
        $.ajax({
                 type:"post",
                 data:
                 
                 a,
                 contentType:"application/json",
                 url:"/gmms2/mesview/data/_test",
                 success:function(data){
                     document.getElementById("kk").innerText=data;
                 },
                 error:function(data){
                     alert(data);
                 }
            }
        );
    }
</script>
<div id="kk">
</div>
</body>
 
</html>