修复动态考察结果汇总考察计划为空异常
This commit is contained in:
parent
a3d3130d0b
commit
e9b47fae67
|
@ -45,6 +45,7 @@ public class ExamTaskSummaryListPlugin extends AbstractListPlugin implements Plu
|
||||||
long evalTaskId = evaltask.getLong("id");
|
long evalTaskId = evaltask.getLong("id");
|
||||||
QFilter qFilter = new QFilter("plandetails.evaltask.id", QCP.equals, evalTaskId);
|
QFilter qFilter = new QFilter("plandetails.evaltask.id", QCP.equals, evalTaskId);
|
||||||
DynamicObject examPlan = BusinessDataServiceHelper.loadSingle("resm_investigationplan", qFilter.toArray());
|
DynamicObject examPlan = BusinessDataServiceHelper.loadSingle("resm_investigationplan", qFilter.toArray());
|
||||||
|
if (examPlan != null){
|
||||||
DynamicObject qeug_project = examPlan.getDynamicObject("qeug_project");//考察计划的项目
|
DynamicObject qeug_project = examPlan.getDynamicObject("qeug_project");//考察计划的项目
|
||||||
if (qeug_project != null){
|
if (qeug_project != null){
|
||||||
projectName = qeug_project.getString("name");
|
projectName = qeug_project.getString("name");
|
||||||
|
@ -130,7 +131,9 @@ public class ExamTaskSummaryListPlugin extends AbstractListPlugin implements Plu
|
||||||
// inlineStyleCss.setWidth("1000");
|
// inlineStyleCss.setWidth("1000");
|
||||||
// formShowParameter.getOpenStyle().setInlineStyleCss(inlineStyleCss);
|
// formShowParameter.getOpenStyle().setInlineStyleCss(inlineStyleCss);
|
||||||
getView().showForm(formShowParameter);
|
getView().showForm(formShowParameter);
|
||||||
|
}else {
|
||||||
|
this.getView().showTipNotification("对应考察计划数据异常,请联系管理员");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue