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