严智鑫
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
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
<%@ page import="com.northglass.service.device.DeviceService" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>仓储任务信息</title>
<!-- jQuery 3 -->
<script
    src="${ctx }/static/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script
    src="${ctx }/static/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script
    src="${ctx }/static/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script
    src="${ctx }/static/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script
    src="${ctx }/static/AdminLTE/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script
    src="${ctx }/static/AdminLTE/bower_components/fastclick/lib/fastclick.js"></script>
 <script type="text/javascript">
    var interval = setInterval('refreshStatus()', 5000);
    $(document).ready(function(){
        var info = $("#info").attr("info");
        $("#infos").html(info);
});
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
    }
    
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
    function switchLanguage(language) {
        $.ajax({
              url:"${ctx}/shelfmanager/languageSwitch?language="+language,
             async:true,
             type:"GET",
             dataType:"json",
             cache:false, 
             success: function(data){
                 window.location.reload();
             },
             error:function(data){
                 alert("语言切换失败:" + res);
             }
        });
    }
    </script>
</head>
 
<body style="padding: 20px;">
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- 加载对应的资源文件 -->
        <fmt:setBundle basename="<%= DeviceService.language %>" var="mesI18n" />
 
        <!-- 语言切换链接(改为JS触发,而非直接跳转) -->
        <a href="javascript:switchLanguage('messages_zh_CN')">中文</a> | 
        <a href="javascript:switchLanguage('messages_vi_VN')">Tiếng Việt</a>
        
        <!-- Content Header (Page header) -->
        <section class="content-header">
        <h1>
            <fmt:message key="storage" bundle="${mesI18n}"/> 
            <small><fmt:message key="storageTask" bundle="${mesI18n}"/></small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="${ctx }/shelfmanager/taskimport"><i
                    class="fa fa-reply"></i><fmt:message key="storageTask" bundle="${mesI18n}"/></a></li>
            <li class="active"><fmt:message key="details" bundle="${mesI18n}"/></li>
        </ol>
        </section>
        <div id = "allstatu" allstatu = "${allstatu}"></div>
           <div id = "info" info = "${info}"></div>
        <div>
 
            <!-- Main content -->
            <section class="content container-fluid">
            <div class="box box-default">
                <div class="box-header with-border">
                    <h3 class="box-title"><fmt:message key="storage" bundle="${mesI18n}"/></h3>
                    ${status}
                </div>
                <!-- /.box-header -->
                <div class="box-body" style="height:300px;overflow-y:auto;">
                    <table class="table table-striped table-hover"
                    style="font-size: 18px;" id="example2">
                    <thead>
                        <tr>
                            <th><fmt:message key="serialNumber" bundle="${mesI18n}"/></th>
                            <th><fmt:message key="glassId" bundle="${mesI18n}"/></th>
                            <th><fmt:message key="taskDescription" bundle="${mesI18n}"/></th>
                            <th><fmt:message key="taskState" bundle="${mesI18n}"/></th>
                            <th><fmt:message key="thickness" bundle="${mesI18n}"/></th>
                            <th><fmt:message key="glassColorInformation" bundle="${mesI18n}"/></th>
                            <th><fmt:message key="createTime" bundle="${mesI18n}"/></th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach items="${shelftasks}" var="shelftasks"
                            varStatus="status">
                            <tr >
                                <td>${status.index+1}</td>
                                <td>${shelftasks.shelfRank.rawPackage.glassId}</td>
                                <td>${shelftasks.description}</td>
                                <td>${shelftasks.state}</td>
                                <td>${shelftasks.shelfRank.rawPackage.thickness}</td>
                                <td>${shelftasks.shelfRank.rawPackage.color}</td>
                                <td>${shelftasks.createTime}</td>
                            </tr>
 
                        </c:forEach>
                    </tbody>
                </table>
                    </div>
                </div>
            </div>
            <div class="callout callout-warning">
            <div style='text-align: center;color:red;font-size:30px;'>${lackGlassHtml}</div>
                <h4><fmt:message key="faultyOperation" bundle="${mesI18n}"/></h4>
                <p><fmt:message key="hintContent7" bundle="${mesI18n}"/></p>
                <br>
                <div style='text-align: center;'>
                    <span style='font-size: 30px;'><fmt:message key="currentTask" bundle="${mesI18n}"/>:${workingtask.description}</span><br>
                    
                    <br> <a class="btn btn-large btn-success"
                        href="${ctx }/shelfmanager/finishshelftask"
                        style='text-decoration: none;'><fmt:message key="taskCompleted" bundle="${mesI18n}"/></a>&nbsp;&nbsp;
                    <a class="btn btn-large btn-success"
                        href="${ctx }/shelfmanager/againshelftask"
                        style='text-decoration: none;'><fmt:message key="restart" bundle="${mesI18n}"/></a>;&nbsp;&nbsp;
                        
                        <a class="btn btn-large btn-danger"
                        href="${ctx }/shelfmanager/deletetask"
                        style='text-decoration: none;'><fmt:message key="deleteAllHoistingTask" bundle="${mesI18n}"/></a>;&nbsp;&nbsp;
                        
                        <a class="btn btn-large btn-danger"
                        href="${ctx }/shelfmanager/deletetloadask"
                        style='text-decoration: none;'><fmt:message key="deleteAllLoadTask" bundle="${mesI18n}"/></a>
                </div>
            </div>
            </section>
        </div>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <!-- page script -->
 
 
    <script>
        $(function() {
            $('#example2').DataTable({
                'paging' : true,
                'lengthChange' : false,
                'searching' : false,
                'ordering' : true,
                'info' : true,
                'autoWidth' : false
            })
        })
    </script>
</body>
</html>