廖井涛
2023-07-25 ace80a2401a1a0e0a1a7b4a3958ff0a3da018d40
修改任务管理
2个文件已修改
40 ■■■■ 已修改文件
gmms/WebContent/mysqlInsert/toPlc.jsp 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gmms/WebContent/qiegeguanli/qiegerenwu.jsp 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gmms/WebContent/mysqlInsert/toPlc.jsp
@@ -1,8 +1,18 @@
<%@page import="builder.Manager"%>
<%
String zt=request.getParameter("zt");
String peifanhao=request.getParameter("peifanhao");
Manager.sendtoPLC(76,20,4,new byte[]{0,1,0,1},0);
Manager.sendtoPLC(77,20,4,new byte[]{0,1,0,1},0);
int zts =Integer.valueOf(zt);
int peifanhaos =Integer.valueOf(peifanhao);
/*  Manager.sendtoPLC(76,20,4,new byte[]{0,1,0,zt},0);
 Manager.sendtoPLC(77,20,4,new byte[]{0,1,0,zt},0); */
 if(zts==2){
     Manager.sendtoPLC(76,20,4,new byte[]{0,(byte)(peifanhaos&0xff),0,0},0);
 }else if(zts==3){
     Manager.sendtoPLC(76,20,4,new byte[]{0,0,0,0},0);
 }
%>
gmms/WebContent/qiegeguanli/qiegerenwu.jsp
@@ -1,4 +1,5 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="ng.db.DBHelper"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
@@ -180,6 +181,7 @@
          shuzu:[],
          shuzu1:[],
          lines:<%= request.getParameter("id") %>,
          peifanhao:[],
          subval:{
              id:'',
              type:''
@@ -202,17 +204,21 @@
          },
          renwuguanli:function(){
              sql="{call AXJ_qiegeguanli_threelinetask_renwuguanli(?,?,?)}~"+JSON.stringify(this.subval);
              console.log(sql);
              
              this.connects("任务修改",sql,1,1);
                this.$http.post( '../mysqlInsert/toPlc.jsp'
                )
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                alert('Error: ' + "服务器数据发生错误!");
            });
              let param = new URLSearchParams();
              param.append("zt",this.subval.type);
              param.append("peifanhao",this.peifanhao[0]['0_recipe_no']);
              this.$http.post( '../mysqlInsert/toPlc.jsp',param)
              .then(function (response) {
                    console.log(response);
               })
                .catch(function (error) {
                    alert('Error: ' + "服务器机器连接发生错误!");
                });
          },
          renwuguanliquxiao:function(){
              this.subval='';
@@ -227,6 +233,8 @@
          let sql="{call AXJ_qiegeguanli_threelinetask_list1()}";
         let flag=2;
         loadAjxs('任务查询成功',sql,flag,"shuzu"); 
         sql="{call AXJ_qiegeguanli_peifanghao_cahxun()}";
         loadAjxs('配方号查询',sql,flag,"peifanhao");
      }
})