^1640740801090
@
sname
DataObjectFunctions
slabel
DataObjectFunctions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sdescription
<p>数据对象相关的函数。</p>
sth_createIndex
false
sth_mark
false
  @/@CheckExists
  sname
  CheckExists
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>检查给定的数据是否存在，通过查询判断是否存在。</p>
  sth_createIndex
  false
  sth_mark
  false
  sid
  CheckExists
    @/@CheckExists/@actions
    sname
    actions
    slabel
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sid
    actions
      @/@CheckExists/@actions/@toJavaScriptCode1
      sname
      toJavaScriptCode
      schangeSelf
      true
      sselfVarName
      data
      sinterpretationType
      Self
      svarScope
      Local
      sdescriptors
      xworker.lang.actions.Actions/@ActionGroup
      sid
      toJavaScriptCode1
        @/@CheckExists/@actions/@toJavaScriptCode1/@actions
        sname
        actions
        sdescriptors
        xworker.lang.actions.Begin/@actions
        sid
        actions
          @/@CheckExists/@actions/@toJavaScriptCode1/@actions/@toJavaScriptCode
          sname
          toTemplate
          stype
          freemarker
          svarScope
          Local
          stemplateEncoding
          UTF-8
          soutputEncoding
          UTF-8
          StemplateCode
#$@text#$@
<!-- 数据对象 -->
<#assign dataObject = data.get("dataObjects@0")/>
<#if dataObject?exists && 0 < dataObject.getChilds()?size>
    <#assign dataObject = dataObject.getChilds().get(0)/>
</#if>
<#if !dataObject?exists>
    <#assign dataObject = world.getThing(data.getString("dataObject"))/>
</#if>
<!-- 查询条件 -->
<#assign condition = data.get("Condition@0")/>
<#if !condition?exists>
    <#assign condition = world.getThing(data.getString("condition"))/>
</#if>
<!-- 请求数据 -->
Ext.Ajax.request({
    url: 'do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@read&dataObjectPath=${dataObject.getMetadata().getPath()}&conditionPath=${condition.getMetadata().getPath()}',
    params: ${data.values?if_exists},
    success: function(response, options){
        var obj = Ext.decode(response.responseText);
        if(obj.success){            
            if(obj.totalCount > 0){
                <#if data.existsCallback?exists>
                ${data.existsCallback?if_exists}(response, options);
                </#if>
            }else{
                <#if data.existsCallback?exists>
                ${data.unextisCallback?if_exists}(response, options);
                </#if>
            }            
        }
    },
    failure: function(response, options){
        <#if data.faliureCallback?exists>
        ${data.faliureCallback?if_exists}(response, options);
        </#if>
    }     
});
#$@text#$@
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          sdisableGlobalContext
          false
          sdescriptors
          xworker.core.text.TextTemplate
          sid
          toJavaScriptCode
    @/@CheckExists/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    name
    @/@CheckExists/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    label
    @/@CheckExists/@dataObjectPath
    sname
    dataObject
    sinputtype
    dataSelector
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    dataObjectPath
    @/@CheckExists/@conditionPath
    sname
    condition
    sinputtype
    dataSelector
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    conditionPath
    @/@CheckExists/@existsFunction
    sname
    existsCallback
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>数据存在的回调函数。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    existsFunction
    @/@CheckExists/@unextisFunction
    sname
    unextisCallback
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>数据不存在的回调函数。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    unextisFunction
    @/@CheckExists/@faliureFunction
    sname
    faliureCallback
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>请求失败的回调函数。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    faliureFunction
    @/@CheckExists/@values
    sname
    values
    sinputtype
    textarea
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>要判断的数据。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    values
    @/@CheckExists/@DataObjects
    sname
    dataObjects
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.dataObject.DataObjects
    sid
    DataObjects
    @/@CheckExists/@Condition
    sname
    Condition
    slabel
    查询条件
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.dataObject.query.Condition
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sinheritDescription
    true
    sth_createIndex
    false
    sid
    Condition
