历史编辑文件相关支持文件显示
This commit is contained in:
parent
ec400a93a2
commit
17a1f43dca
Binary file not shown.
@ -971,4 +971,11 @@ public class PublisherController {
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.getEditPalByUserId(type);
|
||||
}
|
||||
|
||||
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher.getHistoryRelatedName")
|
||||
public String getHistoryRelatedName(UserContext me,String plId){
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.getHistoryRelatedName(plId);
|
||||
}
|
||||
}
|
||||
@ -5332,4 +5332,30 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
ro.put("list",list);
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
|
||||
public String getHistoryRelatedName(String plId){
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
//相关/支持文件
|
||||
JSONArray jsonArray1=new JSONArray();
|
||||
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+plId+"' and ATTRID='related_support_files'");
|
||||
if(relatedRowMap.size()>0){
|
||||
for(int i=0;i<relatedRowMap.size();i++){
|
||||
JSONObject jb = new JSONObject();
|
||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(i).getString("RELATIONFILEID"));
|
||||
if(pModel!=null){
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
||||
jb.put("relatedName",pModel.getName());
|
||||
jb.put("relatedUrl",url);
|
||||
jsonArray1.add(jb.toJSONString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
ro.put("relatedData",jsonArray1);
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@ -222,7 +222,33 @@ function initHistoryInfo(type){
|
||||
node.tempName = $(historyCheckBoxArr[i]).attr("ptempName");
|
||||
node.id = $(historyCheckBoxArr[i]).attr("pid");
|
||||
node.version = $(historyCheckBoxArr[i]).attr("pversion");
|
||||
nodes.push(node)
|
||||
|
||||
|
||||
var param = {
|
||||
sid : sid,
|
||||
cmd : "com.actionsoft.apps.coe.pal.publisher.getHistoryRelatedName",
|
||||
plId:node.id
|
||||
}
|
||||
$.ajax({
|
||||
url : "./jd",
|
||||
type : "POST",
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
async: false,
|
||||
success : function(r) {
|
||||
if (r.result == 'ok') {
|
||||
if(r.data.list.length>0){
|
||||
node.relatedData=r.relatedData;
|
||||
}else{
|
||||
node.relatedData='';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
nodes.push(node);
|
||||
names += $(historyCheckBoxArr[i]).attr("plname");
|
||||
if (i < historyCheckBoxArr.size() - 1) {
|
||||
names += ',';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user