严智鑫
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
<%@ 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=utf-8">
<link href="${ctx}/static/bootstrap/2.3.2/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/bootstrap/2.3.2/css/bootstrap-responsive.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/jquery-validation/1.11.1/validate.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/styles/default.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/bootstrap-switch/css/bootstrap2/bootstrap-switch.css" type="text/css" rel="stylesheet" />
<script src="${ctx}/static/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
 
<script src="${ctx}/static/jquery-validation/1.11.1/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctx}/static/jquery-validation/1.11.1/messages_bs_zh.js" type="text/javascript"></script>
<script src="${ctx}/static/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="${ctx}/static/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>
<script src="${ctx}/static/holder.js" type="text/javascript"></script>
<script src="${ctx}/static/bootstrap-switch/js/bootstrap-switch.js" type="text/javascript"></script>
<script src="${ctx}/static/bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>
<title>缺片信息</title>
 
<script type="text/javascript">
    var interval = setInterval('refreshStatus()', 5000);
    
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
    }
    
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
</script>
 
 
<script type="text/javascript">
    function checkMissing(loadMachineRackId){
        var loadMachineRackId = loadMachineRackId;
        $('#confirm').modal('toggle');
        $('#confirmForm').attr('action', '${ctx}/missingmanage/dealMissing');
        document.getElementById("bodyTxt1").value = "Determine the missing piece on the current shelf?";
        document.getElementById("bodyTxt2").value = "If the missing piece is determined,";
        document.getElementById("bodyTxt3").value = "the original slice that is waiting to be cut will be skipped.";
        document.getElementById("bodyTxt4").value = "Please skip the cutting task on the cutting machine!";
        $('#confirmInput').attr('name', 'loadMachineRackId');
        $('#confirmInput').attr('value', loadMachineRackId);
        
    }
 
</script>
 
 
</head>
<body>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div>
        <section class="content-header">
              <h1>
            缺片管理
                <small></small>
              </h1>
          <ol class="breadcrumb">
            <li><a href="${ctx }/missingmanage/missingmessage"><i class="fa fa-reply"></i>缺片管理</a></li>
            <li class="active">管理</li>
          </ol>
        </section>
    </div>
    <div>
    <!-- Main content -->
    <section class="content container-fluid">
    <div style="width: 50%;float: left;">
    <div class="box" style="margin-top: 20px;">
           <div class="box-header" align="left">
               <h3 class="box-title">缺片信息</h3>
           </div>
         <div style="overflow: auto;height:600px;" class="box-body no-padding">
        <table class="table table-striped" style="font-size: medium;" id="table">
        <tr>
            <td style="width: 50%; border: 1px solid white; vertical-align: top;">
            <fieldset>
                    <div style="overflow: auto; height: 350px;">
                        <table class="table table-striped table-hover" style="font-size: large;">
                            <tr>
                                <td>玻璃ID</td>
                                <td>宽度</td>
                                <td>高度</td>
                                <td>厚度</td>
                                <td>颜色</td>
                                <td>缺片</td>
                            </tr>
                            <c:forEach items="${lackPieces }" var="rawPackage">
                                <c:if test="${!empty rawPackage }">
                                    <tr>
                                        <td>${rawPackage.glassId }</td>
                                        <td>${rawPackage.width }</td>
                                        <td>${rawPackage.height }</td>
                                        <td>${rawPackage.thickness }</td>
                                        <td>${rawPackage.color }</td>
                                        <td>${rawPackage.pieces }</td>
                                    </tr>
                                </c:if>
                            </c:forEach>
                        </table>
                    </div>
            </fieldset>        
            </td>
            </tr>
            </table>
            </div>
            </div>
            </div>
            <div style="width: 50%;float: right;">
            <div class="box" style="margin-top: 20px;">
                   <div class="box-header">
                       <h3 class="box-title">缺片操作</h3>
                   </div>
             <div style="overflow: auto;height:600px;" class="box-body no-padding">
            <table class="table table-striped" style="font-size: medium; " id="table">
            <tr>
            <td style="width: 50%; border: 1px solid white; vertical-align: top;">
            <fieldset>
                    <div style="overflow: auto; height: 350px;">
                        <table class="table table-striped table-hover" style="font-size: large;">
                            <tbody>${missingMessageHtml}</tbody>
                        </table>
                    </div>
            </fieldset>        
            </td>
            </tr>
            </table>
    </div>
    </div>
    </div>
    <div id="confirm" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <form id="confirmForm" method="get">
            <div class="modal-header">
                <h3 id="myModalLabel"></h3>
            </div>
            <div class="modal-body">
                <input type="hidden" id="confirmInput">
                <input type="text" id="bodyTxt1" style="width: 470px;font-size: large; border: 0px; font-weight: bolder; background-color: white;" readonly="readonly"/>
                <input type="text" id="bodyTxt2" style="width: 470px;font-size: large; border: 0px; font-weight: bolder; background-color: white;" readonly="readonly"/>
                <input type="text" id="bodyTxt3" style="width: 492px;font-size: large; border: 0px; font-weight: bolder; background-color: white;" readonly="readonly"/>
                <input type="text" id="bodyTxt4" style="width: 470px;font-size: large; border: 0px; font-weight: bolder; background-color: white;" readonly="readonly"/>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <button type="button" class="btn" data-dismiss="modal" onclick="reload()">关闭</button>
            </div>
        </form>
    </div>
     </section>
    </div>
    <!-- /.content -->
  </div>
</body>
</html>