jingbo 3 дней назад
Родитель
Сommit
3603cbc141
2 измененных файлов с 6 добавлено и 1 удалено
  1. 2 1
      src/com/mes/ui/DataUtil.java
  2. 4 0
      src/com/mes/ui/MesClient.java

+ 2 - 1
src/com/mes/ui/DataUtil.java

@@ -119,7 +119,8 @@ public class DataUtil {
             BufferedReader br = new BufferedReader(new InputStreamReader(is, enconding));
             pro.load(br);
             String mes_server_ip = pro.getProperty("mes.server_ip");
-            String oprno = pro.getProperty("mes.gw").trim();  // oprno
+//            String oprno = pro.getProperty("mes.gw").trim();  // oprno
+            String oprno = "OP220A";  // oprno
             String lineSn = pro.getProperty("mes.line_sn").trim();  // lineSn
             String url = "http://"+mes_server_ip+":8980/js/a/mes/mesProductRecord/pcbindRecord";
             String params = "__ajax=json&oprno="+oprno+"&lineSn="+lineSn+"&sn="+sn+"&result="+ret+"&ucode="+user + "&craft="+craft+"&materielSn="+materielSn;

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

@@ -521,6 +521,10 @@ public class MesClient extends JFrame {
         finish_ok_bt.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                 if(work_status == 1 && check_quality_result){
+                    if (product_sn_lb.getText().equals("")){
+                        JOptionPane.showMessageDialog(MesClient.mesClientFrame,"请绑定冷板码","提示窗口", JOptionPane.INFORMATION_MESSAGE);
+                        return;
+                    }
                     getUser();
                     String sn = MesClient.product_sn.getText().trim();
                     if(sn.isEmpty()){