47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
<%@page import="java.net.URLDecoder"%>
|
|
<%@ 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 = " "+PG_TITLE+" "; //默认的内容区标题
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
|
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
|
|
|
|
//定义Treeview
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "灵活统计查询","right");
|
|
|
|
//定义树图结构
|
|
String sSqlTreeView = "" ;
|
|
sSqlTreeView = "from O where CodeNo= 'XQueryListnew' and IsInUse='1' ";
|
|
tviTemp.init(JBOFactory.getBizObjectManager("jbo.sys.CODE_LIBRARY"), "SortNo","ItemName","ItemDescribe","","",sSqlTreeView);
|
|
//参数从左至右依次为:
|
|
//ID字段(必须),Name字段(必须),Value字段,Script字段,Picture字段,From子句(必须),OrderBy子句,Sqlca
|
|
%>
|
|
<%@ include file="/Frame/resources/include/include_main.jspf"%>
|
|
<script type="text/javascript">
|
|
/*~[Describe=treeview单击选中事件;]~*/
|
|
function TreeViewOnClick(){
|
|
var sCurItemDescribe = getCurTVItem().value;
|
|
sCurItemDescribe = sCurItemDescribe.split("@");
|
|
sCurItemDescribe1=sCurItemDescribe[0]; //代码表描述字段中用@分隔的第1个串
|
|
sCurItemDescribe2=sCurItemDescribe[1]; //代码表描述字段中用@分隔的第2个串
|
|
sCurItemDescribe3=sCurItemDescribe[2]; //代码表描述字段中用@分隔的第3个串
|
|
|
|
if(sCurItemDescribe1 != "null" && sCurItemDescribe1 != "root"&&sCurItemDescribe1 != ""){
|
|
OpenComp(sCurItemDescribe2,sCurItemDescribe1,sCurItemDescribe3,"right");
|
|
setTitle(getCurTVItem().name);
|
|
}
|
|
}
|
|
|
|
/*~[Describe=生成treeview;]~*/
|
|
function startMenu() {
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
expandAll();
|
|
}
|
|
|
|
startMenu();
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |