20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
<%@page import="com.amarsoft.are.jbo.*"%><%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
|
/*
|
|
Content: 选择需要调用的JSP
|
|
*/
|
|
String sSerialNo = CurPage.getParameter("SerialNo"); //报告流水号
|
|
String sObjectNo = CurPage.getParameter("ObjectNo"); //业务流水号
|
|
String sObjectType = CurPage.getParameter("ObjectType"); //对象类型
|
|
String sSql = "",sJspName="",sDocID="";
|
|
sSql = " select O.JspFileName,A.DocID " +
|
|
" from jbo.formatdoc.FORMATDOC_DATA A, O "+
|
|
" where A.SerialNo = :SerialNo and A.ObjectNo = :ObjectNo and A.ObjectType = :ObjectType"+
|
|
" and O.DocID = A.DocID and O.DirID = A.DirID ";
|
|
BizObject bo = JBOFactory.createBizObjectQuery("jbo.formatdoc.FORMATDOC_DEF", sSql).setParameter("SerialNo", sSerialNo)
|
|
.setParameter("ObjectNo", sObjectNo).setParameter("ObjectType", sObjectType).getSingleResult(false);
|
|
if(bo!=null){
|
|
sJspName = bo.getAttribute("JspFileName").getString();
|
|
sDocID = bo.getAttribute("DocID").getString();
|
|
}
|
|
out.println(sJspName+"?DocID="+sDocID+"&");
|
|
%><%@ include file="/IncludeEndAJAX.jsp"%> |