精密-启源领料-单据日期赋值-代码调整,需要在开关账检查之前赋值,PushSaveActionFor55A3增加前规则
This commit is contained in:
		
							parent
							
								
									d13a478b11
								
							
						
					
					
						commit
						28f8b50311
					
				|  | @ -0,0 +1,40 @@ | ||||||
|  | // | ||||||
|  | // Source code recreated from a .class file by IntelliJ IDEA | ||||||
|  | // (powered by FernFlower decompiler) | ||||||
|  | // | ||||||
|  | 
 | ||||||
|  | package nc.pubimpl.ic.m4d.mm55a3.action; | ||||||
|  | 
 | ||||||
|  | import nc.bs.ic.general.rule.before.IgnoreSafetyStockCheck; | ||||||
|  | import nc.bs.ic.general.rule.before.MaterialOutBillDateRule; | ||||||
|  | import nc.bs.ic.general.rule.before.RowNoProcessForPushBill; | ||||||
|  | import nc.bs.ic.m4d.base.ServicePluginPoint; | ||||||
|  | import nc.bs.ic.m4d.insert.InsertBP; | ||||||
|  | import nc.bs.ic.pub.base.ICAroundProcesser; | ||||||
|  | import nc.vo.ic.general.util.BillChangeUtil; | ||||||
|  | import nc.vo.ic.m4d.entity.MaterialOutVO; | ||||||
|  | import nc.vo.pubapp.pattern.log.TimeLog; | ||||||
|  | 
 | ||||||
|  | public class PushSaveActionFor55A3 { | ||||||
|  |     public PushSaveActionFor55A3() { | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     public MaterialOutVO[] pushSave(MaterialOutVO[] vos, boolean isFillNum) { | ||||||
|  |         ICAroundProcesser<MaterialOutVO> processor = new ICAroundProcesser(ServicePluginPoint.pushSaveFor55A3); | ||||||
|  |         processor.addBeforeRule(new MaterialOutBillDateRule<>()); | ||||||
|  |         processor.addBeforeRule(new Push4DFor55A3BeforeProcess(isFillNum)); | ||||||
|  |         processor.addBeforeRule(new IgnoreSafetyStockCheck()); | ||||||
|  |         processor.addBeforeRule(new RowNoProcessForPushBill()); | ||||||
|  |         TimeLog.logStart(); | ||||||
|  |         (new BillChangeUtil()).dealLiabilityFor4D(vos); | ||||||
|  |         MaterialOutVO[] beforeRstVos = (MaterialOutVO[])processor.before(vos); | ||||||
|  |         TimeLog.info("调用新增保存BP前执行业务规则"); | ||||||
|  |         TimeLog.logStart(); | ||||||
|  |         MaterialOutVO[] ret = (new InsertBP()).insert(beforeRstVos); | ||||||
|  |         TimeLog.info("调用新增保存BP,进行保存"); | ||||||
|  |         TimeLog.logStart(); | ||||||
|  |         processor.after(ret); | ||||||
|  |         TimeLog.info("调用新增保存BP后执行业务规则"); | ||||||
|  |         return ret; | ||||||
|  |     } | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue