|
发表于 2019-11-8 15:23:56
|
显示全部楼层
1.修改/BIZ/system/logic/code/dsrc/ProcessProcedure.java中下面的两个方法,修改后需要重启服务- public static Map<String, String> queryTaskData(String task) {
- shardTask(task, null, null);
- Map<String, String> result = getTaskData(task, true);
- String[] datas = new String[]{"sData1", "sData2", "sData3", "sData4","sStatusID"};
- for (String data : datas){
- if (!result.containsKey(data)){
- result.put(data, "");
- }
- }
- return result;
- }
- private static Map<String, String> getTaskData(String task, boolean includeParent) {
- Map<String, String> result = new HashMap<String, String>();
- if (Utils.isEmptyString(task)) {
- return result;
- }
- String query = "select task.sParent, task.sData1, task.sData2, task.sData3, task.sData4 ,task.sStatusID from SA_Task task where task=:task";
- HashMap<String, Object> params = new HashMap<String, Object>();
- params.put("task", task);
- Table table = KSQL.select(query, params, ProcessUtils.CORE_MODEL, null);
- String parent = null;
- for (Iterator<Row> it = table.iterator(); it.hasNext();) {
- Row r = it.next();
- result.put("sData1", r.getString("sData1"));
- result.put("sData2", r.getString("sData2"));
- result.put("sData3", r.getString("sData3"));
- result.put("sData4", r.getString("sData4"));
- if(!result.containsKey("sStatusID")){
- result.put("sStatusID", r.getString("sStatusID"));
- }
- parent = r.getString("sParent");
- break;
- }
- if (includeParent && Utils.isNotEmptyString(parent)) {
- Map<String, String> pr = getTaskData(parent, true);
- for (String key : pr.keySet()){
- String value = pr.get(key);
- setData(result, key, value);
- }
- }
- return result;
- }
复制代码
2.修改/UI2/system/components/justep/model/model.js中,修改系统的js文件参考http://docs.wex5.com/bex5-ui-question-list-10013/
- <blockquote> _fireEvent: function(name, event){
复制代码
|
|