return NO_FORWARD;
}
StringBuilder sb = new StringBuilder("<export>");
DOBO bo = DOBO.getDOBOByName("do_application");
BOInstance selectApp = bo.getCorrInstance();
DOService findShare = DOService.getService("multi_appshare_findbyshareappid");
List findApps = findShare.invokeSelect(selectApp.getUid());
if(findApps!=null && findApps.size() >0 ){
this.setEchoValue(I18n.instance().get("分享的应用必须原创APP,该应用已经分享到AppShare,不能重复分享!"));
return NO_FORWARD;
}
sb.append("<app>").append(selectApp.toJSONString()).append("</app>\n");
DOService findBP = DOService
.getService("DO_BusiPackage_byapplicationuid");
DOService findBO = DOService.getService("DO_BO_FindByBPUid_Form");
Transaction t = findBP.currentTransaction();
List<String> allIDs = new ArrayList<String>();
DOExport export = new DOExport();
try {
t.begin();
List bps = appendJSONS(sb, "package", findBP);
// 服务下面的参数
DOBO aBO = DOBO.getDOBOByName("do_bo");
for (Iterator itBp = bps.iterator(); itBp.hasNext();) {
BOInstance biBP = (BOInstance) itBp.next();
List bos = findBO.invokeSelect(biBP.getUid());
for (Iterator itBO = bos.iterator(); itBO.hasNext();) {
BOInstance biBO = (BOInstance) itBO.next();
aBO.refreshContext(biBO.getUid());
export.exportBO(sb, biBO);
}
}
t.end();
} catch (Exception e) {