| | |
| | | <script type="text/javascript"> |
| | | //忢页é¢èªå¨å·æ° |
| | | |
| | | function delecttask(id) { |
| | | //disableAutoRefresh(); |
| | | var groups=0; |
| | | var id=0; |
| | | var state=0; |
| | | //ç»æä»»å¡å¼¹çª |
| | | function delecttask(groups1,id1) { |
| | | if(typeof stopRefresh === "function"){ |
| | | stopRefresh(); |
| | | } |
| | | $("#add-info1").modal('show'); |
| | | groups=groups1; |
| | | id=id1; |
| | | state=1 |
| | | |
| | | } |
| | | //䏿任å¡å¼¹çª |
| | | function delecttask1(groups1,id1) { |
| | | if(typeof stopRefresh === "function"){ |
| | | stopRefresh(); |
| | | } |
| | | $("#add-info1").modal('show'); |
| | | groups=groups1; |
| | | id=id1; |
| | | state=2 |
| | | |
| | | } |
| | | //ç»æä¸æä»»å¡ |
| | | function delecttask3() { |
| | | if(state==1){ |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask/" + id, |
| | | url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + id; |
| | | } |
| | | }); |
| | | alert(id); |
| | | alert(groups+"å·çº¿"+data); |
| | | if(data=="ç»ææå"){ |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | function delecttask1(id) { |
| | | } |
| | | }); |
| | | }else if(state==2){ |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask1/" + id+"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | alert(groups+"å·çº¿"+data); |
| | | if(data=="䏿æå"){ |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | } |
| | | //å¼¹çªåæ¶ |
| | | function delecttask4() { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | /* function delecttask1(groups,id) { |
| | | //disableAutoRefresh();disableAutoRefresh(); |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask1/" + id, |
| | | url : "${ctx}/cutmanage/delecttask1/" + id+"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + id; |
| | | alert(groups+"å·çº¿"+data); |
| | | if(data=="䏿æå"){ |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | } */ |
| | | |
| | | function updatetask(id) { |
| | | //disableAutoRefresh(); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function collectingTasks() { |
| | | if(typeof stopRefresh === "function"){ |
| | | stopRefresh(); |
| | | } |
| | | |
| | | var groups = document.getElementsByName('groups')[0].value; |
| | | var state = document.getElementsByName('state')[0].value; |
| | | var fileName = document.getElementById("fileName").innerHTML; |
| | | if(state=="0"){ |
| | | window.location.href = "${ctx}/cutmanage/gettasks/" + groups; |
| | | } |
| | | if(state=="1"){ |
| | | alert("å½åå·²åå¨ä¸¤ä¸ªä»»å¡") |
| | | } |
| | | } |
| | | |
| | | function updatedengluname() { |
| | | $("#updatedengluname").modal('show'); |
| | | //disableAutoRefresh(); |
| | |
| | | <button id="btnOffWork" type='button' class='btn btn-primary ' onclick='offWork()'>åå²-产é</button> |
| | | |
| | | |
| | | <button id="btnOffWork" type='button' class='btn btn-primary ' onclick='collectingTasks()'>é¢åä»»å¡</button> |
| | | |
| | | |
| | | <small>å½åä¸ç工使¨¡å¼:</small> |
| | | |
| | | <button id="btnStatcionMode" type='button' class='btn btn-primary' onclick='onChangeMode(${groups})' >åå·¥ä½</button> |
| | |
| | | <!-- Main content --> |
| | | <input style="display: none" type="text" name="groups" |
| | | value="${groups}" /> |
| | | <input style="display: none" type="text" name="state" |
| | | value="${state}" /> |
| | | <section class="content container-fluid"> |
| | | <div></div> |
| | | <div> |
| | |
| | | |
| | | </div> |
| | | <div class="box" |
| | | style="height: 120px; overflow: auto; margin-top: 10px;"> |
| | | style="height: 172px; overflow: auto; margin-top: 10px;"> |
| | | <table class="table table-striped table-hover" |
| | | style="overflow-x: auto"> |
| | | <thead> |
| | |
| | | <th>宿æ°é</th> |
| | | <th>æ»æ°é</th> |
| | | <th>宿é¢ç§¯(mm)</th> |
| | | <th>ç¶æ</th> |
| | | <th>æä½</th> |
| | | |
| | | </tr> |
| | |
| | | </table> |
| | | </div> |
| | | <div class="box" |
| | | style="height: 600px; overflow: auto; margin-top: 10px;"> |
| | | style="height: 500px; overflow: auto; margin-top: 10px;"> |
| | | <table class="table table-striped table-hover2" |
| | | style="overflow-x: auto"> |
| | | <thead> |
| | |
| | | <th>å度</th> |
| | | <th>é¢è²</th> |
| | | <th>ç¶æ</th> |
| | | <th>å·¥ç¨</th> |
| | | <th>æä½</th> |
| | | |
| | | </tr> |
| | |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | |
| | | <div class="modal fade" id="add-info1" tabindex="-1" role="dialog" |
| | | aria-labelledby="myModalLabel" aria-hidden="true"> |
| | | <form class="form-horizontal" role="form"> |
| | | <div class="modal-dialog"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <button type="button" class="close" onclick="delecttask4()" data-dismiss="modal" |
| | | aria-hidden="true">×</button> |
| | | <h3 class="modal-title" id="DEL_AlertTitle">æä½æç¤ºï¼</h3> |
| | | </div> |
| | | <div class="modal-body" style="text-align: left;"> |
| | | <h3 id="DEL_MsgShow"> |
| | | æ¯å¦ç¡®å®æ§è¡ <span id="DEL_Id" style="sixe: 25px; font-weight: bold"></span> |
| | | <span style="sixe: 20px; color: red; font-weight: bold">ç»æ/ä¸æä»»å¡ |
| | | </span> æä½ï¼ |
| | | </h3> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | |
| | | <button type="button" onclick="delecttask4()" class="btn btn-default btn-lg" |
| | | data-dismiss="modal">å¦</button> |
| | | <button type="button" onclick="delecttask3()" class="btn btn-primary btn-lg" id="addbtnsubmit">æ¯</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | |
| | | </section> |
| | | |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_banzu.jsp"%> |
| | | <%-- <%@ include file="/WEB-INF/views/mes/view/modal_tijiaobaogong.jsp"%> --%> |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_tijiaobaogong.jsp"%> |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_tishi.jsp"%> |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_QG_tijiaobaogong.jsp"%> |
| | | <!-- /.content --> |
| | |
| | | interval = setInterval('refreshStatus()', rTime);//å·æ°æ¢å¤ |
| | | } |
| | | |
| | | */ |
| | | function stopRefresh() { |
| | | clearInterval(interval);//忢巿° |
| | | } */ |
| | | } |
| | | |
| | | |
| | | var interval = setInterval('isStop()', rTime);//宿¶å·æ° |
| | | function isStop(){ //2024-1-10 yzx ä¿®æ¹ åå ï¼åå·æ°é¡µé¢æé®é¢ |
| | | var str=['baogong_info','div_banzu']; |