严智鑫
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
<%@ 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/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()', 10000);
$(document).ready(function(){
        var info = $("#info").attr("info");
        $("#infos").html(info);
});
// 设备页面自动刷新
/* function refreshStatus() {
    window.location.reload();
} */
 
// 停止页面自动刷新
function disableAutoRefresh() {
    clearInterval(interval);
}
 
/**
 * 添加原片
 */
 function addload(loadMachineRackId){
         disableAutoRefresh()
        $("#add-info").modal('show');
        $("#addRawPackage").val(loadMachineRackId);
}
 
 /**
  * 添加固定料架信息
  */
  function addinfo(loadMachineRackId){
          disableAutoRefresh()
         $("#add-fix-info").modal('show');
          $("#fixrack").val("固定料架"+loadMachineRackId);
         $("#add-fix").val(loadMachineRackId);
 }
 
 
  /**
   * 删除固定料架信息
   */
   function deleteinfo(loadMachineRackId){
           disableAutoRefresh()
           $('#deletefixinfo').modal('toggle');
            $("#fixlinenumber").val(loadMachineRackId);
  }
 /**
  * 修改原片
  */
  function modifyload(loadMachineRackId){
          disableAutoRefresh()
         $("#modify-info").modal('show');
         $("#midifyRawPackage").val(loadMachineRackId);
 }
 
  function tuikuload(loadMachineRackId){
          disableAutoRefresh();
          $.ajax({ 
            async: false, 
        
            type:"GET", 
 
             url:"${ctx}/shelfmanager/tuikuinfo/"+loadMachineRackId, 
 
            dataType:"text", 
 
            success:function(data){
                window.location.href="${ctx}/cutmanage/loadmachinerack";
                }
        });
}
 
  function deleteload(id){
      disableAutoRefresh();
      $('#taskFinish').modal('toggle');
      $("#lineprint").val(id);
  }
  
  $(document).delegate('#surefinish','click',function(){
           var id = $("#lineprint").val();
      $.ajax({ 
            async: false, 
        
            type:"GET", 
 
             url:"${ctx}/cutmanage/deleteinfo/"+id, 
 
            dataType:"text", 
 
            success:function(data){
                alert(id+"号位信息清除完成!");
                window.location.href="${ctx}/cutmanage/loadmachinerack";
                }
            });
    });
  
  $(document).delegate('#deletefixinfo','click',function(){
         var id = $("#fixlinenumber").val();
      $.ajax({ 
            async: false, 
        
            type:"GET", 
 
             url:"${ctx}/cutmanage/deletefixinfo/"+id, 
 
            dataType:"text", 
 
            success:function(data){
                alert(data);
                alert(id+"号切割机固定料架信息清除完成!");
                window.location.href="${ctx}/loadmachine/loadmachinerack";
                }
            });
    });
  
  
  </script>
</head>
<body>
      <div class="content-wrapper">
    <div>
        <section class="content-header">
              <h1>
            上片设备信息
                <small></small>
              </h1>
          <ol class="breadcrumb">
            <li><a href="${ctx }/loadmachine/loadmachinerack"><i class="fa fa-reply"></i>上片机信息</a></li>
            <li class="active"></li>
          </ol>
        </section>
           <div id = "info" info = "${info}"></div>
    </div>
    <div>
    <!-- Main content -->
    <section class="content container-fluid">
        <div class="box" style="height: 525px; overflow: auto;">
              <div class="box-header">
              </div>
              <!-- /.box-header -->
              <div class="box-body no-padding" style="background-color: aliceblue;">
                 <table class="table table-striped" style="font-size: large;">
                       <thead>
                           <tr>
                               <th width="15%">上片机</th>
                               <th width="10%">上片位</th>
                               <th>原片信息</th>
                               <th width="25%">缺片</th>
                               <th width="20%">操作</th>
                           </tr>
                       </thead>
                       <tbody>${loadMachineHtml}</tbody>
                   </table>
               </div>
           </div>
           <%-- <div class="box" style="height: 220px; overflow: auto;">
              <div class="box-header">
              </div>
              <!-- /.box-header -->
              <div class="box-body no-padding">
                 <table class="table table-striped" style="font-size: large;">
                       <thead>
                           <tr>
                               <th width="15%">固定料架</th>
                               <th width="10%">编号</th>
                               <th>原片信息</th>
                               <th width="20%">操作</th>
                           </tr>
                       </thead>
                       <tbody>${loadMachineFixHtml}</tbody>
                   </table>
               </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}/cutmanage/addAction" method="post">
                            <input type="hidden" id="addRawPackage" 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" id="shelfRankInput" name="shelfRankNumber"
                                                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: 320px; overflow: auto;">
                                                    <c:forEach items="${shelfRankNumberList}"
                                                        var="shelfRankNumber">
                                                        <li style="font-size: 20px"><a href="#"
                                                            onclick="$('#shelfRankInput').val('${shelfRankNumber}')">${shelfRankNumber}</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" 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="" name="taskid1"
                                            id="taskid" 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="" name="width1" 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="" name="height1"
                                            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="" name="thickness1"
                                            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="" name="pieces1" 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="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}/cutmanage/modifyAction" 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="taskFinish" tabindex="-1" role="dialog"
                aria-labelledby="myModalLabel" aria-hidden="true">
                <form class="form-horizontal" role="form">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        <input type='hidden' id = "lineprint">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                    aria-hidden="true">&times;</button>
                                <h3 class="modal-title" id="myModalLabel">提示信息</h3>
                            </div>
                            <div class="modal-body" style="text-align: left;">
                                <h3>您确定要清除当前上片位信息么?</h3>
                            </div>
                            <div class="modal-footer">
 
                                <button type="button" class="btn btn-default btn-lg"
                                    data-dismiss="modal">取消</button>
 
                                <button type="button" class="btn btn-primary btn-lg"
                                    id="surefinish">确认</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            
            <div class="modal fade" id="deletefixinfo" tabindex="-1" role="dialog"
                aria-labelledby="myModalLabel" aria-hidden="true">
                <form class="form-horizontal" role="form">
                    <div class="modal-dialog">
                        <div class="modal-content">
                        <input type='hidden' id = "fixlinenumber">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                    aria-hidden="true">&times;</button>
                                <h3 class="modal-title" id="myModalLabel">提示信息</h3>
                            </div>
                            <div class="modal-body" style="text-align: left;">
                                <h3>您确定要删除固定料架里面的信息么?</h3>
                            </div>
                            <div class="modal-footer">
 
                                <button type="button" class="btn btn-default btn-lg"
                                    data-dismiss="modal">取消</button>
 
                                <button type="button" class="btn btn-primary btn-lg"
                                    id="surefinish">确认</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            
            <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 class="form-horizontal" role="form" id="category_add"
                            action="${ctx}/loadmachine/addFixAction" method="post">
                            <input type="hidden" id="add-fix" 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" id="fixrack"
                                                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="fixcolors" 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="$('#fixcolors').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>
    </div>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
</body>
</html>