<%@ page contentType="text/html;charset=UTF-8" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
|
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
|
|
<html>
|
<head>
|
<title>系统管理</title>
|
<link href="${ctx}/static/jquery-file-upload/css/jquery.fileupload.css" type="text/css" rel="stylesheet" />
|
<link href="${ctx}/static/jquery-file-upload/css/style.css" type="text/css" rel="stylesheet" />
|
|
<script src="${ctx}/static/jquery-file-upload/js/vendor/jquery.ui.widget.js" type="text/javascript"></script>
|
<script src="${ctx}/static/jquery-file-upload/js/jquery.iframe-transport.js" type="text/javascript"></script>
|
<script src="${ctx}/static/jquery-file-upload/js/jquery.fileupload.js" type="text/javascript"></script>
|
|
<style type="text/css">
|
.thumbnaildiv {
|
height: 150px;
|
text-align: center;
|
padding: 15px;
|
}
|
</style>
|
|
<script>
|
$(function () {
|
$('#uploadGlassExcel').fileupload({
|
url: '${ctx}/upload/uploadGlassExcel/',
|
dataType: 'json',
|
multipart: true,
|
done: function (e, data) {
|
var uploadResult = data.result.uploadResult;
|
if (uploadResult == 'success') {
|
window.location.href = '${ctx}/glass';
|
}
|
}
|
});
|
});
|
|
$(function () {
|
$('#uploadOptPattern').fileupload({
|
url: '${ctx}/upload/uploadOptPattern/',
|
dataType: 'json',
|
multipart: true,
|
done: function (e, data) {
|
var uploadResult = data.result.uploadResult;
|
if (uploadResult == 'success') {
|
window.location.href = '${ctx}/manage/cutMachineManage/';
|
}
|
}
|
});
|
});
|
</script>
|
</head>
|
<body>
|
<fieldset>
|
<legend>玻璃和Pattern导入</legend>
|
|
<ul class="thumbnails">
|
<li class="span4">
|
<div class="thumbnail" style="text-align: center;">
|
<img alt="" src="${ctx}/static/images/system/uploadExcel.png">
|
<br>
|
<a href="${ctx}/static/glassTemplate.xlsx">下载Excel模板</a>
|
<br>
|
<span class="btn btn-success fileinput-button">
|
<i class="glyphicon glyphicon-plus"></i>
|
<span>导入玻璃数据Excel</span>
|
<!-- The file input field used as target for the file upload widget -->
|
<input id="uploadGlassExcel" type="file" name="files" multiple>
|
</span>
|
<br><br>
|
</div>
|
</li>
|
|
<li class="span4">
|
<div class="thumbnail" style="text-align: center;">
|
<img alt="" src="${ctx}/static/images/system/uploadOptPattern.png">
|
<br><br>
|
<span class="btn btn-success fileinput-button">
|
<i class="glyphicon glyphicon-plus"></i>
|
<span>导入Pattern文件</span>
|
<!-- The file input field used as target for the file upload widget -->
|
<input id="uploadOptPattern" type="file" name="files" multiple>
|
</span>
|
<br><br>
|
</div>
|
</li>
|
</ul>
|
|
</fieldset>
|
|
<fieldset>
|
<legend>测试数据管理</legend>
|
<ul class="thumbnails">
|
<li class="span4">
|
<div class="thumbnail thumbnaildiv">
|
<a href="${ctx}/systemmgmt/cleardemodata/" class="btn btn-info btn-large">删除测试数据</a>
|
<br><br>
|
<p align="left">在开始演示前,删除Pattern、任务、消息历史,并将货架、吊装位、切割机、上片位恢复到初始状态</p>
|
</div>
|
</li>
|
|
<li class="span4">
|
<div class="thumbnail thumbnaildiv">
|
<a href="${ctx}/systemmgmt/startdemo/" class="btn btn-primary btn-large">导入测试数据</a>
|
<br><br>
|
<p align="left">演示从ERP获取OPT文件,分解OPT文件并创建切割任务</p>
|
</div>
|
</li>
|
</ul>
|
</fieldset>
|
|
</body>
|
</html>
|