严智鑫
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
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<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>Insert title here</title>
 
<!-- jQuery 3 -->
<script type="text/javascript" src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="${ctx}/static/util.js"></script>
<!-- page script -->
<script>
$(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 selectAll(val){ 
       $("input[name='rawid']").each(function() {  
         this.checked = val;  
      }); 
  
  
  function exitRank(){
        var tbodyObj = document.getElementById('table');
        var count = 0;
        
        var ids = "";//存放选中id
        
        $("table :checkbox").each(function(key,value){
            if($(value).prop('checked')){
                ids=ids+[tbodyObj.rows[key].cells[1].innerHTML]+",";
                count++;
            }
        })
        
        if(count==0){
            $.MsgBox.Alert("WARM PROMPT", "当前未选中任何原片!");
            return false;
        }else{
            window.location.href="${ctx }/shelfmanager/exitseparate?ids="+ids;
        }
  }
</script>
 
</head>
<body>
    <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div>
        <section class="content-header">
              <h1>
            原片出库
                <small>信息</small>
              </h1>
          <ol class="breadcrumb">
            <li><a href="${ctx }/shelfmanager/exit"><i class="fa fa-reply"></i>出库操作</a></li>
            <li class="active">出库</li>
          </ol>
        </section>
        <div id = "allstatu" allstatu = "${allstatu}"></div>
           <div id = "info" info = "${info}"></div>
    </div>
    <div>
    <!-- Main content -->
    <section class="content container-fluid">
           <div class="box" style="margin-top: 20px;">
           <div class="box-header" align="left">
               <h3 class="box-title"><a href="#" class="btn btn-danger" onclick="exitRank()">出库</a></h3>
           </div>
         <div style="overflow: auto;height:600px;" class="box-body no-padding">
        <table class="table table-striped" style="font-size: medium;" id="table">
                <thead>
                <tr>
                  <th><input type="checkbox" onclick="selectAll(this.checked)"/></th>
                  <th>#</th>
                  <th>玻璃ID</th>
                  <th>剩余片数</th>
                  <th>宽度</th>
                  <th>高度</th>
                  <th>厚度</th>
                  <th>颜色</th>
                  <th>创建时间</th>
                </tr>
                </thead>
                <tbody class="scrollTbody">
                    <c:forEach items="${rawpackages}" var="rawpackages" varStatus="status1">
                        <!-- varStatus用来存放到当前循环的变量信息 ,此处没有卵用-->
                           <tr>
                                  <td><input type="checkbox" name="rawid"/></td>
                               <td>${rawpackages.id}</td>
                               <td>${rawpackages.glassId}</td>
                               <td>${rawpackages.leftPieces}</td>
                               <td>${rawpackages.width}</td>
                               <td>${rawpackages.height}</td>
                               <td>${rawpackages.thickness}</td>
                               <td>${rawpackages.color}</td>
                               <td>${rawpackages.createTime}</td>
                            </tr>
                    </c:forEach>
                     </tbody>
                <tfoot>
                </tfoot>
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
    </section>
    </div>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
</body>
</html>