wangxichen 1 settimana fa
parent
commit
585de0d9f9
1 ha cambiato i file con 14 aggiunte e 10 eliminazioni
  1. 14 10
      src/com/mes/ui/MesRevice.java

+ 14 - 10
src/com/mes/ui/MesRevice.java

@@ -30,16 +30,20 @@ public class MesRevice {
                     }
                 }
 
-                // 自动提交OK结果
-                String barcode36 = MesClient.getBarcode(sn);
-                if(!barcode36.isEmpty()){
-                    MesClient.getUser();
-                    String qret = "OK";
-                    Boolean sendret = DataUtil.sendQuality(MesClient.nettyClient,barcode36,qret,MesClient.user20);
-                    if(!sendret){
-                        MesClient.setMenuStatus("消息发送失败,请重试",-1);
-                    }
-                }
+
+                String qret = "OK";
+                MesClient.getUser();
+                DataUtil.sendQuality(MesClient.nettyClient,sn,qret,MesClient.user20);
+//                // 自动提交OK结果
+//                String barcode36 = MesClient.getBarcode(sn);
+//                if(!barcode36.isEmpty()){
+//                    MesClient.getUser();
+//                    String qret = "OK";
+//                    Boolean sendret = DataUtil.sendQuality(MesClient.nettyClient,barcode36,qret,MesClient.user20);
+//                    if(!sendret){
+//                        MesClient.setMenuStatus("消息发送失败,请重试",-1);
+//                    }
+//                }
             }else {
                 MesClient.check_quality_result = false;
                 String lmsg = ErrorMsg.getErrorMsg(processMsgRet, ProtocolParam.getLx(mes_msg));