审批记录查看优化
This commit is contained in:
		
							parent
							
								
									19180cb25d
								
							
						
					
					
						commit
						5faa6da5ce
					
				| 
						 | 
					@ -21,15 +21,20 @@ import java.util.Map;
 | 
				
			||||||
public class ApprovalPagePluginNewDemo extends AbstractFormPlugin implements Plugin{
 | 
					public class ApprovalPagePluginNewDemo extends AbstractFormPlugin implements Plugin{
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void afterCreateNewData(EventObject evt) {
 | 
					    public void afterCreateNewData(EventObject evt) {
 | 
				
			||||||
//        Boolean onlyView = (Boolean)this.getView().getFormShowParameter().getCustomParams().get("onlyView");
 | 
					//        Object id1 = this.getView().getFormShowParameter().getCustomParams().get("taskId");
 | 
				
			||||||
//        String type = (String)this.getView().getFormShowParameter().getCustomParams().get("type");
 | 
					 | 
				
			||||||
        Object id = this.getView().getFormShowParameter().getCustomParams().get("tId");
 | 
					        Object id = this.getView().getFormShowParameter().getCustomParams().get("tId");
 | 
				
			||||||
        //查看态,需要显示 审批记录页签
 | 
					        //查看态,需要显示 审批记录页签
 | 
				
			||||||
        if(id==null){
 | 
					        if(id==null){
 | 
				
			||||||
            this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");
 | 
					            Boolean onlyView = (Boolean)this.getView().getFormShowParameter().getCustomParams().get("onlyView");
 | 
				
			||||||
 | 
					            //查看态,需要显示 审批记录页签
 | 
				
			||||||
 | 
					            if(onlyView==null){
 | 
				
			||||||
 | 
					                this.getView().setVisible(false,"tabpageap_approvalrecord");
 | 
				
			||||||
 | 
					                this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"approvalrecordap");
 | 
				
			||||||
 | 
					            }else if(onlyView){
 | 
				
			||||||
 | 
					                this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }else{
 | 
					        }else{
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                System.out.println(1);
 | 
					 | 
				
			||||||
                DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(id, "wf_task");
 | 
					                DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(id, "wf_task");
 | 
				
			||||||
                if(dynamicObject==null){
 | 
					                if(dynamicObject==null){
 | 
				
			||||||
                    this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");
 | 
					                    this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue