| | |
| | | |
| | | //忢页é¢èªå¨å·æ° |
| | | |
| | | function delecttask(id) { |
| | | function delecttask(groups,id) { |
| | | //disableAutoRefresh(); |
| | | $.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; |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | }); |
| | | alert(id); |
| | | } |
| | | |
| | | function delecttask1(id) { |
| | | function delecttask1(groups,id) { |
| | | //disableAutoRefresh();disableAutoRefresh(); |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask1/" + id, |
| | | url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + id; |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function updatetask(id) { |
| | | function updatetask(id,width,height,thinkness,color,count) { |
| | | $("#add-info1").modal('show'); |
| | | document.getElementById("width_t").value=width; |
| | | document.getElementById("length_t").value=height; |
| | | document.getElementById("thinkness_t").value=thinkness; |
| | | document.getElementById("color_t").value=color; |
| | | |
| | | rankId=id; |
| | | width_T=width; |
| | | height_T=height; |
| | | thinkness_T=thinkness; |
| | | color_T=color; |
| | | count_T=count; |
| | | } |
| | | |
| | | function updatetask1(id) { |
| | |
| | | //ä¿®æ¹æ°é |
| | | function addrack1(){ |
| | | |
| | | var pieces=document.getElementById("pieces7").value; |
| | | if(pieces==null||pieces==""){ |
| | | var width=document.getElementById("width_t").value; |
| | | var length=document.getElementById("length_t").value; |
| | | var thinkness=document.getElementById("thinkness_t").value; |
| | | var color=document.getElementById("color_t").value; |
| | | var count=document.getElementById("count_t").value; |
| | | |
| | | if(count==null||count==""){ |
| | | alert("请è¾å
¥æ°é "); |
| | | }else if(width==null||width==""){ |
| | | alert("请è¾å
¥å®½ "); |
| | | }else if(length==null||length==""){ |
| | | alert("请è¾å
¥é¿ "); |
| | | }else if(thinkness==null||thinkness==""){ |
| | | alert("请è¾å
¥å "); |
| | | }else if(color==null||color==""){ |
| | | alert("请è¾å
¥èç³» "); |
| | | }else{ |
| | | $.ajax({ |
| | | cache:false, |
| | |
| | | url:"${ctx}/cutmanage/updatepieces", |
| | | data:{ |
| | | "rankid":rankId, |
| | | "pieces":pieces |
| | | "width":width, |
| | | "height":length, |
| | | "thinkness":thinkness, |
| | | "color":color, |
| | | "count":count |
| | | },success:function(data){ |
| | | window.location.href="${ctx}/cutmanage/gettask/4"; |
| | | } |
| | |
| | | var group = ${groups}; |
| | | var rTime = 5000; |
| | | var rankId=0; |
| | | |
| | | |
| | | var width_T=0; |
| | | var height_T=0; |
| | | var thinkness_T=0; |
| | | var color_T=0; |
| | | var count_T=0; |
| | | </script> |
| | | <style> |
| | | .box table tr th, .box table tr td { |
| | |
| | | <th>æ»æ°é</th> |
| | | <th>宿é¢ç§¯(mm)</th> |
| | | <th>æä½</th> |
| | | |
| | | </tr> |
| | | </thead> |
| | | <tbody>${pattertaskHtml} |
| | |
| | | <th>é«åº¦</th> |
| | | <th>å度</th> |
| | | <th>é¢è²</th> |
| | | <th>ç¶æ</th> |
| | | <th>æ°é</th> |
| | | <th>æä½</th> |
| | | |
| | | </tr> |
| | |
| | | <div class="modal fade" id="add-info1" tabindex="-1" role="dialog" |
| | | aria-labelledby="myModalLabel" aria-hidden="true"> |
| | | <div class="modal-dialog"> |
| | | <div class="modal-content" style="height: 500px;"> |
| | | <div class="modal-content" style="height: 350px;"> |
| | | <div class="modal-header"> |
| | | <button type="button" class="close" data-dismiss="modal" |
| | | aria-hidden="true" data-backdrop="static">×</button> |
| | | <h3 class="modal-title" id="myModalLabel" |
| | | style="font-weight: bolder;">ä¿®æ¹æ°é</h3> |
| | | style="font-weight: bolder;">æäº¤è®¢å产é</h3> |
| | | </div> |
| | | |
| | | <input type="hidden" id="addRawPackage" name="Ids"> |
| | | <div class="modal-body"> |
| | | |
| | | <div id="linheight" class="form-group"> |
| | | |
| | | <div id="width" class="form-group"> |
| | | |
| | | <h4> |
| | | <label class="col-sm-3 control-label no-padding-right" |
| | | style="font-weight: bolder;">é¿ </label> |
| | | </h4> |
| | | <div class="col-sm-9"> |
| | | <input type="number" required="required" max="9000" min="0" class=" sortNumber form-control" |
| | | value="" name="width_t" id="width_t" |
| | | onclick="this.value=''" style="width: 250px; font-size: 20px" /> |
| | | </div> |
| | | </div> |
| | | <div id="length" class="form-group"> |
| | | |
| | | <h4> |
| | | <label class="col-sm-3 control-label no-padding-right" |
| | | style="font-weight: bolder;">宽 </label> |
| | | </h4> |
| | | <div class="col-sm-9"> |
| | | <input type="number" required="required" max="9000" min="0" class=" sortNumber form-control" |
| | | value="" name="length_t" id="length_t" |
| | | onclick="this.value=''" style="width: 250px; font-size: 20px" /> |
| | | </div> |
| | | </div> |
| | | <div id="thinkness" class="form-group"> |
| | | |
| | | <h4> |
| | | <label class="col-sm-3 control-label no-padding-right" |
| | | style="font-weight: bolder;">å </label> |
| | | </h4> |
| | | <div class="col-sm-9"> |
| | | <input type="number" required="required" max="9000" min="0" class=" sortNumber form-control" |
| | | value="" name="thinkness_t" id="thinkness_t" |
| | | onclick="this.value=''" style="width: 250px; font-size: 20px" /> |
| | | </div> |
| | | </div> |
| | | <div id="color" class="form-group"> |
| | | |
| | | <h4> |
| | | <label class="col-sm-3 control-label no-padding-right" |
| | | style="font-weight: bolder;">èç³» </label> |
| | | </h4> |
| | | <div class="col-sm-9"> |
| | | <input type="text" required="required" class=" sortNumber form-control" |
| | | value="" name="color_t" id="color_t" |
| | | onclick="this.value=''" style="width: 250px; font-size: 20px" /> |
| | | </div> |
| | | </div> |
| | | <div id="count" class="form-group"> |
| | | <h4> |
| | | <label class="col-sm-3 control-label no-padding-right" |
| | | style="font-weight: bolder;">æ°é </label> |
| | | </h4> |
| | | |
| | | <div class="col-sm-9"> |
| | | <input type="number" required="required" max="9000" min="0" class=" sortNumber form-control" |
| | | value="" name="pieces2" id="pieces7" |
| | | value="" name="count_t" id="count_t" |
| | | onclick="this.value=''" style="width: 250px; font-size: 20px" /> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="modal-footer" > |
| | | <button type="button" class="btn btn-default btn-lg" |