<%@ 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>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<link href="${ctx}/static/styles/default.css" type="text/css" rel="stylesheet" />
|
<script src="${ctx}/static/holder.js" type="text/javascript"></script>
|
<script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>
|
<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()', 100000);
|
$(document).ready(function(){
|
var info = $("#info").attr("info");
|
$("#infos").html(info);
|
});
|
// 设备页面自动刷新
|
function refreshStatus() {
|
window.location.reload();
|
}
|
|
// 停止页面自动刷新
|
function disableAutoRefresh() {
|
clearInterval(interval);
|
}
|
|
/**
|
* 添加原片
|
*/
|
function addload(loadMachineRackId){
|
disableAutoRefresh()
|
$("#add-info").modal('show');
|
$("#addRawPackage").val(loadMachineRackId);
|
}
|
|
/**
|
* 修改原片
|
*/
|
function modifyload(loadMachineRackId){
|
disableAutoRefresh()
|
$("#modify-info").modal('show');
|
$("#midifyRawPackage").val(loadMachineRackId);
|
}
|
|
function print(loadMachineRackId){
|
disableAutoRefresh()
|
$('#confirm').modal('toggle');
|
$('#1').attr("onclick","check("+loadMachineRackId+")");
|
}
|
|
function check(id){
|
var id = id;
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/identifymachine/damageglass/"+id,
|
|
dataType:"text",
|
|
success:function(data){
|
|
if(data=="ok"){
|
window.location.href="${ctx}/identifymachine/damage";
|
}else if(data=="notask"){
|
alert("当前产线无任务,请先领取任务!");
|
return false;
|
}
|
return false;
|
},
|
error: function (err) {
|
alert(err)
|
},
|
});
|
}
|
|
</script>
|
</head>
|
<body>
|
<div class="content-wrapper">
|
<div>
|
<section class="content-header">
|
<h1>
|
小片信息
|
<small></small>
|
</h1>
|
<ol class="breadcrumb">
|
<li><a href="#"><i class="fa fa-reply"></i>小片信息</a></li>
|
<li class="active"></li>
|
</ol>
|
</section>
|
<div id = "info" info = "${info}"></div>
|
</div>
|
<div>
|
<!-- Main content -->
|
<section class="content container-fluid">
|
<a href="/gmms2/identifymachine/manage/1" type='botton' class='btn btn-success'>返回上一页</a>
|
<div class="box" style="height: 620px; overflow: auto;">
|
<!-- <div class="box-header">设备信息
|
</div> -->
|
<!-- /.box-header -->
|
|
<div class="box-body no-padding">
|
<table class="table table-striped" style="font-size: large;">
|
<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>
|
<th width="10%">片数</th>
|
<th width="10%">完成片数</th>
|
<th width="10%">破损片数</th>
|
<th width="10%">故障处理</th>
|
</tr>
|
</thead>
|
<tbody>
|
${erroedealhtml}
|
</tbody>
|
</table>
|
</div>
|
</div>
|
<!--确认完成任务-->
|
<div id="confirm" class="modal fade" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true"
|
style="height: 300px;">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true">×</button>
|
<h3 id="myModalLabel"></h3>
|
</div>
|
<div class="modal-body" style="text-align: center;">
|
<input type="hidden" id="confirmInput" /> <input type="text"
|
id="bodyTxt"
|
style="width: 230px; font-size: large; border: 0px; font-weight: bolder; background-color: white;"
|
readonly="readonly" value="是否破损当前的玻璃小片!" />
|
</div>
|
<div class="modal-footer">
|
<a href="javascript:void(0)" name='check' class="btn btn-primary"
|
id='1' type="button">是</a>
|
<button type="button" class="btn" data-dismiss="modal">关闭</button>
|
</div>
|
</div>
|
</section>
|
</div>
|
<!-- /.content -->
|
</div>
|
<!-- /.content-wrapper -->
|
</body>
|
</html>
|