浏览代码

限制B2工单必须采集IN后缀的条码

callm 2 年之前
父节点
当前提交
0ddcf79ec2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

+ 3 - 3
src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

@@ -263,8 +263,8 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 			String ma_custcode=rs.getString("ma_custcode");
 			String ma_custcode=rs.getString("ma_custcode");
 			String barcode=bar_code.toString();
 			String barcode=bar_code.toString();
 			//如果是联迪B2工单号
 			//如果是联迪B2工单号
-			/*if(ma_custcode.equals("W00397")||pr_code.length()==barcode.length()){
-				if(!barcode.substring(barcode.length()-2).equals("IN")){
+			if(ma_custcode.equals("W00397")){
+				if(!barcode.substring(barcode.length()-2).equals("IN")||pr_code.length()==barcode.length()){
 					BaseUtil.showError("该工单不允许采集此条码,请采集IN后缀条码");
 					BaseUtil.showError("该工单不允许采集此条码,请采集IN后缀条码");
 				}
 				}
 			}
 			}
@@ -272,7 +272,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 				if(!ma_custcode.equals("W00397")){
 				if(!ma_custcode.equals("W00397")){
 					BaseUtil.showError("该工单不允许采集IN后缀条码,请采集其他条码");
 					BaseUtil.showError("该工单不允许采集IN后缀条码,请采集其他条码");
 				}
 				}
-			}*/
+			}
 		}
 		}
 		/**
 		/**
 		 * @author wuyx
 		 * @author wuyx