类 ParentPage

    • 字段详细资料

      • supportedLocales

        @InjectService("locales")
        protected ISupportedLocales supportedLocales
      • request

        @Inject
        protected org.apache.tapestry5.http.services.Request request
      • req

        @Inject
        protected IReq req
      • requestGlobals

        @Inject
        protected org.apache.tapestry5.http.services.RequestGlobals requestGlobals
      • messages

        @Inject
        protected org.apache.tapestry5.commons.Messages messages
      • componentClassResolver

        @Inject
        protected org.apache.tapestry5.services.ComponentClassResolver componentClassResolver
      • javaScriptSupport

        @Environmental
        protected org.apache.tapestry5.services.javascript.JavaScriptSupport javaScriptSupport
      • contextPath

        @Inject
        @Symbol("tapestry.context-path")
        @Property
        protected String contextPath
      • lan

        @Property
        protected String lan
      • I18NConvert

        protected net.wicp.tams.common.callback.IConvertValue I18NConvert
      • proColLan

        protected net.wicp.tams.common.callback.IConvertValue proColLan
    • 构造器详细资料

      • ParentPage

        public ParentPage()
    • 方法详细资料

      • P

        public String P​(String relaUrl)
        得到当前页面地址
        返回:
      • L

        public String L​(String path)
        国际化方法 可以把数据库取出来的值进行国际化 eg:${L('order.channel')}
        参数:
        path - 要国际化的值所在的路径
        返回:
      • LK

        public String LK​(String key,
                         Object... param)
        对具的key值进行国际化,可以支持传参数,eg:${LK('Tmall',['aaa','bbb'])}
        参数:
        key - 国际化的key值
        param - 所带的参数
        返回:
      • T

        public String T​(String path)
        把某个时间字段格式化为yyyy-MM-dd HH:mm:ss
        参数:
        path - 要格式化的值所在的路径
        返回:
      • D

        public String D​(String path)
        把某个时间字段格式化为yyyy-MM-dd
        参数:
        path - 要格式化的值所在的路径
        返回:
      • M

        public String M​(String value)
        金钱格式化
        参数:
        value -
        返回:
      • getJsonForGridForI18n

        protected final String getJsonForGridForI18n​(List<?> fromList,
                                                     String[] titles,
                                                     long recordNum,
                                                     String... convertTitles)
        支持国际化 的grid
        参数:
        fromList -
        titles -
        recordNum -
        convertTitles - 需要国际化的列会新增一列,规则为 列名+1
        返回:
      • getJsonForGridAliasForI18n

        protected final String getJsonForGridAliasForI18n​(List<?> fromList,
                                                          long recordNum,
                                                          String... convertTitles)
        支持国际化的grid
        参数:
        fromList -
        recordNum -
        convertTitles - 需要国际化的列会新增一列,规则为 列名+1
        返回:
      • retStream

        protected org.apache.tapestry5.util.TextStreamResponse retStream​(String str)
        把指定的Str作为流返回
        参数:
        str -
        返回:
      • retStreamEmpty

        protected org.apache.tapestry5.util.TextStreamResponse retStreamEmpty()
        返回空的grid数据流
        返回:
      • proEnumConvert

        protected net.wicp.tams.common.callback.IConvertValue proEnumConvert​(Class entityClass)
        得到枚举型的转换器
        参数:
        entityClass -
        返回:
      • retSuccInfo

        protected org.apache.tapestry5.util.TextStreamResponse retSuccInfo()
      • retErrorInfo

        protected org.apache.tapestry5.util.TextStreamResponse retErrorInfo()
      • retErrorInfo

        protected org.apache.tapestry5.util.TextStreamResponse retErrorInfo​(String errmsg)
      • getColLan

        public String getColLan​(String colName)
        如 itemName 返回 "itemName_zh,itemName"
        参数:
        colName -
        返回: