CZT
2023-12-12 25c981293380113d5c45d08133e337372cf1f1d1
武汉省平台-共享接口更新2
已修改4个文件
已添加16个文件
4128 ■■■■■ 文件已修改
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml 293 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2003.view.xml 365 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2004.view.xml 419 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2005.view.xml 573 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2011.view.xml 357 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2012.view.xml 446 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2004.java 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java 169 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java 159 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java 156 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java 172 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java 169 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2001.view.xml
@@ -29,10 +29,6 @@
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
@@ -232,11 +228,6 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bizId</Property>
            <Property name="property">bizId</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Editor/>
@@ -249,11 +240,6 @@
          <AutoFormElement>
            <Property name="name">kqdm</Property>
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2002.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,293 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002</Property>
      <PropertyDef name="cpflbm">
        <Property></Property>
        <Property name="label">产品分类编号</Property>
      </PropertyDef>
      <PropertyDef name="cpflmc">
        <Property></Property>
        <Property name="label">产品分类名称</Property>
      </PropertyDef>
      <PropertyDef name="fjcpflbm">
        <Property></Property>
        <Property name="label">父级分类编号</Property>
      </PropertyDef>
      <PropertyDef name="fjcpflmc">
        <Property></Property>
        <Property name="label">父级分类名称</Property>
      </PropertyDef>
      <PropertyDef name="xh">
        <Property></Property>
        <Property name="label">序号</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></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">whjlShareApi2002PR#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="cpflbm">
          <Property name="property">cpflbm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="cpflmc">
          <Property name="property">cpflmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fjcpflbm">
          <Property name="property">fjcpflbm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fjcpflmc">
          <Property name="property">fjcpflmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="xh">
          <Property name="property">xh</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>
      </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">cpflbm</Property>
            <Property name="property">cpflbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpflmc</Property>
            <Property name="property">cpflmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fjcpflbm</Property>
            <Property name="property">fjcpflbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fjcpflmc</Property>
            <Property name="property">fjcpflmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xh</Property>
            <Property name="property">xh</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">whjlShareApi2002PR#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">whjlShareApi2002PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2002PR#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/WhjlShareApi2003.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,365 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003</Property>
      <PropertyDef name="jldwbm">
        <Property></Property>
        <Property name="label">计量单位编号</Property>
      </PropertyDef>
      <PropertyDef name="jldwmc">
        <Property></Property>
        <Property name="label">计量单位名称</Property>
      </PropertyDef>
      <PropertyDef name="dwflbm">
        <Property></Property>
        <Property name="label">单位分类编号</Property>
      </PropertyDef>
      <PropertyDef name="dwflmc">
        <Property></Property>
        <Property name="label">单位分类名称</Property>
      </PropertyDef>
      <PropertyDef name="xh">
        <Property></Property>
        <Property name="label">序号</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></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>
      <PropertyDef name="jldwzhxsList">
        <Property/>
      </PropertyDef>
      <Reference name="jldwzhxs">
        <Property name="parameter">$${this.jldwzhxsList}</Property>
        <Property name="dataProvider">whjlShareApi2003PR#listItemShareApi2003Xs</Property>
        <Property name="dataType">[dtItemShareApi2003Xs]</Property>
      </Reference>
    </DataType>
    <DataType name="dtItemShareApi2003Xs">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2003Xs</Property>
      <PropertyDef name="ydwbm">
        <Property></Property>
        <Property name="label">源计量单位编码</Property>
      </PropertyDef>
      <PropertyDef name="ydwmc">
        <Property></Property>
        <Property name="label">源计量单位名称</Property>
      </PropertyDef>
      <PropertyDef name="mbdwlx">
        <Property></Property>
        <Property name="label">目标计量单位编码</Property>
      </PropertyDef>
      <PropertyDef name="mbdwmc">
        <Property></Property>
        <Property name="label">目标计量单位名称</Property>
      </PropertyDef>
      <PropertyDef name="zhxs">
        <Property></Property>
        <Property name="label">转换系数</Property>
      </PropertyDef>
      <PropertyDef name="xh">
        <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">whjlShareApi2003PR#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="jldwbm">
          <Property name="property">jldwbm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jldwmc">
          <Property name="property">jldwmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="dwflbm">
          <Property name="property">dwflbm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="dwflmc">
          <Property name="property">dwflmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="xh">
          <Property name="property">xh</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>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">80%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">计量单位</Property>
      <Property name="height">85%</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>
        <FieldSet>
          <Property name="caption">计量单位</Property>
          <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">jldwbm</Property>
                <Property name="property">jldwbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jldwmc</Property>
                <Property name="property">jldwmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">dwflbm</Property>
                <Property name="property">dwflbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">dwflmc</Property>
                <Property name="property">dwflmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xh</Property>
                <Property name="property">xh</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>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">计量单位转换系数</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail2">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.jldwzhxs</Property>
              <DataColumn name="ydwbm">
                <Property name="property">ydwbm</Property>
              </DataColumn>
              <DataColumn name="ydwmc">
                <Property name="property">ydwmc</Property>
              </DataColumn>
              <DataColumn name="mbdwlx">
                <Property name="property">mbdwlx</Property>
              </DataColumn>
              <DataColumn name="mbdwmc">
                <Property name="property">mbdwmc</Property>
              </DataColumn>
              <DataColumn name="zhxs">
                <Property name="property">zhxs</Property>
              </DataColumn>
              <DataColumn name="xh">
                <Property name="property">xh</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2003PR#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">whjlShareApi2003PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2003PR#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/WhjlShareApi2004.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,419 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2004</Property>
      <PropertyDef name="jlgljgbh">
        <Property></Property>
        <Property name="label">军粮管理机构编号</Property>
      </PropertyDef>
      <PropertyDef name="tyshxydm">
        <Property></Property>
        <Property name="label">统一社会信用代码</Property>
      </PropertyDef>
      <PropertyDef name="sydwfrzsh">
        <Property></Property>
        <Property name="label">事业单位法人证书号</Property>
      </PropertyDef>
      <PropertyDef name="jgmc">
        <Property></Property>
        <Property name="label">机构名称</Property>
      </PropertyDef>
      <PropertyDef name="jgjc">
        <Property></Property>
        <Property name="label">机构简称</Property>
      </PropertyDef>
      <PropertyDef name="jgpzmc">
        <Property></Property>
        <Property name="label">加挂牌子名称</Property>
      </PropertyDef>
      <PropertyDef name="jbdw">
        <Property></Property>
        <Property name="label">举办单位</Property>
      </PropertyDef>
      <PropertyDef name="fzr">
        <Property></Property>
        <Property name="label">负责人</Property>
      </PropertyDef>
      <PropertyDef name="jgxz">
        <Property></Property>
        <Property name="label">机构性质</Property>
      </PropertyDef>
      <PropertyDef name="jgxzmc">
        <Property></Property>
        <Property name="label">机构性质名称</Property>
      </PropertyDef>
      <PropertyDef name="pzjg">
        <Property></Property>
        <Property name="label">批准机构</Property>
      </PropertyDef>
      <PropertyDef name="jggg">
        <Property></Property>
        <Property name="label">机构规格</Property>
      </PropertyDef>
      <PropertyDef name="jfglxs">
        <Property></Property>
        <Property name="label">经费管理形式</Property>
      </PropertyDef>
      <PropertyDef name="jfglxsmc">
        <Property></Property>
        <Property name="label">经费管理形式名称</Property>
      </PropertyDef>
      <PropertyDef name="zyzn">
        <Property></Property>
        <Property name="label">主要职能</Property>
      </PropertyDef>
      <PropertyDef name="jgdz">
        <Property></Property>
        <Property name="label">机构地址</Property>
      </PropertyDef>
      <PropertyDef name="jgxzqhbm">
        <Property></Property>
        <Property name="label">机构行政区划编码</Property>
      </PropertyDef>
      <PropertyDef name="jgxzqhmc">
        <Property></Property>
        <Property name="label">机构行政区划名称</Property>
      </PropertyDef>
      <PropertyDef name="jgyzbm">
        <Property></Property>
        <Property name="label">机构邮政编码</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></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">whjlShareApi2004PR#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="jgmc">
          <Property name="property">jgmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jgjc">
          <Property name="property">jgjc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fzr">
          <Property name="property">fzr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jgxz">
          <Property name="property">jgxz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlgljgbh">
          <Property name="property">jlgljgbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="tyshxydm">
          <Property name="property">tyshxydm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</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">jlgljgbh</Property>
            <Property name="property">jlgljgbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">tyshxydm</Property>
            <Property name="property">tyshxydm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sydwfrzsh</Property>
            <Property name="property">sydwfrzsh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgmc</Property>
            <Property name="property">jgmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgjc</Property>
            <Property name="property">jgjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgpzmc</Property>
            <Property name="property">jgpzmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jbdw</Property>
            <Property name="property">jbdw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fzr</Property>
            <Property name="property">fzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgxz</Property>
            <Property name="property">jgxz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgxzmc</Property>
            <Property name="property">jgxzmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pzjg</Property>
            <Property name="property">pzjg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jggg</Property>
            <Property name="property">jggg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jfglxs</Property>
            <Property name="property">jfglxs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jfglxsmc</Property>
            <Property name="property">jfglxsmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zyzn</Property>
            <Property name="property">zyzn</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgdz</Property>
            <Property name="property">jgdz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgxzqhbm</Property>
            <Property name="property">jgxzqhbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgxzqhmc</Property>
            <Property name="property">jgxzqhmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgyzbm</Property>
            <Property name="property">jgyzbm</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">whjlShareApi2004PR#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">whjlShareApi2004PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2004PR#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/WhjlShareApi2005.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,573 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2005</Property>
      <PropertyDef name="jljgqybh">
        <Property></Property>
        <Property name="label">军粮加工企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqymc">
        <Property></Property>
        <Property name="label">军粮加工企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jlqyjc">
        <Property></Property>
        <Property name="label">军粮企业简称</Property>
      </PropertyDef>
      <PropertyDef name="gyslx">
        <Property></Property>
        <Property name="label">供应商类型</Property>
      </PropertyDef>
      <PropertyDef name="zzjgdm">
        <Property></Property>
        <Property name="label">组织机构代码</Property>
      </PropertyDef>
      <PropertyDef name="jlqytyshxydm">
        <Property></Property>
        <Property name="label">企业统一社会信用代码</Property>
      </PropertyDef>
      <PropertyDef name="qyjjlx">
        <Property></Property>
        <Property name="label">企业经济类型</Property>
      </PropertyDef>
      <PropertyDef name="qyxz">
        <Property></Property>
        <Property name="label">企业性质</Property>
      </PropertyDef>
      <PropertyDef name="djzclx">
        <Property></Property>
        <Property name="label">登记注册类型</Property>
      </PropertyDef>
      <PropertyDef name="gsdjzch">
        <Property></Property>
        <Property name="label">工商登记注册号</Property>
      </PropertyDef>
      <PropertyDef name="fddbr">
        <Property></Property>
        <Property name="label">法定代表人</Property>
      </PropertyDef>
      <PropertyDef name="qydz">
        <Property></Property>
        <Property name="label">企业地址</Property>
      </PropertyDef>
      <PropertyDef name="qydh">
        <Property></Property>
        <Property name="label">企业电话</Property>
      </PropertyDef>
      <PropertyDef name="qycz">
        <Property></Property>
        <Property name="label">企业传真</Property>
      </PropertyDef>
      <PropertyDef name="qydzyx">
        <Property></Property>
        <Property name="label">企业电子邮箱</Property>
      </PropertyDef>
      <PropertyDef name="qywz">
        <Property></Property>
        <Property name="label">企业网址</Property>
      </PropertyDef>
      <PropertyDef name="qyyzbm">
        <Property></Property>
        <Property name="label">企业邮政编码</Property>
      </PropertyDef>
      <PropertyDef name="qyjd">
        <Property></Property>
        <Property name="label">企业经度</Property>
      </PropertyDef>
      <PropertyDef name="qywd">
        <Property></Property>
        <Property name="label">企业纬度</Property>
      </PropertyDef>
      <PropertyDef name="qyxzqhmc">
        <Property></Property>
        <Property name="label">企业行政区划名称</Property>
      </PropertyDef>
      <PropertyDef name="qyxzqhdm">
        <Property></Property>
        <Property name="label">企业行政区划代码</Property>
      </PropertyDef>
      <PropertyDef name="khyh">
        <Property></Property>
        <Property name="label">开户银行</Property>
      </PropertyDef>
      <PropertyDef name="yhzh">
        <Property></Property>
        <Property name="label">银行账号</Property>
      </PropertyDef>
      <PropertyDef name="yhxydj">
        <Property></Property>
        <Property name="label">银行信用等级</Property>
      </PropertyDef>
      <PropertyDef name="gdzc">
        <Property></Property>
        <Property name="label">固定资产</Property>
      </PropertyDef>
      <PropertyDef name="zczb">
        <Property></Property>
        <Property name="label">注册资本</Property>
      </PropertyDef>
      <PropertyDef name="zc">
        <Property></Property>
        <Property name="label">资产</Property>
      </PropertyDef>
      <PropertyDef name="qycyrys">
        <Property></Property>
        <Property name="label">企业从业人员数</Property>
      </PropertyDef>
      <PropertyDef name="scx">
        <Property></Property>
        <Property name="label">生产线</Property>
      </PropertyDef>
      <PropertyDef name="scsb">
        <Property></Property>
        <Property name="label">生产设备</Property>
      </PropertyDef>
      <PropertyDef name="sbmc">
        <Property></Property>
        <Property name="label">设备名称</Property>
      </PropertyDef>
      <PropertyDef name="sbcd">
        <Property></Property>
        <Property name="label">设备产地</Property>
      </PropertyDef>
      <PropertyDef name="jgnl">
        <Property></Property>
        <Property name="label">加工能力</Property>
      </PropertyDef>
      <PropertyDef name="spscxkz">
        <Property></Property>
        <Property name="label">食品生产许可</Property>
      </PropertyDef>
      <PropertyDef name="zypp">
        <Property></Property>
        <Property name="label">主要品牌</Property>
      </PropertyDef>
      <PropertyDef name="zz">
        <Property></Property>
        <Property name="label">资质</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></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">whjlShareApi2005PR#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="jljgqymc">
          <Property name="property">jljgqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlqyjc">
          <Property name="property">jlqyjc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="gyslx">
          <Property name="property">gyslx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jlqytyshxydm">
          <Property name="property">jlqytyshxydm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="zzjgdm">
          <Property name="property">zzjgdm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fddbr">
          <Property name="property">fddbr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</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">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">jlqyjc</Property>
            <Property name="property">jlqyjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gyslx</Property>
            <Property name="property">gyslx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zzjgdm</Property>
            <Property name="property">zzjgdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqytyshxydm</Property>
            <Property name="property">jlqytyshxydm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyjjlx</Property>
            <Property name="property">qyjjlx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyxz</Property>
            <Property name="property">qyxz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">djzclx</Property>
            <Property name="property">djzclx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gsdjzch</Property>
            <Property name="property">gsdjzch</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fddbr</Property>
            <Property name="property">fddbr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qydz</Property>
            <Property name="property">qydz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qydh</Property>
            <Property name="property">qydh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qycz</Property>
            <Property name="property">qycz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qydzyx</Property>
            <Property name="property">qydzyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qywz</Property>
            <Property name="property">qywz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyyzbm</Property>
            <Property name="property">qyyzbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyjd</Property>
            <Property name="property">qyjd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qywd</Property>
            <Property name="property">qywd</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">khyh</Property>
            <Property name="property">khyh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhzh</Property>
            <Property name="property">yhzh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhxydj</Property>
            <Property name="property">yhxydj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gdzc</Property>
            <Property name="property">gdzc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zczb</Property>
            <Property name="property">zczb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zc</Property>
            <Property name="property">zc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qycyrys</Property>
            <Property name="property">qycyrys</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scx</Property>
            <Property name="property">scx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scsb</Property>
            <Property name="property">scsb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sbmc</Property>
            <Property name="property">sbmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sbcd</Property>
            <Property name="property">sbcd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgnl</Property>
            <Property name="property">jgnl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">spscxkz</Property>
            <Property name="property">spscxkz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zypp</Property>
            <Property name="property">zypp</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zz</Property>
            <Property name="property">zz</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">whjlShareApi2005PR#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">whjlShareApi2005PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2005PR#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/WhjlShareApi2011.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,357 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2011</Property>
      <PropertyDef name="zjxmbh">
        <Property></Property>
        <Property name="label">质检项目编号</Property>
      </PropertyDef>
      <PropertyDef name="zjxmmc">
        <Property></Property>
        <Property name="label">质检项目名称</Property>
      </PropertyDef>
      <PropertyDef name="fjzjxmbh">
        <Property></Property>
        <Property name="label">父级质检项目编号</Property>
      </PropertyDef>
      <PropertyDef name="fjzjxmmc">
        <Property></Property>
        <Property name="label">父级质检项目名称</Property>
      </PropertyDef>
      <PropertyDef name="sjlx">
        <Property></Property>
        <Property name="label">数据类型</Property>
      </PropertyDef>
      <PropertyDef name="xswjd">
        <Property></Property>
        <Property name="label">小数位精度</Property>
      </PropertyDef>
      <PropertyDef name="jldw">
        <Property></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>
      <PropertyDef name="zjymqxList">
        <Property/>
      </PropertyDef>
      <Reference name="zjymqx">
        <Property name="parameter">$${this.zjymqxList}</Property>
        <Property name="dataProvider">whjlShareApi2011PR#listItemShareApi2011Xm</Property>
        <Property name="dataType">[dtItemShareApi2011Xm]</Property>
      </Reference>
    </DataType>
    <DataType name="dtItemShareApi2011Xm">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2011Xm</Property>
      <PropertyDef name="qxbh">
        <Property></Property>
        <Property name="label">缺陷编号</Property>
      </PropertyDef>
      <PropertyDef name="qxmc">
        <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">whjlShareApi2011PR#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="zjxmbh">
          <Property name="property">zjxmbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="zjxmmc">
          <Property name="property">zjxmmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fjzjxmbh">
          <Property name="property">fjzjxmbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fjzjxmmc">
          <Property name="property">fjzjxmmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sjlx">
          <Property name="property">sjlx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="xswjd">
          <Property name="property">xswjd</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jldw">
          <Property name="property">jldw</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">80%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">质量检查项目</Property>
      <Property name="height">85%</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>
        <FieldSet>
          <Property name="caption">计量单位</Property>
          <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">jldwbm</Property>
                <Property name="property">jldwbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jldwmc</Property>
                <Property name="property">jldwmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">dwflbm</Property>
                <Property name="property">dwflbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">dwflmc</Property>
                <Property name="property">dwflmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xh</Property>
                <Property name="property">xh</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>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">计量单位转换系数</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail2">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.jldwzhxs</Property>
              <DataColumn name="ydwbm">
                <Property name="property">ydwbm</Property>
              </DataColumn>
              <DataColumn name="ydwmc">
                <Property name="property">ydwmc</Property>
              </DataColumn>
              <DataColumn name="mbdwlx">
                <Property name="property">mbdwlx</Property>
              </DataColumn>
              <DataColumn name="mbdwmc">
                <Property name="property">mbdwmc</Property>
              </DataColumn>
              <DataColumn name="zhxs">
                <Property name="property">zhxs</Property>
              </DataColumn>
              <DataColumn name="xh">
                <Property name="property">xh</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2011PR#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">whjlShareApi2011PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2011PR#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/WhjlShareApi2012.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,446 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2012</Property>
      <PropertyDef name="yjfayjhbh">
        <Property></Property>
        <Property name="label">应急方案与计划编号</Property>
      </PropertyDef>
      <PropertyDef name="yjfayjhmc">
        <Property></Property>
        <Property name="label">应急方案与计划名称</Property>
      </PropertyDef>
      <PropertyDef name="zdsj">
        <Property></Property>
        <Property name="label">制定时间</Property>
      </PropertyDef>
      <PropertyDef name="sjfssj">
        <Property></Property>
        <Property name="label">事件发生时间</Property>
      </PropertyDef>
      <PropertyDef name="yjwz">
        <Property></Property>
        <Property name="label">应急位置</Property>
      </PropertyDef>
      <PropertyDef name="yjjd">
        <Property></Property>
        <Property name="label">应急经度</Property>
      </PropertyDef>
      <PropertyDef name="yjwd">
        <Property></Property>
        <Property name="label">应急纬度</Property>
      </PropertyDef>
      <PropertyDef name="fazt">
        <Property></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>
      <PropertyDef name="yjfajgList">
        <Property/>
      </PropertyDef>
      <Reference name="yjfajg">
        <Property name="parameter">$${this.yjfajgList}</Property>
        <Property name="dataProvider">whjlShareApi2012PR#listItemShareApi2012Fa</Property>
        <Property name="dataType">[dtItemShareApi2012Fa]</Property>
      </Reference>
    </DataType>
    <DataType name="dtItemShareApi2012Fa">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2012Fa</Property>
      <PropertyDef name="yjfajgbh">
        <Property></Property>
        <Property name="label">应急方案明细编号</Property>
      </PropertyDef>
      <PropertyDef name="yjgsbh">
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbm">
        <Property></Property>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="yjfayjhbh">
        <Property></Property>
        <Property name="label">应急方案与计划编号</Property>
      </PropertyDef>
      <PropertyDef name="pzflbh">
        <Property></Property>
        <Property name="label">品种分类编号</Property>
      </PropertyDef>
      <PropertyDef name="jldwflbh">
        <Property></Property>
        <Property name="label">计量单位分类编号</Property>
      </PropertyDef>
      <PropertyDef name="dccl">
        <Property></Property>
        <Property name="label">调出重量</Property>
      </PropertyDef>
      <PropertyDef name="yqsj">
        <Property></Property>
        <Property name="label">要求时间</Property>
      </PropertyDef>
      <PropertyDef name="dbcb">
        <Property></Property>
        <Property name="label">调拨成本</Property>
      </PropertyDef>
      <PropertyDef name="dbsj">
        <Property></Property>
        <Property name="label">调拨时间</Property>
      </PropertyDef>
      <PropertyDef name="shdwbh">
        <Property></Property>
        <Property name="label">收货单位编号</Property>
      </PropertyDef>
      <PropertyDef name="shdwmc">
        <Property></Property>
        <Property name="label">收货单位名称</Property>
      </PropertyDef>
      <PropertyDef name="shlxr">
        <Property></Property>
        <Property name="label">收货联系人</Property>
      </PropertyDef>
      <PropertyDef name="shlxrdh">
        <Property></Property>
        <Property name="label">收货联系人电话</Property>
      </PropertyDef>
      <PropertyDef name="dcz">
        <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">whjlShareApi2012PR#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="yjfayjhbh">
          <Property name="property">yjfayjhbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="yjfayjhmc">
          <Property name="property">yjfayjhmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="zdsj">
          <Property name="property">zdsj</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sjfssj">
          <Property name="property">sjfssj</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="yjwz">
          <Property name="property">yjwz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="yjjd">
          <Property name="property">yjjd</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">80%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">应急方案信息</Property>
      <Property name="height">85%</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>
        <FieldSet>
          <Property name="caption">应急方案信息</Property>
          <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">yjfayjhbh</Property>
                <Property name="property">yjfayjhbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yjfayjhmc</Property>
                <Property name="property">yjfayjhmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zdsj</Property>
                <Property name="property">zdsj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sjfssj</Property>
                <Property name="property">sjfssj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yjwz</Property>
                <Property name="property">yjwz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yjjd</Property>
                <Property name="property">yjjd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yjwd</Property>
                <Property name="property">yjwd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fazt</Property>
                <Property name="property">fazt</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>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">应急方案明细</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail2">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.yjfajg</Property>
              <DataColumn name="yjfajgbh">
                <Property name="property">yjfajgbh</Property>
              </DataColumn>
              <DataColumn name="yjgsbh">
                <Property name="property">yjgsbh</Property>
              </DataColumn>
              <DataColumn name="jgzdbm">
                <Property name="property">jgzdbm</Property>
              </DataColumn>
              <DataColumn name="yjfayjhbh">
                <Property name="property">yjfayjhbh</Property>
              </DataColumn>
              <DataColumn name="pzflbh">
                <Property name="property">pzflbh</Property>
              </DataColumn>
              <DataColumn name="jldwflbh">
                <Property name="property">jldwflbh</Property>
              </DataColumn>
              <DataColumn name="dccl">
                <Property name="property">dccl</Property>
              </DataColumn>
              <DataColumn name="yqsj">
                <Property name="property">yqsj</Property>
              </DataColumn>
              <DataColumn name="dbcb">
                <Property name="property">dbcb</Property>
              </DataColumn>
              <DataColumn name="dbsj">
                <Property name="property">dbsj</Property>
              </DataColumn>
              <DataColumn name="shdwbh">
                <Property name="property">shdwbh</Property>
              </DataColumn>
              <DataColumn name="shdwmc">
                <Property name="property">shdwmc</Property>
              </DataColumn>
              <DataColumn name="shlxr">
                <Property name="property">shlxr</Property>
              </DataColumn>
              <DataColumn name="shlxrdh">
                <Property name="property">shlxrdh</Property>
              </DataColumn>
              <DataColumn name="dcz">
                <Property name="property">dcz</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2012PR#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">whjlShareApi2012PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2012PR#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/WhjlShareApi2004.java
@@ -21,26 +21,26 @@
     */
    private static final long serialVersionUID = 1L;
    private String jlgljgbhjgyzbm;  //军粮管理机构编号
    private String tyshxydmjgyzbm;  //统一社会信用代码
    private String sydwfrzshjgyzbm;  //事业单位法人证书号
    private String jgmcjgyzbm;  //机构名称
    private String jgjcjgyzbm;  //机构简称
    private String jgpzmcjgyzbm;  //加挂牌子名称
    private String jbdwjgyzbm;  //举办单位
    private String fzrjgyzbm;  //负责人
    private String jgxzjgyzbm;  //机构性质
    private String jgxzmcjgyzbm;  //机构性质名称
    private String pzjgjgyzbm;  //批准机构
    private String jgggjgyzbm;  //机构规格
    private String jfglxsjgyzbm;  //经费管理形式
    private String jfglxsmcjgyzbm;  //经费管理形式名称
    private String zyznjgyzbm;  //主要职能
    private String jgdzjgyzbm;  //机构地址
    private String jgxzqhbmjgyzbm;  //机构行政区划编码
    private String jgxzqhmcjgyzbm;  //机构行政区划名称
    private String jlgljgbh;  //军粮管理机构编号
    private String tyshxydm;  //统一社会信用代码
    private String sydwfrzsh;  //事业单位法人证书号
    private String jgmc;  //机构名称
    private String jgjc;  //机构简称
    private String jgpzmc;  //加挂牌子名称
    private String jbdw;  //举办单位
    private String fzr;  //负责人
    private String jgxz;  //机构性质
    private String jgxzmc;  //机构性质名称
    private String pzjg;  //批准机构
    private String jggg;  //机构规格
    private String jfglxs;  //经费管理形式
    private String jfglxsmc;  //经费管理形式名称
    private String zyzn;  //主要职能
    private String jgdz;  //机构地址
    private String jgxzqhbm;  //机构行政区划编码
    private String jgxzqhmc;  //机构行政区划名称
    private String jgyzbm;  //机构邮政编码
    private String sfyxjgyzbm;  //是否有效
    private String sfyx;  //是否有效
    //单独增加,不进行上传
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2001PR.java
@@ -133,16 +133,16 @@
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2001.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2001 whjlShareApi2001 : list) {
                        whjlShareApi2001.setCzbz(Constant.CZBZ_U);
                    for (WhjlShareApi2001 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(whjlShareApi2001.getSbflbm());
                        infoData.setId(shareData.getSbflbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2001);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(whjlShareApi2001.getSbflbm());
                        infoData.setData(JSON.toJSONString(whjlShareApi2001));
                        infoData.setDataId(shareData.getSbflbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2002PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,158 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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.WhjlShareApi2001;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2002;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2002PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> 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);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2003PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,169 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-计量单位
 *
 * @author czt
 */
@Component
public class WhjlShareApi2003PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2003PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2003> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2003);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2003> list = new ArrayList<>();
        WhjlShareApi2003 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2003.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * èŽ·å–è´¨æ£€æ ‡å‡†é€‚ç”¨çš„å“ç§
     * whjlShareApi2003PR#listItemShareApi2003Xs
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2003Xs> listItemShareApi2003Xs(String code) {
        return JSON.parseArray(code, ShareApi2003Xs.class);
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2003PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2003 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getJldwbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2003);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getJldwbm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2003PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2003 data) {
        apiInfoDataRep.deleteById(data.getJldwbm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2003PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2003> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2003> 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_2003);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2003.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2003 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        shareData.setJldwzhxsList(JSON.toJSONString(shareData.getJldwzhxs()));
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getJldwbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2003);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getJldwbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2004PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,159 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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.WhjlShareApi2003;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2004;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2004PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2004PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2004> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2004);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2004> list = new ArrayList<>();
        WhjlShareApi2004 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2004.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2004PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2004 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getTyshxydm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2004);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getTyshxydm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2004PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2004 data) {
        apiInfoDataRep.deleteById(data.getTyshxydm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2004PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2004> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2004> 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_2004);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2004.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2004 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getTyshxydm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2004);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getTyshxydm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2005PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,156 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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.WhjlShareApi2005;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2005PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2005PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2005> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2005);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2005> list = new ArrayList<>();
        WhjlShareApi2005 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2005.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2005PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2005 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getJlqytyshxydm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2005);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getJlqytyshxydm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2005PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2005 data) {
        apiInfoDataRep.deleteById(data.getJlqytyshxydm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2005PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2005> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2005> 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_2005);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2005.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2005 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getJlqytyshxydm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2005);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getJlqytyshxydm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2006PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,157 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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 org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2006PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> 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);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2007PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,157 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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 org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2007PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> 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);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2008PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,157 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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 org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2008PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> 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);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2009PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,157 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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 org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-产品分类
 *
 * @author czt
 */
@Component
public class WhjlShareApi2009PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2002PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2002> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2002);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2002> list = new ArrayList<>();
        WhjlShareApi2002 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2002.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2002PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2002 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getCpflbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2002);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getCpflbm());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2002PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2002 data) {
        apiInfoDataRep.deleteById(data.getCpflbm());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2002PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2002> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2002> 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);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2002.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2002 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getCpflbm());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2002);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getCpflbm());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2010PR.java
@@ -98,7 +98,7 @@
        infoData.setId(data.getZjbzbm());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2001);
        infoData.setInteId(WhjlConstant.API_CODE_2010);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getZjbzbm());
        infoData.setData(JSON.toJSONString(data));
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2011PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,172 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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.ShareApi2003Xs;
import com.fzzy.otherview.whhpjl.dto.ShareApi2011Xm;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2003;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2011;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-计量单位
 *
 * @author czt
 */
@Component
public class WhjlShareApi2011PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2011PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2011> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2011);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2011> list = new ArrayList<>();
        WhjlShareApi2011 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2011.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * èŽ·å–è´¨æ£€æ ‡å‡†é€‚ç”¨çš„å“ç§
     * whjlShareApi2011PR#listItemShareApi2011Xm
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2011Xm> listItemShareApi2011Xm(String code) {
        return JSON.parseArray(code, ShareApi2011Xm.class);
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2011PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2011 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getZjxmbh());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2011);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getZjxmbh());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2011PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2011 data) {
        apiInfoDataRep.deleteById(data.getZjxmbh());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2011PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2011> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2011> 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_2011);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2011.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2011 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        shareData.setZjymqxList(JSON.toJSONString(shareData.getZjymqx()));
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getZjxmbh());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2011);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getZjxmbh());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2012PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,169 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
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.ShareApi2012Fa;
import com.fzzy.otherview.whhpjl.dto.WhjlShareApi2012;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-计量单位
 *
 * @author czt
 */
@Component
public class WhjlShareApi2012PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2012PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2012> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2012);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2012> list = new ArrayList<>();
        WhjlShareApi2012 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2012.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * èŽ·å–è´¨æ£€æ ‡å‡†é€‚ç”¨çš„å“ç§
     * whjlShareApi2012PR#listItemShareApi2012Fa
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2012Fa> listItemShareApi2012Fa(String code) {
        return JSON.parseArray(code, ShareApi2012Fa.class);
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2012PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2012 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getYjfayjhbh());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2012);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getYjfayjhbh());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2012PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2012 data) {
        apiInfoDataRep.deleteById(data.getYjfayjhbh());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2012PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2012> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2012> 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_2012);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2012.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2012 shareData : list) {
                        shareData.setCzbz(Constant.CZBZ_U);
                        shareData.setYjfajgList(JSON.toJSONString(shareData.getYjfajg()));
                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getYjfayjhbh());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2012);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getYjfayjhbh());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
}