<%@ 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>
|