<%@ 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()', 10000);
|
$(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 addinfo(loadMachineRackId){
|
disableAutoRefresh()
|
$("#add-fix-info").modal('show');
|
$("#fixrack").val("固定料架"+loadMachineRackId);
|
$("#add-fix").val(loadMachineRackId);
|
}
|
|
|
/**
|
* 删除固定料架信息
|
*/
|
function deleteinfo(loadMachineRackId){
|
disableAutoRefresh()
|
$('#deletefixinfo').modal('toggle');
|
$("#fixlinenumber").val(loadMachineRackId);
|
}
|
/**
|
* 修改原片
|
*/
|
function modifyload(loadMachineRackId){
|
disableAutoRefresh()
|
$("#modify-info").modal('show');
|
$("#midifyRawPackage").val(loadMachineRackId);
|
}
|
|
function tuikuload(loadMachineRackId){
|
disableAutoRefresh();
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/shelfmanager/tuikuinfo/"+loadMachineRackId,
|
|
dataType:"text",
|
|
success:function(data){
|
window.location.href="${ctx}/cutmanage/loadmachinerack";
|
}
|
});
|
}
|
|
function deleteload(id){
|
disableAutoRefresh();
|
$('#taskFinish').modal('toggle');
|
$("#lineprint").val(id);
|
}
|
|
$(document).delegate('#surefinish','click',function(){
|
var id = $("#lineprint").val();
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/cutmanage/deleteinfo/"+id,
|
|
dataType:"text",
|
|
success:function(data){
|
alert(id+"号位信息清除完成!");
|
window.location.href="${ctx}/cutmanage/loadmachinerack";
|
}
|
});
|
});
|
|
$(document).delegate('#deletefixinfo','click',function(){
|
var id = $("#fixlinenumber").val();
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/cutmanage/deletefixinfo/"+id,
|
|
dataType:"text",
|
|
success:function(data){
|
alert(data);
|
alert(id+"号切割机固定料架信息清除完成!");
|
window.location.href="${ctx}/loadmachine/loadmachinerack";
|
}
|
});
|
});
|
|
|
</script>
|
</head>
|
<body>
|
<div class="content-wrapper">
|
<div>
|
<section class="content-header">
|
<h1>
|
上片设备信息
|
<small></small>
|
</h1>
|
<ol class="breadcrumb">
|
<li><a href="${ctx }/loadmachine/loadmachinerack"><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">
|
<div class="box" style="height: 525px; overflow: auto;">
|
<div class="box-header">
|
</div>
|
<!-- /.box-header -->
|
<div class="box-body no-padding" style="background-color: aliceblue;">
|
<table class="table table-striped" style="font-size: large;">
|
<thead>
|
<tr>
|
<th width="15%">上片机</th>
|
<th width="10%">上片位</th>
|
<th>原片信息</th>
|
<th width="25%">缺片</th>
|
<th width="20%">操作</th>
|
</tr>
|
</thead>
|
<tbody>${loadMachineHtml}</tbody>
|
</table>
|
</div>
|
</div>
|
<%-- <div class="box" style="height: 220px; 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="15%">固定料架</th>
|
<th width="10%">编号</th>
|
<th>原片信息</th>
|
<th width="20%">操作</th>
|
</tr>
|
</thead>
|
<tbody>${loadMachineFixHtml}</tbody>
|
</table>
|
</div>
|
</div> --%>
|
<div class="modal fade" id="add-info" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true" data-backdrop="static">×</button>
|
<h3 class="modal-title" id="myModalLabel"
|
style="font-weight: bolder;">添加原片</h3>
|
</div>
|
<form class="form-horizontal" role="form" id="category_add"
|
action="${ctx}/cutmanage/addAction" method="post">
|
<input type="hidden" id="addRawPackage" name="Ids">
|
<div class="modal-body">
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">料架号 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" id="shelfRankInput" name="shelfRankNumber"
|
style="width: 250px; height: 35px; font-size: 20px"
|
readonly="readonly">
|
<div class="btn-group" style="margin-top: -10px">
|
<button class="btn btn-primary dropdown-toggle"
|
data-toggle="dropdown">
|
选择 <span class="caret"></span>
|
</button>
|
<ul class="dropdown-menu"
|
style="height: 320px; overflow: auto;">
|
<c:forEach items="${shelfRankNumberList}"
|
var="shelfRankNumber">
|
<li style="font-size: 20px"><a href="#"
|
onclick="$('#shelfRankInput').val('${shelfRankNumber}')">${shelfRankNumber}</a></li>
|
</c:forEach>
|
</ul>
|
</div>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">颜色膜系 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" id="colors" name="color"
|
style="width: 250px; height: 35px; font-size: 20px"
|
readonly="readonly">
|
<div class="btn-group" style="margin-top: -10px">
|
<button class="btn btn-primary dropdown-toggle"
|
data-toggle="dropdown">
|
选择 <span class="caret"></span>
|
</button>
|
<ul class="dropdown-menu"
|
style="height: 280px; overflow: auto;">
|
<c:forEach items="${getColorList}" var="cs">
|
<li style="font-size: 20px"><a href="#"
|
onclick="$('#colors').val('${cs}')">${cs}</a></li>
|
</c:forEach>
|
</ul>
|
</div>
|
|
</div>
|
</div>
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">任务编号 </label>
|
</h4>
|
|
<!-- <div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="" name="taskid1"
|
id="taskid" onclick="this.value=''"
|
style="width: 250px; font-size: 20px" />
|
</div> -->
|
</div>
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">宽度 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="" name="width1" id="width"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">高度 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class="form-control" id="height"
|
value="" name="height1"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">厚度 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="" name="thickness1"
|
id="thickness" onclick="this.value=''"
|
style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">数量 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="" name="pieces1" id="pieces"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-default btn-lg"
|
data-dismiss="modal">关闭</button>
|
<button type="submit" class="btn btn-primary btn-lg"
|
id="addbtnsubmit">提交</button>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
<div class="modal fade" id="modify-info" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true" data-backdrop="static">×</button>
|
<h3 class="modal-title" id="myModalLabel"
|
style="font-weight: bolder;">修改原片数量</h3>
|
</div>
|
<form class="form-horizontal" role="form" id="category_add"
|
action="${ctx}/cutmanage/modifyAction" method="post">
|
<input type="hidden" id="midifyRawPackage" name="Ids">
|
<div class="modal-body">
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">数量 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="${addrawPackage.pieces}" name="pieces" id="pieces"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-default btn-lg"
|
data-dismiss="modal">关闭</button>
|
<button type="submit" class="btn btn-primary btn-lg"
|
id="addbtnsubmit">提交</button>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
<div class="modal fade" id="taskFinish" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
<form class="form-horizontal" role="form">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<input type='hidden' id = "lineprint">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true">×</button>
|
<h3 class="modal-title" id="myModalLabel">提示信息</h3>
|
</div>
|
<div class="modal-body" style="text-align: left;">
|
<h3>您确定要清除当前上片位信息么?</h3>
|
</div>
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default btn-lg"
|
data-dismiss="modal">取消</button>
|
|
<button type="button" class="btn btn-primary btn-lg"
|
id="surefinish">确认</button>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
|
<div class="modal fade" id="deletefixinfo" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
<form class="form-horizontal" role="form">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<input type='hidden' id = "fixlinenumber">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true">×</button>
|
<h3 class="modal-title" id="myModalLabel">提示信息</h3>
|
</div>
|
<div class="modal-body" style="text-align: left;">
|
<h3>您确定要删除固定料架里面的信息么?</h3>
|
</div>
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default btn-lg"
|
data-dismiss="modal">取消</button>
|
|
<button type="button" class="btn btn-primary btn-lg"
|
id="surefinish">确认</button>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
|
<div class="modal fade" id="add-fix-info" tabindex="-1" role="dialog"
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true" data-backdrop="static">×</button>
|
<h3 class="modal-title" id="myModalLabel"
|
style="font-weight: bolder;">添加固定料架原片</h3>
|
</div>
|
<form class="form-horizontal" role="form" id="category_add"
|
action="${ctx}/loadmachine/addFixAction" method="post">
|
<input type="hidden" id="add-fix" name="Ids">
|
<div class="modal-body">
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">料架号 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" id="fixrack"
|
style="width: 250px; height: 35px; font-size: 20px"
|
readonly="readonly">
|
|
</div>
|
</div>
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">颜色膜系 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" id="fixcolors" name="color"
|
style="width: 250px; height: 35px; font-size: 20px"
|
readonly="readonly">
|
<div class="btn-group" style="margin-top: -10px">
|
<button class="btn btn-primary dropdown-toggle"
|
data-toggle="dropdown">
|
选择 <span class="caret"></span>
|
</button>
|
<ul class="dropdown-menu"
|
style="height: 280px; overflow: auto;">
|
<c:forEach items="${getColorList}" var="cs">
|
<li style="font-size: 20px"><a href="#"
|
onclick="$('#fixcolors').val('${cs}')">${cs}</a></li>
|
</c:forEach>
|
</ul>
|
</div>
|
|
</div>
|
</div>
|
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">宽度 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="${addrawPackage.height}" name="width" id="width"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">高度 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class="form-control" id="height"
|
value="${addrawPackage.width}" name="height"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">厚度 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="${addrawPackage.thickness}" name="thickness"
|
id="thickness" onclick="this.value=''"
|
style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;">数量 </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<input type="text" class=" sortNumber form-control"
|
value="${addrawPackage.pieces}" name="pieces" id="pieces"
|
onclick="this.value=''" style="width: 250px; font-size: 20px" />
|
</div>
|
</div>
|
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-default btn-lg"
|
data-dismiss="modal">关闭</button>
|
<button type="submit" class="btn btn-primary btn-lg"
|
id="addbtnsubmit">提交</button>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
</section>
|
</div>
|
<!-- /.content -->
|
</div>
|
<!-- /.content-wrapper -->
|
</body>
|
</html>
|