📄 summary.vm
字号:
#### Copyright(C) 2002 Javanovic Software (http://www.javanovic.com)#### This library is free software; you can redistribute it and/or## modify it under the terms of the GNU Lesser General Public## License as published by the Free Software Foundation; either## version 2.1 of the License, or (at your option) any later version.#### This library is distributed in the hope that it will be useful,## but WITHOUT ANY WARRANTY; without even the implied warranty of## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU## Lesser General Public License for more details.#### You should have received a copy of the GNU Lesser General Public## License along with this library; if not, write to the Free Software## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA##<doc><header><![CDATA[<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>]]></header><content> <header> <![CDATA[ <bean:message key="label.list"/> $bean.Name]]> </header> <table> <header>#foreach($field in $util.getAllColumnsPKFirst($bean)) <column> <![CDATA[<bean:message key="${bean.Name}.${field.Name}"/>]]> </column>#end <column/> </header><![CDATA[ <bean:write name="pagerHeader" scope="request" filter="false"/><%! String key;%> <logic:iterate id="$util.firstLower($bean.Name)" name="${bean.Name.toUpperCase()}S" type="${build.Package}.model.${bean.Name}">]]><row>#foreach($field in $util.getAllColumnsPKFirst($bean))#if($util.isNumberType($field.Type) && !$field.Value)#set($alignment="right")#else#set($alignment="left")#end <column><![CDATA[#if($field.Type == "password") ******#elseif($field.Format) <bean:write name="$util.firstLower($bean.Name)" formatKey="${bean.Name}.${field.Name}.format" property="$field.Name" scope="page"/>#elseif($field.Value)#if($field.Value.GlobalValueRef) <% key = "${field.Value.GlobalValueRef}."+${util.firstLower(${bean.Name})}.get${util.firstUpper($field.Name)}();%> <bean:message key="<%=key%>"/>#else <% key = "${bean.Name}.${field.Name}."+${util.firstLower(${bean.Name})}.get${util.firstUpper($field.Name)}();%> <bean:message key="<%=key%>"/>#end#else <bean:write name="$util.firstLower($bean.Name)" property="${field.Name}" scope="page"/>#end]]> </column>#end <column><![CDATA[#if($util.arrLen($bean.PrimaryKey.Column) == 1)#if($build.UrlPattern == "*.do")#foreach($pk in $bean.PrimaryKey.Column) <html:link href="${bean.Name}/edit.do" paramId="${pk.Name}" paramName="$util.firstLower($bean.Name)" paramProperty="${pk.Name}"><bean:message key="label.edit"/></html:link> <html:link href="${bean.Name}/view.do" paramId="${pk.Name}" paramName="$util.firstLower($bean.Name)" paramProperty="${pk.Name}"><bean:message key="label.view"/></html:link> <html:link href="${bean.Name}/remove.do" paramId="${pk.Name}" paramName="$util.firstLower($bean.Name)" paramProperty="${pk.Name}"><bean:message key="label.remove"/></html:link>#end#else#foreach($pk in $bean.PrimaryKey.Column) <html:link href="do/${bean.Name}/edit" paramId="${pk.Name}" paramName="$util.firstLower($bean.Name)" paramProperty="${pk.Name}"><bean:message key="label.edit"/></html:link> <html:link href="do/${bean.Name}/view" paramId="${pk.Name}" paramName="$util.firstLower($bean.Name)" paramProperty="${pk.Name}"><bean:message key="label.view"/></html:link> <html:link href="do/${bean.Name}/remove" paramId="${pk.Name}" paramName="$util.firstLower($bean.Name)" paramProperty="${pk.Name}"><bean:message key="label.remove"/></html:link>#end#end#else<%java.util.HashMap map = new java.util.HashMap();#foreach($pk in $bean.PrimaryKey.Column)map.put("$pk.Name", String.valueOf(${util.firstLower($bean.Name)}.get${util.firstUpper($pk.Name)}()));#endpageContext.setAttribute("map", map, PageContext.PAGE_SCOPE);%>#if($build.UrlPattern == "*.do") <html:link href="${bean.Name}/edit.do" name="map" scope="page"><bean:message key="label.edit"/></html:link> <html:link href="${bean.Name}/view.do" name="map" scope="page"><bean:message key="label.view"/></html:link> <html:link href="${bean.Name}/remove.do" name="map" scope="page"><bean:message key="label.remove"/></html:link>#else <html:link href="do/${bean.Name}/edit" name="map" scope="page"><bean:message key="label.edit"/></html:link> <html:link href="do/${bean.Name}/view" name="map" scope="page"><bean:message key="label.view"/></html:link> <html:link href="do/${bean.Name}/remove" name="map" scope="page"><bean:message key="label.remove"/></html:link>#end#end ]]> </column></row><![CDATA[ </logic:iterate>]]> </table></content></doc>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -