严智鑫
2024-05-13 cedce4883f0d204f5bf7bf87c0bf4858dabb0c23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<%@ 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>