| | |
| | | <%@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); |
| | | } |
| | | |
| | | %> |
| | |
| | | <%@ page contentType="text/html;charset=UTF-8"%> |
| | | <%@page import="ng.db.DBHelper"%> |
| | | <c:set var="ctx" value="${pageContext.request.contextPath}" /> |
| | | |
| | | <html> |
| | |
| | | shuzu:[], |
| | | shuzu1:[], |
| | | lines:<%= request.getParameter("id") %>, |
| | | peifanhao:[], |
| | | subval:{ |
| | | id:'', |
| | | type:'' |
| | |
| | | }, |
| | | 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=''; |
| | |
| | | let sql="{call AXJ_qiegeguanli_threelinetask_list1()}"; |
| | | let flag=2; |
| | | loadAjxs('任务查询成功',sql,flag,"shuzu"); |
| | | sql="{call AXJ_qiegeguanli_peifanghao_cahxun()}"; |
| | | loadAjxs('配方号查询',sql,flag,"peifanhao"); |
| | | } |
| | | |
| | | }) |