<%@page import="com.amarsoft.biz.formatdoc.model.*"%> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBegin.jsp"%><% String sDocID = CurPage.getParameter("DocID"); //调查报告文档类别 String sObjectNo = CurPage.getParameter("ObjectNo"); //业务流水号 String sObjectType = CurPage.getParameter("ObjectType"); //对象类型 String sMethod = CurPage.getParameter("Method"); if(sDocID==null) sDocID=""; if(sMethod==null) sMethod=""; String PG_TITLE = "格式化报告"; // 浏览器窗口标题 PG_TITLE String PG_CONTENT_TITLE = "  格式化报告信息  "; //默认的内容区标题 String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字 String PG_LEFT_WIDTH = "200";//默认的treeview宽度 //定义Treeview OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "格式化报告","right"); @SuppressWarnings("unchecked") List bos = JBOFactory.getFactory().getManager("jbo.app.FORMATDOC_DATA").createQuery( "select O.TreeNo, O.DirName, O.SerialNo from O where O.RelativeSerialNo in "+ "(select R.SerialNo from jbo.app.FORMATDOC_RECORD R where R.ObjectType= :ObjectType and R.ObjectNo = :ObjectNo and R.DocID = :DocID)" ).setParameter("ObjectType", sObjectType).setParameter("ObjectNo", sObjectNo).setParameter("DocID", sDocID).getResultList(false); tviTemp.init(bos, "TreeNo", "DirName", "SerialNo", "", ""); /* // 有参数不建议使用 // JBO管理器, JboFrom/JboWhere/空, ID字段(必须), Name字段(必须), Value字段, Script字段, Picture字段 String jboFrom = "O.RelativeSerialNo in (select R.SerialNo from jbo.app.FORMATDOC_RECORD R where R.ObjectType= '"+sObjectType+"' and R.ObjectNo = '"+sObjectNo+"' and R.DocID = '"+sDocID+"')"; // String jboFrom = "from O where O.RelativeSerialNo in (select R.SerialNo from jbo.app.FORMATDOC_RECORD R where R.ObjectType= '"+sObjectType+"' and R.ObjectNo = '"+sObjectNo+"' and R.DocID = '"+sDocID+"')"; tviTemp.init(JBOFactory.getBizObjectManager("jbo.app.FORMATDOC_DATA"), "TreeNo", "DirName", "SerialNo", "", "", jboFrom); */ %><%@ include file="/Resources/CodeParts/View04.jsp"%> <%@ include file="/IncludeEnd.jsp"%>