<%@ page contentType="text/html;charset=UTF-8"%>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
<%@ page import="com.northglass.service.device.DeviceService" %>
|
<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()', 60000);
|
$(document).ready(function(){
|
var allstatu = $("#allstatu").attr("allstatu");
|
var info = $("#info").attr("info");
|
$("#infos").html("<img src=\"/gmms2/static/images/danger.jpg\">"+" "+info);
|
if(allstatu == 0){
|
$("#allstatus").attr("style","background-color:#f00");
|
}
|
});
|
// 设备页面自动刷新
|
function refreshStatus() {
|
window.location.reload();
|
}
|
|
// 停止页面自动刷新
|
function disableAutoRefresh() {
|
clearInterval(interval);
|
}
|
|
/**
|
*查询
|
*/
|
$(document).delegate('#search', 'click', function() {
|
disableAutoRefresh();
|
$('#myModal-search').modal('show');
|
});
|
|
function checkData() {
|
var shelfid = document.getElementById("fromShelfId").value;
|
var rankid = document.getElementById("toRankId").value;
|
var idHtml = document.getElementsByName("idHtml")[0].value;
|
if (shelfid == "" || shelfid == null || rankid == "" || rankid == null) {
|
$.MsgBox.Alert("WARM PROMPT", "库位号和料架号不能为空!");
|
return false;
|
} else {
|
$
|
.ajax({
|
async : false,
|
type : "GET",
|
|
url : "${ctx}/shelfmanager/addtask?shelfid=" + shelfid
|
+ "&rankid=" + rankid,
|
dataType : "text",
|
success : function(data) {
|
if (data == "errStartPosition") {
|
alert("起始位错误!");
|
return false;
|
} else if (data == "ok") {
|
alert("创建任务成功!");
|
window.location.href = "${ctx}/standalonemanage/intopage?id="+idHtml;
|
} else {
|
alert(data);
|
return false;
|
}
|
|
},
|
error : function(XMLHttpRequest, textStatus,
|
errorThrown) {
|
alert("解析出现问题!")
|
},
|
});
|
|
}
|
|
}
|
|
/**
|
* 添加原片
|
*/
|
function addload(loadMachineRackId) {
|
disableAutoRefresh();
|
$("#add-info").modal('show');
|
$("#addRawPackage").val(loadMachineRackId);
|
}
|
|
/**
|
* 修改原片
|
*/
|
function modifyload(loadMachineRackId) {
|
disableAutoRefresh();
|
$("#modify-info").modal('show');
|
$("#midifyRawPackage").val(loadMachineRackId);
|
}
|
|
function checkleftpieces(loadMachineRackId) {
|
var leftpieces = document.getElementById("leftpieces").value;
|
var id = loadMachineRackId;
|
alert("leftpieces" + leftpieces);
|
alert("id" + id);
|
if (leftpieces == null || "" == leftpieces) {
|
alert("WARM PROMPT", "请输入当前退库料架上原片数量!");
|
return false;
|
} else {
|
window.location.href = "${ctx}/standalonemanage/exitshelf?rankid="
|
+ id + "&leftpieces=" + leftpieces;
|
}
|
|
}
|
|
function endSingleMachine() {
|
disableAutoRefresh();
|
var idHtml = document.getElementsByName("idHtml")[0].value;
|
var urlhtml='${ctx}/standalonemanage/endSingleMachine?id='+idHtml;
|
window.location.href =urlhtml;/*
|
$('#deleteConfirm').modal('toggle');
|
$('#deleteConfirmForm').attr('action',urlhtml); */
|
}
|
function switchLanguage(language) {
|
$.ajax({
|
url:"${ctx}/shelfmanager/languageSwitch?language="+language,
|
async:true,
|
type:"GET",
|
dataType:"json",
|
cache:false,
|
success: function(data){
|
window.location.reload();
|
},
|
error:function(data){
|
alert("语言切换失败:" + res);
|
}
|
});
|
}
|
</script>
|
</head>
|
|
<body>
|
<div class="content-wrapper">
|
<!-- Content Header (Page header) -->
|
|
<!-- 加载对应的资源文件 -->
|
<fmt:setBundle basename="<%= DeviceService.language %>" var="mesI18n" />
|
|
<!-- 语言切换链接(改为JS触发,而非直接跳转) -->
|
<a href="javascript:switchLanguage('messages_zh_CN')">中文</a> |
|
<a href="javascript:switchLanguage('messages_vi_VN')">Tiếng Việt</a>
|
|
<div>
|
<section class="content-header"></section>
|
</div>
|
<div id = "allstatu" allstatu = "${allstatu}"></div>
|
<div id = "info" info = "${info}"></div>
|
<div>
|
<!-- Main content -->
|
<section class="content container-fluid">
|
<div class="box" style="margin-top: 20px;">
|
<div style="overflow: auto; height: 100%;"
|
class="box-body no-padding">
|
<table class="table table-striped"
|
style="font-size: medium; width: 100%;" id="table">
|
<tr>
|
<td
|
style="width: 50%; border: 1px solid white; vertical-align: top;">
|
<div>
|
<fieldset>
|
<legend>
|
<span class="glyphicon glyphicon-list"></span>
|
<fmt:message key="screeningCondition" bundle="${mesI18n}"/>
|
<button class="btn btn-success" id="search"><fmt:message key="query" bundle="${mesI18n}"/></button>
|
</legend>
|
<div style="margin-left: 10px;"></div>
|
</fieldset>
|
<table class="table table-striped table-hover">
|
<thead>
|
<tr>
|
<th><fmt:message key="storageLocationNumber" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="length" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="height" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="thickness" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="glassColorInformation" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="quantity" bundle="${mesI18n}"/></th>
|
</tr>
|
</thead>
|
<tbody>
|
<c:forEach items="${rankList}" var="rankList"
|
varStatus="status">
|
<tr>
|
<td>${rankList.number}</td>
|
<td>${rankList.length}</td>
|
<td>${rankList.width}</td>
|
<td>${rankList.thickness}</td>
|
<td>${rankList.color}</td>
|
<td>${rankList.pieces}</td>
|
</tr>
|
</c:forEach>
|
</tbody>
|
</table>
|
</div>
|
<div>
|
<fieldset>
|
<legend>
|
<span class="glyphicon glyphicon-list"></span> <fmt:message key="materialRackManagement" bundle="${mesI18n}"/>任务信息
|
</legend>
|
<table class="table table-striped table-hover"
|
style="font-size: 18px;" id="example2">
|
<thead>
|
<tr>
|
<th><fmt:message key="serialNumber" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="taskDescription" bundle="${mesI18n}"/></th>
|
<th><fmt:message key="taskState" bundle="${mesI18n}"/></th>
|
</tr>
|
</thead>
|
<tbody>
|
<c:forEach items="${shelftasks}" var="shelftasks"
|
varStatus="status">
|
<tr>
|
<td>${status.index+1}</td>
|
<td>${shelftasks.description}</td>
|
<td>${shelftasks.state}</td>
|
</tr>
|
|
</c:forEach>
|
</tbody>
|
</table>
|
</fieldset>
|
</div>
|
</td>
|
|
<td
|
style="width: 50%; border: 1px solid white; vertical-align: top;">
|
<fieldset>
|
<legend>
|
<span class="glyphicon glyphicon-list"></span> <fmt:message key="loadStationState" bundle="${mesI18n}"/>
|
</legend>
|
<table class="table table-striped table-hover"
|
style="height: 113px;">
|
<thead>
|
<tr>
|
<th width="20%"><fmt:message key="loadStation" bundle="${mesI18n}"/></th>
|
<th width="50%"><fmt:message key="loadingPositionInformation" bundle="${mesI18n}"/></th>
|
</tr>
|
</thead>
|
<tbody>${loadMachineHtml}</tbody>
|
</table>
|
</fieldset>
|
<fieldset>
|
<legend>
|
<span class="glyphicon glyphicon-list"></span>
|
<fmt:message key="createTask" bundle="${mesI18n}"/>
|
</legend>
|
<div style="overflow: auto; height: 200px;">
|
<form action="#">
|
<table style="font-weight: bolder; margin-left: 10px;">
|
<tr style="height: 30px;">
|
<td><fmt:message key="startStation" bundle="${mesI18n}"/>:<input type="text" id="fromShelfId"
|
name="fromShelfId" placeholder='<fmt:message key="inputStationNumber" bundle="${mesI18n}"/>'
|
onkeyup="if(isNaN(this.value)){alert('illegal character!');this.value='';}">
|
</td>
|
</tr>
|
<tr>
|
<td><fmt:message key="endStation" bundle="${mesI18n}"/>:<input type="text" id="toRankId"
|
name="toRankId" placeholder='<fmt:message key="chooseLoadStation" bundle="${mesI18n}"/>' readonly="readonly">
|
</td>
|
<td>
|
<div class="btn-group">
|
<button class="btn dropdown-toggle"
|
data-toggle="dropdown">
|
<fmt:message key="choose" bundle="${mesI18n}"/> <span class="caret"></span>
|
</button>
|
<ul class="dropdown-menu">
|
${getLoadsHtmls}
|
|
</ul>
|
</div>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
</fieldset> <br>
|
<div>${statu}</div>
|
<div
|
style="overflow: auto; margin-right: 60px; margin-bottom: 10px;"
|
align="right">
|
<input type="button" value='<fmt:message key="createTask" bundle="${mesI18n}"/>' onclick="checkData()"
|
class="btn btn-info" /> <input type="button" value='<fmt:message key="overSingleMachineMode" bundle="${mesI18n}"/>'
|
onclick="endSingleMachine()" class="btn btn-danger" />
|
</div>
|
</td>
|
</tr>
|
</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;"><fmt:message key="addOriginalFilm" bundle="${mesI18n}"/></h3>
|
</div>
|
<form class="form-horizontal" role="form" id="category_add"
|
action="${ctx}/shelfmanager/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;"><fmt:message key="rackNumber" bundle="${mesI18n}"/> </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">
|
<fmt:message key="choose" bundle="${mesI18n}"/> <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;"><fmt:message key="glassColorInformation" bundle="${mesI18n}"/> </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">
|
<fmt:message key="choose" bundle="${mesI18n}"/> <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;"><fmt:message key="length" bundle="${mesI18n}"/> </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;"><fmt:message key="height" bundle="${mesI18n}"/> </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;"><fmt:message key="thickness" bundle="${mesI18n}"/> </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;"><fmt:message key="quantity" bundle="${mesI18n}"/> </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"><fmt:message key="close" bundle="${mesI18n}"/></button>
|
<button type="submit" class="btn btn-primary btn-lg"
|
id="addbtnsubmit"><fmt:message key="submit" bundle="${mesI18n}"/></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;"><fmt:message key="modifyOriginalFilm" bundle="${mesI18n}"/></h3>
|
</div>
|
<form class="form-horizontal" role="form" id="category_add"
|
action="${ctx}/shelfmanager/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;"><fmt:message key="quantity" bundle="${mesI18n}"/> </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"><fmt:message key="close" bundle="${mesI18n}"/></button>
|
<button type="submit" class="btn btn-primary btn-lg"
|
id="addbtnsubmit"><fmt:message key="submit" bundle="${mesI18n}"/></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;"><fmt:message key="query" bundle="${mesI18n}"/></h3>
|
</div>
|
<form class="form-horizontal"
|
action="${ctx}/standalonemanage/search" 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;"><fmt:message key="glassColorInformation" bundle="${mesI18n}"/> </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" style="display:none;">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;"><fmt:message key="line" bundle="${mesI18n}"/> </label>
|
</h4>
|
<div class="col-sm-9">
|
<select class='form-control' id="idHtml" name="idHtml"
|
style="width: 250px; font-size: 20px"> ${idHtml}
|
</select>
|
</div>
|
</div>
|
<div class="form-group">
|
<h4>
|
<label class="col-sm-3 control-label no-padding-right"
|
style="font-weight: bolder;"><fmt:message key="thickness" bundle="${mesI18n}"/> </label>
|
</h4>
|
|
<div class="col-sm-9">
|
<select class='form-control' name="glassThickness"
|
id="glassThickness" style="width: 250px; font-size: 20px">
|
<option>3</option>
|
<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"><fmt:message key="close" bundle="${mesI18n}"/></button>
|
<button type="submit" class="btn btn-primary btn-lg"
|
id="searchsubmit"><fmt:message key="submit" bundle="${mesI18n}"/></button>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
|
<div id="deleteConfirm" class="modal fade" tabindex="-1"
|
role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
|
style="height: 250px; text-align: center;">
|
<form id="deleteConfirmForm" method="get">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"
|
aria-hidden="true">×</button>
|
<div id="myModalLabel"
|
style="width: 390px; font-size: large; border: 0px; font-weight: bolder; background-color: white; font-size: 40px;"><fmt:message key="materialRackManagement" bundle="${mesI18n}"/>确定退出单机模式?</div>
|
</div>
|
<div class="modal-footer">
|
<button type="submit" class="btn btn-primary"><fmt:message key="submit" bundle="${mesI18n}"/></button>
|
<button type="button" class="btn" data-dismiss="modal"><fmt:message key="close" bundle="${mesI18n}"/></button>
|
</div>
|
</form>
|
</div>
|
</section>
|
</div>
|
<!-- /.content -->
|
</div>
|
</body>
|
</html>
|