发布无用代码删除
This commit is contained in:
parent
9b3cb619dd
commit
10a73a8441
@ -1,50 +0,0 @@
|
||||
package com.actionsoft.apps.coe.pal.publisher.read;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import org.jdesktop.application.TaskListener;
|
||||
|
||||
import com.actionsoft.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext;
|
||||
import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.actionsoft.sdk.local.api.LogAPI;
|
||||
import com.actionsoft.sdk.local.api.Logger;
|
||||
|
||||
public class ProcessEndAfterEvent extends ExecuteListener
|
||||
{
|
||||
private Logger logger = LogAPI.getLogger(TaskListener.class);
|
||||
|
||||
public String getVersion()
|
||||
{
|
||||
return "0.0.1";
|
||||
}
|
||||
|
||||
public String getProvider()
|
||||
{
|
||||
return "ActionSoft";
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return "流程结束后发送代阅任务";
|
||||
}
|
||||
|
||||
public void execute(ProcessExecutionContext processExecutionContext) throws Exception
|
||||
{
|
||||
Connection open = DBSql.open();
|
||||
String processInstId = processExecutionContext.getProcessInstance().getId();
|
||||
String startTaskInstId = processExecutionContext.getProcessInstance().getStartTaskInstId();
|
||||
BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processInstId);
|
||||
if (byProcess != null) {
|
||||
String send_scop = byProcess.getString("SEND_SCOP");
|
||||
String send_scope_org = byProcess.getString("SEND_SCOPE_ORG");
|
||||
String send_scop_post = byProcess.getString("SEND_SCOPE_POST");
|
||||
String send_level = byProcess.getString("SEND_SCOPE_LEVEL");
|
||||
"1".equals(send_scop);
|
||||
}
|
||||
|
||||
System.err.println("");
|
||||
}
|
||||
}
|
||||
@ -1,66 +0,0 @@
|
||||
package com.actionsoft.apps.coe.pal.publisher.read;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.actionsoft.bpms.bo.engine.BO;
|
||||
import com.actionsoft.bpms.commons.database.RowMap;
|
||||
import com.actionsoft.bpms.commons.htmlframework.HtmlPageTemplate;
|
||||
import com.actionsoft.bpms.server.RequestParams;
|
||||
import com.actionsoft.bpms.server.UserContext;
|
||||
import com.actionsoft.bpms.server.bind.annotation.Controller;
|
||||
import com.actionsoft.bpms.server.bind.annotation.Mapping;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.actionsoft.sdk.local.api.BOQueryAPI;
|
||||
|
||||
@Controller
|
||||
public class TaskController
|
||||
{
|
||||
@Mapping("com.yili_process_page_bak")
|
||||
public String processTest(UserContext me, RequestParams params)
|
||||
throws IOException
|
||||
{
|
||||
String sid = me.getSessionId();
|
||||
String processInstId = params.get("processInstId");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
LinkedHashMap<String,Object> map = new LinkedHashMap();
|
||||
map.put("sid", sid);
|
||||
String html = "previewProcess.html";
|
||||
List<BO> list = ((BOQueryAPI)SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", processInstId)).list();
|
||||
int num = 1;
|
||||
Connection conn = DBSql.open();
|
||||
for (BO bo : list) {
|
||||
String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME ='" + bo.get("PUBLISHFILENAME") + "'";
|
||||
List<RowMap> Row_maps_is_not_publish = DBSql.getMaps(conn, is_not_publish_sql, new Object[0]);
|
||||
|
||||
sb.append("<li id=\"openForm" + num + "\"");
|
||||
sb.append(" procname=\"Test\"");
|
||||
|
||||
sb.append(">");
|
||||
sb.append("<span class=");
|
||||
sb.append("\"procimg\"");
|
||||
sb.append("style=");
|
||||
sb.append("\"width: 2000px; background: url("../commons/img/model/biz/work.jpeg") no-repeat;\">");
|
||||
sb.append("</span>");
|
||||
sb.append("<a href=" + SDK.getPortalAPI().getPortalUrl() + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + ((RowMap)Row_maps_is_not_publish.get(0)).getString("id") + "&sid=" + sid + " target=\"_blank\" style=");
|
||||
sb.append("\"width: 670px;\">");
|
||||
sb.append(bo.get("PUBLISHFILENAME") + " ");
|
||||
sb.append("<span style=");
|
||||
sb.append("\"display: inline; color: rgb(153, 153, 153); font-size: 10px; width: 670px;\">");
|
||||
BigDecimal big = new BigDecimal(((RowMap)Row_maps_is_not_publish.get(0)).getString("PLVER"));
|
||||
big = big.setScale(2, 4);
|
||||
sb.append("(v" + big + " " + ")</span>");
|
||||
sb.append("</a>");
|
||||
sb.append("</li>");
|
||||
num++;
|
||||
}
|
||||
map.put("processList", sb);
|
||||
map.put("processNum", Integer.valueOf(num - 1));
|
||||
DBSql.close(conn);
|
||||
return HtmlPageTemplate.merge("com.actionsoft.apps.coe.pal", html, map);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user