严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>任务列表</title>
<script src="${ctx}/static/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>
<script type="text/javascript">
    function lookWorkingGlass(){
        $.ajax({ 
            async: false, 
        
            type:"GET", 
 
             url:"${ctx}/cutmanage/lookworkingglass?id=2", 
 
            dataType:"text", 
 
            success:function(data){
                if(data!=null){
                    $.MsgBox.Alert("INFO", data);
                }else{
                    $.MsgBox.Alert("WARM PROMPT", "当前无切割原片!");
                }
            
            },
            error: function (XMLHttpRequest,textStatus,errorThrown) {
                /* alert(XMLHttpRequest.status);
                alert(XMLHttpRequest.readyState);
                alert(textStatus); */
                alert("There are problems of the current analysis!")
        },
    });
}
 
</script>
 
<script type="text/javascript">
    function check(){     
        $.ajax({ 
                async: false, 
            
                type:"GET", 
 
                    url:"${ctx}/cutmanage/checkdata2", 
 
                dataType:"text", 
 
                success:function(data){
                    
                    if(data=="ok"){
                        window.location.href="${ctx}/cutmanage/completetask2";
                    }else if(data=="notask"){
                        $.MsgBox.Alert("WARM PROMPT", "当前产线无任务!");
                        //window.alert("No task for this line now, please get one task first!");
                        return false;
                    }
                    return false;
                },
                error: function (err) {
                    alert(err)
            },
        });
    }
    
</script> 
 
</head>
<body>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div>
        <section class="content-header">
              <h1>
            切割列表
                <small></small>
              </h1>
          <ol class="breadcrumb">
            <li><a href="${ctx }/cutmanage/gettask2"><i class="fa fa-reply"></i>领取任务</a></li>
            <li class="active">切割列表</li>
          </ol>
        </section>
    </div>
    <div>
    <!-- Main content -->
    <section class="content container-fluid">
    <div class="col-md-3 col-sm-6 col-xs-12">
         <div class="info-box">
           <span class="info-box-icon bg-aqua"><i class="fa fa-envelope-o"></i></span>
 
           <div class="info-box-content">
             <span class="info-box-text">
                 请点击 <font color="red">下载opt文件</font> 按钮,<br>
                 下载opt文件!<br>
             </span>
           </div>
           <!-- /.info-box-content -->
         </div>
          <!-- /.info-box -->
    </div>
<div align="right" style="margin-right: 50px;margin-top: 10px;">
           <font size="6">总片数:<font color="red">${sumPiece}</font></font>
        <hr>
        <font size="6">完成片数:<font color="red">${comPiece}</font></font>
</div>
<div align="center">
    <a href="${ctx }/cutmanage/downopt2" class="btn btn-large btn-info"><li class="fa fa-arrow-circle-down"></li> 下载opt文件 </a>
    <a href="#" onclick="lookWorkingGlass()" class="btn btn-large btn-warning"><li class="fa fa-gg"></li> 查看当前切割原片</a>
    <a href="javascript:void(0)" name='check' class="btn btn-large btn-danger" id='1' onclick='check()' type="button">结束任务</a>
</div>
<div class="box" style="height: 420px; overflow: auto;">
      <div class="box-header" align="center">
        <h3 class="box-title">切割列表</h3>
      </div>
      <!-- /.box-header -->
      <div class="box-body no-padding">
         <table class="table table-striped">
             <thead>
                 <tr>
                   <th width="200px" height="80px" align="left">#</th>
                   <th width="200px" height="80px" align="left">玻璃ID</th>
                   <th width="200px" height="80px" align="left">批次</th>
                   <th width="200px" height="80px" align="left">宽度</th>
                   <th width="200px" height="80px" align="left">高度</th>
                   <th width="200px" height="80px" align="left">厚度</th>
                   <th width="200px" height="80px" align="left">颜色</th>
                   <th width="200px" height="80px" align="left">状态</th>
                 </tr>
             </thead>
            <tbody>
                <c:forEach items="${patterns}" var="pattern" varStatus="status1">
                <!-- varStatus用来存放到当前循环的变量信息 ,此处没有卵用-->
                   <tr>
                       <td height="30px">${pattern.id}</td>
                       <td height="30px">${pattern.optPattern.glassId}</td>
                       <td height="30px">${pattern.optPattern.batch}</td>
                       <td height="30px">${pattern.optPattern.width}</td>
                       <td height="30px">${pattern.optPattern.height}</td>
                       <td height="30px">${pattern.optPattern.glassThickness}</td>
                       <td height="30px">${pattern.optPattern.color}</td>
                       <td height="30px">
                       <c:if test="${pattern.state=='等待中'}">
                               <img alt="#" src="${ctx}/static/images/Wait.jpg" style="width: 50px; height: 40px;">
                       </c:if>
                       <c:if test="${pattern.state=='正在工作'}">
                               <img alt="#" src="${ctx}/static/images/working.jpg" style="width: 50px; height: 40px;">
                       </c:if>
                       <c:if test="${pattern.state=='缺片'}">
                               <img alt="#" src="${ctx}/static/images/lack.jpg" style="width: 40px; height: 35px;">
                       </c:if>
                       <c:if test="${pattern.state=='完成'}">
                               <img alt="#" src="${ctx}/static/images/complete.jpg" style="width: 40px; height: 35px;">
                       </c:if>
                      </td>
                    </tr>
               </c:forEach>
         </tbody>
           </table>
           </div>
   </div>
   &nbsp;
   <hr color="red" width="1500px">
       &nbsp;&nbsp;&nbsp;
   &nbsp;&nbsp;&nbsp;
   </section>
    </div>
    <!-- /.content -->
  </div>
</body>
</html>