严智鑫
2024-05-13 cedce4883f0d204f5bf7bf87c0bf4858dabb0c23
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
301
302
303
304
305
306
307
308
309
310
<%@ 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>
<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()', 60000);
    $(document).ready(function(){
        var info = $("#info").attr("info");
        $("#infos").html(info);
    });
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
    }
    
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
    /**
     * 修改原片数量
     */
    function modifyrack(loadMachineRackId){
          disableAutoRefresh()
         $("#modify-info").modal('show');
         $("#midifyRawPackage").val(loadMachineRackId);
     }
    
    /**
     * 添加原片
     */
     function addrack(loadMachineRackId){
             disableAutoRefresh()
            $("#add-info").modal('show');
            $("#addRawPackage").val(loadMachineRackId);
    } 
    
     /**
      *查询
      */
     $(document).delegate('#search', 'click', function() {
         disableAutoRefresh();
         $('#myModal-search').modal('show');
     });
 
</script>
</head>
<body>
    <div class="content-wrapper">
        <section class="content-header">
            <h1>虚拟料架界面</h1>
            <ol class="breadcrumb">
                <li><a href="#">设备<i class="fa fa-dashboard"></i> 虚拟料架
                </a></li>
            </ol>
            <div id = "allstatu" allstatu = "${allstatu}"></div>
           <div id = "info" info = "${info}"></div>
        </section>
 
        <!-- Main content -->
        <section class="content container-fluid"
            style="margin-top: 10px; margin-left: 10px;">
            <fieldset>
                <legend>
                    &nbsp;&nbsp;<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;虚拟料架
                
                <button class="btn btn-success" id="search">查询</button>
                
                <a class="btn btn-success" href="${ctx}/device/rankmanager">返回主界面</a>
                
                </legend>
                <div style="height: 600px; overflow-y:scroll;font-size:20px;">
                    <table class="table table-striped table-hover"
                        style="height: 80%; overflow-y:scroll;">
                        <thead>
                            <tr>
                                <th width="20%">料架号</th>
                                <th width="50%">料架信息</th>
                                <th width="30%">操作</th>
                            </tr>
                        </thead>
                        <tbody>${dummyhtml}</tbody>
                    </table>
                </div>
            </fieldset>
            <!-- 修改原片界面   -->
            <div class="modal fade" id="modify-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 class="form-horizontal" role="form" id="category_add"
                            action="${ctx}/device/modifyRack" method="post">
                            <input type="hidden" id="midifyRawPackage" name="Ids">
                            <div class="modal-body">
 
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">数量 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <input type="text" class=" sortNumber form-control"
                                            value="${addrawPackage.pieces}" name="pieces" id="pieces"
                                            onclick="this.value=''" style="width: 250px; font-size: 20px" />
                                    </div>
                                </div>
 
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default btn-lg"
                                    data-dismiss="modal">关闭</button>
                                <button type="submit" class="btn btn-primary btn-lg"
                                    id="addbtnsubmit">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            
            <!-- 查询页面开始   -->
                <div class="modal fade" id="myModal-search" 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 class="form-horizontal"
                                action="${ctx}/device/searchRack" method="post"
                                role="form" id="category_add">
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">颜色膜系 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <select class='form-control' id="color" name="color"
                                            style="width: 250px; font-size: 20px"> ${optionHtml}
                                        </select>
                                    </div>
                                </div>
 
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">厚度 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <select class='form-control' name="glassThickness"
                                            id="glassThickness" style="width: 250px; font-size: 20px">
                                            <option>4</option>
                                            <option>5</option>
                                            <option>6</option>
                                            <option>7</option>
                                            <option>8</option>
                                            <option>9</option>
                                            <option>10</option>
                                            <option>11</option>
                                            <option>12</option>
                                        </select>
                                    </div>
                                </div>
 
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default btn-lg"
                                        data-dismiss="modal">关闭</button>
                                    <button type="submit" class="btn btn-primary btn-lg"
                                        id="searchsubmit">提交</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <!--添加原片界面-->
            <div class="modal fade" id="add-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 class="form-horizontal" role="form" id="category_add"
                            action="${ctx}/device/addRack" method="post">
                            <input type="hidden" id="addRawPackage" name="Ids">
                            <div class="modal-body">
                                <div class="form-group">
                                    <div class="col-sm-9">
                                        <input type="hidden" id="shelfRankInput" name="shelfRankNumber"
                                                style="width: 250px; height: 35px; font-size: 20px"
                                                readonly="readonly">
                                    </div>
                                </div> 
 
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">颜色膜系 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <input type="text" id="colors" name="color"
                                            style="width: 250px; height: 35px; font-size: 20px"
                                            readonly="readonly">
                                        <div class="btn-group" style="margin-top: -10px">
                                            <button class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown">
                                                选择&nbsp;<span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu"
                                                style="height: 280px; overflow: auto;">
                                                <c:forEach items="${getColorList}" var="cs">
                                                    <li style="font-size: 20px"><a href="#"
                                                        onclick="$('#colors').val('${cs}')">${cs}</a></li>
                                                </c:forEach>
                                            </ul>
                                        </div>
 
                                    </div>
                                </div>
                                
 
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">宽度 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <input type="text" class=" sortNumber form-control"
                                            value="${addrawPackage.height}" name="width" id="width"
                                            onclick="this.value=''" style="width: 250px; font-size: 20px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">高度 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="height"
                                            value="${addrawPackage.width}" name="height"
                                            onclick="this.value=''" style="width: 250px; font-size: 20px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">厚度 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <input type="text" class=" sortNumber form-control"
                                            value="${addrawPackage.thickness}" name="thickness"
                                            id="thickness" onclick="this.value=''"
                                            style="width: 250px; font-size: 20px" />
                                    </div>
                                </div>
 
                                <div class="form-group">
                                    <h4>
                                        <label class="col-sm-3 control-label no-padding-right"
                                            style="font-weight: bolder;">数量 </label>
                                    </h4>
 
                                    <div class="col-sm-9">
                                        <input type="text" class=" sortNumber form-control"
                                            value="${addrawPackage.pieces}" name="pieces" id="pieces"
                                            onclick="this.value=''" style="width: 250px; font-size: 20px" />
                                    </div>
                                </div>
 
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default btn-lg"
                                    data-dismiss="modal">关闭</button>
                                <button type="submit" class="btn btn-primary btn-lg"
                                    id="addbtnsubmit">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
</body>
</html>