2018-06-03 22:26:41 +08:00

73 lines
2.6 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="/IncludeBegin.jsp"%>
<%
//获得页面参数
String sExampleId = CurPage.getParameter("ObjectNo");
//定义Treeview
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "复杂树图","right");
//定义树图结构
String sJboFrom = "from O where CodeNo='ExampleTree' and IsInUse='1' ";
tviTemp.init(JBOFactory.getBizObjectManager("jbo.sys.CODE_LIBRARY"), "SortNo", "ItemName", "ItemName", "", "", sJboFrom);
//参数从左至右依次为:
//ID字段(必须),Name字段(必须),Value字段,Script字段,Picture字段,From子句(必须),OrderBy子句,Sqlca
CurPage.setAttribute("HideMinButton", "true");
%>
<%@ include file="/Frame/page/jspf/include/jsp_frame_lrud.jspf"%>
<style>
.updown #Border {
border-top-width: 0;
background: #e1e1e1;
}
</style>
<script type="text/javascript">
parent.setTitle("复杂树图", true);
parent.setTitle("详情");
changeLayout(false, ($("body").height()-300)/300);
AsControl.OpenView("/FrameCase/widget/treeview/ExampleImage.jsp", "", Layout.getRegionName("SecondFrame"));
parent.Layout.initRegionName("left", self.name, Layout.getRegionName("FirstFrame"));
parent.Layout.initRegionName("ImageFrame", self.name, Layout.getRegionName("SecondFrame"));
var left = frames[Layout.getRegionName("FirstFrame")];
function openChildComp(sURL,sParameterString){
sParaStringTmp = "";
sLastChar=sParameterString.substring(sParameterString.length-1);
if(sLastChar=="&") sParaStringTmp=sParameterString;
else sParaStringTmp=sParameterString+"&";
/*
* 附加两个参数
* ToInheritObj:是否将对象的权限状态相关变量复制至子组件
* OpenerFunctionName:用于自动注册组件关联REG_FUNCTION_DEF.TargetComp
*/
sParaStringTmp += "ToInheritObj=y&OpenerFunctionName="+getCurTVItem().name;
AsControl.OpenView(sURL,sParaStringTmp,"right");
}
//treeview单击选中事件
function TreeViewOnClick(){
//var sCurItemID = getCurTVItem().id;
var sCurItemname = getCurTVItem().name;
if(sCurItemname=="基本信息"){
openChildComp("/FrameCase/widget/dw/ExampleList.jsp","");
}else if(sCurItemname=="其他信息1"){
openChildComp("/FrameCase/widget/dw/ExampleList.jsp","");
}else if(sCurItemname=="其他信息2"){
openChildComp("/FrameCase/widget/dw/ExampleList.jsp","");
}else if(sCurItemname=="其他的信息"){
openChildComp("/FrameCase/widget/dw/ExampleList.jsp","");
}else if(sCurItemname=="另外的信息"){
openChildComp("/FrameCase/widget/dw/ExampleList.jsp","");
}
parent.setTitle(getCurTVItem().name);
}
function initTreeView(){
_Tree_Show_In_View = true;
<%=tviTemp.generateHTMLTreeView()%>
expandNode('root');
selectItemByName("基本信息");
}
</script>
<%@ include file="/IncludeEnd.jsp"%>