%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMD.jsp"%><% String sScriptText = CurPage.getParameter("ScriptText"); if (sScriptText==null) sScriptText=""; sScriptText = StringFunction.replace(sScriptText,"$[wave]","~"); //定义Treeview OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "未命名","right"); int i=0; int j=0; String sFolder = ""; String sSql="select ClassName from O "; String sSql2 = "select distinct MethodName,ReturnType,MethodArgs,"+ "MethodDescribe,MethodCode from O where ClassName=:ClassName order by MethodName"; List l1 = JBOFactory.createBizObjectQuery("jbo.sys.CLASS_CATALOG", sSql).getResultList(false); for(BizObject cc : l1){ j=0; String className = cc.getAttribute("ClassName").getString(); sFolder = tviTemp.insertFolder("root",className,"",i++); List l2 = JBOFactory.createBizObjectQuery("jbo.sys.CLASS_METHOD", sSql2).setParameter("ClassName",className).getResultList(false); for(BizObject cm : l2){ String methodName = cm.getAttribute("MethodName").getString(); String method = ""+cm.getAttribute("ReturnType").getString()+" !'"+className+"."+methodName+"("+ cm.getAttribute("MethodArgs").getString()+")"; String methodArgs=cm.getAttribute("MethodArgs").getString(); String[] args=methodArgs.split(","); String arg=""; for(int y=0;y0){ arg=arg.substring(0,arg.length()-1); } String methodDescribe = cm.getAttribute("MethodDescribe").getString(); String methodCode = cm.getAttribute("MethodCode").getString(); tviTemp.insertPage(sFolder,methodName,"javascript:parent.mySelection(\""+className+"\",\""+methodName+"\",\""+method+"\",\""+methodDescribe+"\",\""+methodCode+"\",\""+arg+"\")",j++); } } %> <%=new Button("确定", "确定", "translateScriptText()", "", "").getHtmlText()%> <%=new Button("取消", "取消", "cancel()", "", "").getHtmlText()%> <%=new Button("显示方法树", "显示方法树", "showTree()", "", "").getHtmlText()%> Script 正文 <%@ include file="/IncludeEnd.jsp"%>