<%@ 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>任务列表</title>
|
<script src="${ctx}/static/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
|
<script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>
|
<script type="text/javascript">
|
function lookWorkingGlass(){
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/cutmanage/lookworkingglass?id=2",
|
|
dataType:"text",
|
|
success:function(data){
|
if(data!=null){
|
$.MsgBox.Alert("INFO", data);
|
}else{
|
$.MsgBox.Alert("WARM PROMPT", "当前无切割原片!");
|
}
|
|
},
|
error: function (XMLHttpRequest,textStatus,errorThrown) {
|
/* alert(XMLHttpRequest.status);
|
alert(XMLHttpRequest.readyState);
|
alert(textStatus); */
|
alert("There are problems of the current analysis!")
|
},
|
});
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
function check(){
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/cutmanage/checkdata2",
|
|
dataType:"text",
|
|
success:function(data){
|
|
if(data=="ok"){
|
window.location.href="${ctx}/cutmanage/completetask2";
|
}else if(data=="notask"){
|
$.MsgBox.Alert("WARM PROMPT", "当前产线无任务!");
|
//window.alert("No task for this line now, please get one task first!");
|
return false;
|
}
|
return false;
|
},
|
error: function (err) {
|
alert(err)
|
},
|
});
|
}
|
|
</script>
|
|
</head>
|
<body>
|
<div class="content-wrapper">
|
<!-- Content Header (Page header) -->
|
<div>
|
<section class="content-header">
|
<h1>
|
切割列表
|
<small></small>
|
</h1>
|
<ol class="breadcrumb">
|
<li><a href="${ctx }/cutmanage/gettask2"><i class="fa fa-reply"></i>领取任务</a></li>
|
<li class="active">切割列表</li>
|
</ol>
|
</section>
|
</div>
|
<div>
|
<!-- Main content -->
|
<section class="content container-fluid">
|
<div class="col-md-3 col-sm-6 col-xs-12">
|
<div class="info-box">
|
<span class="info-box-icon bg-aqua"><i class="fa fa-envelope-o"></i></span>
|
|
<div class="info-box-content">
|
<span class="info-box-text">
|
请点击 <font color="red">下载opt文件</font> 按钮,<br>
|
下载opt文件!<br>
|
</span>
|
</div>
|
<!-- /.info-box-content -->
|
</div>
|
<!-- /.info-box -->
|
</div>
|
<div align="right" style="margin-right: 50px;margin-top: 10px;">
|
<font size="6">总片数:<font color="red">${sumPiece}</font></font>
|
<hr>
|
<font size="6">完成片数:<font color="red">${comPiece}</font></font>
|
</div>
|
<div align="center">
|
<a href="${ctx }/cutmanage/downopt2" class="btn btn-large btn-info"><li class="fa fa-arrow-circle-down"></li> 下载opt文件 </a>
|
<a href="#" onclick="lookWorkingGlass()" class="btn btn-large btn-warning"><li class="fa fa-gg"></li> 查看当前切割原片</a>
|
<a href="javascript:void(0)" name='check' class="btn btn-large btn-danger" id='1' onclick='check()' type="button">结束任务</a>
|
</div>
|
<div class="box" style="height: 420px; overflow: auto;">
|
<div class="box-header" align="center">
|
<h3 class="box-title">切割列表</h3>
|
</div>
|
<!-- /.box-header -->
|
<div class="box-body no-padding">
|
<table class="table table-striped">
|
<thead>
|
<tr>
|
<th width="200px" height="80px" align="left">#</th>
|
<th width="200px" height="80px" align="left">玻璃ID</th>
|
<th width="200px" height="80px" align="left">批次</th>
|
<th width="200px" height="80px" align="left">宽度</th>
|
<th width="200px" height="80px" align="left">高度</th>
|
<th width="200px" height="80px" align="left">厚度</th>
|
<th width="200px" height="80px" align="left">颜色</th>
|
<th width="200px" height="80px" align="left">状态</th>
|
</tr>
|
</thead>
|
<tbody>
|
<c:forEach items="${patterns}" var="pattern" varStatus="status1">
|
<!-- varStatus用来存放到当前循环的变量信息 ,此处没有卵用-->
|
<tr>
|
<td height="30px">${pattern.id}</td>
|
<td height="30px">${pattern.optPattern.glassId}</td>
|
<td height="30px">${pattern.optPattern.batch}</td>
|
<td height="30px">${pattern.optPattern.width}</td>
|
<td height="30px">${pattern.optPattern.height}</td>
|
<td height="30px">${pattern.optPattern.glassThickness}</td>
|
<td height="30px">${pattern.optPattern.color}</td>
|
<td height="30px">
|
<c:if test="${pattern.state=='等待中'}">
|
<img alt="#" src="${ctx}/static/images/Wait.jpg" style="width: 50px; height: 40px;">
|
</c:if>
|
<c:if test="${pattern.state=='正在工作'}">
|
<img alt="#" src="${ctx}/static/images/working.jpg" style="width: 50px; height: 40px;">
|
</c:if>
|
<c:if test="${pattern.state=='缺片'}">
|
<img alt="#" src="${ctx}/static/images/lack.jpg" style="width: 40px; height: 35px;">
|
</c:if>
|
<c:if test="${pattern.state=='完成'}">
|
<img alt="#" src="${ctx}/static/images/complete.jpg" style="width: 40px; height: 35px;">
|
</c:if>
|
</td>
|
</tr>
|
</c:forEach>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
|
<hr color="red" width="1500px">
|
|
|
</section>
|
</div>
|
<!-- /.content -->
|
</div>
|
</body>
|
</html>
|