47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/IncludeBegin.jsp"%>
|
|
<%
|
|
String PG_TITLE = null;
|
|
String PG_CONTENT_TITLE = null;
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
|
String PG_LEFT_WIDTH = "380";//默认的treeview宽度
|
|
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "显示模板(DW)语言配置", "right");
|
|
String sTempId = null;
|
|
|
|
@SuppressWarnings("unchecked")
|
|
List<BizObject> bos = JBOFactory.createBizObjectQuery("jbo.awe.DATAOBJECT_CATALOG", "select O.DoNo, O.DoName, C.ItemNo, C.ItemName, C.SortNo from O left join jbo.sys.CODE_LIBRARY C on C.ItemNo = O.DoType and C.CodeNo = 'DOType' order by C.SortNo, O.DoType, O.DoName").getResultList(false);
|
|
String sOldItemNo = null, sCodeId = null;
|
|
for(BizObject bo : bos){
|
|
String sItemNo = bo.getAttribute("ItemNo").getString();
|
|
String parentId;
|
|
if(!StringX.isSpace(sItemNo)){
|
|
if(!sItemNo.equals(sOldItemNo)){
|
|
sCodeId = tviTemp.insertFolder("root", bo.getAttribute("ItemName").getString(), "", 0);
|
|
sOldItemNo = sItemNo;
|
|
}
|
|
parentId = sCodeId;
|
|
}else{
|
|
parentId = sTempId = "xxxxx";
|
|
}
|
|
tviTemp.insertPage(parentId, bo.getAttribute("DoName").getString()+"("+bo.getAttribute("DoNo").getString()+")", bo.getAttribute("DoNo").getString(), "", 0);
|
|
}
|
|
if(sTempId != null) tviTemp.insertFolder(sTempId, "root", "不明确分类", "", "", 0);
|
|
%>
|
|
<%@include file="/Resources/CodeParts/View04.jsp"%>
|
|
<script type="text/javascript">
|
|
function TreeViewOnClick(){
|
|
var node = getCurTVItem();
|
|
if(!node.value) return false;
|
|
AsControl.OpenView("/AppConfig/LanguageManage/Language4DWList.jsp", "DoNo="+node.value, "right");
|
|
}
|
|
|
|
function initTreeView(){
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
expandNode('root');
|
|
click_change(0, true);
|
|
}
|
|
|
|
initTreeView();
|
|
</script>
|
|
<%@ include file="/IncludeEnd.jsp"%> |