PAL首页左侧筛选增加方案图、工程技术标准
This commit is contained in:
parent
225c27821d
commit
1244759402
Binary file not shown.
Binary file not shown.
@ -160,6 +160,8 @@ public final class PALMethodModel {
|
||||
case "control.risk": name = "风险控制图";break;
|
||||
case "control.kpi": name = "末级流程绩效";break;
|
||||
case "control.ma": name = "L1-L3流程绩效指标";break;
|
||||
case "process.scheme": name = "方案图";break;
|
||||
case "engineering.standard": name = "工程技术标准";break;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
@ -14,10 +14,14 @@ import com.actionsoft.apps.coe.pal.pal.repository.web.CoeProcessLevelWeb;
|
||||
import com.actionsoft.apps.coe.pal.pal.ws.web.VersionUtil;
|
||||
import com.actionsoft.apps.coe.pal.util.BpmOrgUtil;
|
||||
import com.actionsoft.apps.coe.pal.util.HighSecurityUtil;
|
||||
import com.actionsoft.bpms.commons.database.RowMap;
|
||||
import com.actionsoft.bpms.commons.login.constant.LoginConst;
|
||||
import com.actionsoft.bpms.commons.mvc.view.ResponseObject;
|
||||
import com.actionsoft.bpms.org.model.DepartmentModel;
|
||||
import com.actionsoft.bpms.org.model.UserModel;
|
||||
import com.actionsoft.bpms.server.DispatcherRequest;
|
||||
import com.actionsoft.bpms.server.SSOUtil;
|
||||
import com.actionsoft.bpms.server.UserContext;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.bpms.util.UtilString;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager;
|
||||
@ -29,7 +33,8 @@ import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
public class RepositoryTreeUtil {
|
||||
|
||||
|
||||
|
||||
public static JSONArray list2tree(List<PALRepositoryModel> repositoryList, String wsId, String method) {
|
||||
JSONArray jsonArray = list2tree(repositoryList, wsId, method, true, false, null);
|
||||
return jsonArray;
|
||||
@ -257,6 +262,28 @@ public class RepositoryTreeUtil {
|
||||
}
|
||||
palObject.put("dutyUser", palModel.getDutyUser());
|
||||
palObject.put("dutyUserName", "");
|
||||
|
||||
//相关/支持文件
|
||||
|
||||
JSONArray jsonArray1=new JSONArray();
|
||||
String relatedName="";
|
||||
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+palModel.getId()+"' and ATTRID='related_support_files'");
|
||||
Map map=new HashMap();
|
||||
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"));
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword(pModel.getCreateUser(), 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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
palObject.put("relatedData", jsonArray1);
|
||||
|
||||
if (!UtilString.isEmpty(palModel.getDutyUser())) {
|
||||
UserModel model = SDK.getORGAPI().getUser(palModel.getDutyUser());
|
||||
if (model != null) palObject.put("dutyUserName", model.getUserName());
|
||||
|
||||
@ -13033,7 +13033,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
JSONArray methodIds = new JSONArray();
|
||||
List<PALMethodModel> process = PALMethodCache.getPALMethodModelListByMethod("process");
|
||||
for (PALMethodModel methodModel : process) {
|
||||
if ("control.policy".equals(methodModel.getId()) || "data.form".equals(methodModel.getId()) || "process.epc".equals(methodModel.getId()) || "process.bpmn2".equals(methodModel.getId()) || "process.flowchart".equals(methodModel.getId()) || "process.evc".equals(methodModel.getId())) {
|
||||
if ("control.policy".equals(methodModel.getId()) || "data.form".equals(methodModel.getId()) || "process.epc".equals(methodModel.getId()) || "process.bpmn2".equals(methodModel.getId()) || "process.flowchart".equals(methodModel.getId()) || "process.evc".equals(methodModel.getId()) ||"process.scheme".equals(methodModel.getId()) || "engineering.standard".equals(methodModel.getId())) {
|
||||
JSONObject methodId = new JSONObject();
|
||||
methodId.put("methodId", methodModel.getId());
|
||||
methodId.put("name", methodModel.getMethodName());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user