发布移动端添加获取wsid
This commit is contained in:
parent
b778b4c989
commit
e438d147b8
Binary file not shown.
@ -503,25 +503,29 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
|||||||
* 发布明细如果关联角色、绩效图,不显示在发布界面,在流程结束后同步发布
|
* 发布明细如果关联角色、绩效图,不显示在发布界面,在流程结束后同步发布
|
||||||
*/
|
*/
|
||||||
public void updateRoleAndPerformance(String publishFileId,Timestamp publishDate,String type){
|
public void updateRoleAndPerformance(String publishFileId,Timestamp publishDate,String type){
|
||||||
List roleList=new ArrayList();
|
try {
|
||||||
roleList.add(0,"org.role");
|
List roleList = new ArrayList();
|
||||||
roleList.add(1,publishFileId);
|
roleList.add(0, "org.role");
|
||||||
PALRepository repositoryDao = new PALRepository();
|
roleList.add(1, publishFileId);
|
||||||
RowMap rolerowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?",roleList.toString());
|
PALRepository repositoryDao = new PALRepository();
|
||||||
|
RowMap rolerowMap = DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?", roleList.toString());
|
||||||
|
|
||||||
if(rolerowMap!=null){
|
if (rolerowMap != null) {
|
||||||
//修改流程文件的发布属性
|
//修改流程文件的发布属性
|
||||||
repositoryDao.updatePublishStatusAndDate(type, rolerowMap.getString("ID"), null, publishDate);
|
repositoryDao.updatePublishStatusAndDate(type, rolerowMap.getString("ID"), null, publishDate);
|
||||||
}
|
}
|
||||||
List performanceList=new ArrayList();
|
List performanceList = new ArrayList();
|
||||||
performanceList.add(0,"control.kpi");
|
performanceList.add(0, "control.kpi");
|
||||||
performanceList.add(1,publishFileId);
|
performanceList.add(1, publishFileId);
|
||||||
|
|
||||||
RowMap performrowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?",performanceList.toString());
|
RowMap performrowMap = DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?", performanceList.toString());
|
||||||
|
|
||||||
if(performrowMap!=null){
|
if (performrowMap != null) {
|
||||||
//修改流程文件的发布属性
|
//修改流程文件的发布属性
|
||||||
repositoryDao.updatePublishStatusAndDate(type, performrowMap.getString("ID"), null, publishDate);
|
repositoryDao.updatePublishStatusAndDate(type, performrowMap.getString("ID"), null, publishDate);
|
||||||
|
}
|
||||||
|
} catch (AWSDataAccessException e) {
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.actionsoft.apps.coe.pal.publisher.event;
|
package com.actionsoft.apps.coe.pal.publisher.event;
|
||||||
|
|
||||||
|
import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishHistoryModel;
|
||||||
import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishListHistoryModel;
|
import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishListHistoryModel;
|
||||||
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache;
|
||||||
import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepository;
|
import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepository;
|
||||||
@ -38,6 +39,7 @@ public class PublishProcessAfterCompleteEvent extends ExecuteListener implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(ProcessExecutionContext param) throws Exception {
|
public void execute(ProcessExecutionContext param) throws Exception {
|
||||||
|
PublishHistoryModel model = new PublishHistoryModel();
|
||||||
String processInstId = param.getProcessInstance().getId();
|
String processInstId = param.getProcessInstance().getId();
|
||||||
BO bo = SDK.getBOAPI().query(PublisherConstant.BOTABLENAME).detailByBindId(processInstId);
|
BO bo = SDK.getBOAPI().query(PublisherConstant.BOTABLENAME).detailByBindId(processInstId);
|
||||||
List<BO> bolistN = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(processInstId).list();
|
List<BO> bolistN = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(processInstId).list();
|
||||||
@ -55,6 +57,13 @@ public class PublishProcessAfterCompleteEvent extends ExecuteListener implements
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (bolistC != null) {
|
||||||
|
for (BO boC : bolistC) {
|
||||||
|
//修改流程文件的发布属性
|
||||||
|
repositoryDao.updatePublishStatusAndDate("C", boC.get("CHANGEDFILEIDNEW").toString(), boC.get("CHANGEFILEID").toString(), model.getPublishDate());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -4,24 +4,14 @@ var newTemp;
|
|||||||
var changeTemp;
|
var changeTemp;
|
||||||
var stopTemp;
|
var stopTemp;
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取地址参数
|
|
||||||
* @param name
|
|
||||||
* @returns {*}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
function GetQueryString(name) {
|
|
||||||
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
|
||||||
var r = window.location.search.substr(1).match(reg);
|
|
||||||
if(r!=null)return unescape(r[2]); return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始移动端明细数据
|
* 初始移动端明细数据
|
||||||
*/
|
*/
|
||||||
function initMobileData() {
|
function initMobileData() {
|
||||||
|
|
||||||
|
getWsId();
|
||||||
/**
|
/**
|
||||||
* 获取访问地址得到参数判断
|
* 获取访问地址得到参数判断
|
||||||
* @type {*}
|
* @type {*}
|
||||||
@ -37,6 +27,18 @@ function initMobileData() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取地址参数
|
||||||
|
* @param name
|
||||||
|
* @returns {*}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
function GetQueryString(name) {
|
||||||
|
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
||||||
|
var r = window.location.search.substr(1).match(reg);
|
||||||
|
if(r!=null)return unescape(r[2]); return null;
|
||||||
|
}
|
||||||
|
|
||||||
$("table[id^='AWS-MobileGrid-Zone']").empty();
|
$("table[id^='AWS-MobileGrid-Zone']").empty();
|
||||||
|
|
||||||
$("table[id^='AWS-MobileGrid-Zone']").html('<div id="contentDiv1" style="display: none;" border="0"></div><div id="contentDiv2" style="display: none;" border="0"></div><div id="contentDiv3" style="display: none;" border="0"></div>');
|
$("table[id^='AWS-MobileGrid-Zone']").html('<div id="contentDiv1" style="display: none;" border="0"></div><div id="contentDiv2" style="display: none;" border="0"></div><div id="contentDiv3" style="display: none;" border="0"></div>');
|
||||||
@ -106,6 +108,28 @@ function initMobileData() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//获取wsid
|
||||||
|
function getWsId() {
|
||||||
|
var param = {
|
||||||
|
sid : $("#sid").val(),
|
||||||
|
cmd : "com.actionsoft.apps.coe.pal.publisher_publish_getWsId"
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
url : "./jd",
|
||||||
|
type : "POST",
|
||||||
|
dataType : "JSON",
|
||||||
|
data : param,
|
||||||
|
async: false,
|
||||||
|
success : function(r) {
|
||||||
|
if (r.result == 'ok') {
|
||||||
|
var wsId=$("#WSID").val();
|
||||||
|
if(wsId==""){
|
||||||
|
$("#WSID").val(r.data.wsId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 主体内容显示与隐藏
|
// 主体内容显示与隐藏
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user