| 
					
				 | 
			
			
				@@ -8,10 +8,13 @@ import kd.bos.form.ConfirmCallBackListener; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.form.ConfirmTypes; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.form.MessageBoxOptions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.form.MessageBoxResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import kd.bos.form.events.AfterDoOperationEventArgs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.form.events.BeforeDoOperationEventArgs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.form.events.MessageBoxClosedEvent; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.form.operate.FormOperate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.bos.list.plugin.AbstractListPlugin; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import kd.bos.orm.query.QFilter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import kd.bos.servicehelper.BusinessDataServiceHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import kd.sdk.plugin.Plugin; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.ArrayList; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -87,6 +90,29 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.setVieeVisible(""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //审核后获取审核人并刷新前端界面 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void afterDoOperation(AfterDoOperationEventArgs arg){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        super.afterDoOperation(arg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String operateKey = arg.getOperateKey(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //审核操作代码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String audit="audit"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (operateKey.equals(audit)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //获取单据编号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String billno=this.getModel().getDataEntity().getString("billno"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QFilter filter=new QFilter("billno", QFilter.equals,billno); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            DynamicObject[] dynamicObjectList= BusinessDataServiceHelper.load("nckd_salarydistribute","id",new QFilter[]{filter}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            DynamicObject auditor = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (DynamicObject dynamicObject:dynamicObjectList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                DynamicObject info=BusinessDataServiceHelper. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        loadSingle(dynamicObject.getPkValue(),dynamicObject.getDynamicObjectType().getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                auditor=info.getDynamicObject("nckd_auditor"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (null!=auditor) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.getModel().setValue("nckd_auditor",auditor); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.getView().updateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public void propertyChanged(PropertyChangedArgs e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -184,8 +210,7 @@ public class SalaryDistributeEditPlugin extends AbstractListPlugin implements Pl 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //判断单据内四个分录是否为空,分录有数据则返回true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public boolean billIsNotEmpty(DynamicObject data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public boolean billIsNotEmpty(DynamicObject data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //四个分录标识 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<String> nckd_entryList = Arrays.asList("nckd_staffentry","nckd_earlyretiredentry","nckd_retireentry","nckd_salaryentry"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (String item:nckd_entryList) { 
			 |