%@ 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, "预定义数据模型语言配置", "right");
String sTempId = null;
@SuppressWarnings("unchecked")
List bos = JBOFactory.createBizObjectQuery("jbo.ui.system.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"%>
<%@ include file="/IncludeEnd.jsp"%>