类 ItemValues

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

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

    • ItemValues

      public ItemValues()
  • 方法详细资料

    • getLastValue

      public Object getLastValue()
      获取上次提取的数据
      返回:
      the _LastValue
    • getSqlUniqueExp

      public String getSqlUniqueExp(String sql)
      获取SQL的唯一表达式,将参数复到SQL尾部,避免参数造成不一致
      参数:
      sql -
      返回:
    • getRefTable

      public DTTable getRefTable(String sql, String[] keys)
      获取RefTable
      参数:
      sql -
      keys -
      返回:
    • getValue

      public String getValue(UserXItem userXItem) throws Exception
      抛出:
      Exception
    • calcNumberScale

      public Object calcNumberScale(Object ori, double numberScale)
      计算数字除以比例后的数值
      参数:
      ori -
      numberScale - 百/千/万/十万/百万/千万
      返回:
    • getTableValue

      public Object getTableValue(UserXItem userXItem) throws Exception
      抛出:
      Exception
    • getValueByTag

      public String getValueByTag(String name)
      根据后缀获取值, 例如
      参数:
      name - 参数名
      返回:
    • getValue

      public String getValue(String name, String dataFieldName) throws Exception
      抛出:
      Exception
    • replaceParameters

      public String replaceParameters(String s1, boolean isHtml)
      替换内容的@参数,如果参数值为null,则不替换
      参数:
      s1 - 原始字符
      isHtml - 是否保留html格式
      返回:
      替换后的字符
      抛出:
      Exception
    • replaceParameters

      public String replaceParameters(String s1, boolean isHtml, boolean allReplace)
      替换内容的@参数,如果参数值为null,则替换成“”
      参数:
      s1 - 原始字符
      isHtml - 是否保留html格式
      allReplace - 是否全替换
      返回:
      替换后的字符
      抛出:
      Exception
    • replaceLogicParameters

      public String replaceLogicParameters(String s1)
      替换逻辑表达式中参数,如果参数不存在,则替换为""
      参数:
      s1 -
      返回:
    • replaceJsParameters

      public String replaceJsParameters(String s1)
      替换脚本中参数,如果参数不存在,则保留原始参数
      参数:
      s1 -
      返回:
    • replaceParameters

      public String replaceParameters(String s1, boolean isHtml, boolean allReplace, boolean isMoneyFormat)
      替换参数
      参数:
      s1 -
      isHtml -
      allReplace -
      isMoneyFormat - 是否转换数字为货币表示
      返回:
    • getCacheValue

      public String getCacheValue(String name, String dataFieldName)
    • getTableValue

      public Object getTableValue(String dataFieldName, String dataType) throws Exception
      Get the field value from the all tables
      参数:
      dataFieldName - the field name
      dataType - the return data type
      返回:
      the value
      抛出:
      Exception
    • getClassValue

      public String getClassValue(String name, String dataFieldName)
    • getRvValue

      public String getRvValue(String name, String dataFieldName)
    • getRequestValue

      public RequestValue getRequestValue()
      返回:
      the _RequestValue
    • getUserClass

      public Object getUserClass()
      返回:
      the _UserClass
    • setUserClass

      public void setUserClass(Object userClass)
      参数:
      userClass - the _UserClass to set
    • getDataConn

      public DataConnection getDataConn()
      返回:
      the _DataConn
    • getUObjectValue

      public UObjectValue getUObjectValue()
      返回:
      the _UObjectValue
    • setUObjectValue

      public void setUObjectValue(UObjectValue objectValue)
      参数:
      objectValue - the _UObjectValue to set
    • getDTTables

      public com.gdxsoft.easyweb.utils.msnet.MList getDTTables()
      返回:
      the _DTTables
    • setDTTables

      public void setDTTables(com.gdxsoft.easyweb.utils.msnet.MList tables)
      参数:
      tables - the _DTTables to set
    • getListFrameTable

      public DTTable getListFrameTable()
      返回:
      the _ListFrameTable
    • setListFrameTable

      public void setListFrameTable(DTTable listFrameTable)
      参数:
      listFrameTable - the _ListFrameTable to set
    • getSysParas

      public SysParameters getSysParas()
      返回:
      the _SysParas
    • getHtmlClass

      public HtmlClass getHtmlClass()
      返回:
      the _HtmlClass
    • setHtmlClass

      public void setHtmlClass(HtmlClass htmlClass)
      参数:
      htmlClass - the _HtmlClass to set
    • getJSONObjects

      public com.gdxsoft.easyweb.utils.msnet.MList getJSONObjects()