ws
2023-11-01 8bb6641ef68a158aabd0dc20b54fb6a4516b16fc
提交武汉接口
已添加33个文件
已修改2个文件
7240 ■■■■■ 文件已修改
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1403.view.xml 758 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1404.view.xml 475 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1405.view.xml 643 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1406.view.xml 319 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1407.view.xml 307 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1408.view.xml 511 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1409.view.xml 379 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1410.view.xml 535 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1411.view.xml 523 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1412.view.xml 523 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlConstant.java 53 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1403.java 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1404.java 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1405.java 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1406.java 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1407.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1408.java 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1409.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1410.java 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1411.java 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1412.java 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlDYQYCL.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlDYQYRY.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlYJMX.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1403PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1404PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1405PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1406PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1407PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1408PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1409PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1410PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1411PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1412PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/home/home-whjl.html 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1403.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,758 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1403</Property>
      <PropertyDef name="dyqynm">
        <Property></Property>
        <Property name="label">动员企业内码</Property>
      </PropertyDef>
      <PropertyDef name="qymc">
        <Property></Property>
        <Property name="label">企业名称</Property>
      </PropertyDef>
      <PropertyDef name="qyjc">
        <Property></Property>
        <Property name="label">企业简称</Property>
      </PropertyDef>
      <PropertyDef name="qydh">
        <Property></Property>
        <Property name="label">企业电话</Property>
      </PropertyDef>
      <PropertyDef name="qylxr">
        <Property></Property>
        <Property name="label">企业联系人</Property>
      </PropertyDef>
      <PropertyDef name="qydz">
        <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="xynl">
        <Property></Property>
        <Property name="label">响应能力</Property>
      </PropertyDef>
      <PropertyDef name="xysd">
        <Property></Property>
        <Property name="label">响应速度</Property>
      </PropertyDef>
      <PropertyDef name="sbzs">
        <Property></Property>
        <Property name="label">设备总数</Property>
      </PropertyDef>
      <PropertyDef name="yyzs">
        <Property></Property>
        <Property name="label">人员总数</Property>
      </PropertyDef>
      <PropertyDef name="nx">
        <Property></Property>
        <Property name="label">女性</Property>
      </PropertyDef>
      <PropertyDef name="ssmz">
        <Property></Property>
        <Property name="label">少数民族</Property>
      </PropertyDef>
      <PropertyDef name="gcdy">
        <Property></Property>
        <Property name="label">共产党员</Property>
      </PropertyDef>
      <PropertyDef name="zgzg">
        <Property></Property>
        <Property name="label">在岗职工</Property>
      </PropertyDef>
      <PropertyDef name="qyjyglry">
        <Property></Property>
        <Property name="label">企业经营管理人员</Property>
      </PropertyDef>
      <PropertyDef name="zyjsry">
        <Property></Property>
        <Property name="label">专业技术人员</Property>
      </PropertyDef>
      <PropertyDef name="jsgr">
        <Property></Property>
        <Property name="label">技术工人</Property>
      </PropertyDef>
      <PropertyDef name="cqzg">
        <Property></Property>
        <Property name="label">长期职工</Property>
      </PropertyDef>
      <PropertyDef name="lszg">
        <Property></Property>
        <Property name="label">临时职工</Property>
      </PropertyDef>
      <PropertyDef name="qtcyry">
        <Property></Property>
        <Property name="label">其他从业人员</Property>
      </PropertyDef>
      <PropertyDef name="yjs">
        <Property></Property>
        <Property name="label">研究生</Property>
      </PropertyDef>
      <PropertyDef name="dxbk">
        <Property></Property>
        <Property name="label">大学本科</Property>
      </PropertyDef>
      <PropertyDef name="dxzk">
        <Property></Property>
        <Property name="label">大学专科</Property>
      </PropertyDef>
      <PropertyDef name="zzrs">
        <Property></Property>
        <Property name="label">中专</Property>
      </PropertyDef>
      <PropertyDef name="gz">
        <Property></Property>
        <Property name="label">高中</Property>
      </PropertyDef>
      <PropertyDef name="czjyx">
        <Property></Property>
        <Property name="label">初中及以下</Property>
      </PropertyDef>
      <PropertyDef name="z35syx">
        <Property></Property>
        <Property name="label">35岁及以下</Property>
      </PropertyDef>
      <PropertyDef name="z36z45">
        <Property></Property>
        <Property name="label">36至45</Property>
      </PropertyDef>
      <PropertyDef name="z46z54">
        <Property></Property>
        <Property name="label">46至54</Property>
      </PropertyDef>
      <PropertyDef name="z55ys">
        <Property></Property>
        <Property name="label">55以上</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <Reference name="dyqyry">
        <Property name="label">动员企业人员</Property>
        <Property name="dataType">[dtDyqyry]</Property>
      </Reference>
    </DataType>
    <DataType name="dtDyqyry">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlDYQYRY</Property>
      <PropertyDef name="dyqyrybh">
        <Property></Property>
        <Property name="label">动员企业人员编号</Property>
      </PropertyDef>
      <PropertyDef name="xm">
        <Property></Property>
        <Property name="label">姓名</Property>
      </PropertyDef>
      <PropertyDef name="xb">
        <Property></Property>
        <Property name="label">性别</Property>
      </PropertyDef>
      <PropertyDef name="gw">
        <Property></Property>
        <Property name="label">岗位</Property>
      </PropertyDef>
      <PropertyDef name="lxdh">
        <Property></Property>
        <Property name="label">联系电话</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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">whjlApi1403PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyqynm">
          <Property name="property">dyqynm</Property>
        </DataColumn>
        <DataColumn name="qymc">
          <Property name="property">qymc</Property>
        </DataColumn>
        <DataColumn name="qyjc">
          <Property name="property">qyjc</Property>
        </DataColumn>
        <DataColumn name="qydh">
          <Property name="property">qydh</Property>
        </DataColumn>
        <DataColumn name="qylxr">
          <Property name="property">qylxr</Property>
        </DataColumn>
        <DataColumn name="qydz">
          <Property name="property">qydz</Property>
        </DataColumn>
        <DataColumn name="qyjd">
          <Property name="property">qyjd</Property>
        </DataColumn>
        <DataColumn name="qywd">
          <Property name="property">qywd</Property>
        </DataColumn>
        <DataColumn name="qyxzqhmc">
          <Property name="property">qyxzqhmc</Property>
        </DataColumn>
        <DataColumn name="qyxzqhdm">
          <Property name="property">qyxzqhdm</Property>
        </DataColumn>
        <DataColumn name="xynl">
          <Property name="property">xynl</Property>
        </DataColumn>
        <DataColumn name="xysd">
          <Property name="property">xysd</Property>
        </DataColumn>
        <DataColumn name="sbzs">
          <Property name="property">sbzs</Property>
        </DataColumn>
        <DataColumn name="yyzs">
          <Property name="property">yyzs</Property>
        </DataColumn>
        <DataColumn name="nx">
          <Property name="property">nx</Property>
        </DataColumn>
        <DataColumn name="ssmz">
          <Property name="property">ssmz</Property>
        </DataColumn>
        <DataColumn name="gcdy">
          <Property name="property">gcdy</Property>
        </DataColumn>
        <DataColumn name="zgzg">
          <Property name="property">zgzg</Property>
        </DataColumn>
        <DataColumn name="qyjyglry">
          <Property name="property">qyjyglry</Property>
        </DataColumn>
        <DataColumn name="zyjsry">
          <Property name="property">zyjsry</Property>
        </DataColumn>
        <DataColumn name="jsgr">
          <Property name="property">jsgr</Property>
        </DataColumn>
        <DataColumn name="cqzg">
          <Property name="property">cqzg</Property>
        </DataColumn>
        <DataColumn name="lszg">
          <Property name="property">lszg</Property>
        </DataColumn>
        <DataColumn name="qtcyry">
          <Property name="property">qtcyry</Property>
        </DataColumn>
        <DataColumn name="yjs">
          <Property name="property">yjs</Property>
        </DataColumn>
        <DataColumn name="dxbk">
          <Property name="property">dxbk</Property>
        </DataColumn>
        <DataColumn name="dxzk">
          <Property name="property">dxzk</Property>
        </DataColumn>
        <DataColumn name="zzrs">
          <Property name="property">zzrs</Property>
        </DataColumn>
        <DataColumn name="gz">
          <Property name="property">gz</Property>
        </DataColumn>
        <DataColumn name="czjyx">
          <Property name="property">czjyx</Property>
        </DataColumn>
        <DataColumn name="z35syx">
          <Property name="property">z35syx</Property>
        </DataColumn>
        <DataColumn name="z36z45">
          <Property name="property">z36z45</Property>
        </DataColumn>
        <DataColumn name="z46z54">
          <Property name="property">z46z54</Property>
        </DataColumn>
        <DataColumn name="z55ys">
          <Property name="property">z55ys</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
        <DataColumn name="dyqyry">
          <Property name="property">dyqyry</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*,*,*</Property>
          <Property name="labelPosition">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyqynm</Property>
            <Property name="property">dyqynm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qymc</Property>
            <Property name="property">qymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyjc</Property>
            <Property name="property">qyjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qydh</Property>
            <Property name="property">qydh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qylxr</Property>
            <Property name="property">qylxr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qydz</Property>
            <Property name="property">qydz</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">xynl</Property>
            <Property name="property">xynl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xysd</Property>
            <Property name="property">xysd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sbzs</Property>
            <Property name="property">sbzs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yyzs</Property>
            <Property name="property">yyzs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">nx</Property>
            <Property name="property">nx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ssmz</Property>
            <Property name="property">ssmz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gcdy</Property>
            <Property name="property">gcdy</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zgzg</Property>
            <Property name="property">zgzg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qyjyglry</Property>
            <Property name="property">qyjyglry</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zyjsry</Property>
            <Property name="property">zyjsry</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsgr</Property>
            <Property name="property">jsgr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cqzg</Property>
            <Property name="property">cqzg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lszg</Property>
            <Property name="property">lszg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qtcyry</Property>
            <Property name="property">qtcyry</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yjs</Property>
            <Property name="property">yjs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dxbk</Property>
            <Property name="property">dxbk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dxzk</Property>
            <Property name="property">dxzk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zzrs</Property>
            <Property name="property">zzrs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gz</Property>
            <Property name="property">gz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czjyx</Property>
            <Property name="property">czjyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">z35syx</Property>
            <Property name="property">z35syx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">z36z45</Property>
            <Property name="property">z36z45</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">z46z54</Property>
            <Property name="property">z46z54</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">z55ys</Property>
            <Property name="property">z55ys</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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>
        <Panel>
          <Property name="caption">动员企业人员</Property>
          <Property name="height">80%</Property>
          <Buttons/>
          <Children>
            <Container layout="regionPadding:10">
              <Label layoutConstraint="left">
                <Property name="text">菜单栏:</Property>
              </Label>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var list = view.get(&quot;#dsMain.data:#&quot;).get(&quot;jcbgfjmx&quot;);&#xD;
list.insert({});</ClientEvent>
                <Property name="caption">新增</Property>
                <Property name="exClassName">btn-default</Property>
                <Property name="iconClass">fa fa-plus</Property>
              </Button>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var data = view.get(&quot;#dgLink.currentEntity&quot;);&#xD;
data.remove();</ClientEvent>
                <Property name="caption">删除</Property>
                <Property name="exClassName">btn-warn</Property>
                <Property name="iconClass">fa fa-minus</Property>
              </Button>
            </Container>
            <DataGrid id="dgLink">
              <Property name="dataPath">#.dyqyry</Property>
              <Property name="dataSet">dsMain</Property>
              <DataColumn name="dyqyrybh">
                <Property name="property">dyqyrybh</Property>
              </DataColumn>
              <DataColumn name="xm">
                <Property name="property">xm</Property>
              </DataColumn>
              <DataColumn name="xb">
                <Property name="property">xb</Property>
              </DataColumn>
              <DataColumn name="gw">
                <Property name="property">gw</Property>
              </DataColumn>
              <DataColumn name="lxdh">
                <Property name="property">lxdh</Property>
              </DataColumn>
              <DataColumn name="sfyx">
                <Property name="property">sfyx</Property>
              </DataColumn>
              <DataColumn name="bz">
                <Property name="property">bz</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1403PR#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">whjlApi1403PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1403PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1404.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,475 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1404</Property>
      <PropertyDef name="dyspid">
        <Property/>
        <Property name="label">动员商品Id</Property>
      </PropertyDef>
      <PropertyDef name="dyqynm">
        <Property/>
        <Property name="label">动员企业编码</Property>
      </PropertyDef>
      <PropertyDef name="qymc">
        <Property/>
        <Property name="label">动员企业名称</Property>
      </PropertyDef>
      <PropertyDef name="dywz">
        <Property/>
        <Property name="label">动员位置</Property>
      </PropertyDef>
      <PropertyDef name="cplx">
        <Property/>
        <Property name="label">产品类型</Property>
      </PropertyDef>
      <PropertyDef name="lspzbm">
        <Property/>
        <Property name="label">品种编号</Property>
      </PropertyDef>
      <PropertyDef name="lspzmc">
        <Property/>
        <Property name="label">品种名称</Property>
      </PropertyDef>
      <PropertyDef name="ppbh">
        <Property/>
        <Property name="label">品牌编号</Property>
      </PropertyDef>
      <PropertyDef name="ppmc">
        <Property/>
        <Property name="label">品牌名称</Property>
      </PropertyDef>
      <PropertyDef name="cpbh">
        <Property/>
        <Property name="label">产品编号</Property>
      </PropertyDef>
      <PropertyDef name="cpmc">
        <Property/>
        <Property name="label">产品名称</Property>
      </PropertyDef>
      <PropertyDef name="dj">
        <Property/>
        <Property name="label">单价</Property>
      </PropertyDef>
      <PropertyDef name="scrq">
        <Property/>
        <Property name="label">生产日期</Property>
      </PropertyDef>
      <PropertyDef name="cppc">
        <Property/>
        <Property name="label">批次</Property>
      </PropertyDef>
      <PropertyDef name="sl">
        <Property/>
        <Property name="label">数量</Property>
      </PropertyDef>
      <PropertyDef name="sldwbm">
        <Property/>
        <Property name="label">数量单位编码</Property>
      </PropertyDef>
      <PropertyDef name="zl">
        <Property/>
        <Property name="label">重量</Property>
      </PropertyDef>
      <PropertyDef name="zldwbm">
        <Property/>
        <Property name="label">重量单位编码</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1404PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyspid">
          <Property name="property">dyspid</Property>
        </DataColumn>
        <DataColumn name="dyqynm">
          <Property name="property">dyqynm</Property>
        </DataColumn>
        <DataColumn name="qymc">
          <Property name="property">qymc</Property>
        </DataColumn>
        <DataColumn name="dywz">
          <Property name="property">dywz</Property>
        </DataColumn>
        <DataColumn name="cplx">
          <Property name="property">cplx</Property>
        </DataColumn>
        <DataColumn name="lspzbm">
          <Property name="property">lspzbm</Property>
        </DataColumn>
        <DataColumn name="lspzmc">
          <Property name="property">lspzmc</Property>
        </DataColumn>
        <DataColumn name="ppbh">
          <Property name="property">ppbh</Property>
        </DataColumn>
        <DataColumn name="ppmc">
          <Property name="property">ppmc</Property>
        </DataColumn>
        <DataColumn name="cpbh">
          <Property name="property">cpbh</Property>
        </DataColumn>
        <DataColumn name="cpmc">
          <Property name="property">cpmc</Property>
        </DataColumn>
        <DataColumn name="dj">
          <Property name="property">dj</Property>
        </DataColumn>
        <DataColumn name="scrq">
          <Property name="property">scrq</Property>
        </DataColumn>
        <DataColumn name="cppc">
          <Property name="property">cppc</Property>
        </DataColumn>
        <DataColumn name="sl">
          <Property name="property">sl</Property>
        </DataColumn>
        <DataColumn name="sldwbm">
          <Property name="property">sldwbm</Property>
        </DataColumn>
        <DataColumn name="zl">
          <Property name="property">zl</Property>
        </DataColumn>
        <DataColumn name="zldwbm">
          <Property name="property">zldwbm</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyspid</Property>
            <Property name="property">dyspid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyqynm</Property>
            <Property name="property">dyqynm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qymc</Property>
            <Property name="property">qymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dywz</Property>
            <Property name="property">dywz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cplx</Property>
            <Property name="property">cplx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lspzbm</Property>
            <Property name="property">lspzbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lspzmc</Property>
            <Property name="property">lspzmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ppbh</Property>
            <Property name="property">ppbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ppmc</Property>
            <Property name="property">ppmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpbh</Property>
            <Property name="property">cpbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpmc</Property>
            <Property name="property">cpmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dj</Property>
            <Property name="property">dj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scrq</Property>
            <Property name="property">scrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cppc</Property>
            <Property name="property">cppc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sl</Property>
            <Property name="property">sl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sldwbm</Property>
            <Property name="property">sldwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zl</Property>
            <Property name="property">zl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zldwbm</Property>
            <Property name="property">zldwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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">whjlApi1404PR#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">whjlApi1404PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1404PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1405.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,643 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1405</Property>
      <PropertyDef name="dyxyid">
        <Property/>
        <Property name="label">动员协议id</Property>
      </PropertyDef>
      <PropertyDef name="dyqynm">
        <Property/>
        <Property name="label">动员企业内码</Property>
      </PropertyDef>
      <PropertyDef name="htkhbh">
        <Property/>
        <Property name="label">合同客户编号</Property>
      </PropertyDef>
      <PropertyDef name="htkhmc">
        <Property/>
        <Property name="label">合同客户名称</Property>
      </PropertyDef>
      <PropertyDef name="htbh">
        <Property/>
        <Property name="label">合同编号</Property>
      </PropertyDef>
      <PropertyDef name="htlb">
        <Property/>
        <Property name="label">合同类别</Property>
      </PropertyDef>
      <PropertyDef name="htbt">
        <Property/>
        <Property name="label">合同标题</Property>
      </PropertyDef>
      <PropertyDef name="cpid">
        <Property/>
        <Property name="label">产品id</Property>
      </PropertyDef>
      <PropertyDef name="spbm">
        <Property/>
        <Property name="label">商品编码</Property>
      </PropertyDef>
      <PropertyDef name="htspsl">
        <Property/>
        <Property name="label">合同商品数量</Property>
      </PropertyDef>
      <PropertyDef name="htspdj">
        <Property/>
        <Property name="label">合同商品单价</Property>
      </PropertyDef>
      <PropertyDef name="zje">
        <Property/>
        <Property name="label">总金额</Property>
      </PropertyDef>
      <PropertyDef name="htqdr">
        <Property/>
        <Property name="label">合同签订时间</Property>
      </PropertyDef>
      <PropertyDef name="htqdsj">
        <Property/>
        <Property name="label">合同签订时间</Property>
      </PropertyDef>
      <PropertyDef name="htsxsj">
        <Property/>
        <Property name="label">合同生效日期</Property>
      </PropertyDef>
      <PropertyDef name="htjzsj">
        <Property/>
        <Property name="label">合同截止日期</Property>
      </PropertyDef>
      <PropertyDef name="htcjr">
        <Property/>
        <Property name="label">合同创建人</Property>
      </PropertyDef>
      <PropertyDef name="htcjsj">
        <Property/>
        <Property name="label">合同创建时间</Property>
      </PropertyDef>
      <PropertyDef name="htdbgjlbz">
        <Property/>
        <Property name="label">合同的变更记录标志</Property>
      </PropertyDef>
      <PropertyDef name="htbgyy">
        <Property/>
        <Property name="label">合同变更原因</Property>
      </PropertyDef>
      <PropertyDef name="htlx">
        <Property/>
        <Property name="label">合同类型</Property>
      </PropertyDef>
      <PropertyDef name="yhtbh">
        <Property/>
        <Property name="label">原合同编号</Property>
      </PropertyDef>
      <PropertyDef name="zffs">
        <Property/>
        <Property name="label">支付方式</Property>
      </PropertyDef>
      <PropertyDef name="ywcsl">
        <Property/>
        <Property name="label">已完成数量</Property>
      </PropertyDef>
      <PropertyDef name="ywcslje">
        <Property/>
        <Property name="label">已完成数量金额</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="ghzl">
        <Property/>
        <Property name="label">供货质量</Property>
      </PropertyDef>
      <PropertyDef name="zdbzsl">
        <Property/>
        <Property name="label">最低保障数量</Property>
      </PropertyDef>
      <PropertyDef name="ysbzyq">
        <Property/>
        <Property name="label">运输包装要求</Property>
      </PropertyDef>
      <PropertyDef name="ghxysj">
        <Property/>
        <Property name="label">供货响应时间(小时)</Property>
      </PropertyDef>
      <PropertyDef name="jfbj">
        <Property/>
        <Property name="label">交付标准</Property>
      </PropertyDef>
      <PropertyDef name="xyzt">
        <Property/>
        <Property name="label">协议状态</Property>
      </PropertyDef>
      <PropertyDef name="sxh">
        <Property/>
        <Property name="label">顺序号</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1405PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyxyid">
          <Property name="property">dyxyid</Property>
        </DataColumn>
        <DataColumn name="dyqynm">
          <Property name="property">dyqynm</Property>
        </DataColumn>
        <DataColumn name="htkhbh">
          <Property name="property">htkhbh</Property>
        </DataColumn>
        <DataColumn name="htkhmc">
          <Property name="property">htkhmc</Property>
        </DataColumn>
        <DataColumn name="htbh">
          <Property name="property">htbh</Property>
        </DataColumn>
        <DataColumn name="htlb">
          <Property name="property">htlb</Property>
        </DataColumn>
        <DataColumn name="htbt">
          <Property name="property">htbt</Property>
        </DataColumn>
        <DataColumn name="cpid">
          <Property name="property">cpid</Property>
        </DataColumn>
        <DataColumn name="spbm">
          <Property name="property">spbm</Property>
        </DataColumn>
        <DataColumn name="htspsl">
          <Property name="property">htspsl</Property>
        </DataColumn>
        <DataColumn name="htspdj">
          <Property name="property">htspdj</Property>
        </DataColumn>
        <DataColumn name="zje">
          <Property name="property">zje</Property>
        </DataColumn>
        <DataColumn name="htqdr">
          <Property name="property">htqdr</Property>
        </DataColumn>
        <DataColumn name="htqdsj">
          <Property name="property">htqdsj</Property>
        </DataColumn>
        <DataColumn name="htsxsj">
          <Property name="property">htsxsj</Property>
        </DataColumn>
        <DataColumn name="htjzsj">
          <Property name="property">htjzsj</Property>
        </DataColumn>
        <DataColumn name="htcjr">
          <Property name="property">htcjr</Property>
        </DataColumn>
        <DataColumn name="htcjsj">
          <Property name="property">htcjsj</Property>
        </DataColumn>
        <DataColumn name="htdbgjlbz">
          <Property name="property">htdbgjlbz</Property>
        </DataColumn>
        <DataColumn name="htbgyy">
          <Property name="property">htbgyy</Property>
        </DataColumn>
        <DataColumn name="htlx">
          <Property name="property">htlx</Property>
        </DataColumn>
        <DataColumn name="yhtbh">
          <Property name="property">yhtbh</Property>
        </DataColumn>
        <DataColumn name="zffs">
          <Property name="property">zffs</Property>
        </DataColumn>
        <DataColumn name="ywcsl">
          <Property name="property">ywcsl</Property>
        </DataColumn>
        <DataColumn name="ywcslje">
          <Property name="property">ywcslje</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="ghzl">
          <Property name="property">ghzl</Property>
        </DataColumn>
        <DataColumn name="zdbzsl">
          <Property name="property">zdbzsl</Property>
        </DataColumn>
        <DataColumn name="ysbzyq">
          <Property name="property">ysbzyq</Property>
        </DataColumn>
        <DataColumn name="ghxysj">
          <Property name="property">ghxysj</Property>
        </DataColumn>
        <DataColumn name="jfbj">
          <Property name="property">jfbj</Property>
        </DataColumn>
        <DataColumn name="xyzt">
          <Property name="property">xyzt</Property>
        </DataColumn>
        <DataColumn name="sxh">
          <Property name="property">sxh</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyxyid</Property>
            <Property name="property">dyxyid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyqynm</Property>
            <Property name="property">dyqynm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htkhbh</Property>
            <Property name="property">htkhbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htkhmc</Property>
            <Property name="property">htkhmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htbh</Property>
            <Property name="property">htbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htlb</Property>
            <Property name="property">htlb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htbt</Property>
            <Property name="property">htbt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpid</Property>
            <Property name="property">cpid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">spbm</Property>
            <Property name="property">spbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htspsl</Property>
            <Property name="property">htspsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htspdj</Property>
            <Property name="property">htspdj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zje</Property>
            <Property name="property">zje</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htqdr</Property>
            <Property name="property">htqdr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htqdsj</Property>
            <Property name="property">htqdsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htsxsj</Property>
            <Property name="property">htsxsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htjzsj</Property>
            <Property name="property">htjzsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htcjr</Property>
            <Property name="property">htcjr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htcjsj</Property>
            <Property name="property">htcjsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htdbgjlbz</Property>
            <Property name="property">htdbgjlbz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htbgyy</Property>
            <Property name="property">htbgyy</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htlx</Property>
            <Property name="property">htlx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yhtbh</Property>
            <Property name="property">yhtbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zffs</Property>
            <Property name="property">zffs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ywcsl</Property>
            <Property name="property">ywcsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ywcslje</Property>
            <Property name="property">ywcslje</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ghzl</Property>
            <Property name="property">ghzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zdbzsl</Property>
            <Property name="property">zdbzsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysbzyq</Property>
            <Property name="property">ysbzyq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ghxysj</Property>
            <Property name="property">ghxysj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jfbj</Property>
            <Property name="property">jfbj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xyzt</Property>
            <Property name="property">xyzt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxh</Property>
            <Property name="property">sxh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <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/>
          </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">whjlApi1405PR#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">whjlApi1405PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1405PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1406.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,319 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1406</Property>
      <PropertyDef name="dyxybgid">
        <Property/>
        <Property name="label">动员协议变更ID</Property>
      </PropertyDef>
      <PropertyDef name="dyxyid">
        <Property/>
        <Property name="label">动员协议ID</Property>
      </PropertyDef>
      <PropertyDef name="bgrq">
        <Property/>
        <Property name="label">变更日期</Property>
      </PropertyDef>
      <PropertyDef name="bgyy">
        <Property/>
        <Property name="label">变更原因</Property>
      </PropertyDef>
      <PropertyDef name="bgnr">
        <Property/>
        <Property name="label">变更内容</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1406PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyxybgid">
          <Property name="property">dyxybgid</Property>
        </DataColumn>
        <DataColumn name="dyxyid">
          <Property name="property">dyxyid</Property>
        </DataColumn>
        <DataColumn name="bgrq">
          <Property name="property">bgrq</Property>
        </DataColumn>
        <DataColumn name="bgyy">
          <Property name="property">bgyy</Property>
        </DataColumn>
        <DataColumn name="bgnr">
          <Property name="property">bgnr</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyxybgid</Property>
            <Property name="property">dyxybgid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyxyid</Property>
            <Property name="property">dyxyid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bgrq</Property>
            <Property name="property">bgrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bgyy</Property>
            <Property name="property">bgyy</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bgnr</Property>
            <Property name="property">bgnr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <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/>
          </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">whjlApi1406PR#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">whjlApi1406PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1406PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1407.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,307 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1407</Property>
      <PropertyDef name="dyxyzxmxid">
        <Property/>
        <Property name="label">动员协议执行明细ID</Property>
      </PropertyDef>
      <PropertyDef name="dyxyid">
        <Property/>
        <Property name="label">动员协议ID</Property>
      </PropertyDef>
      <PropertyDef name="zxsj">
        <Property name="dataType">Date</Property>
        <Property name="label">执行时间</Property>
      </PropertyDef>
      <PropertyDef name="jfsl">
        <Property/>
        <Property name="label">交付数量</Property>
      </PropertyDef>
      <PropertyDef name="jfje">
        <Property/>
        <Property name="label">交付金额</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1407PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyxyzxmxid">
          <Property name="property">dyxyzxmxid</Property>
        </DataColumn>
        <DataColumn name="dyxyid">
          <Property name="property">dyxyid</Property>
        </DataColumn>
        <DataColumn name="zxsj">
          <Property name="property">zxsj</Property>
        </DataColumn>
        <DataColumn name="jfsl">
          <Property name="property">jfsl</Property>
        </DataColumn>
        <DataColumn name="jfje">
          <Property name="property">jfje</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyxyzxmxid</Property>
            <Property name="property">dyxyzxmxid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyxyid</Property>
            <Property name="property">dyxyid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zxsj</Property>
            <Property name="property">zxsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jfsl</Property>
            <Property name="property">jfsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jfje</Property>
            <Property name="property">jfje</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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">whjlApi1407PR#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">whjlApi1407PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1407PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1408.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,511 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1408</Property>
      <PropertyDef name="dyqynm">
        <Property/>
        <Property name="label">动员企业编号</Property>
      </PropertyDef>
      <PropertyDef name="pzflbm">
        <Property/>
        <Property name="label">品种分类编码</Property>
      </PropertyDef>
      <PropertyDef name="jldwflbm">
        <Property/>
        <Property name="label">计量单位分类编码</Property>
      </PropertyDef>
      <PropertyDef name="dylb">
        <Property/>
        <Property name="label">类别</Property>
      </PropertyDef>
      <PropertyDef name="dywz">
        <Property/>
        <Property name="label">动员位置</Property>
      </PropertyDef>
      <PropertyDef name="dywzjd">
        <Property/>
        <Property name="label">动员位置经度</Property>
      </PropertyDef>
      <PropertyDef name="dywzwd">
        <Property/>
        <Property name="label">动员位置纬度</Property>
      </PropertyDef>
      <PropertyDef name="crl">
        <Property/>
        <Property name="label">仓容量</Property>
      </PropertyDef>
      <PropertyDef name="cbl">
        <Property/>
        <Property name="label">储备量</Property>
      </PropertyDef>
      <PropertyDef name="rjgnl">
        <Property/>
        <Property name="label">日加工能力</Property>
      </PropertyDef>
      <PropertyDef name="jpsnl">
        <Property/>
        <Property name="label">日配送能力</Property>
      </PropertyDef>
      <PropertyDef name="dyqyzrr">
        <Property/>
        <Property name="label">动员企业责任人</Property>
      </PropertyDef>
      <PropertyDef name="zrrdh">
        <Property/>
        <Property name="label">责任人电话</Property>
      </PropertyDef>
      <PropertyDef name="dyqyllr">
        <Property/>
        <Property name="label">动员企业l联络人</Property>
      </PropertyDef>
      <PropertyDef name="llrdh">
        <Property/>
        <Property name="label">联络人电话</Property>
      </PropertyDef>
      <PropertyDef name="pscph">
        <Property/>
        <Property name="label">配送车牌号</Property>
      </PropertyDef>
      <PropertyDef name="pscllx">
        <Property/>
        <Property name="label">配送车辆类型</Property>
      </PropertyDef>
      <PropertyDef name="djrq">
        <Property/>
        <Property name="label">登记日期</Property>
      </PropertyDef>
      <PropertyDef name="yxrq">
        <Property/>
        <Property name="label">生效日期</Property>
      </PropertyDef>
      <PropertyDef name="sxrq">
        <Property/>
        <Property name="label">失效日期</Property>
      </PropertyDef>
      <PropertyDef name="sxh">
        <Property/>
        <Property name="label">顺序号</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1408PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyqynm">
          <Property name="property">dyqynm</Property>
        </DataColumn>
        <DataColumn name="pzflbm">
          <Property name="property">pzflbm</Property>
        </DataColumn>
        <DataColumn name="jldwflbm">
          <Property name="property">jldwflbm</Property>
        </DataColumn>
        <DataColumn name="dylb">
          <Property name="property">dylb</Property>
        </DataColumn>
        <DataColumn name="dywz">
          <Property name="property">dywz</Property>
        </DataColumn>
        <DataColumn name="dywzjd">
          <Property name="property">dywzjd</Property>
        </DataColumn>
        <DataColumn name="dywzwd">
          <Property name="property">dywzwd</Property>
        </DataColumn>
        <DataColumn name="crl">
          <Property name="property">crl</Property>
        </DataColumn>
        <DataColumn name="cbl">
          <Property name="property">cbl</Property>
        </DataColumn>
        <DataColumn name="rjgnl">
          <Property name="property">rjgnl</Property>
        </DataColumn>
        <DataColumn name="jpsnl">
          <Property name="property">jpsnl</Property>
        </DataColumn>
        <DataColumn name="dyqyzrr">
          <Property name="property">dyqyzrr</Property>
        </DataColumn>
        <DataColumn name="zrrdh">
          <Property name="property">zrrdh</Property>
        </DataColumn>
        <DataColumn name="dyqyllr">
          <Property name="property">dyqyllr</Property>
        </DataColumn>
        <DataColumn name="llrdh">
          <Property name="property">llrdh</Property>
        </DataColumn>
        <DataColumn name="pscph">
          <Property name="property">pscph</Property>
        </DataColumn>
        <DataColumn name="pscllx">
          <Property name="property">pscllx</Property>
        </DataColumn>
        <DataColumn name="djrq">
          <Property name="property">djrq</Property>
        </DataColumn>
        <DataColumn name="yxrq">
          <Property name="property">yxrq</Property>
        </DataColumn>
        <DataColumn name="sxrq">
          <Property name="property">sxrq</Property>
        </DataColumn>
        <DataColumn name="sxh">
          <Property name="property">sxh</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyqynm</Property>
            <Property name="property">dyqynm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pzflbm</Property>
            <Property name="property">pzflbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jldwflbm</Property>
            <Property name="property">jldwflbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dylb</Property>
            <Property name="property">dylb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dywz</Property>
            <Property name="property">dywz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dywzjd</Property>
            <Property name="property">dywzjd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dywzwd</Property>
            <Property name="property">dywzwd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">crl</Property>
            <Property name="property">crl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cbl</Property>
            <Property name="property">cbl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rjgnl</Property>
            <Property name="property">rjgnl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jpsnl</Property>
            <Property name="property">jpsnl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyqyzrr</Property>
            <Property name="property">dyqyzrr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zrrdh</Property>
            <Property name="property">zrrdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyqyllr</Property>
            <Property name="property">dyqyllr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">llrdh</Property>
            <Property name="property">llrdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pscph</Property>
            <Property name="property">pscph</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pscllx</Property>
            <Property name="property">pscllx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">djrq</Property>
            <Property name="property">djrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yxrq</Property>
            <Property name="property">yxrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxrq</Property>
            <Property name="property">sxrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxh</Property>
            <Property name="property">sxh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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">whjlApi1408PR#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">whjlApi1408PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1408PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1409.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,379 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1409</Property>
      <PropertyDef name="dyyjid">
        <Property/>
        <Property name="label">动员预警id</Property>
      </PropertyDef>
      <PropertyDef name="dyqynm">
        <Property/>
        <Property name="label">动员企业编号</Property>
      </PropertyDef>
      <PropertyDef name="yjsj">
        <Property/>
        <Property name="label">预警时间</Property>
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="yjsl">
        <Property/>
        <Property name="label">预警数量</Property>
      </PropertyDef>
      <PropertyDef name="sfzxyj">
        <Property/>
        <Property name="label">是否最新预警</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property/>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property/>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <Reference name="yjmx">
        <Property name="label">预警明细</Property>
        <Property name="dataType">[dtYjmx]</Property>
      </Reference>
    </DataType>
    <DataType name="dtYjmx">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlYJMX</Property>
      <PropertyDef name="dyyjmxid">
        <Property/>
      </PropertyDef>
      <PropertyDef name="dyyjid">
        <Property/>
      </PropertyDef>
      <PropertyDef name="yjlx">
        <Property/>
      </PropertyDef>
      <PropertyDef name="bz">
        <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">whjlApi1409PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="dyyjid">
          <Property name="property">dyyjid</Property>
        </DataColumn>
        <DataColumn name="dyqynm">
          <Property name="property">dyqynm</Property>
        </DataColumn>
        <DataColumn name="yjsj">
          <Property name="property">yjsj</Property>
        </DataColumn>
        <DataColumn name="yjsl">
          <Property name="property">yjsl</Property>
        </DataColumn>
        <DataColumn name="sfzxyj">
          <Property name="property">sfzxyj</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
        <DataColumn name="yjmx">
          <Property name="property">yjmx</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*,*,*</Property>
          <Property name="labelPosition">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">dyyjid</Property>
            <Property name="property">dyyjid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dyqynm</Property>
            <Property name="property">dyqynm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yjsj</Property>
            <Property name="property">yjsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yjsl</Property>
            <Property name="property">yjsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfzxyj</Property>
            <Property name="property">sfzxyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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>
          <AutoFormElement>
            <Property name="name">yjmx</Property>
            <Property name="property">yjmx</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
        <Panel>
          <Property name="caption">预警明细</Property>
          <Property name="height">80%</Property>
          <Buttons/>
          <Children>
            <Container layout="regionPadding:10">
              <Label layoutConstraint="left">
                <Property name="text">菜单栏:</Property>
              </Label>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var list = view.get(&quot;#dsMain.data:#&quot;).get(&quot;jcbgfjmx&quot;);&#xD;
list.insert({});</ClientEvent>
                <Property name="caption">新增</Property>
                <Property name="exClassName">btn-default</Property>
                <Property name="iconClass">fa fa-plus</Property>
              </Button>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var data = view.get(&quot;#dgLink.currentEntity&quot;);&#xD;
data.remove();</ClientEvent>
                <Property name="caption">删除</Property>
                <Property name="exClassName">btn-warn</Property>
                <Property name="iconClass">fa fa-minus</Property>
              </Button>
            </Container>
            <DataGrid id="dgYjmx">
              <Property name="dataPath">#.yjmx</Property>
              <Property name="dataSet">dsMain</Property>
              <DataColumn name="dyyjmxid">
                <Property name="property">dyyjmxid</Property>
              </DataColumn>
              <DataColumn name="dyyjid">
                <Property name="property">dyyjid</Property>
              </DataColumn>
              <DataColumn name="yjlx">
                <Property name="property">yjlx</Property>
              </DataColumn>
              <DataColumn name="bz">
                <Property name="property">bz</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1409PR#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">whjlApi1409PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1409PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1410.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,535 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1410</Property>
      <PropertyDef name="scjgddid">
        <Property/>
        <Property name="label">生产加工订单id</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property/>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="htkhbh">
        <Property/>
        <Property name="label">客户编号</Property>
      </PropertyDef>
      <PropertyDef name="htid">
        <Property/>
        <Property name="label">合同id</Property>
      </PropertyDef>
      <PropertyDef name="htspid">
        <Property/>
        <Property name="label">合同商品ID</Property>
      </PropertyDef>
      <PropertyDef name="pzflbh">
        <Property/>
        <Property name="label">品种分类编号</Property>
      </PropertyDef>
      <PropertyDef name="jlppbh">
        <Property/>
        <Property name="label">军粮品牌编号</Property>
      </PropertyDef>
      <PropertyDef name="jlcpbh">
        <Property/>
        <Property name="label">军粮产品编号</Property>
      </PropertyDef>
      <PropertyDef name="jldwflbm">
        <Property/>
        <Property name="label">计量单位分类编码</Property>
      </PropertyDef>
      <PropertyDef name="ddrq">
        <Property name="dataType">Date</Property>
        <Property name="label">生产订单日期</Property>
      </PropertyDef>
      <PropertyDef name="ddsl">
        <Property name="dataType">double</Property>
        <Property name="label">订单数量</Property>
      </PropertyDef>
      <PropertyDef name="jhfs">
        <Property/>
        <Property name="label">交货方式</Property>
      </PropertyDef>
      <PropertyDef name="bzyq">
        <Property/>
        <Property name="label">包装要求</Property>
      </PropertyDef>
      <PropertyDef name="zlyq">
        <Property/>
        <Property name="label">质量要求</Property>
      </PropertyDef>
      <PropertyDef name="jlzt">
        <Property/>
        <Property name="label">记录状态</Property>
      </PropertyDef>
      <PropertyDef name="ddzl">
        <Property name="dataType">double</Property>
        <Property name="label">订单重量</Property>
      </PropertyDef>
      <PropertyDef name="sjsl">
        <Property name="dataType">double</Property>
        <Property name="label">实际数量</Property>
      </PropertyDef>
      <PropertyDef name="sjzl">
        <Property name="dataType">double</Property>
        <Property name="label">实际重量</Property>
      </PropertyDef>
      <PropertyDef name="scddlx">
        <Property/>
        <Property name="label">生产订单类型</Property>
      </PropertyDef>
      <PropertyDef name="ddid">
        <Property/>
        <Property name="label">军粮采购订单id</Property>
      </PropertyDef>
      <PropertyDef name="jlccjhid">
        <Property/>
        <Property name="label">军粮筹措计划id</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property/>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property/>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1410PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="scjgddid">
          <Property name="property">scjgddid</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="jgzdbh">
          <Property name="property">jgzdbh</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
        </DataColumn>
        <DataColumn name="htkhbh">
          <Property name="property">htkhbh</Property>
        </DataColumn>
        <DataColumn name="htid">
          <Property name="property">htid</Property>
        </DataColumn>
        <DataColumn name="htspid">
          <Property name="property">htspid</Property>
        </DataColumn>
        <DataColumn name="pzflbh">
          <Property name="property">pzflbh</Property>
        </DataColumn>
        <DataColumn name="jlppbh">
          <Property name="property">jlppbh</Property>
        </DataColumn>
        <DataColumn name="jlcpbh">
          <Property name="property">jlcpbh</Property>
        </DataColumn>
        <DataColumn name="jldwflbm">
          <Property name="property">jldwflbm</Property>
        </DataColumn>
        <DataColumn name="ddrq">
          <Property name="property">ddrq</Property>
        </DataColumn>
        <DataColumn name="ddsl">
          <Property name="property">ddsl</Property>
        </DataColumn>
        <DataColumn name="jhfs">
          <Property name="property">jhfs</Property>
        </DataColumn>
        <DataColumn name="bzyq">
          <Property name="property">bzyq</Property>
        </DataColumn>
        <DataColumn name="zlyq">
          <Property name="property">zlyq</Property>
        </DataColumn>
        <DataColumn name="jlzt">
          <Property name="property">jlzt</Property>
        </DataColumn>
        <DataColumn name="ddzl">
          <Property name="property">ddzl</Property>
        </DataColumn>
        <DataColumn name="sjsl">
          <Property name="property">sjsl</Property>
        </DataColumn>
        <DataColumn name="sjzl">
          <Property name="property">sjzl</Property>
        </DataColumn>
        <DataColumn name="scddlx">
          <Property name="property">scddlx</Property>
        </DataColumn>
        <DataColumn name="ddid">
          <Property name="property">ddid</Property>
        </DataColumn>
        <DataColumn name="jlccjhid">
          <Property name="property">jlccjhid</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">scjgddid</Property>
            <Property name="property">scjgddid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqybh</Property>
            <Property name="property">jlqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqymc</Property>
            <Property name="property">jlqymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdbh</Property>
            <Property name="property">jgzdbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdmc</Property>
            <Property name="property">jgzdmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htkhbh</Property>
            <Property name="property">htkhbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htid</Property>
            <Property name="property">htid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htspid</Property>
            <Property name="property">htspid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pzflbh</Property>
            <Property name="property">pzflbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlppbh</Property>
            <Property name="property">jlppbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlcpbh</Property>
            <Property name="property">jlcpbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jldwflbm</Property>
            <Property name="property">jldwflbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ddrq</Property>
            <Property name="property">ddrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ddsl</Property>
            <Property name="property">ddsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhfs</Property>
            <Property name="property">jhfs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzyq</Property>
            <Property name="property">bzyq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zlyq</Property>
            <Property name="property">zlyq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlzt</Property>
            <Property name="property">jlzt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ddzl</Property>
            <Property name="property">ddzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjsl</Property>
            <Property name="property">sjsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjzl</Property>
            <Property name="property">sjzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scddlx</Property>
            <Property name="property">scddlx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ddid</Property>
            <Property name="property">ddid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlccjhid</Property>
            <Property name="property">jlccjhid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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">whjlApi1410PR#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">whjlApi1410PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1410PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1411.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,523 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1411</Property>
      <PropertyDef name="rkfkjlid">
        <Property/>
        <Property name="label">车辆ID</Property>
      </PropertyDef>
      <PropertyDef name="jlgljgbh">
        <Property/>
        <Property name="label">军粮管理机构编号</Property>
      </PropertyDef>
      <PropertyDef name="jlgljgmc">
        <Property/>
        <Property name="label">军粮管理机构名称</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property/>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="cph">
        <Property/>
        <Property name="label">车牌号</Property>
      </PropertyDef>
      <PropertyDef name="cllx">
        <Property/>
        <Property name="label">车辆类型</Property>
      </PropertyDef>
      <PropertyDef name="clzt">
        <Property/>
        <Property name="label">车辆状态</Property>
      </PropertyDef>
      <PropertyDef name="sfnbcl">
        <Property/>
        <Property name="label">是否内部车辆</Property>
      </PropertyDef>
      <PropertyDef name="bd4gkh">
        <Property/>
        <Property name="label">绑定4G卡号</Property>
      </PropertyDef>
      <PropertyDef name="bdbdh">
        <Property/>
        <Property name="label">绑定北斗号</Property>
      </PropertyDef>
      <PropertyDef name="jsr">
        <Property/>
        <Property name="label">驾驶人</Property>
      </PropertyDef>
      <PropertyDef name="lxdh">
        <Property/>
        <Property name="label">联系电话</Property>
      </PropertyDef>
      <PropertyDef name="sfzh">
        <Property/>
        <Property name="label">身份证号</Property>
      </PropertyDef>
      <PropertyDef name="jsz">
        <Property/>
        <Property name="label">驾驶证</Property>
      </PropertyDef>
      <PropertyDef name="xsz">
        <Property/>
        <Property name="label">行驶证</Property>
      </PropertyDef>
      <PropertyDef name="clcxc">
        <Property name="dataType">double</Property>
        <Property name="label">车箱长</Property>
      </PropertyDef>
      <PropertyDef name="clcxk">
        <Property name="dataType">double</Property>
        <Property name="label">车箱宽</Property>
      </PropertyDef>
      <PropertyDef name="clcxg">
        <Property name="dataType">double</Property>
        <Property name="label">车箱高</Property>
      </PropertyDef>
      <PropertyDef name="dz">
        <Property/>
        <Property name="label">地址</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1411PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="rkfkjlid">
          <Property name="property">rkfkjlid</Property>
        </DataColumn>
        <DataColumn name="jlgljgbh">
          <Property name="property">jlgljgbh</Property>
        </DataColumn>
        <DataColumn name="jlgljgmc">
          <Property name="property">jlgljgmc</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="jgzdbh">
          <Property name="property">jgzdbh</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
        </DataColumn>
        <DataColumn name="cph">
          <Property name="property">cph</Property>
        </DataColumn>
        <DataColumn name="cllx">
          <Property name="property">cllx</Property>
        </DataColumn>
        <DataColumn name="clzt">
          <Property name="property">clzt</Property>
        </DataColumn>
        <DataColumn name="sfnbcl">
          <Property name="property">sfnbcl</Property>
        </DataColumn>
        <DataColumn name="bd4gkh">
          <Property name="property">bd4gkh</Property>
        </DataColumn>
        <DataColumn name="bdbdh">
          <Property name="property">bdbdh</Property>
        </DataColumn>
        <DataColumn name="jsr">
          <Property name="property">jsr</Property>
        </DataColumn>
        <DataColumn name="lxdh">
          <Property name="property">lxdh</Property>
        </DataColumn>
        <DataColumn name="sfzh">
          <Property name="property">sfzh</Property>
        </DataColumn>
        <DataColumn name="jsz">
          <Property name="property">jsz</Property>
        </DataColumn>
        <DataColumn name="xsz">
          <Property name="property">xsz</Property>
        </DataColumn>
        <DataColumn name="clcxc">
          <Property name="property">clcxc</Property>
        </DataColumn>
        <DataColumn name="clcxk">
          <Property name="property">clcxk</Property>
        </DataColumn>
        <DataColumn name="clcxg">
          <Property name="property">clcxg</Property>
        </DataColumn>
        <DataColumn name="dz">
          <Property name="property">dz</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">rkfkjlid</Property>
            <Property name="property">rkfkjlid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlgljgbh</Property>
            <Property name="property">jlgljgbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlgljgmc</Property>
            <Property name="property">jlgljgmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqybh</Property>
            <Property name="property">jlqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqymc</Property>
            <Property name="property">jlqymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdbh</Property>
            <Property name="property">jgzdbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdmc</Property>
            <Property name="property">jgzdmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cph</Property>
            <Property name="property">cph</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cllx</Property>
            <Property name="property">cllx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clzt</Property>
            <Property name="property">clzt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfnbcl</Property>
            <Property name="property">sfnbcl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bd4gkh</Property>
            <Property name="property">bd4gkh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bdbdh</Property>
            <Property name="property">bdbdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsr</Property>
            <Property name="property">jsr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxdh</Property>
            <Property name="property">lxdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfzh</Property>
            <Property name="property">sfzh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsz</Property>
            <Property name="property">jsz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xsz</Property>
            <Property name="property">xsz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clcxc</Property>
            <Property name="property">clcxc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clcxk</Property>
            <Property name="property">clcxk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clcxg</Property>
            <Property name="property">clcxg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dz</Property>
            <Property name="property">dz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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">whjlApi1411PR#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">whjlApi1411PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1411PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1412.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,523 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1412</Property>
      <PropertyDef name="rkfkjlid">
        <Property/>
        <Property name="label">车辆ID</Property>
      </PropertyDef>
      <PropertyDef name="jlgljgbh">
        <Property/>
        <Property name="label">军粮管理机构编号</Property>
      </PropertyDef>
      <PropertyDef name="jlgljgmc">
        <Property/>
        <Property name="label">军粮管理机构名称</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property/>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="cph">
        <Property/>
        <Property name="label">车牌号</Property>
      </PropertyDef>
      <PropertyDef name="cllx">
        <Property/>
        <Property name="label">车辆类型</Property>
      </PropertyDef>
      <PropertyDef name="clzt">
        <Property/>
        <Property name="label">车辆状态</Property>
      </PropertyDef>
      <PropertyDef name="sfnbcl">
        <Property/>
        <Property name="label">是否内部车辆</Property>
      </PropertyDef>
      <PropertyDef name="bd4gkh">
        <Property/>
        <Property name="label">绑定4G卡号</Property>
      </PropertyDef>
      <PropertyDef name="bdbdh">
        <Property/>
        <Property name="label">绑定北斗号</Property>
      </PropertyDef>
      <PropertyDef name="jsr">
        <Property/>
        <Property name="label">驾驶人</Property>
      </PropertyDef>
      <PropertyDef name="lxdh">
        <Property/>
        <Property name="label">联系电话</Property>
      </PropertyDef>
      <PropertyDef name="sfzh">
        <Property/>
        <Property name="label">身份证号</Property>
      </PropertyDef>
      <PropertyDef name="jsz">
        <Property/>
        <Property name="label">驾驶证</Property>
      </PropertyDef>
      <PropertyDef name="xsz">
        <Property/>
        <Property name="label">行驶证</Property>
      </PropertyDef>
      <PropertyDef name="clcxc">
        <Property name="dataType">double</Property>
        <Property name="label">车箱长</Property>
      </PropertyDef>
      <PropertyDef name="clcxk">
        <Property name="dataType">double</Property>
        <Property name="label">车箱宽</Property>
      </PropertyDef>
      <PropertyDef name="clcxg">
        <Property name="dataType">double</Property>
        <Property name="label">车箱高</Property>
      </PropertyDef>
      <PropertyDef name="dz">
        <Property/>
        <Property name="label">地址</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</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">whjlApi1412PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#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="rkfkjlid">
          <Property name="property">rkfkjlid</Property>
        </DataColumn>
        <DataColumn name="jlgljgbh">
          <Property name="property">jlgljgbh</Property>
        </DataColumn>
        <DataColumn name="jlgljgmc">
          <Property name="property">jlgljgmc</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="jgzdbh">
          <Property name="property">jgzdbh</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
        </DataColumn>
        <DataColumn name="cph">
          <Property name="property">cph</Property>
        </DataColumn>
        <DataColumn name="cllx">
          <Property name="property">cllx</Property>
        </DataColumn>
        <DataColumn name="clzt">
          <Property name="property">clzt</Property>
        </DataColumn>
        <DataColumn name="sfnbcl">
          <Property name="property">sfnbcl</Property>
        </DataColumn>
        <DataColumn name="bd4gkh">
          <Property name="property">bd4gkh</Property>
        </DataColumn>
        <DataColumn name="bdbdh">
          <Property name="property">bdbdh</Property>
        </DataColumn>
        <DataColumn name="jsr">
          <Property name="property">jsr</Property>
        </DataColumn>
        <DataColumn name="lxdh">
          <Property name="property">lxdh</Property>
        </DataColumn>
        <DataColumn name="sfzh">
          <Property name="property">sfzh</Property>
        </DataColumn>
        <DataColumn name="jsz">
          <Property name="property">jsz</Property>
        </DataColumn>
        <DataColumn name="xsz">
          <Property name="property">xsz</Property>
        </DataColumn>
        <DataColumn name="clcxc">
          <Property name="property">clcxc</Property>
        </DataColumn>
        <DataColumn name="clcxk">
          <Property name="property">clcxk</Property>
        </DataColumn>
        <DataColumn name="clcxg">
          <Property name="property">clcxg</Property>
        </DataColumn>
        <DataColumn name="dz">
          <Property name="property">dz</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
        </DataColumn>
        <DataColumn name="bz">
          <Property name="property">bz</Property>
        </DataColumn>
        <DataColumn name="bizId">
          <Property name="property">bizId</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</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">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <AutoFormElement>
            <Property name="name">rkfkjlid</Property>
            <Property name="property">rkfkjlid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlgljgbh</Property>
            <Property name="property">jlgljgbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlgljgmc</Property>
            <Property name="property">jlgljgmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqybh</Property>
            <Property name="property">jlqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqymc</Property>
            <Property name="property">jlqymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdbh</Property>
            <Property name="property">jgzdbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdmc</Property>
            <Property name="property">jgzdmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cph</Property>
            <Property name="property">cph</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cllx</Property>
            <Property name="property">cllx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clzt</Property>
            <Property name="property">clzt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfnbcl</Property>
            <Property name="property">sfnbcl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bd4gkh</Property>
            <Property name="property">bd4gkh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bdbdh</Property>
            <Property name="property">bdbdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsr</Property>
            <Property name="property">jsr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxdh</Property>
            <Property name="property">lxdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfzh</Property>
            <Property name="property">sfzh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsz</Property>
            <Property name="property">jsz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xsz</Property>
            <Property name="property">xsz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clcxc</Property>
            <Property name="property">clcxc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clcxk</Property>
            <Property name="property">clcxk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">clcxg</Property>
            <Property name="property">clcxg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dz</Property>
            <Property name="property">dz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <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/>
          </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">whjlApi1412PR#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">whjlApi1412PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1412PR#pushData</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>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlConstant.java
@@ -168,45 +168,78 @@
     */
    public static String API_CODE_1220 = "1220";
    /**
     * æŽ¥å£ç¼–码-1301 è´¨æ£€æœºæž„数据接口
     * æŽ¥å£ç¼–码-1301 æ¸©æ¹¿åº¦æ£€æµ‹è®°å½•数据接口
     */
    public static String API_CODE_1301 = "1301";
    /**
     * æŽ¥å£ç¼–码-1303 ç²®æƒ…检测记录数据接口
     * æŽ¥å£ç¼–码-1302 è¿è¾“环境检测记录数据接口
     */
    public static String API_CODE_1302 = "1302";
    /**
     * æŽ¥å£ç¼–码-1303 æ¸©æ¹¿åº¦å‘Šè­¦è®°å½•数据接口
     */
    public static String API_CODE_1303 = "1303";
    /**
     * æŽ¥å£ç¼–码-1304 èƒ½è€—记录数据接口
     * æŽ¥å£ç¼–码-1304 èƒ½è€—记录数据接口数据接口
     */
    public static String API_CODE_1304 = "1304";
    /**
     * æŽ¥å£ç¼–码-1401 ç”Ÿäº§è´¨é‡é“¾
     * æŽ¥å£ç¼–码-1305 è°ƒåº¦é…é€ä»»åŠ¡æ•°æ®æŽ¥å£æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1305 = "1305";
    /**
     * æŽ¥å£ç¼–码-1401 ç”Ÿäº§è´¨é‡é“¾æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1401 = "1401";
    /**
     * æŽ¥å£ç¼–码-1402 å£æ„Ÿè¯„ä»·
     * æŽ¥å£ç¼–码-1402 å£æ„Ÿè¯„价数据接口
     */
    public static String API_CODE_1402 = "1402";
    /**
     * æŽ¥å£ç¼–码-1403 åŠ¨å‘˜èƒ½åŠ›æ•°æ®æŽ¥å£
     * æŽ¥å£ç¼–码-1403 åŠ¨å‘˜ä¼ä¸šæ•°æ®æŽ¥å£
     */
    public static String API_CODE_1403 = "1403";
    /**
     * æŽ¥å£ç¼–码-1404 åŠ¨å‘˜é¢„è­¦æ•°æ®æŽ¥å£
     * æŽ¥å£ç¼–码-1404 åŠ¨å‘˜å•†å“æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1404 = "1404";
    /**
     * æŽ¥å£ç¼–码-1405 ç”Ÿäº§åŠ å·¥è®¢å•æ•°æ®æŽ¥å£
     * æŽ¥å£ç¼–码-1405 åŠ¨å‘˜åè®®æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1405 = "1405";
    /**
     * æŽ¥å£ç¼–码-1406 è¿è¾“路线数据接口
     * æŽ¥å£ç¼–码-1406 åŠ¨å‘˜åè®®å˜æ›´æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1406 = "1406";
    /**
     * æŽ¥å£ç¼–码-1407 åº”急调度数据接口
     * æŽ¥å£ç¼–码-1407 åŠ¨å‘˜åè®®æ‰§è¡Œæ˜Žç»†æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1407 = "1407";
    /**
     * æŽ¥å£ç¼–码-1408 åŠ¨å‘˜èƒ½åŠ›æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1408 = "1408";
    /**
     * æŽ¥å£ç¼–码-1409 åŠ¨å‘˜é¢„è­¦æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1409 = "1409";
    /**
     * æŽ¥å£ç¼–码-1410 ç”Ÿäº§åŠ å·¥å•æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1410 = "1410";
    /**
     * æŽ¥å£ç¼–码-1411 è½¦è¾†ä¿¡æ¯æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1411 = "1411";
    /**
     * æŽ¥å£ç¼–码-1412 è½¦è¾†è¿è¾“环境数据接口
     */
    public static String API_CODE_1412 = "1412";
    /**
     * æŽ¥å£ç¼–码-1413 è¿è¾“路线数据接口
     */
    public static String API_CODE_1413 = "1413";
    /*----------接口路径----------*/
    //接口编码-1101 å†›ç²®ä¼ä¸šä¿¡æ¯ --路径(JLQYXX)
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1403.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,73 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * åŠ¨å‘˜ä¼ä¸š
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1403 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyqynm; //动员企业内码
    private String qymc; //企业名称
    private String qyjc; //企业简称
    private String qydh; //企业电话
    private String qylxr; //企业联系人
    private String qydz; //企业地址
    private String qyjd; //企业经度
    private String qywd; //企业纬度
    private String qyxzqhmc; //企业行政区划名称
    private String qyxzqhdm; //企业行政区划代码
    private String xynl; //响应能力
    private String xysd; //响应速度
    private String sbzs; //设备总数
    private String yyzs; //人员总数
    private String nx; //女性
    private String ssmz; //少数民族
    private String gcdy; //共产党员
    private String zgzg; //在岗职工
    private String qyjyglry; //企业经营管理人员
    private String zyjsry; //专业技术人员
    private String jsgr; //技术工人
    private String cqzg; //长期职工
    private String lszg; //临时职工
    private String qtcyry; //其他从业人员
    private String yjs; //研究生
    private String dxbk; //大学本科
    private String dxzk; //大学专科
    private String zzrs; //中专
    private String gz; //高中
    private String czjyx; //初中及以下
    private String z35syx; //35岁及以下
    private String z36z45; //36至45
    private String z46z54; //46至54
    private String z55ys; //55以上
    private String sfyx; //是否有效
    private String bz; //备注
    private List<WhjlDYQYRY> dyqyry; //动员企业人员
    private List<WhjlDYQYCL> drqycl; //动员企业车辆
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1404.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,55 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * åŠ¨å‘˜å•†å“
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1404 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyspid; //动员商品Id
    private String dyqynm; //动员企业编码
    private String qymc; //动员企业名称
    private String dywz; //动员位置
    private String cplx; //产品类型
    private String lspzbm; //品种编号
    private String lspzmc; //品种名称
    private String ppbh; //品牌编号
    private String ppmc; //品牌名称
    private String cpbh; //产品编号
    private String cpmc; //产品名称
    private String dj; //单价
    private String scrq; //生产日期
    private String cppc; //批次
    private String sl; //数量
    private String sldwbm; //数量单位编码
    private String zl; //重量
    private String zldwbm; //重量单位编码
    private String sfyx ; //是否有效
    private String bz; //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1405.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,68 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * åŠ¨å‘˜ä¼ä¸š
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1405 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyxyid; //动员协议id
    private String dyqynm; //动员企业内码
    private String htkhbh; //合同客户编号
    private String htkhmc; //合同客户名称
    private String htbh; //合同编号
    private String htlb; //合同类别
    private String htbt; //合同标题
    private String cpid; //产品id
    private String spbm; //商品编码
    private String htspsl; //合同商品数量
    private String htspdj; //合同商品单价
    private String zje; //总金额
    private String htqdr; //合同签订人
    private String htqdsj; //合同签订时间
    private String htsxsj; //合同生效日期
    private String htjzsj; //合同截止日期
    private String htcjr; //合同创建人
    private String htcjsj; //合同创建时间
    private String htdbgjlbz; //合同的变更记录标志
    private String htbgyy; //合同变更原因
    private String htlx; //合同类型
    private String yhtbh; //原合同编号
    private String zffs; //支付方式
    private String ywcsl; //已完成数量
    private String ywcslje; //已完成数量金额
    private String bz; //备注
    private String ghzl; //供货质量
    private String zdbzsl; //最低保障数量
    private String ysbzyq; //运输包装要求
    private String ghxysj; //供货响应时间(小时)
    private String jfbj; //交付标准
    private String xyzt; //协议状态
    private String sxh; //顺序号
    private String sfyx; //是否有效
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1406.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,39 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * åŠ¨å‘˜åè®®å˜æ›´
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1406 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyxybgid; //动员协议变更ID
    private String dyxyid; //动员协议ID
    private String bgrq; //变更日期
    private String bgyy; //变更原因
    private String bgnr; //变更内容
    private String bz; //备注
    private String sfyx; //是否有效
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1407.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.codehaus.jackson.annotate.JsonProperty;
import java.io.Serializable;
import java.util.Date;
/**
 * åŠ¨å‘˜åè®®æ‰§è¡Œæ˜Žç»†
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1407 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyxyzxmxid; //动员协议执行明细ID
    private String dyxyid; //动员协议ID
    @JSONField(format = "yyyy-MM-dd")
    private Date zxsj; //执行时间
    private String jfsl; //交付数量
    private String jfje; //交付金额
    private String bz; //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1408.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,56 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * åŠ¨å‘˜èƒ½åŠ›
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1408 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyqynm; //动员企业编号
    private String pzflbm; //品种分类编码
    private String jldwflbm; //计量单位分类编码
    private String dylb; //类别
    private String dywz; //动员位置
    private String dywzjd; //动员位置经度
    private String dywzwd; //动员位置纬度
    private String crl; //仓容量
    private String cbl; //储备量
    private String rjgnl; //日加工能力
    private String jpsnl; //日配送能力
    private String dyqyzrr; //动员企业责任人
    private String zrrdh; //责任人电话
    private String dyqyllr; //动员企业l联络人
    private String llrdh; //联络人电话
    private String pscph; //配送车牌号
    private String pscllx; //配送车辆类型
    private String djrq; //登记日期
    private String yxrq; //生效日期
    private String sxrq; //失效日期
    private String sxh; //顺序号
    private String sfyx; //是否有效
    private String bz; //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1409.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,42 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * åŠ¨å‘˜é¢„è­¦
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1409 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyyjid; //动员预警id
    private String dyqynm; //动员企业编号
    private Date yjsj; //预警时间
    private String yjsl; //预警数量
    private String sfzxyj; //是否最新预警
    private String bz; //备注
    private List<WhjlYJMX> yjmx; //预警明细
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1410.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,58 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * ç”Ÿäº§åŠ å·¥è®¢å•
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1410 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String scjgddid; //生产加工订单id
    private String jlqybh; //军粮企业编号
    private String jlqymc; //军粮企业名称
    private String jgzdbh; //军供站点编号
    private String jgzdmc; //军供站点名称
    private String htkhbh; //客户编号
    private String htid; //合同id
    private String htspid; //合同商品ID
    private String pzflbh; //品种分类编号
    private String jlppbh; //军粮品牌编号
    private String jlcpbh; //军粮产品编号
    private String jldwflbm; //计量单位分类编码
    private Date ddrq; //生产订单日期
    private double ddsl; //订单数量
    private String jhfs; //交货方式
    private String bzyq; //包装要求
    private String zlyq; //质量要求
    private String jlzt; //记录状态
    private double ddzl; //订单重量
    private double sjsl; //实际数量
    private double sjzl; //实际重量
    private String scddlx; //生产订单类型
    private String ddid; //军粮采购订单id
    private String jlccjhid; //军粮筹措计划id
    private String bz; //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1411.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,57 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * è½¦è¾†ä¿¡æ¯
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1411 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String rkfkjlid; //车辆ID
    private String jlgljgbh; //军粮管理机构编号
    private String jlgljgmc; //军粮管理机构名称
    private String jlqybh; //军粮企业编号
    private String jlqymc; //军粮企业名称
    private String jgzdbh; //军供站点编号
    private String jgzdmc; //军供站点名称
    private String cph; //车牌号
    private String cllx; //车辆类型
    private String clzt; //车辆状态
    private String sfnbcl; //是否内部车辆
    private String bd4gkh; //绑定4G卡号
    private String bdbdh; //绑定北斗号
    private String jsr; //驾驶人
    private String lxdh; //联系电话
    private String sfzh; //身份证号
    private String jsz; //驾驶证
    private String xsz; //行驶证
    private double clcxc; //车箱长
    private double clcxk; //车箱宽
    private double clcxg; //车箱高
    private String dz; //地址
    private String sfyx; //是否有效
    private String bz; //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1412.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,57 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * è½¦è¾†ä¿¡æ¯
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1412 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String rkfkjlid; //车辆ID
    private String jlgljgbh; //军粮管理机构编号
    private String jlgljgmc; //军粮管理机构名称
    private String jlqybh; //军粮企业编号
    private String jlqymc; //军粮企业名称
    private String jgzdbh; //军供站点编号
    private String jgzdmc; //军供站点名称
    private String cph; //车牌号
    private String cllx; //车辆类型
    private String clzt; //车辆状态
    private String sfnbcl; //是否内部车辆
    private String bd4gkh; //绑定4G卡号
    private String bdbdh; //绑定北斗号
    private String jsr; //驾驶人
    private String lxdh; //联系电话
    private String sfzh; //身份证号
    private String jsz; //驾驶证
    private String xsz; //行驶证
    private double clcxc; //车箱长
    private double clcxk; //车箱宽
    private double clcxg; //车箱高
    private String dz; //地址
    private String sfyx; //是否有效
    private String bz; //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlDYQYCL.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlDYQYCL {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyqyclbh; //动员企业车辆编号
    private String cllx; //车辆类型
    private String cph; //车牌号
    private String jsr; //驾驶人
    private String jsrsfz; //驾驶人身份证
    private String lxdz; //联系地址
    private String sfyx; //是否有效
    private String bz; //备注
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlDYQYRY.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlDYQYRY {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyqyrybh; //动员企业人员编号
    private String xm; //姓名
    private String xb; //性别
    private String gw; //岗位
    private String lxdh; //联系电话
    private String sfyx; //是否有效
    private String bz; //备注
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlYJMX.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * @Author: YYC
 * @Description:转仓明细
 * @DateTime: 2023-10-29 22:56
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlYJMX implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String dyyjmxid; //动员预警明细id
    private String dyyjid; //动员预警id
    private String yjlx; //预警类型
    private String bz; //备注
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1403PR.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.WhjlApi1403;
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:YAN
 */
@Component
public class WhjlApi1403PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1403PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1403> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1403);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1403> list = new ArrayList<>();
        WhjlApi1403 whjlApi1403;
        for (ApiInfoData infoData : result) {
            whjlApi1403 = JSONObject.parseObject(infoData.getData(), WhjlApi1403.class);
            whjlApi1403.setKqdm(infoData.getKqdm());
            whjlApi1403.setCzbz(infoData.getCzbz());
            whjlApi1403.setUpdateTime(infoData.getUpdateTime());
            whjlApi1403.setBizId(infoData.getDataId());
            list.add(whjlApi1403);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1403PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1403 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1403);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1403PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1403 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1403PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1403> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1403);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1403 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1403);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1404PR.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.WhjlApi1404;
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:YAN
 */
@Component
public class WhjlApi1404PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1404PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1404> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1404);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1404> list = new ArrayList<>();
        WhjlApi1404 whjlApi1404;
        for (ApiInfoData infoData : result) {
            whjlApi1404 = JSONObject.parseObject(infoData.getData(), WhjlApi1404.class);
            whjlApi1404.setKqdm(infoData.getKqdm());
            whjlApi1404.setCzbz(infoData.getCzbz());
            whjlApi1404.setUpdateTime(infoData.getUpdateTime());
            whjlApi1404.setBizId(infoData.getDataId());
            list.add(whjlApi1404);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1404PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1404 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1404);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1404PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1404 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1404PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1404> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1404);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1404 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1404);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1405PR.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.WhjlApi1405;
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:YAN
 */
@Component
public class WhjlApi1405PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1405PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1405> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1405);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1405> list = new ArrayList<>();
        WhjlApi1405 whjlApi1405;
        for (ApiInfoData infoData : result) {
            whjlApi1405 = JSONObject.parseObject(infoData.getData(), WhjlApi1405.class);
            whjlApi1405.setKqdm(infoData.getKqdm());
            whjlApi1405.setCzbz(infoData.getCzbz());
            whjlApi1405.setUpdateTime(infoData.getUpdateTime());
            whjlApi1405.setBizId(infoData.getDataId());
            list.add(whjlApi1405);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1405PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1405 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1405);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1405PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1405 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1405PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1405> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1405);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1405 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1405);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1406PR.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.WhjlApi1406;
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:YAN
 */
@Component
public class WhjlApi1406PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1406PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1406> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1406);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1406> list = new ArrayList<>();
        WhjlApi1406 whjlApi1406;
        for (ApiInfoData infoData : result) {
            whjlApi1406 = JSONObject.parseObject(infoData.getData(), WhjlApi1406.class);
            whjlApi1406.setKqdm(infoData.getKqdm());
            whjlApi1406.setCzbz(infoData.getCzbz());
            whjlApi1406.setUpdateTime(infoData.getUpdateTime());
            whjlApi1406.setBizId(infoData.getDataId());
            list.add(whjlApi1406);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1406PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1406 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1406);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1406PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1406 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1406PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1406> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1406);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1406 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1406);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1407PR.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.WhjlApi1407;
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:YAN
 */
@Component
public class WhjlApi1407PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1407PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1407> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1407);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1407> list = new ArrayList<>();
        WhjlApi1407 whjlApi1407;
        for (ApiInfoData infoData : result) {
            whjlApi1407 = JSONObject.parseObject(infoData.getData(), WhjlApi1407.class);
            whjlApi1407.setKqdm(infoData.getKqdm());
            whjlApi1407.setCzbz(infoData.getCzbz());
            whjlApi1407.setUpdateTime(infoData.getUpdateTime());
            whjlApi1407.setBizId(infoData.getDataId());
            list.add(whjlApi1407);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1407PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1407 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1407);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1407PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1407 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1407PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1407> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1407);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1407 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1407);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1408PR.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.WhjlApi1408;
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:YAN
 */
@Component
public class WhjlApi1408PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1408PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1408> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1408);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1408> list = new ArrayList<>();
        WhjlApi1408 whjlApi1408;
        for (ApiInfoData infoData : result) {
            whjlApi1408 = JSONObject.parseObject(infoData.getData(), WhjlApi1408.class);
            whjlApi1408.setKqdm(infoData.getKqdm());
            whjlApi1408.setCzbz(infoData.getCzbz());
            whjlApi1408.setUpdateTime(infoData.getUpdateTime());
            whjlApi1408.setBizId(infoData.getDataId());
            list.add(whjlApi1408);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1408PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1408 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1408);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1408PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1408 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1408PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1408> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1408);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1408 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1408);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1409PR.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.WhjlApi1409;
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:YAN
 */
@Component
public class WhjlApi1409PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1409PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1409> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1409);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1409> list = new ArrayList<>();
        WhjlApi1409 whjlApi1409;
        for (ApiInfoData infoData : result) {
            whjlApi1409 = JSONObject.parseObject(infoData.getData(), WhjlApi1409.class);
            whjlApi1409.setKqdm(infoData.getKqdm());
            whjlApi1409.setCzbz(infoData.getCzbz());
            whjlApi1409.setUpdateTime(infoData.getUpdateTime());
            whjlApi1409.setBizId(infoData.getDataId());
            list.add(whjlApi1409);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1409PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1409 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1409);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1409PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1409 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1409PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1409> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1409);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1409 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1409);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1410PR.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.WhjlApi1410;
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:YAN
 */
@Component
public class WhjlApi1410PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1410PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1410> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1410);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1410> list = new ArrayList<>();
        WhjlApi1410 whjlApi1410;
        for (ApiInfoData infoData : result) {
            whjlApi1410 = JSONObject.parseObject(infoData.getData(), WhjlApi1410.class);
            whjlApi1410.setKqdm(infoData.getKqdm());
            whjlApi1410.setCzbz(infoData.getCzbz());
            whjlApi1410.setUpdateTime(infoData.getUpdateTime());
            whjlApi1410.setBizId(infoData.getDataId());
            list.add(whjlApi1410);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1410PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1410 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1410);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1410PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1410 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1410PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1410> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1410);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1410 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1410);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1411PR.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.WhjlApi1411;
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:YAN
 */
@Component
public class WhjlApi1411PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1411PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1411> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1411);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1411> list = new ArrayList<>();
        WhjlApi1411 whjlApi1411;
        for (ApiInfoData infoData : result) {
            whjlApi1411 = JSONObject.parseObject(infoData.getData(), WhjlApi1411.class);
            whjlApi1411.setKqdm(infoData.getKqdm());
            whjlApi1411.setCzbz(infoData.getCzbz());
            whjlApi1411.setUpdateTime(infoData.getUpdateTime());
            whjlApi1411.setBizId(infoData.getDataId());
            list.add(whjlApi1411);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1411PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1411 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1411);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1411PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1411 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1411PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1411> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1411);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1411 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1411);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1412PR.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.WhjlApi1412;
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:YAN
 */
@Component
public class WhjlApi1412PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1412PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1412> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1412);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1412> list = new ArrayList<>();
        WhjlApi1412 whjlApi1412;
        for (ApiInfoData infoData : result) {
            whjlApi1412 = JSONObject.parseObject(infoData.getData(), WhjlApi1412.class);
            whjlApi1412.setKqdm(infoData.getKqdm());
            whjlApi1412.setCzbz(infoData.getCzbz());
            whjlApi1412.setUpdateTime(infoData.getUpdateTime());
            whjlApi1412.setBizId(infoData.getDataId());
            list.add(whjlApi1412);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1412PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1412 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1412);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1412PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1412 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1412PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1412> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1412);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1412 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1412);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/resources/templates/home/home-whjl.html
@@ -272,6 +272,30 @@
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1402.d">口感评价</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1403.d">动员企业</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1404.d">动员商品</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1405.d">动员协议</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1406.d">动员协议变更</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1407.d">动员协议执行明细</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1408.d">动员能力</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1409.d">动员警力</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlApi1410.d">动员协议执行明细</a>
                            </dd>
                        </dl>
                    </li>
                </ul>