严智鑫
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
<%@ 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>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.css">
<style>
#example tbody {
      display:block;
      height:620px;
      overflow-y:scroll;
}
#example thead,#example tbody tr {
     display:table;
     width:100%;
     table-layout:fixed;
}
#example thead {
     width: calc(100% - 1em);
}
#example thead th {
     background:#ccc;
}
</style>
<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()', 5000);
    
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
    }
    
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    } */
    
    /*删除  */
    function countAll(type){
        var groups=document.getElementsByName('groups')[0].value;
        var state=document.getElementById('state').value;
        var checkboxs=document.getElementsByName('id');
          for(var i=0;i<checkboxs.length;i++){
          var checkbox=checkboxs[i];
          if(checkbox.checked){               
            var RowHtml=checkbox.parentNode.parentNode;
            var rankid=RowHtml.getElementsByClassName("rankid")[0].innerHTML;
              
                $.ajax({
                  cache:false,
                  type:"POST",
                  dataType : "json", 
                   url:"${ctx}/countmachine/countdelete",
                   data:{
                       "rankid":rankid,
                       "type":type
                   },success:function(data){ 
                       window.location.href="${ctx}/countmachine/detail/"+groups+"/"+state;
                  }
              }); 
          }         
      } 
    }
    </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>
    </section>
 
    <!-- Main content -->
     <section class="content container-fluid" >
         <input type="text" id="state" style='display:none' value="${state}" />
         <input style="display:none" type="text" name="groups" value="${groups}" />
        <fieldset>
        <legend>下片机玻璃队列</legend>
        <button type="button" onclick="countAll('重新开始')" class="btn btn-primary ">重新开始</button>
        <button type="button" onclick="countAll('手动完成')" class="btn btn-primary ">手动完成</button>
        ${countMachineTaskHtml}
        </fieldset>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
</body>
</html>