65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ page import="com.amarsoft.app.base.util.*"%>
|
|
<%@ page import="com.amarsoft.app.base.businessobject.*"%>
|
|
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
|
|
|
|
|
|
|
|
|
|
|
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Main00;Describe=注释区;]~*/%>
|
|
<%
|
|
/*
|
|
Author: --wlu 2009-2-17
|
|
Tester:
|
|
Content: --核心科目管理
|
|
Input Param:
|
|
Output param:
|
|
|
|
History Log:
|
|
*/
|
|
%>
|
|
<%/*~END~*/%>
|
|
|
|
|
|
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Main01;Describe=定义页面属性;]~*/%>
|
|
<%
|
|
String PG_TITLE = "科目管理"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
String PG_CONTENT_TITLE = " 核心科目管理 "; //默认的内容区标题
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
|
String PG_LEFT_WIDTH = "200";//默认的treeview宽度,不显示树图
|
|
|
|
//获得页面参数
|
|
String xmlFile = ARE.replaceARETags(CurPage.getParameter("XMLFile"));
|
|
String xmlTags = ARE.replaceARETags(CurPage.getParameter("XMLTags"));
|
|
String keys = ARE.replaceARETags(CurPage.getParameter("Keys"));
|
|
|
|
//定义Treeview
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "科目管理","right");
|
|
|
|
List<BusinessObject> list = XMLHelper.getBusinessObjectList(xmlFile, xmlTags, keys);
|
|
|
|
//定义树图结构
|
|
int i = 0;
|
|
for(BusinessObject l:list)
|
|
{
|
|
tviTemp.insertPage("root",l.getString("Name"),"edit('"+l.getString("ID")+"')",i++);
|
|
}
|
|
|
|
%>
|
|
<%@ include file="/Frame/resources/include/include_main.jspf"%>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
function edit(id){
|
|
OpenComp("SubjectList","/Common/Configurator/SubjectPolicy/SubjectList.jsp","ComponentName=科目管理&XMLFile=<%=xmlFile%>&XMLTags=<%=xmlTags%>||id='"+id+"'//AccountCodes//AccountCode&Keys=id","right");
|
|
}
|
|
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
selectItem(1);
|
|
</script>
|
|
|
|
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |