<%@ page contentType="text/html; charset=GBK"%> <%@page import="com.amarsoft.app.edoc.EDocument"%> <%@ include file="/IncludeBegin.jsp"%> <% String sEDocNo = DataConvert.toString((String)CurComp.getParameter("EDocNo")); BizObject bo = JBOFactory.createBizObjectQuery("jbo.edoc.EDOC_DEFINE", "select ContentTypeFmt,FullPathFmt,FullPathDef from O where EDocNo='"+sEDocNo+"'").getSingleResult(false); String sContentType = bo==null?"":bo.getAttribute("ContentTypeFmt").getString(); String sFullPathFmt = bo==null?"":bo.getAttribute("FullPathFmt").getString(); String sFullPathDef = bo==null?"":bo.getAttribute("FullPathDef").getString(); int index = sFullPathFmt.indexOf('.'); String sOutName = sFullPathFmt.substring(0,index)+"OUT"+sFullPathFmt.substring(index); System.out.println("OutName:"+sOutName); EDocument edoc = new EDocument(sFullPathFmt,sFullPathDef); edoc.saveAsDefault(sOutName); %>
<%@ include file="/IncludeEnd.jsp"%>