apzl_leasing/WebContent/Accounting/Config/AccountCodeConfigMain.jsp
2018-06-03 22:26:41 +08:00

59 lines
2.0 KiB
Plaintext
Raw 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 = "200";//默认的treeview宽度
//定义Treeview
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "业务组件管理查询","right");
//定义树图结构,去掉跟踪的不良资产和催收函快速查询
String sSqlTreeView = " from O where CodeNo= 'AccountBookType' and IsInUse = '1' ";
tviTemp.init(JBOFactory.getBizObjectManager("jbo.sys.CODE_LIBRARY"), "SortNo","ItemName","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(){
var sCurItemID = getCurTVItem().id;
var sCurItemName = getCurTVItem().name;
var sCurItemDescribe = getCurTVItem().value;
if(typeof(sCurItemDescribe) == "undefined" || sCurItemDescribe.length == 0)
return;
sCurItemDescribe = sCurItemDescribe.split("@");
sCurItemDescribe1=sCurItemDescribe[0]; //代码表描述字段中用@分隔的第1个串
sCurItemDescribe2=sCurItemDescribe[1]; //代码表描述字段中用@分隔的第2个串
sCurItemDescribe3=sCurItemDescribe[2]; //代码表描述字段中用@分隔的第3个串根据情况还可以很多。
if(sCurItemDescribe1 != "null" && sCurItemDescribe1 != "root"){
AsControl.OpenView(sCurItemDescribe1,sCurItemDescribe3,"right","");
}
}
/*~[Describe=生成treeview;InputParam=无;OutPutParam=无;]~*/
function startMenu(){
<%=tviTemp.generateHTMLTreeView()%>
}
</script>
<script type="text/javascript">
startMenu();
expandNode('root');
selectItem('010');
</script>
<%/*~END~*/%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>