<%@ 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>
|
<title>打印设置</title>
|
<script type="text/javascript">
|
var interval = setInterval('refreshStatus()', 60000);
|
|
// 设备页面自动刷新
|
function refreshStatus() {
|
window.location.reload();
|
}
|
|
// 停止页面自动刷新
|
function disableAutoRefresh() {
|
clearInterval(interval);
|
}
|
|
function modifypattern(id){
|
disableAutoRefresh()
|
$('#myModal-pattern').modal('toggle');
|
$('#pattern_id').val(id);
|
}
|
function otherdayin(id){
|
disableAutoRefresh();
|
$("#otherPrint").modal('toggle');
|
$("#lineprint").val(id);
|
}
|
|
function modifystatu(id){
|
disableAutoRefresh();
|
$('#myModal-statu').modal('toggle');
|
$('#statu_id').val(id);
|
}
|
|
function finishtask(){
|
disableAutoRefresh();
|
$('#taskFinish').modal('toggle');
|
}
|
function serach(){
|
var name = $('#name').val();
|
$.ajax({
|
url:"/gmms2/device/serach/"+name,
|
async:true,
|
type:"GET",
|
dataType:"json",
|
cache:false,
|
success: function(data){
|
alert(date);
|
}
|
});
|
}
|
|
|
$(document).delegate('#allprint','click',function(){
|
var line = $('#lineprint').val();
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/device/otherprint/"+line,
|
|
dataType:"text",
|
|
success:function(data){
|
|
window.location.href="${ctx}/device/printmanage";
|
alert("打印完成!")
|
}
|
});
|
});
|
|
$(document).delegate('#taskFinish','click',function(){
|
$.ajax({
|
async: false,
|
|
type:"GET",
|
|
url:"${ctx}/countmachine/completetask",
|
|
dataType:"text",
|
|
success:function(data){
|
window.location.href="${ctx}/device/printmanage";
|
}
|
});
|
});
|
|
|
</script>
|
</head>
|
<body>
|
<div class="content-wrapper">
|
<section class="content-header">
|
<h1>打印界面</h1>
|
<ol class="breadcrumb">
|
<li><a href="#">设备<i class="fa fa-dashboard"></i> 打印
|
</a></li>
|
</ol>
|
</section>
|
|
<!-- Main content -->
|
<section class="content container-fluid"
|
style="margin-top: 10px; margin-left: 10px;">
|
<fieldset>
|
<legend>
|
<span class="glyphicon glyphicon-list"></span> 打印状态
|
<!--
|
<a type="button" class="btn btn-success" href="/gmms2/countmachine/manage/1">返回下片界面1</a>
|
<a type="button" class="btn btn-success" href="/gmms2/countmachine/manage/2">返回下片界面2</a>
|
<a name="dayin1" class="btn btn-large btn-warning" onclick='otherdayin(1)' type="button">打印剩余标签打印1</a>
|
<a name="dayin2" class="btn btn-large btn-warning" onclick='otherdayin(2)' type="button">打印剩余标签打印2</a>
|
|
<a name="dayin2" class="btn btn-large btn-danger" onclick='finishtask()' type="button">结束任务</a>
|
-->
|
|
|
</legend>
|
<table class="table table-striped table-hover"
|
style="height: 113px;">
|
<thead>
|
<tr>
|
<th width="10%">打印机</th>
|
<th width="10%">打印机信息</th>
|
<th width="20%">打印机属性</th>
|
<th width="50%">操作</th>
|
</tr>
|
</thead>
|
<tbody>${printhtml}</tbody>
|
</table>
|
</fieldset>
|
<div class="box" style="height: 400px; overflow: auto;margin-top: 15px;">
|
|
<div class="box-tools">
|
<form class="form-horizontal" action="${ctx}/device/serach"
|
method="post" role="form" id="category_add">
|
<div class="input-group input-group-sm"
|
style="width: 150px; float: right;">
|
<input type="text" name="txt_name" id='name'
|
class="form-control pull-right" placeholder="文件名称">
|
|
<div class="input-group-btn">
|
<button type="submit" class="btn btn-default"><i
|
class="fa fa-search"></i></button>
|
</div>
|
</div>
|
</form>
|
</div>
|
<div><h3>补打标签</h3></div>
|
<table class="table table-striped table-hover"
|
style="overflow-x: auto">
|
<thead>
|
<tr>
|
<th>ID</th>
|
<th>任务号</th>
|
<th>长度</th>
|
<th>宽度</th>
|
<th>厚度</th>
|
<th>颜色</th>
|
<th>数量</th>
|
<th>磨边数量</th>
|
<th>破损数量</th>
|
<th>打印操作</th>
|
</tr>
|
</thead>
|
<tbody>
|
<%-- <c:forEach items="${allGlasses}" var="allGlasses"
|
varStatus="status">
|
<tr>
|
<td>${allGlasses.id}</td>
|
<td>${allGlasses.manufacture_batch}</td>
|
<td>${allGlasses.length}</td>
|
<td>${allGlasses.width}</td>
|
<td>${allGlasses.thickness}</td>
|
<td>${allGlasses.color}</td>
|
<td>${allGlasses.pieces}</td>
|
<td>${allGlasses.completePieces}</td>
|
<td>${allGlasses.damagePieces}</td>
|
<td><a type="button" class="btn btn-large btn-success" href="${ctx }/device/printglass/${allGlasses.id}/1">打印1</a>
|
<a type="button" class="btn btn-large btn-success" href="${ctx }/device/printglass/${allGlasses.id}/2">打印2</a>
|
</td>
|
</tr>
|
</c:forEach> --%>
|
${allGlasseshtml}
|
</tbody>
|
</table>
|
</div>
|
<div class="modal fade" id="myModal-pattern" 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" action="${ctx}/device/modifyPattern"
|
method="post" role="form" id="category_add">
|
<input type="hidden" id="pattern_id" name="line" >
|
|
<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">
|
<select class='form-control' name="pattern"
|
id="pattern" style="width: 250px; font-size: 15px">
|
<option>单片打印</option>
|
<option>全部打印</option>
|
<option>不打印</option>
|
</select>
|
</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="searchsubmit">提交</button>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
<div class="modal fade" id="myModal-statu" 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" action="${ctx}/device/modifyStatu"
|
method="post" role="form" id="category_add">
|
<input type="hidden" id="statu_id" name="line" >
|
<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">
|
<select class='form-control' name="statu"
|
id="statu" style="width: 250px; font-size: 15px">
|
<option>横打</option>
|
<option>竖打</option>
|
<option>第二版竖打</option>
|
</select>
|
</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="searchsubmit">提交</button>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
<div class="modal fade" id="otherPrint" 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="allprint">确认</button>
|
</div>
|
</div>
|
</div>
|
</form>
|
</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>
|
</section>
|
<!-- /.content -->
|
</div>
|
<!-- /.content-wrapper -->
|
</body>
|
</html>
|