<%@ 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>
|
<script type="text/javascript" src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
|
<script>
|
function addinfo() {
|
window.open("${ctx}/Config/minche",self);
|
}
|
function checkAll() {
|
var checkedAll=document.getElementById("checkall");
|
var ischeked=false;
|
if(checkedAll.checked){
|
ischeked=true;
|
}
|
var checkboxs=document.getElementsByClassName("checkboxs");
|
for(var i=0;i<checkboxs.length;i++){
|
checkboxs[i].checked=ischeked;
|
}
|
}
|
/*启用Enable */ /*禁用Disables */ /*重置Reset */
|
function EnableDisablesReset(flag,RackId){
|
if("0"!=RackId){
|
$.ajax({
|
cache:false,
|
type:"POST",
|
dataType : "json",
|
url:"${ctx}/tasks/EnableDisablesReset",
|
data:{
|
"RackId":RackId,
|
"flag":flag
|
},success:function(data){
|
window.location.href="${ctx}/tasks/loadrackinfo";
|
}
|
});
|
}else{
|
var checkboxs=document.getElementsByClassName("checkboxs");
|
for(var i=0;i<checkboxs.length;i++){
|
var checkbox=checkboxs[i];
|
if(checkbox.checked){
|
var RowHtml=checkbox.parentNode.parentNode;
|
var RackIdHtml=RowHtml.getElementsByClassName("RackId")[0].innerHTML;
|
$.ajax({
|
cache:false,
|
type:"POST",
|
dataType : "json",
|
url:"${ctx}/tasks/EnableDisablesReset",
|
data:{
|
"RackId":RackIdHtml,
|
"flag":flag
|
},success:function(data){
|
window.location.href="${ctx}/tasks/loadrackinfo";
|
}
|
});
|
//alert(RackIdHtml+":"+type);
|
}
|
}
|
}
|
|
}
|
/*修改保存 */
|
function Updates(){
|
var checkboxs=document.getElementsByClassName("checkboxs");
|
for(var i=0;i<checkboxs.length;i++){
|
var checkbox=checkboxs[i];
|
if(checkbox.checked){
|
var RowHtml=checkbox.parentNode.parentNode;
|
var RackIdHtml=RowHtml.getElementsByClassName("RackId")[0].innerHTML;
|
var StateHtml=RowHtml.getElementsByClassName("State")[0].value;
|
var TaskIdHtml=RowHtml.getElementsByClassName("TaskId")[0].value;
|
var GlassCountHtml=RowHtml.getElementsByClassName("GlassCount")[0].value;
|
var PosunCountHtml=RowHtml.getElementsByClassName("PosunCount")[0].value;
|
var FlagShelfHtml=RowHtml.getElementsByClassName("FlagShelf")[0].value;
|
var FlagFxHtml=RowHtml.getElementsByClassName("FlagFx")[0].value;
|
$.ajax({
|
cache:false,
|
type:"POST",
|
dataType : "json",
|
url:"${ctx}/tasks/Updates",
|
data:{
|
"RackId":RackIdHtml,
|
"StateHtml":StateHtml,
|
"TaskIdHtml":TaskIdHtml,
|
"GlassCountHtml":GlassCountHtml,
|
"PosunCountHtml":PosunCountHtml,
|
"FlagShelfHtml":FlagShelfHtml,
|
"FlagFxHtml":FlagFxHtml
|
},success:function(data){
|
window.location.href="${ctx}/tasks/loadrackinfo";
|
}
|
});
|
}
|
}
|
}
|
</script>
|
<title>上片位信息</title>
|
<style type="text/css">
|
*{
|
padding:0px;
|
margin:0px;
|
font-family: "microsoft yahei","Helvetica Neue", Helvetica, Arial, sans-serif;
|
}
|
|
#Top {
|
display: block;
|
padding: 5px;
|
padding-left: 6px;
|
padding-right: 15px;
|
line-height: 22px;
|
/* border-left: 5px solid #15c142; */
|
border-radius: 0 2px 2px 0;
|
background-color: #f2f2f2;
|
}
|
.btn{
|
height:35px;
|
line-height:35px;
|
background-color: #0dc316;
|
padding:0 15px;
|
color: #fff;
|
border: none;
|
border-radius: 2px;
|
}
|
#Table_Minche thead tr{
|
background-color:#00BFFF;
|
font-weight:800;
|
}
|
#Table_Minche thead td{
|
border:1px solid #00BFFF;
|
}
|
#Table_Minche td{
|
border:1px solid #f2f2f2;
|
height:10px;
|
line-height:20px;
|
text-align:center;
|
padding:9px 15px 9px 15px;
|
}
|
</style>
|
</head>
|
<body>
|
<div class="content-wrapper" style="background-color: white;">
|
<!-- <section class="content-header"></section> -->
|
<section class="content container-fluid">
|
<div id="Top">
|
<!-- <button class="btn" onclick="EnableDisablesReset('启用')">启用</button> -->
|
<button class="btn" onclick="Updates()">修改</button>
|
<!-- <button class="btn" style="background-color: #fd5f56;" onclick="EnableDisablesReset('禁用')">禁用</button> -->
|
<button class="btn" onclick="EnableDisablesReset('重置','0')">重置</button>
|
<span style="float:right;line-height: 40px">共有:18(上片位14,吊装位8)</span>
|
</div>
|
<div style="margin-top:10px;">
|
<table id="Table_Minche" style="width: 100%; border-collapse: collapse; border-spacing: 0;">
|
<thead>
|
<tr>
|
<td style="text-align: center;"><input type="checkbox" id="checkall" onclick="checkAll()" /></td>
|
<td>ID</td>
|
<td>机器</td>
|
<td>编号</td>
|
<td>工作状态</td>
|
<td>任务ID</td>
|
<td>已上片数量</td>
|
<td>破损数量</td>
|
<td>标志位</td>
|
<td>方向</td>
|
<td>实时二次接力</td>
|
<td>实时MES</td>
|
<td>启用状态</td>
|
</tr>
|
</thead>
|
<tbody>${LoadRackshtml}
|
</tbody>
|
</table>
|
</div>
|
</section>
|
</div>
|
</body>
|
</html>
|