<%@page import="com.amarsoft.app.base.config.impl.BusinessComponentConfig"%> <%@page import="com.amarsoft.app.base.businessobject.*"%> <%@page import="com.tenwa.comm.util.jboutil.DataOperatorUtil"%> <%@ page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBeginMD.jsp"%><% String readOnlyFlag = CurPage.getParameter("ReadOnly"); String multiFlag = CurPage.getParameter("MultiFlag"); String selectedValues = CurPage.getParameter("SelectedValues"); if(selectedValues==null)selectedValues=""; //定义Treeview HTMLTreeView tviTemp = new HTMLTreeView(SqlcaRepository,CurComp,sServletURL,"选择","right"); tviTemp.TriggerClickEvent=true; //是否自动触发选中事件 if("true".equalsIgnoreCase(multiFlag)) tviTemp.MultiSelect = true;//设置树图为多选 String idcol="ID"; String namecol="Name"; String sortNocol="SortNo"; List list = FtpDownloadFile.loadBusinessObjects_SQL(); if(list!=null){ int i=0; for(BusinessObject bo:list){ String sortNo=bo.getString(sortNocol); String id = bo.getString(idcol); String name = bo.getString(namecol); if(sortNo==null||sortNo.length()==0) sortNo=id; tviTemp.insertPage(sortNo,"root", name , id, "", i++); } } tviTemp.packUpItems(); %> 请选择所需信息                                                                                                            
<%if(!"1".equals(readOnlyFlag)){out.println(new Button("确认", "", "returnSelection()").getHtmlText());}%> <%=new Button("取消", "", "doCancel()").getHtmlText()%>
<%@ include file="/IncludeEnd.jsp"%>