zthwr il y a 10 mois
Parent
commit
72d238156f
1 fichiers modifiés avec 16 ajouts et 1 suppressions
  1. 16 1
      xc/stock/src/private/u8c/bs/stock/bp/SpecialDataRule.java

+ 16 - 1
xc/stock/src/private/u8c/bs/stock/bp/SpecialDataRule.java

@@ -1,5 +1,6 @@
 package u8c.bs.stock.bp;
 
+import java.util.HashMap;
 import java.util.Map;
 
 import nc.bs.framework.common.InvocationInfoProxy;
@@ -11,6 +12,8 @@ import nc.jdbc.framework.processor.MapProcessor;
 import nc.vo.SafetystockVO;
 import nc.vo.bd.def.DefdocVO;
 import nc.vo.pub.BusinessException;
+import nc.vo.pub.lang.UFDate;
+import u8c.bs.upifsp.pub.UpifsTool;
 import u8c.pubitf.rule.IRule;
 
 
@@ -35,6 +38,7 @@ public class SpecialDataRule implements IRule<SafetystockVO>{
 			headvo.setSpec(invbasdocMap.get("invspec"));
 			//型号
 			headvo.setModel(invbasdocMap.get("invtype"));
+			
 			//可能存在新增
 			disposeDefdoc("YS(颜色)", headvo.getColor());
 			disposeDefdoc("DC(定尺)", headvo.getSizing());
@@ -97,7 +101,18 @@ public class SpecialDataRule implements IRule<SafetystockVO>{
         	//公司                  
         	defdocVO.setPk_corp("0001");
         	//档案编码
-        	defdocVO.setDoccode(docname);
+        	UFDate date = new UFDate();
+        	//YSDC20231219000000
+        	HashMap<String, String> billcode_map = UpifsTool
+					.GreatVbillcode("doccode", "YSDC", date,
+							"bd_defdoc",pk_defdoclist);
+        	String billcode_s = billcode_map.get("billcode_s");// 单据号前段
+			String billcode_e = billcode_map.get("billcode_e");// 单据号流水号
+			Integer billcode_tj = new Integer(billcode_e);
+			billcode_tj=billcode_tj+1;
+			String billcode =billcode_s+UpifsTool.ChangeIntToStr(billcode_tj);
+        	//档案编码
+        	defdocVO.setDoccode(billcode);
         	//档案名称
         	defdocVO.setDocname(docname);
         	//档案系统属性