严智鑫
2025-08-18 3b65a5dc04be7cdac460c84ebaa38bf009405128
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
 
<html>
<head>
<script type="text/javascript" src="${ctx}/static/js/jquery-1.8.3.js"></script>
<script type="text/javascript"
    src="${ctx}/static/js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript"
    src="${ctx}/static/js/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" type="text/css"
    href="${ctx}/static/js/easyui/themes/icon.css" />
<link rel="stylesheet" type="text/css"
    href="${ctx}/static/js/easyui/themes/default/easyui.css" />
<title>玻璃识别</title>
<script type="text/javascript">
     var interval = setInterval('refreshStatus()', 8000); 
    $(document).ready(function(){
          var info = $("#info").attr("info");
          $("#infos").html(info);
    });
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
 
    }
 
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
 
    function setRange() {
        disableAutoRefresh();
        $('#modifyRangeModal').modal('toggle');
    }
 
    function setdata() {
        disableAutoRefresh();
        $('#modifyRangeModal1').modal('toggle');
    }
 
</script>
</head>
<body>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                测量显示 
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 测量</a></li>
 
            </ol>
        </section>
 
        <!-- Main content -->
        <section class="content container-fluid">
 
            <!--------------------------
        | Your Page Content Here |
        -------------------------->
            <fieldset>
           <div id = "info" info = "${info}"></div>
                <div>
                            <%-- <table class="table table-striped table-hover" style="width: 70%">
                                <tr>
                                    <th width="8%"><span style="font-size:20px;">测量进度</span><br> 
                                    </th>
                                    <td width="5%">${progress}
                                        <span style="font-size:20px;">23/210</span>
                                    </td>
                                    <td width="60%">
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-aqua" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: ${progress}">
                                              <span class="sr-only">${progress} Complete</span>
                                            </div>
                                         </div>
                                    </td>
                                </tr>
                            </table> --%>
                            </div>
                            <div style="height:250px;width:30%;float:right;font-size:25px; text-align:center;">
                                <div style="float:right;">玻璃单位:mm</div>
                                <button type="button" onclick="oncheck()" class="btn btn-primary ">添加小片</button>
                                <button type="button" onclick="delAll('出片')" class="btn btn-primary ">出片</button>
                                <table class="table table-striped table-hover">
                                    <%-- <tr>
                                        <td>批次编号:<sapn style="color:#1D82FE;">${batch}1</sapn></td>
                                    </tr> --%>
                                    <%-- <tr><td style="color:#1D82FE;">${manufactureBatchNumber}</td></tr> --%>
                                    <tr>
                                        <td>玻璃厚度:<sapn style="color:#1D82FE;">${thickness}1</sapn></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${thickness}</td></tr> --%>
                                    <tr>
                                         <td>玻璃色种:<sapn style="color:#1D82FE;">${color}1</sapn></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${color}</td></tr> --%>
                                    <tr>
                                        <td>测量长度:<sapn style="color:#1D82FE;">${actualLength}1</sapn></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${actualLength}</td></tr> --%>
                                    <tr>
                                        <td>测量宽度:<sapn style="color:#1D82FE;">${actualWidth}1</sapn></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${actualWidth}</td></tr> --%>
                                    <tr>
                                        <td>当前状态:<sapn style="color:#1D82FE;">${statue}1</sapn></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${statue}</td></tr> --%>
                                </table>
                            </div>
                            
                             <div style="height:300px;width:70%;margin-top:10%;margin-left:10%; text-align: center;">
                            <div style="font-size:30px;"><span>玻璃ID:</span><span style="color:#1D82FE;">${glassId}</span></div>
                            <div style="font-size:100px;"><span style="color:#1D82FE;">${matchLength}</span> x <span style="color:#1D82FE;">${matchWidth}</span></div>
                            <%-- <img  src="${ctx }/static/images/zhengque.png" style="margin: 0 auto;"> --%>
                            ${statuhtml}
                            </div> 
                            
                             <%-- <div style="height:400px;width:44%;margin-top:10%;margin-left:15%; text-align: center;">
                                <div style="font-size:40px;">测量未匹配成功,请人工选择</div><br>
                                <table  style="font-size:25px;width:80%;margin:0 auto">
                                 <tr><td>序号</td> <td>长</td><td>宽</td><td>操作</td> <tr>
                                 <tr><td>1</td> <td>701</td><td>600</td><td><button type="button" class="btn btn-warning">选择</button></td> <tr>
                                 <tr><td>2</td> <td>703</td><td>600</td> <td><button type="button" class="btn btn-warning">选择</button></td><tr>
                                </table><br><br>
                                
                                <p style="text-align: center;">
                                <img  src="${ctx }/static/images/cancel.png" style="margin: 0 auto;">
                                    <button type="button" class="btn btn-warning btn-flat margin" style="height:120px;width:120px;margin-left:100px;">重测</button>
                                    <button type="button" class="btn btn-danger btn-flat margin" style="height:120px;width:120px;margin-left:100px;">删除</button>
                                </p> 
                            </div>--%>  
                            
                            <%--  <div style="height:400px;width:44%;margin-top:10%;margin-left:15%; text-align: center;">
                                <div style="font-size:40px;">测量未匹配成功</div><br>
                                <div style="text-align: center; width: 800px; ">
                                
                                </div>
                                <p style="text-align: center;">
                                  <span> <img  src="${ctx }/static/images/quxiao.png" style="margin: 0 auto;"></span>
                                <div> 
                                <a class="btn btn-app" >
                                    <i class="fa fa-edit"></i> 重测
                                  </a>
                                  <a class="btn btn-app" style="margin-left:1%">
                                    <i class="fa  fa-trash"></i> 移除
                                  </a>
                                  </div>
                                </p>
                            </div>  --%>
                                        <%-- <div class="progress progress-striped active">
                                            <div class="bar" style="width:20%;"></div>${progress}
                                        </div> --%>
                        
 
                            <%-- <table class="table table-striped table-hover">
                                <tbody>
                                    <tr class="info">
                                        <th width="15%">批次编号</th>
                                        <td width="35%" style="font-size: 25px;">${manufactureBatchNumber}</td>
                                        <th width="15%">当前玻璃状态</th>
                                        <td width="35%" style="font-size: 40px;">${preprocessingGlass.state}</td>
                                    </tr>
                                    <tr class="info">
                                        <th width="15%">玻璃颜色</th>
                                        <td>${color}</td>
                                        <th width="15%">玻璃厚度(mm)</th>
                                        <td>${thickness}</td>
                                    </tr>
                                    <tr class="info">
                                        <th width="15%">总数量</th>
                                        <td style="font-size: 40px;">${totalPieces}</td>
                                        <th colspan="2"></th>
                                    </tr>
                                    <tr class="info">
                                        <th width="15%">已测数量</th>
                                        <td style="font-size: 40px;">${completePieces}</td>
                                        <th width="15%">剩余数量</th>
                                        <td style="font-size: 40px;">${leftPieces}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr> --%>
                    <%-- <tr>
                        <td>
                            <table class="table table-striped table-hover">
                                <tbody>
                                    <tr>
                                        <th colspan="4">匹配尺寸</th>
                                    </tr>
                                    <tr class="info">
                                        <th width="15%">长(mm)</th>
                                        <td width="35%" style="font-size: 40px;">${matchLength}</td>
                                        <th width="15%">宽(mm)</th>
                                        <td width="35%" style="font-size: 40px;">${matchWidth}</td>
                                    </tr>
                                    <tr>
                                        <th colspan="4">实测尺寸</th>
                                    </tr>
                                    <tr class="info">
                                        <th width="15%">长(mm)</th>
                                        <td style="font-size: 40px;">${preprocessingGlass.actualLength}</td>
                                        <th width="15%">宽(mm)</th>
                                        <td style="font-size: 40px;">${preprocessingGlass.actualWidth}</td>
                                    </tr>
                                    <!-- <tr class="info">
                                        <th>误差范围(mm)</th>
                                        <td><a href="#" class="btn" onclick="setRange()">设置</a></td>
                                        <th colspan="2"></th>
                                    </tr> -->
                                    <tr>
                                        <th width="15%">测量结果</th>
                                        <td colspan="3">${identifyResultHtml}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr> --%>
                </table>
            </fieldset>
 
            <%-- <div id="modifyRangeModal1" class="modal hide fade" tabindex="-1"
                role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <form method="post" class="form-horizontal"
                    action="${ctx}/identifymachine/modify/${identifyMachine.id}">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">×</button>
                        <h3 id="myModalLabel">可能匹配数据</h3>
                    </div>
                    <div class="modal-body">
                        <div class="control-group">
                            <label class="control-label" for="floorInput">匹配数据</label>
                            <table class="table table-striped table-hover">
                                <tbody>
                                <thead>
                                    <tr>
                                        <th></th>
                                        <th>#</th>
                                        <th>长</th>
                                        <th>宽</th>
                                    </tr>
                                </thead>
                                <c:forEach items="${glassLists}" var="glass" varStatus="status">
                                    <tr>
                                        <td><input type="radio" name="glassid"
                                            value="${glass.id}" /></td>
                                        <td>${glass.id}</td>
                                        <td>${glass.length}</td>
                                        <td>${glass.width}</td>
                                    </tr>
                                </c:forEach>
                            </table>
                            <!-- <input type="text" id="pipei" name="glassid" class="input-mini required" />  -->
                            <input type="hidden" id="pipei" name="pglassid"
                                class="input-mini required" value="${pGlass.id}" />
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">提交</button>
                        <button type="button" class="btn" data-dismiss="modal">关闭</button>
                    </div>
                </form>
            </div> --%>
            <%-- <table class="table table-striped table-hover">
                <tbody>
                    <tr class="info">
                        <td width=50%><div>测量数据</div></td>
                        <td><div>匹配数据</div></td>
                    </tr>
                    <tr style="font-size: 30px">
                        <td><div>长</div>
                            <div style="font-size: 50px;text-align:center;">${matchLength} mm</div>
                            <br><br><div>宽</div>
                            <div style="font-size: 50px;text-align:center;">${matchWidth} mm</div></td>
                        <td><div>长</div>
                            <div style="font-size: 50px;text-align:center;">${preprocessingGlass.actualLength} mm</div>
                            <br><br><div>宽</div>
                            <div style="font-size: 50px;text-align:center;">${preprocessingGlass.actualWidth} mm</div></td>
                    </tr>
                    <tr>
                        <th width="15%">测量结果</th>
                        <td colspan="3">${identifyResultHtml}</td>
                    </tr>
                </tbody>
            </table> --%>
        <%--     ${identifymodifyhtml} --%>
        </section>
        <!-- /.content -->
    </div>
</body>
</html>