YYC
2023-07-25 44804e145dfd07f2537684a4358682774331cdaf
计划及合同相关优化
已修改6个文件
已添加1个文件
786 ■■■■■ 文件已修改
igds-core/src/main/java/com/ld/igds/m/view/QualityManager.view.xml 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/InoutManageUtil.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/service/HPlanManageService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/ContractManagePR.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/PlanManage.view.xml 624 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/PlanManagePR.java 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/m/view/QualityManager.view.xml
@@ -140,11 +140,11 @@
        <Property name="label">入库日期</Property>
      </PropertyDef>
      <PropertyDef name="unit">
        <Property/>
        <Property></Property>
        <Property name="label">检验单位</Property>
      </PropertyDef>
      <PropertyDef name="zblb">
        <Property/>
        <Property></Property>
        <Property name="label">指标类别</Property>
      </PropertyDef>
      <PropertyDef name="qfrq">
@@ -156,19 +156,19 @@
        <Property name="label">报告出具时间</Property>
      </PropertyDef>
      <PropertyDef name="shrxm">
        <Property/>
        <Property></Property>
        <Property name="label">审核人姓名</Property>
      </PropertyDef>
      <PropertyDef name="qydbh">
        <Property/>
        <Property></Property>
        <Property name="label">扦样单编号</Property>
      </PropertyDef>
      <PropertyDef name="jdrxm">
        <Property/>
        <Property></Property>
        <Property name="label">监督人姓名</Property>
      </PropertyDef>
      <PropertyDef name="ypbh">
        <Property/>
        <Property></Property>
        <Property name="label">样品编号</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
@@ -674,6 +674,20 @@
      </DataPilot>
    </Container>
    <Dialog id="dialogMain">
      <ClientEvent name="beforeShow">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
var metricsBefore = data.get(&quot;zblb&quot;)&#xD;
if(metricsBefore){&#xD;
    var list = metricsBefore.split(&quot;#&quot;);&#xD;
    var metrics =&quot;&quot; ;&#xD;
    list.forEach(item=>{&#xD;
        if(item == 1)metrics+=&quot;1:质量指标检验#&quot;;&#xD;
        if(item == 2)metrics+=&quot;2:储存品质检验#&quot;;&#xD;
        if(item == 3)metrics+=&quot;3:食品安全检验#&quot;;&#xD;
        console.log(item)&#xD;
        console.log(metrics)    &#xD;
    });&#xD;
    data.set(&quot;zblb&quot;, metrics.substring(0,metrics.length-1));&#xD;
}</ClientEvent>
      <Property name="visible">false</Property>
      <Property name="caption">质量巡检信息</Property>
      <Property name="width">80%</Property>
igds-inout/src/main/java/com/ld/igds/m/InoutManageUtil.java
@@ -74,6 +74,14 @@
     */
    public static final String CUSTOMER_TYPE_2 = "2";
    /**
     * ç»“算与合同一致性 - ç¬¦åˆ
     */
    public static final String CONSISTENCY_1 = "1";
    /**
     * ç»“算与合同一致性 - ä¸ç¬¦åˆ
     */
    public static final String CONSISTENCY_2 = "2";
    /**
     * ç¼“å­˜-性质转变ID
     */
    public static final String CACHE_STOCK_ID = "STOCK_ID";
igds-inout/src/main/java/com/ld/igds/m/service/HPlanManageService.java
@@ -166,10 +166,12 @@
            return;
        for (InoutPlanDetail planDetail : details) {
            if (null == planDetail.getId()) {
                planDetail.setUpdateTime(new Date());
                planDetail.setPlanId(planId);
                planDetail.setId(ContextUtil.getUUID());
                session.save(planDetail);
            } else {
                planDetail.setUpdateTime(new Date());
                session.update(planDetail);
            }
        }
igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml
@@ -132,10 +132,12 @@
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;KHKHH&quot;)}</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="bankAccount">
        <Property></Property>
        <Property name="label">本方开户行账号</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="signUser">
        <Property></Property>
@@ -258,22 +260,32 @@
      <PropertyDef name="lybzj">
        <Property name="dataType">Double</Property>
        <Property name="label">履约保证金</Property>
        <Property name="displayFormat">#,###0.00 å…ƒ</Property>
      </PropertyDef>
      <PropertyDef name="lyl">
        <Property name="dataType">Double</Property>
        <Property name="label">履约率</Property>
        <Property name="displayFormat"> ##.00%</Property>
      </PropertyDef>
      <PropertyDef name="jsjg">
        <Property name="dataType">Double</Property>
        <Property name="label">结算价格,元/吨</Property>
        <Property name="label">结算价格</Property>
        <Property name="displayFormat">#,###0.000 å…ƒ/吨</Property>
      </PropertyDef>
      <PropertyDef name="jszje">
        <Property name="dataType">Double</Property>
        <Property name="label">结算总金额</Property>
        <Property name="readOnly">true</Property>
        <Property name="displayFormat">#,###0.00 å…ƒ</Property>
      </PropertyDef>
      <PropertyDef name="jsyhtyzx">
        <Property></Property>
        <Property name="label">结算与合同一致性</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;contractManagePR#triggerConsistency&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="jsyhtbyzyy">
        <Property></Property>
@@ -286,18 +298,16 @@
      <PropertyDef name="auditDate">
        <Property></Property>
        <Property name="label">审批时间</Property>
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="auditStatus">
        <Property></Property>
        <Property name="label">审批状态</Property>
      </PropertyDef>
      <PropertyDef name="wcrq">
        <Property name="dataType">Date</Property>
        <Property name="label">完成时间</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="hqzz">
        <Property></Property>
@@ -394,16 +404,22 @@
    <ClientEvent name="onCreate">//自动计算&#xD;
countMoney = function(){&#xD;
    var curData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
    &#xD;
    var price = curData.get(&quot;price&quot;);&#xD;
    &#xD;
    var contactAmount = curData.get(&quot;contactAmount&quot;);&#xD;
    &#xD;
    if(price &amp;&amp; contactAmount){&#xD;
        &#xD;
        //计算倒入数量&#xD;
        var money = price*contactAmount/1000;&#xD;
        curData.set(&quot;money&quot;,money); &#xD;
    }&#xD;
};&#xD;
countSettleMoney = function(){&#xD;
    var curData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
    var price = curData.get(&quot;jsjg&quot;);&#xD;
    var completeNum = curData.get(&quot;completeNum&quot;);&#xD;
    if(price &amp;&amp; completeNum){&#xD;
        //计算倒入数量&#xD;
        var money = price*completeNum/1000;&#xD;
        curData.set(&quot;jszje&quot;,money); &#xD;
    }&#xD;
};</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
@@ -661,16 +677,6 @@
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">completeNum</Property>
                    <Property name="property">completeNum</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">payType</Property>
                    <Property name="property">payType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">beginTime</Property>
                    <Property name="property">beginTime</Property>
                    <Editor/>
@@ -691,6 +697,68 @@
                    <Property name="trigger">ddPlan</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">auditUser</Property>
                    <Property name="property">auditUser</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">auditDate</Property>
                    <Property name="property">auditDate</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">payType</Property>
                    <Property name="property">payType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">lybzj</Property>
                    <Property name="property">lybzj</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">relEndTime</Property>
                    <Property name="property">relEndTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <ClientEvent name="onBlur">countSettleMoney();</ClientEvent>
                    <Property name="name">completeNum</Property>
                    <Property name="property">completeNum</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <ClientEvent name="onBlur">countSettleMoney();</ClientEvent>
                    <Property name="name">jsjg</Property>
                    <Property name="property">jsjg</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jszje</Property>
                    <Property name="property">jszje</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">lyl</Property>
                    <Property name="property">lyl</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jsyhtyzx</Property>
                    <Property name="property">jsyhtyzx</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">updateTime</Property>
                    <Property name="property">updateTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement layoutConstraint="colSpan:3">
                    <Property name="name">jsyhtbyzyy</Property>
                    <Property name="property">jsyhtbyzyy</Property>
                    <Editor/>
                  </AutoFormElement>
                </AutoForm>
              </Children>
            </FieldSet>
igds-inout/src/main/java/com/ld/igds/m/view/ContractManagePR.java
@@ -24,7 +24,6 @@
 * åˆåŒç®¡ç†
 * 
 * @author:
 *
 */
@Component
public class ContractManagePR {
@@ -112,7 +111,24 @@
    }
    /**
     * ä¸€è‡´æ€§ç±»åž‹
     * ${dorado.getDataProvider("contractManagePR#triggerConsistency").getResult()}
     *
     * @return
     */
    @DataProvider
    public List<DicTrigger> triggerConsistency() {
        List<DicTrigger> list = new ArrayList<DicTrigger>();
        list.add(new DicTrigger(InoutManageUtil.CONSISTENCY_1, "符合"));
        list.add(new DicTrigger(InoutManageUtil.CONSISTENCY_2, "不符合"));
        return list;
    }
    /**
     * contractManagePR#pageContract
     *
     * @param page
     * @param param
     * @throws Exception
@@ -127,6 +143,7 @@
    /**
     * contractManagePR#saveContract
     *
     * @param data
     */
    @DataResolver
@@ -136,6 +153,7 @@
    /**
     * contractManagePR#delContract
     *
     * @param data
     * @return
     */
igds-inout/src/main/java/com/ld/igds/m/view/PlanManage.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,624 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.ld.igds.models.InoutPlan</Property>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">计划编码</Property>
      </PropertyDef>
      <PropertyDef name="referenceNumber">
        <Property name="label">计划文号</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property></Property>
        <Property name="label">组织编码</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property></Property>
        <Property name="label">计划类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;planManagePR#triggerPlanType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="name">
        <Property></Property>
        <Property name="label">计划名称</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="year">
        <Property></Property>
        <Property name="label">年份</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="beginTime">
        <Property name="dataType">Date</Property>
        <Property name="label">开始时间</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="endTime">
        <Property name="dataType">Date</Property>
        <Property name="label">截止时间</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="createUser">
        <Property></Property>
        <Property name="label">创建人</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property name="dataType">Date</Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注说明</Property>
      </PropertyDef>
      <PropertyDef name="jhxddw">
        <Property/>
        <Property name="label">计划下达单位</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="jhxddwmc">
        <Property/>
        <Property name="label">计划下达单位名称</Property>
      </PropertyDef>
      <PropertyDef name="jhxdsj">
        <Property name="dataType">Date</Property>
        <Property name="label">计划下达时间</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">数据更新时间</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <Reference name="details">
        <Property name="dataType">[dtDetail]</Property>
        <Property name="dataProvider">planManagePR#listPlanDetail</Property>
        <Property name="parameter">$${this.id}</Property>
      </Reference>
    </DataType>
    <DataType name="dtDetail">
      <Property name="creationType">com.ld.igds.models.InoutPlanDetail</Property>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">ID_</Property>
      </PropertyDef>
      <PropertyDef name="planId">
        <Property></Property>
        <Property name="label">计划ID</Property>
      </PropertyDef>
      <PropertyDef name="depotId">
        <Property></Property>
        <Property name="label">仓库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="year">
        <Property></Property>
        <Property name="label">年份</Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property></Property>
        <Property name="label">计划类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;planManagePR#triggerPlanTurn&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="foodVariety">
        <Property></Property>
        <Property name="label">粮食品种</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_VARIETY_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="foodType">
        <Property></Property>
        <Property name="label">粮食性质</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_TYPE_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="foodLevel">
        <Property></Property>
        <Property name="label">粮食等级</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_LEVEL_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="planNum">
        <Property name="dataType">Double</Property>
        <Property name="label">数量</Property>
        <Property name="displayFormat">#.0  KG</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">数据更新时间</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
      <PropertyDef name="type">
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;planManagePR#triggerPlanType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="label">计划类型</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">计划编号</Property>
      </PropertyDef>
      <PropertyDef name="year">
        <Property></Property>
        <Property name="label">计划年份</Property>
      </PropertyDef>
      <PropertyDef name="referenceNumber">
        <Property name="label">计划文号</Property>
      </PropertyDef>
      <PropertyDef name="name">
        <Property name="label">计划名称</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtTitle">
      <PropertyDef name="title">
        <Property name="label">title</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="padding:5;regionPadding:5">
    <ClientEvent name="onReady">var deptId = window.parent.deptId;//父页面中的分库编码&#xD;
queryTitle = function(){&#xD;
   view.get(&quot;#dsTitle&quot;).set(&quot;parameter&quot;,{deptId:deptId}).flushAsync();&#xD;
};&#xD;
queryTitle();&#xD;
&#xD;
addMain = function(){&#xD;
view.get(&quot;#dsMain&quot;).insert({});&#xD;
 view.get(&quot;#dialogMain&quot;).show();&#xD;
};&#xD;
view.get(&quot;#dsParam&quot;).insert({});</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="loadMode">lazy</Property>
      <Property name="dataProvider">planManagePR#pagePlan</Property>
      <Property name="dataType">[dtMain]</Property>
      <Property name="pageSize">15</Property>
    </DataSet>
    <DataSet id="dsParam">
      <Property name="dataType">dtParam</Property>
    </DataSet>
    <DataSet id="dsTitle">
      <Property name="dataType">dtTitle</Property>
      <Property name="dataProvider">planManagePR#getPlanTitle</Property>
      <Property name="loadMode">manual</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="contentOverflow">hidden</Property>
      <Property name="height">55</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">addMain();</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;#dsMain.data:#&quot;);&#xD;
          if(data){&#xD;
          view.get(&quot;#dialogMain&quot;).show();&#xD;
          }</ClientEvent>
        <Property name="caption">调整</Property>
        <Property name="exClassName">btn-warm</Property>
        <Property name="iconClass">fa fa-pencil</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
          if(!data){&#xD;
          return;&#xD;
          }&#xD;
          view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
          if(result){&#xD;
          $alert(result);&#xD;
          return;&#xD;
          }else{&#xD;
          data.remove();&#xD;
          }&#xD;
          });</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="exClassName">btn-warn</Property>
        <Property name="iconClass">fa fa-minus</Property>
      </Button>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <AutoForm>
        <Property name="cols">*,*,*,*,*</Property>
        <Property name="dataSet">dsParam</Property>
        <Property name="labelAlign">right</Property>
        <Property name="labelSeparator">:</Property>
        <Property name="labelWidth">100</Property>
        <AutoFormElement>
          <Property name="name">type</Property>
          <Property name="property">type</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">id</Property>
          <Property name="property">id</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">year</Property>
          <Property name="property">year</Property>
          <Property name="trigger">yearDropDown1</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">referenceNumber</Property>
          <Property name="property">referenceNumber</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">name</Property>
          <Property name="property">name</Property>
          <Editor/>
        </AutoFormElement>
        <Container layout="regionPadding:15">
          <Button layoutConstraint="left">
            <ClientEvent name="onClick">var param = view.get(&quot;#dsParam.data&quot;);&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param.toJSON()).flushAsync();</ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="exClassName">btn-default</Property>
            <Property name="iconClass">fa fa-refresh</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).setData({});&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{}).flushAsync();</ClientEvent>
            <Property name="exClassName">btn-warn</Property>
            <Property name="iconClass">fa fa-refresh</Property>
            <Property name="caption">重置</Property>
          </Button>
        </Container>
      </AutoForm>
      <DataGrid layoutConstraint="center padding:5px">
        <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="readOnly">true</Property>
        <RowNumColumn/>
        <DataColumn name="id">
          <Property name="property">id</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn id="referenceNumber">
          <Property name="name">referenceNumber</Property>
          <Property name="align">center</Property>
          <Editor/>
        </DataColumn>
        <DataColumn name="name">
          <Property name="property">name</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn id="type">
          <Property name="name">type</Property>
          <Property name="align">center</Property>
          <Editor/>
        </DataColumn>
        <DataColumn name="year">
          <Property name="property">year</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn id="beginTime">
          <Property name="name">beginTime</Property>
          <Property name="align">center</Property>
          <Editor/>
        </DataColumn>
        <DataColumn id="endTime">
          <Property name="name">endTime</Property>
          <Property name="align">center</Property>
          <Editor/>
        </DataColumn>
        <DataColumn id="createTime">
          <Property name="name">createTime</Property>
          <Property name="align">center</Property>
          <Editor/>
        </DataColumn>
        <DataColumn name="remark">
          <Property name="property">remark</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="itemCodes">pageSize,pages</Property>
        <Property name="dataSet">dsMain</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain" layout="padding:5;regionPadding:10">
      <Property name="height">85%</Property>
      <Property name="width">85%</Property>
      <Property name="caption">计划信息</Property>
      <Property name="iconClass">fa fa-flag-o</Property>
      <Property name="closeable">false</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data.validate() != 'ok'){&#xD;
    $notify(&quot;数据校验失败!!&quot;);&#xD;
    return;&#xD;
}&#xD;
view.get(&quot;#uaAction&quot;).set(&quot;parameter&quot;,data).execute();&#xD;
self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">确认</Property>
          <Property name="iconClass">fa fa-check-circle</Property>
          <Property name="width">90</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
            self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times-circle</Property>
          <Property name="width">90</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <AutoForm id="autoTitle">
            <Property name="cols">*</Property>
            <Property name="dataSet">dsTitle</Property>
            <Property name="labelAlign">right</Property>
            <Property name="showHint">false</Property>
            <AutoFormElement layoutConstraint="colSpan:7">
              <Property name="name">title</Property>
              <Property name="property">title</Property>
              <Property name="showLabel">false</Property>
              <Property name="editorType">Label</Property>
              <Property name="style">
                <Property name="font">bold 30px Georgia, serif;</Property>
                <Property name="text-align">center</Property>
              </Property>
              <Editor/>
            </AutoFormElement>
          </AutoForm>
          <Container layout="regionPadding:5">
            <FieldSet layout="regionPadding:5">
              <Property name="caption">基本信息</Property>
              <Buttons/>
              <Children>
                <AutoForm>
                  <Property name="dataSet">dsMain</Property>
                  <Property name="cols">*,*,*</Property>
                  <Property name="labelWidth">150</Property>
                  <Property name="labelAlign">right</Property>
                  <Property name="labelSeparator">:</Property>
                  <AutoFormElement>
                    <Property name="name">type</Property>
                    <Property name="property">type</Property>
                    <Property name="editorType">RadioGroup</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">id</Property>
                    <Property name="property">id</Property>
                    <Property name="readOnly">true</Property>
                    <Editor>
                      <TextEditor>
                        <Property name="blankText"> -- ç³»ç»Ÿè‡ªåŠ¨ç”Ÿæˆ --</Property>
                      </TextEditor>
                    </Editor>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">name</Property>
                    <Property name="property">name</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">year</Property>
                    <Property name="property">year</Property>
                    <Property name="trigger">yearDropDown1</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">referenceNumber</Property>
                    <Property name="property">referenceNumber</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">beginTime</Property>
                    <Property name="property">beginTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">endTime</Property>
                    <Property name="property">endTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">deptId</Property>
                    <Property name="property">deptId</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jhxdsj</Property>
                    <Property name="property">jhxdsj</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jhxddw</Property>
                    <Property name="property">jhxddw</Property>
                    <Editor>
                      <TextEditor>
                        <Property name="blankText">下达单位的统一社会信用代码</Property>
                      </TextEditor>
                    </Editor>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jhxddwmc</Property>
                    <Property name="property">jhxddwmc</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">updateTime</Property>
                    <Property name="property">updateTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement layoutConstraint="colSpan:3">
                    <Property name="name">remark</Property>
                    <Property name="property">remark</Property>
                    <Editor/>
                  </AutoFormElement>
                </AutoForm>
              </Children>
            </FieldSet>
            <Panel>
              <Property name="caption">计划详细信息</Property>
              <Buttons/>
              <Children>
                <Container layout="regionPadding:10" layoutConstraint="top">
                  <Property name="exClassName">bg-color</Property>
                  <Property name="contentOverflow">hidden</Property>
                  <Property name="height">55</Property>
                  <Label layoutConstraint="left">
                    <Property name="text">菜单栏:</Property>
                  </Label>
                  <Button layoutConstraint="left">
                    <ClientEvent name="onClick">var list = view.get(&quot;#dsMain.data:#&quot;).get(&quot;details&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;#dataGridDetail.currentEntity&quot;);&#xD;
                      if(!data){&#xD;
                      return;&#xD;
                      }&#xD;
                      view.get(&quot;#ajaxDelDetail&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
                      if(result){&#xD;
                      $alert(result);&#xD;
                      return;&#xD;
                      }else{&#xD;
                      data.remove();&#xD;
                      }&#xD;
                      });</ClientEvent>
                    <Property name="caption">删除</Property>
                    <Property name="exClassName">btn-warn</Property>
                    <Property name="iconClass">fa fa-minus</Property>
                  </Button>
                </Container>
                <DataGrid id="dataGridDetail">
                  <Property name="dataSet">dsMain</Property>
                  <Property name="dataPath">#.details</Property>
                  <DataColumn name="foodVariety">
                    <Property name="property">foodVariety</Property>
                    <Property name="align">center</Property>
                  </DataColumn>
                  <DataColumn name="depotId">
                    <Property name="property">depotId</Property>
                    <Property name="align">center</Property>
                  </DataColumn>
                  <DataColumn>
                    <Property name="property">foodType</Property>
                    <Property name="align">center</Property>
                    <Property name="name">foodType</Property>
                  </DataColumn>
                  <DataColumn>
                    <Property name="property">foodLevel</Property>
                    <Property name="align">center</Property>
                    <Property name="name">foodLevel</Property>
                  </DataColumn>
                  <DataColumn>
                    <Property name="property">type</Property>
                    <Property name="align">center</Property>
                    <Property name="name">type</Property>
                  </DataColumn>
                  <DataColumn>
                    <Property name="property">planNum</Property>
                    <Property name="align">center</Property>
                    <Property name="name">planNum</Property>
                  </DataColumn>
                  <DataColumn name="updateTime">
                    <Property name="property">updateTime</Property>
                    <Property name="align">center</Property>
                  </DataColumn>
                </DataGrid>
              </Children>
              <Tools/>
            </Panel>
          </Container>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="uaAction">
      <Property name="dataResolver">planManagePR#savePlan</Property>
      <UpdateItem>
        <Property name="dataSet">dsMain</Property>
        <Property name="dataPath">[#current]</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">planManagePR#delPlan</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDelDetail">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">planManagePR#delPlanDetail</Property>
    </AjaxAction>
    <ListDropDown id="yearDropDown1">
      <ClientEvent name="onCreate">var curY = Number(new Date().formatDate(&quot;Y&quot;));&#xD;
        var arrt = new Array();&#xD;
        arrt.push(curY-5);&#xD;
        arrt.push(curY-4);&#xD;
        arrt.push(curY-3);&#xD;
        arrt.push(curY-2);&#xD;
        arrt.push(curY-1);&#xD;
        arrt.push(curY);&#xD;
        arrt.push(curY+1);&#xD;
        self.set(&quot;items&quot;,arrt);</ClientEvent>
    </ListDropDown>
  </View>
</ViewConfig>
igds-inout/src/main/java/com/ld/igds/m/view/PlanManagePR.java