严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
<%@ 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="${ctx}/static/styles/default.css" type="text/css" rel="stylesheet" />
<script src="${ctx}/static/holder.js" type="text/javascript"></script>
<%-- <script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>   --%>
<script type="text/javascript" src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
<title>玻璃识别</title>
<script type="text/javascript">
     var interval = setInterval('refreshStatus()', 5000); 
 
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
 
    }
 
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
 
    function setRange() {
        disableAutoRefresh();
        $('#modifyRangeModal').modal('toggle');
    }
    
    function setdata() {
        disableAutoRefresh();
        $('#add-fix-info').modal('toggle');
    }
    function setpopo() {
        disableAutoRefresh();
        $('#delete-fix-info').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>
                            <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;">${completePieces}/${totalPieces}</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="${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>
                                <table class="table table-striped table-hover">
                                    <tr>
                                        <td>批次编号:<span style="color:#1D82FE;">${txtname}</span></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${manufactureBatchNumber}</td></tr> --%>
                                    <tr>
                                        <td>玻璃厚度:<span style="color:#1D82FE;">${thickness}</span></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${thickness}</td></tr> --%>
                                    <tr>
                                         <td>玻璃色种:<span style="color:#1D82FE;">${color}</span></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${color}</td></tr> --%>
                                    <tr>
                                        <td>测量长度:<span style="color:#1D82FE;">${actuallength}</span></td>
                                    </tr>
                                    <%-- <tr><td style="color:#1D82FE;">${actualLength}</td></tr> --%>
                                    <tr>
                                        <td>测量宽度:<span style="color:#1D82FE;">${actualwidth}</span></td>
                                    </tr>
                                    <%-- <tr>
                                        <td>磨边量:<span style="color:#1D82FE;">${arrangepieces}</span></td>
                                    </tr> --%>
                                    <%-- <tr><td style="color:#1D82FE;">${actualWidth}</td></tr> --%>
                                    <tr>
                                        <td>当前状态:<span style="color:#1D82FE;">${status}</span></td>
                                    </tr>
                                    <tr>
                                        <td>测量玻璃处理:<span style="color:#1D82FE;"><button class='btn btn-success' onclick="setdata()">人工匹配</button>&nbsp;&nbsp;&nbsp;
                                        <a class='btn btn-danger' onclick="setpopo()">破损</a></span></td>
                                    </tr>
                                    
                                    <tr>
                                        <td>切割故障处理:<span style="color:#1D82FE;"><a class='btn btn-danger' " href='/gmms2/identifymachine/damage'>未测玻璃破损</a></span></td>
                                    </tr>
                                    <tr>
                                        <td>测量故障处理:<span style="color:#1D82FE;"><a class='btn btn-danger' " href='/gmms2/identifymachine/review'>测量玻璃故障</a></span></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;">${length}</span> x <span style="color:#1D82FE;">${width}</span></div>
                             <img  src="${ctx }/static/images/${img}" style="margin: 0 auto;">
                            </div> 
                </table>
            </fieldset>
            <div class="modal fade" id="add-fix-info" tabindex="-1" role="dialog"
                aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"
                                aria-hidden="true" data-backdrop="static">&times;</button>
                            <h3 class="modal-title" id="myModalLabel"
                                style="font-weight: bolder;">可能匹配数据</h3>
                        </div>
                        <form method="post" class="form-horizontal"
                    action="${ctx}/identifymachine/modify/1">
                    <div class="modal-body">
                        <div class="control-group">
                            <table class="table table-striped table-hover" style='font-size:20px;'>
                                <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.startlength}</td>
                                        <td>${glass.startwidth}</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>
                </div>
            </div>
            
            <div class="modal fade" id="delete-fix-info" tabindex="-1" role="dialog"
                aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"
                                aria-hidden="true" data-backdrop="static">&times;</button>
                            <h3 class="modal-title" id="myModalLabel"
                                style="font-weight: bolder;">破损选择</h3>
                        </div>
                        <form method="post" class="form-horizontal" action="${ctx}/identifymachine/modifyy/1">
                    <div class="modal-body">
                        <div class="control-group">
                            <table class="table table-striped table-hover" style='font-size:20px;'>
                                <tbody>
                                <thead>
                                    <tr>
                                        <th>人工选择</th>
                                        <th>#</th>
                                        <th>长</th>
                                        <th>宽</th>
                                        <th>总片数</th>
                                        
                                    </tr>
                                </thead>
                                <c:forEach items="${glassLists}" var="glass" varStatus="status">
                                    <tr>
                                        <td><input type="radio" name="glassid2"
                                            value="${glass.id}" /></td>
                                        <td>${glass.id}</td>
                                        <td>${glass.startlength}</td>
                                        <td>${glass.startwidth}</td>
                                        <td>${glass.pieces}</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>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
</body>
</html>