czt
2024-04-23 a03d12962c4439cce9193f178c02164db20f734c
src/main/java/com/fzzy/api/view/Api1403.view.xml
@@ -31,6 +31,9 @@
      <PropertyDef name="jhxddw">
        <Property name="label">计划下达单位</Property>
      </PropertyDef>
      <PropertyDef name="jhxddwtybm">
        <Property name="label">国家统一单位编码</Property>
      </PropertyDef>
      <PropertyDef name="jhxddwmc">
        <Property name="label">计划下达单位名称</Property>
      </PropertyDef>
@@ -115,6 +118,9 @@
      <PropertyDef name="fileStorageId">
        <Property></Property>
        <Property name="label">文件存储ID</Property>
      </PropertyDef>
      <PropertyDef name="wjdz">
        <Property name="label">文件地址</Property>
      </PropertyDef>
      <PropertyDef name="fileName">
          <Property></Property>
@@ -351,6 +357,12 @@
          <Property name="exClassName">toolbar-button</Property>
        </Button>
        <Button>
          <Property name="caption">上传文件</Property>
          <Property name="iconClass">fa fa-upload</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="action">uploadAction</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
if(cur) cur.cancel();</ClientEvent>
@@ -407,6 +419,11 @@
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jhxddwtybm</Property>
                <Property name="property">jhxddwtybm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jhxddwmc</Property>
                <Property name="property">jhxddwmc</Property>
                <Editor/>
@@ -434,6 +451,11 @@
              <AutoFormElement>
                <Property name="name">kqdm</Property>
                <Property name="property">kqdm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">wjdz</Property>
                <Property name="property">wjdz</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
@@ -505,5 +527,13 @@
      <Property name="service">api1403PR#delUpdate</Property>
      <Property name="confirmMessage">确定要将数据标记为删除么?</Property>
    </AjaxAction>
    <UploadAction id="uploadAction">
      <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&amp;#xD;&#xD;
        &#xD;
        var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
        cur.set(&quot;wjdz&quot;,returnValue);</ClientEvent>
      <Property name="fileResolver">uploadProcessor#uploadFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>