|
|
@@ -109,8 +109,9 @@ public class SinsurTempDataListPlugin extends AbstractListPlugin implements Plug
|
|
|
public void closedCallBack(ClosedCallBackEvent closedCallBackEvent) {
|
|
|
super.closedCallBack(closedCallBackEvent);
|
|
|
String actionId = closedCallBackEvent.getActionId();
|
|
|
+ Map returnData;
|
|
|
if ("importData".equals(actionId)) {
|
|
|
- Map<String, Object> returnData = (Map)closedCallBackEvent.getReturnData();
|
|
|
+ returnData = (Map)closedCallBackEvent.getReturnData();
|
|
|
if (returnData == null) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -123,7 +124,12 @@ public class SinsurTempDataListPlugin extends AbstractListPlugin implements Plug
|
|
|
}
|
|
|
}
|
|
|
else if ("importingData".equals(actionId)) {
|
|
|
- this.getView().invokeOperation("refresh");
|
|
|
+ returnData = (Map)closedCallBackEvent.getReturnData();
|
|
|
+ if (returnData != null && !returnData.isEmpty()) {
|
|
|
+ this.openImportingView(returnData);
|
|
|
+ } else {
|
|
|
+ this.getView().invokeOperation("refresh");
|
|
|
+ }
|
|
|
} else if (!"checkprogress".equals(actionId) && !"dataPreDeal".equals(actionId)) {
|
|
|
if ("donothing_writein".equals(actionId)) {
|
|
|
this.getView().invokeOperation("refresh");
|
|
|
@@ -148,4 +154,16 @@ public class SinsurTempDataListPlugin extends AbstractListPlugin implements Plug
|
|
|
formShowParameter.setCloseCallBack(new CloseCallBack(this, closeCalBackId));
|
|
|
this.getView().showForm(formShowParameter);
|
|
|
}
|
|
|
+
|
|
|
+ private void openImportingView(Map<String, Object> dataMap) {
|
|
|
+ FormShowParameter formShowParameter = new FormShowParameter();
|
|
|
+ formShowParameter.setFormId("hsas_taskguideimportret");
|
|
|
+ formShowParameter.getOpenStyle().setShowType(ShowType.Modal);
|
|
|
+ formShowParameter.setCustomParam("importTaskId", dataMap.get("importTaskId"));
|
|
|
+ formShowParameter.setCustomParam("successCout", dataMap.get("successCout"));
|
|
|
+ formShowParameter.setCustomParam("failCout", dataMap.get("failCout"));
|
|
|
+ formShowParameter.setCustomParam("cacheKey", dataMap.get("cacheKey"));
|
|
|
+ formShowParameter.setCloseCallBack(new CloseCallBack(this, "importErrorData"));
|
|
|
+ this.getView().showForm(formShowParameter);
|
|
|
+ }
|
|
|
}
|