apzl_leasing/WebContent/Frame/ShowFlowInst.jsp
2018-06-03 22:26:41 +08:00

34 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.amarsoft.are.jbo.JBOTransaction"%>
<%@page import="com.amarsoft.are.jbo.JBOFactory"%>
<%@page import="com.amarsoft.biz.workflow.util.*,java.awt.GraphicsEnvironment"%>
<%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMDAJAX.jsp"%><%
out.clear();
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
response.setContentType("image/jpeg");
if (!GraphicsEnvironment.isHeadless()) {
System.setProperty("java.awt.headless", "true");
}
String sFlowNo = CurPage.getParameter("flowNo");
String sObjectType = CurPage.getParameter("objectType");
String sObjectNo = CurPage.getParameter("objectNo");
JBOTransaction tx = JBOFactory.createJBOTransaction();
ImageCreator creator = new ImageCreator(sFlowNo, sObjectType, sObjectNo, tx,
request.getSession().getServletContext().getRealPath("/Frame/page/resources/images/flow"));
//将图像输出到servlet输出流中。
ServletOutputStream sos = response.getOutputStream();
/*ShowAllConnctions设置为true时 显示所有的节点之间的连接线;
设置为false时 不显示连接到同意、否决、退回补充资料的连接线而是用小图标标记默认为true,显示所有连接线 */
//creator.setShowAllConnctions(true);
creator.run(sos);
//out.println("图片创建成功");
sos.flush();
sos.close();
out.clear();
out = pageContext.pushBody();
tx.commit();
tx=null;
%><%@ include file="/IncludeEndAJAX.jsp"%>