<%@ page import="com.amarsoft.biz.finance.*" %> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMD.jsp"%><% String sScriptText = CurPage.getParameter("ScriptText"); String sModelNo = CurPage.getParameter("ModelNo"); if (sScriptText==null) sScriptText=""; if (sModelNo==null) sModelNo=""; sScriptText = StringFunction.replace(sScriptText,"$[wave]","~"); //定义Treeview OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "公式设置","right"); int i=0; int j=0; String sFolder = ""; String sSql2=""; String sSql="select O.ModelNo,O.ModelName from O,jbo.finasys.REPORT_CATALOG RC2 "+ "where O.ModelClass=RC2.ModelClass and RC2.ModelNo=:ModelNo order by O.ModelNo"; List list = JBOFactory.createBizObjectQuery("jbo.finasys.REPORT_CATALOG", sSql).setParameter("ModelNo",sModelNo).getResultList(false); for(BizObject rc : list){ j=0; String modelName = rc.getAttribute("ModelName").getString(); String modelNo = rc.getAttribute("ModelNo").getString(); String displayName = modelName+"["+modelNo+"]"; sFolder = tviTemp.insertFolder("root",modelName,modelNo,i++); sSql2 = "select distinct FI.ItemNo,FI.ItemName from O,jbo.finasys.FINANCE_ITEM FI "+ "where O.RowSubject=FI.ItemNo and O.ModelNo=:ModelNo order by FI.ItemNo"; List list2 = JBOFactory.createBizObjectQuery("jbo.finasys.REPORT_MODEL", sSql2).setParameter("ModelNo",modelNo).getResultList(false); for(BizObject fi : list2){ String itemDisplayName = fi.getAttribute("ItemName").getString()+"["+fi.getAttribute("ItemNo").getString()+"]"; tviTemp.insertPage(sFolder,itemDisplayName,"javascript:parent.mySelection(\""+displayName+"\",\""+itemDisplayName+"\")",j++); } } %>
<%=new Button("确定", "确定", "translateScriptText()", "", "").getHtmlText()%> <%=new Button("取消", "取消", "cancel()", "", "").getHtmlText()%> 会计月份:   可选表项: 左栏 右栏
 
<%@ include file="/IncludeEnd.jsp"%>