严智鑫
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
<%@ 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 allstatu = $("#allstatu").attr("allstatu");
        var info = $("#info").attr("info");
        $("#infos").html("<img src=\"/gmms2/static/images/danger.jpg\">"+"  "+info);
        if(allstatu == 0){
             $("#allstatus").attr("style","background-color:#f00"); 
        }
    });
    // 设备页面自动刷新
    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;料架盘点
                
                <%-- <a class="btn btn-success" href="${ctx}/shelfmanager/addglass">返回主界面</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="10%">序号</th>
                                <th width="10%">颜色</th>
                                <th width="10%">厚度</th>
                                <th width="10%">长度</th>
                                <th width="10%">宽度</th>
                                <th width="10%">总片数</th>
                            </tr>
                        </thead>
                        <tbody>${shelfList}</tbody>
                    </table>
                </div>
            </fieldset>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
</body>
</html>