apzl_leasing/WebContent/FrameCase/ControlCaseMain.jsp
2018-06-03 22:26:41 +08:00

55 lines
2.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin.jspf"%><%
/*
页面说明:系统内交互模式示例主页面
*/
String PG_TITLE = "系统内交互模式示例"; // 浏览器窗口标题 <title> PG_TITLE </title>
String PG_CONTENT_TITLE = "&nbsp;&nbsp;系统内交互模式示例&nbsp;&nbsp;"; //默认的内容区标题
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
String PG_LEFT_WIDTH = "250";//默认的treeview宽度
//定义Treeview
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "系统内交互模式","right");
//定义树图结构
String sFolder1=tviTemp.insertFolder("root","页面流控制","",1);
tviTemp.insertPage(sFolder1,"AsControl.OpenPage","/FrameCase/ExampleControl.jsp@ShowText=AsControl.OpenPage","",1);
tviTemp.insertPage(sFolder1,"AsControl.OpenView","/FrameCase/ExampleControl.jsp@ShowText=AsControl.OpenView","",2);
tviTemp.insertPage(sFolder1,"AsControl.PopView","/FrameCase/ExampleControl.jsp@ShowText=AsControl.PopView","",3);
String sFolder2=tviTemp.insertFolder("root","服务器端方法调用","",2);
tviTemp.insertPage(sFolder2,"RunJavaMethod示例", "/FrameCase/ExampleMethod.jsp@Flag=2","",1);
tviTemp.insertPage(sFolder2,"RunJavaMethodSqlca示例", "/FrameCase/ExampleMethod.jsp@Flag=3","",2);
tviTemp.insertPage(sFolder2,"RunJavaMethodTrans示例", "/FrameCase/ExampleMethod.jsp@Flag=4","",3);
tviTemp.insertPage(sFolder2,"JavaMethod示例_事务混用", "/FrameCase/ExampleMethod.jsp@Flag=5","",4);
String sFolder3=tviTemp.insertFolder("root","不推荐使用","",3);
tviTemp.insertPage(sFolder3,"OpenPage示例", "/FrameCase/ExampleControl.jsp@ShowText=OpenPage","",1);
tviTemp.insertPage(sFolder3,"PopPage示例", "/FrameCase/ExampleControl.jsp@ShowText=PopPage","", 2);
tviTemp.insertPage(sFolder3,"RunMethod示例","/FrameCase/ExampleMethod.jsp@Flag=1","",3);
tviTemp.insertPage(sFolder3,"PopPageAjax示例", "/FrameCase/ExampleControl.jsp@Flag=1&ShowText=PopPageAjax","",4);
%><%@ include file="/Frame/resources/include/include_main.jspf"%>
<script type="text/javascript">
<%/*~[Describe=treeview单击选中事件;InputParam=无;OutPutParam=无;]~*/%>
function TreeViewOnClick(){
//如果tviTemp.TriggerClickEvent=true则在单击时触发本函数
var node = getCurTVItem();
if(node.type == "folder") return false;
var sValue = node.value;
if(!sValue) return false;
var sCurItemname = node.name;
setTitle(sCurItemname);
var navigation = sValue.split("@");
if(!navigation[1]) navigation[1] = "";
return AsControl.OpenView(navigation[0], navigation[1], "right");
}
<%/*~[Describe=生成treeview;InputParam=无;OutPutParam=无;]~*/%>
function initTreeView(){
<%=tviTemp.generateHTMLTreeView()%>
expandAll();
selectItemByName("OpenView示例"); //默认打开的(叶子)选项
}
initTreeView();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>