<%@ 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);
|
$(document).ready(function(){
|
var info = $("#info").attr("info");
|
$("#infos").html(info);
|
});
|
// 设备页面自动刷新
|
function refreshStatus() {
|
window.location.reload();
|
}
|
|
// 停止页面自动刷新
|
function disableAutoRefresh() {
|
clearInterval(interval);
|
}
|
/**
|
* 修改原片数量
|
*/
|
function modifyrack(loadMachineRackId){
|
disableAutoRefresh()
|
$("#modify-info").modal('show');
|
$("#midifyRawPackage").val(loadMachineRackId);
|
}
|
|
/**
|
* 添加原片
|
*/
|
function addrack(loadMachineRackId){
|
disableAutoRefresh()
|
$("#add-info").modal('show');
|
$("#addRawPackage").val(loadMachineRackId);
|
}
|
|
/**
|
*查询
|
*/
|
$(document).delegate('#search', 'click', function() {
|
disableAutoRefresh();
|
$('#myModal-search').modal('show');
|
});
|
|
</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>
|
<div id = "allstatu" allstatu = "${allstatu}"></div>
|
<div id = "info" info = "${info}"></div>
|
</section>
|
|
<!-- Main content -->
|
<section class="content container-fluid"
|
style="margin-top: 10px; margin-left: 10px;">
|
<fieldset>
|
<legend>
|
<span class="glyphicon glyphicon-list"></span> 虚拟料架
|
|
<button class="btn btn-success" id="search">查询</button>
|
|
<a class="btn btn-success" href="${ctx}/device/rankmanager">返回主界面</a>
|
|
</legend>
|
<div style="height: 600px; overflow-y:scroll;font-size:20px;">
|
<table class="table table-striped table-hover"
|
style="height: 80%; overflow-y:scroll;">
|
<thead>
|
<tr>
|
<th width="20%">料架号</th>
|
<th width="50%">料架信息</th>
|
<th width="30%">操作</th>
|
</tr>
|
</thead>
|
<tbody>${dummyhtml}</tbody>
|
</table>
|
</div>
|
</fieldset>
|
<!-- 修改原片界面 -->
|
<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}/device/modifyRack" 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="myModal-search" 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/searchRack" method="post"
|
role="form" id="category_add">
|
<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' id="color" name="color"
|
style="width: 250px; font-size: 20px"> ${optionHtml}
|
</select>
|
</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">
|
<select class='form-control' name="glassThickness"
|
id="glassThickness" style="width: 250px; font-size: 20px">
|
<option>4</option>
|
<option>5</option>
|
<option>6</option>
|
<option>7</option>
|
<option>8</option>
|
<option>9</option>
|
<option>10</option>
|
<option>11</option>
|
<option>12</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="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}/device/addRack" method="post">
|
<input type="hidden" id="addRawPackage" name="Ids">
|
<div class="modal-body">
|
<div class="form-group">
|
<div class="col-sm-9">
|
<input type="hidden" id="shelfRankInput" name="shelfRankNumber"
|
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="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="${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>
|
<!-- /.content -->
|
</div>
|
<!-- /.content-wrapper -->
|
</body>
|
</html>
|