类 HtmlUtils

java.lang.Object
com.gdxsoft.easyweb.script.display.HtmlUtils

public class HtmlUtils extends Object
  • 构造器详细资料

    • HtmlUtils

      public HtmlUtils()
  • 方法详细资料

    • createAttNameByValue

      public static String createAttNameByValue(String name, String value)
      如果名称为空的话,根据值表达式,生成属性名称,例如:@USER_NAME = data-user-name
      name = "" and value = "" return null
      name = "" return data-xxx
      name !="" return name
      参数:
      name - 属性名称
      value - 属性参数
      返回:
      属性名称
    • handleSignature

      public static boolean handleSignature(String imageBase64, String key, RequestValue rv, UserXItem uxi, ItemValues itemValues) throws Exception
      处理签名数据,将imageBase64转换为二进制
      参数:
      imageBase64 - 图片的Base64,data:image/png;base64,cfxx...
      key - 字段的基本名称,会出现
      key: 原始的imageBase64
      key_bin: 图片的二进制
      key_length: 图片的长度
      key_ext: 图片的扩展名
      key_md5: 图片的md5
      key_path: 图片的保存完整地址,如果设定SignPath参数
      Key_path_short: 图片保存地址前缀
      key_url: 图片的下载地址
      rv - 参数组
      uxi - 签名的配置信息
      itemValues - 替换地址信息用
      返回:
      是否成功
      抛出:
      Exception
    • formatValue

      public static String formatValue(String format, Object oriValue, String lang) throws Exception
      获取Format后的值
      参数:
      format -
      oriValue -
      lang -
      返回:
      抛出:
      Exception
    • getDescription

      public static String getDescription(UserXItemValues uvs, String tag, String lang)
      获取描述
      参数:
      uvs -
      tag -
      lang -
      返回:
    • createSqListFrame

      public static String createSqListFrame(String sql, HtmlCreator htmlCreator) throws Exception
      重新组合ListFrame的 SQL查询语句,用于排序和查询
      参数:
      sql -
      返回:
      抛出:
      Exception
    • createSqlTreeMore

      public static String createSqlTreeMore(String sql, HtmlCreator htmlCreator) throws Exception
      抛出:
      Exception
    • getXItem

      public static XItem getXItem(UserXItem userXItem) throws Exception
      抛出:
      Exception