hzd há 6 dias atrás
pai
commit
470f61a63e
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      src/com/mes/ui/MesClient.java

+ 6 - 0
src/com/mes/ui/MesClient.java

@@ -397,6 +397,7 @@ public class MesClient extends JFrame {
             if(retObj.get("result")!=null&&retObj.get("result").toString().equalsIgnoreCase("true")) {
                 bind_lb_result = true;
                 product_sn_LB.setText(scanBarcode);
+                log.info("bind_lb_result2:"+bind_lb_result);
             }else{
                 setMenuStatus("绑定失败!", 1);
                 return;
@@ -491,6 +492,8 @@ public class MesClient extends JFrame {
                 }
                 sn = sn.trim();
 
+                product_sn.setText(sn);
+
                 DataUtil.checkQuality(MesClient.nettyClient, sn, MesClient.user20);
 
             }
@@ -1027,8 +1030,11 @@ public class MesClient extends JFrame {
                     if (MesClient.s7PLC.readBoolean("DB503.0.3") || MesClient.s7PLC.readBoolean("DB503.0.4")){
                         // 将允许上料清空·
                         MesClient.s7PLC.writeBoolean("DB503.0.2", false);
+                        index = 3;
                     }
                 }else if (index == 3){
+                    log.info("bind_lb_result:"+bind_lb_result);
+
                     // 等待完成信号
                     if (MesClient.s7PLC.readBoolean("DB503.0.4") || (MesClient.s7PLC.readBoolean("DB503.0.0") || MesClient.s7PLC.readBoolean("DB503.0.1"))){
                         // 冷板为空不允许提交