发布流程显示相关/支持文件代码优化
This commit is contained in:
parent
5a7893867b
commit
50f0412f5a
Binary file not shown.
@ -2991,11 +2991,13 @@ public class ProcessPublishWeb extends ActionWeb {
|
|||||||
for(int j=0;j<relatedRowMap.size();j++){
|
for(int j=0;j<relatedRowMap.size();j++){
|
||||||
JSONObject jb = new JSONObject();
|
JSONObject jb = new JSONObject();
|
||||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(i).getString("RELATIONFILEID"));
|
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(i).getString("RELATIONFILEID"));
|
||||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
if(pModel!=null){
|
||||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ id+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ id+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+_uc.getSessionId();
|
||||||
jb.put("relatedName",pModel.getName());
|
jb.put("relatedName",pModel.getName());
|
||||||
jb.put("relatedUrl",url);
|
jb.put("relatedUrl",url);
|
||||||
jsonArray1.add(jb.toJSONString());
|
jsonArray1.add(jb.toJSONString());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
obj.put("relatedData", jsonArray1);
|
obj.put("relatedData", jsonArray1);
|
||||||
@ -3240,11 +3242,12 @@ public class ProcessPublishWeb extends ActionWeb {
|
|||||||
for(int b=0;b<relatedRowMap.size();b++){
|
for(int b=0;b<relatedRowMap.size();b++){
|
||||||
JSONObject jb = new JSONObject();
|
JSONObject jb = new JSONObject();
|
||||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(b).getString("RELATIONFILEID"));
|
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(b).getString("RELATIONFILEID"));
|
||||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
if(pModel!=null){
|
||||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ changeBo.getString("CHANGEDFILENAMENEW")+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ changeBo.getString("CHANGEDFILENAMENEW")+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+_uc.getSessionId();
|
||||||
jb.put("relatedName",pModel.getName());
|
jb.put("relatedName",pModel.getName());
|
||||||
jb.put("relatedUrl",url);
|
jb.put("relatedUrl",url);
|
||||||
jsonArray1.add(jb.toJSONString());
|
jsonArray1.add(jb.toJSONString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
obj.put("relatedData", jsonArray1);
|
obj.put("relatedData", jsonArray1);
|
||||||
@ -3519,12 +3522,13 @@ public class ProcessPublishWeb extends ActionWeb {
|
|||||||
if(relatedRowMap.size()>0){
|
if(relatedRowMap.size()>0){
|
||||||
for(int b=0;b<relatedRowMap.size();b++){
|
for(int b=0;b<relatedRowMap.size();b++){
|
||||||
JSONObject jb = new JSONObject();
|
JSONObject jb = new JSONObject();
|
||||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(b).getString("RELATIONFILEID"));
|
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(b).getString("RELATIONFILEID "));
|
||||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
if(pModel!=null){
|
||||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ stopBo.getString("STOPFILEID")+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ stopBo.getString("STOPFILEID")+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+_uc.getSessionId();
|
||||||
jb.put("relatedName",pModel.getName());
|
jb.put("relatedName",pModel.getName());
|
||||||
jb.put("relatedUrl",url);
|
jb.put("relatedUrl",url);
|
||||||
jsonArray1.add(jb.toJSONString());
|
jsonArray1.add(jb.toJSONString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
obj.put("relatedData", jsonArray1);
|
obj.put("relatedData", jsonArray1);
|
||||||
@ -4003,11 +4007,12 @@ public class ProcessPublishWeb extends ActionWeb {
|
|||||||
for(int j=0;j<relatedRowMap.size();j++){
|
for(int j=0;j<relatedRowMap.size();j++){
|
||||||
JSONObject jb = new JSONObject();
|
JSONObject jb = new JSONObject();
|
||||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(j).getString("RELATIONFILEID"));
|
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(j).getString("RELATIONFILEID"));
|
||||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
if(pModel!=null){
|
||||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+_uc.getSessionId();
|
||||||
jb.put("relatedName",pModel.getName());
|
jb.put("relatedName",pModel.getName());
|
||||||
jb.put("relatedUrl",url);
|
jb.put("relatedUrl",url);
|
||||||
jsonArray1.add(jb.toJSONString());
|
jsonArray1.add(jb.toJSONString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user