37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
|
|
<%
|
|
/*
|
|
Content: 基础配置
|
|
*/
|
|
String PG_TITLE = "基础配置"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
String PG_CONTENT_TITLE = " 基础配置 "; //默认的内容区标题
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
|
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
|
|
|
|
//定义Treeview
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "配置器","right");
|
|
|
|
//定义树图结构
|
|
String sSqlTreeView = "from O where CodeNo='ConfiguratorTree' and IsInUse='1'";
|
|
tviTemp.init(JBOFactory.getBizObjectManager("jbo.sys.CODE_LIBRARY"), "SortNo","ItemName","ItemNo","ItemDescribe","",sSqlTreeView,"Order By SortNo");
|
|
//参数从左至右依次为: ID字段,Name字段,Value字段,Script字段,Picture字段,From子句,OrderBy子句,Sqlca
|
|
%>
|
|
<%@ include file="/Frame/resources/include/include_main.jspf"%>
|
|
<script type="text/javascript">
|
|
/*~[Describe=treeview单击选中事件;InputParam=无;OutPutParam=无;]~*/
|
|
function TreeViewOnClick(){
|
|
setTitle(getCurTVItem().name);
|
|
}
|
|
|
|
/*~[Describe=生成treeview;InputParam=无;OutPutParam=无;]~*/
|
|
function startMenu(){
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
}
|
|
|
|
startMenu();
|
|
expandNode('root');
|
|
expandAll();
|
|
selectItem("00");
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |