ws
2023-12-12 8bdd017371e7a486338862eb0da10bc7f2a5da52
武汉省平台-共享接口更新3
已修改8个文件
已添加4个文件
2013 ■■■■■ 文件已修改
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1215.view.xml 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2006.view.xml 300 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2007.view.xml 616 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2008.view.xml 587 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2009.view.xml 301 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1215.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2006.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1215.view.xml
@@ -45,6 +45,10 @@
        <Property/>
        <Property name="label">产品批次</Property>
      </PropertyDef>
      <PropertyDef name="cplx">
        <Property/>
        <Property name="label">产品类型</Property>
      </PropertyDef>
      <PropertyDef name="scrq">
        <Property name="dataType">Date</Property>
        <Property name="label">生产日期</Property>
@@ -253,6 +257,9 @@
        <DataColumn name="cppc">
          <Property name="property">cppc</Property>
        </DataColumn>
        <DataColumn name="cplx">
          <Property name="property">cplx</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
@@ -346,6 +353,11 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cplx</Property>
            <Property name="property">cplx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scrq</Property>
            <Property name="property">scrq</Property>
            <Editor/>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml
@@ -295,6 +295,7 @@
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">军粮供应商信息</Property>
      <Property name="height">80%</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
@@ -506,7 +507,6 @@
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2006.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,300 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2006</Property>
      <PropertyDef name="jlppbh">
        <Property/>
        <Property name="label">军粮品牌编号</Property>
      </PropertyDef>
      <PropertyDef name="jlppmc">
        <Property/>
        <Property name="label">军粮品牌名称</Property>
      </PropertyDef>
      <PropertyDef name="jlppmcjc">
        <Property/>
        <Property name="label">军粮品牌名称简称</Property>
      </PropertyDef>
      <PropertyDef name="jljgqybh">
        <Property/>
        <Property name="label">军粮加工企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqymc">
        <Property/>
        <Property name="label">军粮加工企业名称</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlShareApi2006PR#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">编辑</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxPull&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
 </ClientEvent>
        <Property name="caption">手动更新</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="right">
        <ClientEvent name="onClick">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).show();</ClientEvent>
        <Property name="caption">更新记录</Property>
        <Property name="iconClass">fa fa-bars</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
    </Container>
    <Container layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="selectionMode">multiRows</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="jlppbh">
          <Property name="property">jlppbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlppmc">
          <Property name="property">jlppmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlppmcjc">
          <Property name="property">jlppmcjc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jljgqybh">
          <Property name="property">jljgqybh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jljgqymc">
          <Property name="property">jljgqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">军粮供应商信息</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</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>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelPosition">left</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">right</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">jlppbh</Property>
            <Property name="property">jlppbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlppmc</Property>
            <Property name="property">jlppmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlppmcjc</Property>
            <Property name="property">jlppmcjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jljgqybh</Property>
            <Property name="property">jljgqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jljgqymc</Property>
            <Property name="property">jljgqymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czbz</Property>
            <Property name="property">czbz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqdm</Property>
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2006PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlShareApi2006PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2006PR#pullData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
      <Property name="caption">更新记录</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <IFrame id="iFrame">
            <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
            <Property name="userData">
              <Entity>
                <Property name="deptId">deptId</Property>
              </Entity>
            </Property>
          </IFrame>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2007.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,616 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2007</Property>
      <PropertyDef name="jlcpbh">
        <Property/>
        <Property name="label">军粮产品编号</Property>
      </PropertyDef>
      <PropertyDef name="jlppbh">
        <Property/>
        <Property name="label">军粮品牌编号</Property>
      </PropertyDef>
      <PropertyDef name="jsdwflbh">
        <Property/>
        <Property name="label">计数单位分类编号</Property>
      </PropertyDef>
      <PropertyDef name="jlcpmc">
        <Property/>
        <Property name="label">军粮产品名称</Property>
      </PropertyDef>
      <PropertyDef name="jlcpjc">
        <Property/>
        <Property name="label">军粮产品简称</Property>
      </PropertyDef>
      <PropertyDef name="jllspzmc">
        <Property/>
        <Property name="label">军粮粮食品种名称</Property>
      </PropertyDef>
      <PropertyDef name="jllspzbh">
        <Property/>
        <Property name="label">军粮粮食品种编号</Property>
      </PropertyDef>
      <PropertyDef name="jldwflbh">
        <Property/>
        <Property name="label">计量单位分类编号</Property>
      </PropertyDef>
      <PropertyDef name="cpdj">
        <Property/>
        <Property name="label">产品等级</Property>
      </PropertyDef>
      <PropertyDef name="bzfsmc">
        <Property/>
        <Property name="label">包装方式名称</Property>
      </PropertyDef>
      <PropertyDef name="bzfsbh">
        <Property/>
        <Property name="label">包装方式编号</Property>
      </PropertyDef>
      <PropertyDef name="bzgg">
        <Property/>
        <Property name="label">包装规格</Property>
      </PropertyDef>
      <PropertyDef name="jsgg">
        <Property/>
        <Property name="label">计数规格</Property>
      </PropertyDef>
      <PropertyDef name="sccj">
        <Property/>
        <Property name="label">生产厂家</Property>
      </PropertyDef>
      <PropertyDef name="bzq">
        <Property/>
        <Property name="label">保质期</Property>
      </PropertyDef>
      <PropertyDef name="cd">
        <Property/>
        <Property name="label">产地</Property>
      </PropertyDef>
      <PropertyDef name="scrq">
        <Property/>
        <Property name="label">生产日期</Property>
      </PropertyDef>
      <PropertyDef name="lxr">
        <Property/>
        <Property name="label">联系人</Property>
      </PropertyDef>
      <PropertyDef name="dh">
        <Property/>
        <Property name="label">电话</Property>
      </PropertyDef>
      <PropertyDef name="cz">
        <Property/>
        <Property name="label">传真</Property>
      </PropertyDef>
      <PropertyDef name="dzyj">
        <Property/>
        <Property name="label">电子邮件</Property>
      </PropertyDef>
      <PropertyDef name="qygk">
        <Property/>
        <Property name="label">企业概况</Property>
      </PropertyDef>
      <PropertyDef name="cpjs">
        <Property/>
        <Property name="label">产品介绍</Property>
      </PropertyDef>
      <PropertyDef name="yyzz">
        <Property/>
        <Property name="label">营业执照</Property>
      </PropertyDef>
      <PropertyDef name="zzjgz">
        <Property/>
        <Property name="label">组织机构代码证</Property>
      </PropertyDef>
      <PropertyDef name="swdjz">
        <Property/>
        <Property name="label">税务登记证</Property>
      </PropertyDef>
      <PropertyDef name="spltxkz">
        <Property/>
        <Property name="label">食品流通许可证</Property>
      </PropertyDef>
      <PropertyDef name="ybnsrzgzm">
        <Property/>
        <Property name="label">一般纳税人资格证明</Property>
      </PropertyDef>
      <PropertyDef name="sjgzxshyj">
        <Property/>
        <Property name="label">市军供中心审核意见</Property>
      </PropertyDef>
      <PropertyDef name="jlfwshyj">
        <Property/>
        <Property name="label">军粮服务有限公司审核意见</Property>
      </PropertyDef>
      <PropertyDef name="sjgzxyj">
        <Property/>
        <Property name="label">省军供中心意见</Property>
      </PropertyDef>
      <PropertyDef name="yjcd">
        <Property/>
        <Property name="label">原件存档</Property>
      </PropertyDef>
      <PropertyDef name="dj">
        <Property/>
        <Property name="label">单价</Property>
      </PropertyDef>
      <PropertyDef name="scxkzh">
        <Property/>
        <Property name="label">生产许可证号</Property>
      </PropertyDef>
      <PropertyDef name="jggy">
        <Property/>
        <Property name="label">加工工艺</Property>
      </PropertyDef>
      <PropertyDef name="zlxx">
        <Property/>
        <Property name="label">质量信息</Property>
      </PropertyDef>
      <PropertyDef name="yynxx">
        <Property/>
        <Property name="label">营养信息</Property>
      </PropertyDef>
      <PropertyDef name="lsyjrz">
        <Property/>
        <Property name="label">绿色有机认证</Property>
      </PropertyDef>
      <PropertyDef name="nscl">
        <Property/>
        <Property name="label">年生产量</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlShareApi2007PR#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">编辑</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxPull&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
 </ClientEvent>
        <Property name="caption">手动更新</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="right">
        <ClientEvent name="onClick">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).show();</ClientEvent>
        <Property name="caption">更新记录</Property>
        <Property name="iconClass">fa fa-bars</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
    </Container>
    <Container layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="selectionMode">multiRows</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="jlcpbh">
          <Property name="property">jlcpbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlppbh">
          <Property name="property">jlppbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jsdwflbh">
          <Property name="property">jsdwflbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlcpmc">
          <Property name="property">jlcpmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlcpjc">
          <Property name="property">jlcpjc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jllspzmc">
          <Property name="property">jllspzmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jllspzbh">
          <Property name="property">jllspzbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">军粮供应商信息</Property>
      <Property name="height">80%</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</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>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelPosition">left</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">right</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">jlcpbh</Property>
            <Property name="property">jlcpbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlppbh</Property>
            <Property name="property">jlppbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsdwflbh</Property>
            <Property name="property">jsdwflbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlcpmc</Property>
            <Property name="property">jlcpmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlcpjc</Property>
            <Property name="property">jlcpjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jllspzmc</Property>
            <Property name="property">jllspzmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jllspzbh</Property>
            <Property name="property">jllspzbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jldwflbh</Property>
            <Property name="property">jldwflbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpdj</Property>
            <Property name="property">cpdj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzfsmc</Property>
            <Property name="property">bzfsmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzfsbh</Property>
            <Property name="property">bzfsbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzgg</Property>
            <Property name="property">bzgg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsgg</Property>
            <Property name="property">jsgg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sccj</Property>
            <Property name="property">sccj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzq</Property>
            <Property name="property">bzq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cd</Property>
            <Property name="property">cd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scrq</Property>
            <Property name="property">scrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxr</Property>
            <Property name="property">lxr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dh</Property>
            <Property name="property">dh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cz</Property>
            <Property name="property">cz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dzyj</Property>
            <Property name="property">dzyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qygk</Property>
            <Property name="property">qygk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpjs</Property>
            <Property name="property">cpjs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yyzz</Property>
            <Property name="property">yyzz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zzjgz</Property>
            <Property name="property">zzjgz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">swdjz</Property>
            <Property name="property">swdjz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">spltxkz</Property>
            <Property name="property">spltxkz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ybnsrzgzm</Property>
            <Property name="property">ybnsrzgzm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjgzxshyj</Property>
            <Property name="property">sjgzxshyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlfwshyj</Property>
            <Property name="property">jlfwshyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjgzxyj</Property>
            <Property name="property">sjgzxyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yjcd</Property>
            <Property name="property">yjcd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dj</Property>
            <Property name="property">dj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scxkzh</Property>
            <Property name="property">scxkzh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jggy</Property>
            <Property name="property">jggy</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zlxx</Property>
            <Property name="property">zlxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yynxx</Property>
            <Property name="property">yynxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lsyjrz</Property>
            <Property name="property">lsyjrz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">nscl</Property>
            <Property name="property">nscl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czbz</Property>
            <Property name="property">czbz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqdm</Property>
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2007PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlShareApi2007PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2007PR#pullData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
      <Property name="caption">更新记录</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <IFrame id="iFrame">
            <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
            <Property name="userData">
              <Entity>
                <Property name="deptId">deptId</Property>
              </Entity>
            </Property>
          </IFrame>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2008.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,587 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2008</Property>
      <PropertyDef name="jlccjhbh">
        <Property/>
        <Property name="label">军粮筹措计划编号</Property>
      </PropertyDef>
      <PropertyDef name="gsqybh">
        <Property/>
        <Property name="label">企业编号</Property>
      </PropertyDef>
      <PropertyDef name="gskdbh">
        <Property/>
        <Property name="label">归属库点编号</Property>
      </PropertyDef>
      <PropertyDef name="gsjlgljgbh">
        <Property/>
        <Property name="label">归属军粮管理机构编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqybh">
        <Property/>
        <Property name="label">军粮加工企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jljlqymc">
        <Property/>
        <Property name="label">军粮加工企业名称</Property>
      </PropertyDef>
      <PropertyDef name="pzflbh">
        <Property/>
        <Property name="label">品种分类编号</Property>
      </PropertyDef>
      <PropertyDef name="jlppmh">
        <Property/>
        <Property name="label">军粮品牌编号</Property>
      </PropertyDef>
      <PropertyDef name="jlcpbh">
        <Property/>
        <Property name="label">军粮产品编号</Property>
      </PropertyDef>
      <PropertyDef name="jldwflbh">
        <Property/>
        <Property name="label">计量单位分类编号</Property>
      </PropertyDef>
      <PropertyDef name="jhrq">
        <Property/>
        <Property name="label">计划日期</Property>
      </PropertyDef>
      <PropertyDef name="jhbh">
        <Property/>
        <Property name="label">计划编号</Property>
      </PropertyDef>
      <PropertyDef name="jhmc">
        <Property/>
        <Property name="label">计划名称</Property>
      </PropertyDef>
      <PropertyDef name="jhzt">
        <Property/>
        <Property name="label">计划状态</Property>
      </PropertyDef>
      <PropertyDef name="sjlx">
        <Property/>
        <Property name="label">数据类型</Property>
      </PropertyDef>
      <PropertyDef name="nd">
        <Property/>
        <Property name="label">年度</Property>
      </PropertyDef>
      <PropertyDef name="jd">
        <Property/>
        <Property name="label">季度</Property>
      </PropertyDef>
      <PropertyDef name="jhsl">
        <Property/>
        <Property name="label">计划数量</Property>
      </PropertyDef>
      <PropertyDef name="sxxhs1">
        <Property/>
        <Property name="label">上旬需求数量</Property>
      </PropertyDef>
      <PropertyDef name="xxxhs1">
        <Property/>
        <Property name="label">下旬需求数量</Property>
      </PropertyDef>
      <PropertyDef name="sxxhs2">
        <Property/>
        <Property name="label">上旬需求数量</Property>
      </PropertyDef>
      <PropertyDef name="xxxhs2">
        <Property/>
        <Property name="label">下旬需求数量</Property>
      </PropertyDef>
      <PropertyDef name="sxxhs3">
        <Property/>
        <Property name="label">上旬需求数量</Property>
      </PropertyDef>
      <PropertyDef name="xxxhs3">
        <Property/>
        <Property name="label">下旬需求数量</Property>
      </PropertyDef>
      <PropertyDef name="fggld">
        <Property/>
        <Property name="label">分管领导</Property>
      </PropertyDef>
      <PropertyDef name="fhr">
        <Property/>
        <Property name="label">复核人</Property>
      </PropertyDef>
      <PropertyDef name="tbdw">
        <Property/>
        <Property name="label">填报单位</Property>
      </PropertyDef>
      <PropertyDef name="tbr">
        <Property/>
        <Property name="label">填报人</Property>
      </PropertyDef>
      <PropertyDef name="tbsj">
        <Property/>
        <Property name="label">填报时间</Property>
      </PropertyDef>
      <PropertyDef name="qyxzqhmc">
        <Property/>
        <Property name="label">企业行政区划名称</Property>
      </PropertyDef>
      <PropertyDef name="qyxzqhdm">
        <Property/>
        <Property name="label">企业行政区划代码</Property>
      </PropertyDef>
      <PropertyDef name="qytbr">
        <Property/>
        <Property name="label">企业填报人</Property>
      </PropertyDef>
      <PropertyDef name="qytbrbd">
        <Property/>
        <Property name="label">企业填报人编号</Property>
      </PropertyDef>
      <PropertyDef name="qytbsj">
        <Property/>
        <Property name="label">企业填报时间</Property>
      </PropertyDef>
      <PropertyDef name="lxfs">
        <Property/>
        <Property name="label">联系方式</Property>
      </PropertyDef>
      <PropertyDef name="lxr">
        <Property/>
        <Property name="label">联系人</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property/>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlShareApi2008PR#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">编辑</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxPull&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
 </ClientEvent>
        <Property name="caption">手动更新</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="right">
        <ClientEvent name="onClick">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).show();</ClientEvent>
        <Property name="caption">更新记录</Property>
        <Property name="iconClass">fa fa-bars</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
    </Container>
    <Container layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="selectionMode">multiRows</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="jlccjhbh">
          <Property name="property">jlccjhbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="gsqybh">
          <Property name="property">gsqybh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="gskdbh">
          <Property name="property">gskdbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="gsjlgljgbh">
          <Property name="property">gsjlgljgbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jljgqybh">
          <Property name="property">jljgqybh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jljlqymc">
          <Property name="property">jljlqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="lxfs">
          <Property name="property">lxfs</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="lxr">
          <Property name="property">lxr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">军粮供应商信息</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</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>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelPosition">left</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">right</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">jlccjhbh</Property>
            <Property name="property">jlccjhbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gsqybh</Property>
            <Property name="property">gsqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gskdbh</Property>
            <Property name="property">gskdbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gsjlgljgbh</Property>
            <Property name="property">gsjlgljgbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jljgqybh</Property>
            <Property name="property">jljgqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jljlqymc</Property>
            <Property name="property">jljlqymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pzflbh</Property>
            <Property name="property">pzflbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlppmh</Property>
            <Property name="property">jlppmh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlcpbh</Property>
            <Property name="property">jlcpbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jldwflbh</Property>
            <Property name="property">jldwflbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhrq</Property>
            <Property name="property">jhrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhbh</Property>
            <Property name="property">jhbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhmc</Property>
            <Property name="property">jhmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhzt</Property>
            <Property name="property">jhzt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjlx</Property>
            <Property name="property">sjlx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">nd</Property>
            <Property name="property">nd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jd</Property>
            <Property name="property">jd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhsl</Property>
            <Property name="property">jhsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxxhs1</Property>
            <Property name="property">sxxhs1</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xxxhs1</Property>
            <Property name="property">xxxhs1</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxxhs2</Property>
            <Property name="property">sxxhs2</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xxxhs2</Property>
            <Property name="property">xxxhs2</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxxhs3</Property>
            <Property name="property">sxxhs3</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xxxhs3</Property>
            <Property name="property">xxxhs3</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fggld</Property>
            <Property name="property">fggld</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fhr</Property>
            <Property name="property">fhr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">tbdw</Property>
            <Property name="property">tbdw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">tbr</Property>
            <Property name="property">tbr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">tbsj</Property>
            <Property name="property">tbsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyxzqhmc</Property>
            <Property name="property">qyxzqhmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyxzqhdm</Property>
            <Property name="property">qyxzqhdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qytbr</Property>
            <Property name="property">qytbr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qytbrbd</Property>
            <Property name="property">qytbrbd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qytbsj</Property>
            <Property name="property">qytbsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxfs</Property>
            <Property name="property">lxfs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxr</Property>
            <Property name="property">lxr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czbz</Property>
            <Property name="property">czbz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqdm</Property>
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2008PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlShareApi2008PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2008PR#pullData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
      <Property name="caption">更新记录</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <IFrame id="iFrame">
            <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
            <Property name="userData">
              <Entity>
                <Property name="deptId">deptId</Property>
              </Entity>
            </Property>
          </IFrame>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2009.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,301 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2009</Property>
      <PropertyDef name="mbhb">
        <Property/>
        <Property name="label">模板编号</Property>
      </PropertyDef>
      <PropertyDef name="mblb">
        <Property/>
        <Property name="label">模板类别</Property>
      </PropertyDef>
      <PropertyDef name="mbmc">
        <Property/>
        <Property name="label">模板名称</Property>
      </PropertyDef>
      <PropertyDef name="bb">
        <Property/>
        <Property name="label">版本</Property>
      </PropertyDef>
      <PropertyDef name="mbwjdz">
        <Property/>
        <Property name="label">模板文件地址</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlShareApi2009PR#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">编辑</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxPull&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
 </ClientEvent>
        <Property name="caption">手动更新</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="right">
        <ClientEvent name="onClick">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).show();</ClientEvent>
        <Property name="caption">更新记录</Property>
        <Property name="iconClass">fa fa-bars</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
    </Container>
    <Container layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="selectionMode">multiRows</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="mbhb">
          <Property name="property">mbhb</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="mblb">
          <Property name="property">mblb</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="mbmc">
          <Property name="property">mbmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="bb">
          <Property name="property">bb</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="mbwjdz">
          <Property name="property">mbwjdz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">军粮供应商信息</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</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>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*</Property>
          <Property name="labelPosition">left</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">right</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">mbhb</Property>
            <Property name="property">mbhb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mblb</Property>
            <Property name="property">mblb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mbmc</Property>
            <Property name="property">mbmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bb</Property>
            <Property name="property">bb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mbwjdz</Property>
            <Property name="property">mbwjdz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czbz</Property>
            <Property name="property">czbz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqdm</Property>
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2009PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlShareApi2009PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2009PR#pullData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
      <Property name="caption">更新记录</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <IFrame id="iFrame">
            <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
            <Property name="userData">
              <Entity>
                <Property name="deptId">deptId</Property>
              </Entity>
            </Property>
          </IFrame>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1215.java
@@ -31,6 +31,7 @@
    private String jljgqybh;//加工企业编号
    private String cpmc;//产品名称
    private String cppc;//产品批次
    private String cplx;//产品类型
    @JSONField(format = "yyyy-MM-dd")
    private Date scrq;//生产日期
    private String cysm;//抽样说明
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2006.java
@@ -1,6 +1,7 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import jdk.nashorn.internal.objects.annotations.Property;
import lombok.Data;
import lombok.EqualsAndHashCode;
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java
@@ -15,7 +15,8 @@
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2006;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2006;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -39,20 +40,20 @@
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     * whjlShareApi2006PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
    public List<WhjlShareApi2006> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2006);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        List<WhjlShareApi2006> list = new ArrayList<>();
        WhjlShareApi2006 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2006.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
@@ -64,20 +65,20 @@
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     * whjlShareApi2006PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
    public void saveData(WhjlShareApi2006 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setId(data.getJlppbh());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setInteId(WhjlConstant.API_CODE_2006);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setDataId(data.getJlppbh());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
@@ -88,26 +89,26 @@
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     * whjlShareApi2006PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
    public String delData(WhjlShareApi2006 data) {
        apiInfoDataRep.deleteById(data.getJlppbh());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     * whjlShareApi2006PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
    public String pullData(List<WhjlShareApi2006> items) {
        //获取配置信息
@@ -121,28 +122,28 @@
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> list;
        List<WhjlShareApi2006> list;
        for (ApiConfs apiConf : apiConfs) {
            apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
            if (null == apiService) {
                continue;
            }
            //封装参数
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2006);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2006.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                    for (WhjlShareApi2006 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setId(shareData.getJlppbh());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setInteId(WhjlConstant.API_CODE_2006);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setDataId(shareData.getJlppbh());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java
@@ -15,7 +15,7 @@
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2007;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -39,20 +39,20 @@
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     * whjlShareApi2007PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
    public List<WhjlShareApi2007> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2007);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        List<WhjlShareApi2007> list = new ArrayList<>();
        WhjlShareApi2007 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2007.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
@@ -64,20 +64,20 @@
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     * whjlShareApi2007PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
    public void saveData(WhjlShareApi2007 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setId(data.getJlcpbh());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setInteId(WhjlConstant.API_CODE_2007);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setDataId(data.getJlcpbh());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
@@ -88,26 +88,26 @@
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     * whjlShareApi2007PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
    public String delData(WhjlShareApi2007 data) {
        apiInfoDataRep.deleteById(data.getJlcpbh());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     * whjlShareApi2007PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
    public String pullData(List<WhjlShareApi2007> items) {
        //获取配置信息
@@ -121,28 +121,28 @@
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> list;
        List<WhjlShareApi2007> list;
        for (ApiConfs apiConf : apiConfs) {
            apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
            if (null == apiService) {
                continue;
            }
            //封装参数
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2007);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2007.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                    for (WhjlShareApi2007 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setId(shareData.getJlcpbh());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setInteId(WhjlConstant.API_CODE_2007);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setDataId(shareData.getJlcpbh());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java
@@ -15,7 +15,7 @@
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2008;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -39,20 +39,20 @@
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     * whjlShareApi2008PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
    public List<WhjlShareApi2008> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2008);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        List<WhjlShareApi2008> list = new ArrayList<>();
        WhjlShareApi2008 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2008.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
@@ -64,20 +64,20 @@
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     * whjlShareApi2008PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
    public void saveData(WhjlShareApi2008 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setId(data.getJlccjhbh());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setInteId(WhjlConstant.API_CODE_2008);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setDataId(data.getJlccjhbh());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
@@ -88,26 +88,26 @@
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     * whjlShareApi2008PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
    public String delData(WhjlShareApi2008 data) {
        apiInfoDataRep.deleteById(data.getJlccjhbh());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     * whjlShareApi2008PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
    public String pullData(List<WhjlShareApi2008> items) {
        //获取配置信息
@@ -121,28 +121,28 @@
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> list;
        List<WhjlShareApi2008> list;
        for (ApiConfs apiConf : apiConfs) {
            apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
            if (null == apiService) {
                continue;
            }
            //封装参数
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2008);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2008.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                    for (WhjlShareApi2008 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setId(shareData.getJlccjhbh());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setInteId(WhjlConstant.API_CODE_2008);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setDataId(shareData.getJlccjhbh());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java
@@ -15,7 +15,7 @@
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2009;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -39,20 +39,20 @@
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     * whjlShareApi2009PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
    public List<WhjlShareApi2009> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2009);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        List<WhjlShareApi2009> list = new ArrayList<>();
        WhjlShareApi2009 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2009.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
@@ -64,20 +64,20 @@
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     * whjlShareApi2009PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
    public void saveData(WhjlShareApi2009 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setId(data.getMbhb());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setInteId(WhjlConstant.API_CODE_2009);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setDataId(data.getMbhb());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
@@ -88,26 +88,26 @@
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     * whjlShareApi2009PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
    public String delData(WhjlShareApi2009 data) {
        apiInfoDataRep.deleteById(data.getMbhb());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     * whjlShareApi2009PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
    public String pullData(List<WhjlShareApi2009> items) {
        //获取配置信息
@@ -121,28 +121,28 @@
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> list;
        List<WhjlShareApi2009> list;
        for (ApiConfs apiConf : apiConfs) {
            apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
            if (null == apiService) {
                continue;
            }
            //封装参数
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2002);
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2009);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2009.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                    for (WhjlShareApi2009 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setId(shareData.getMbhb());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setInteId(WhjlConstant.API_CODE_2009);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setDataId(shareData.getMbhb());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);