YYC
2023-07-28 92c29136e298a2b6023f701082c24229733d6768
熏蒸备案及熏蒸作业
已修改7个文件
已添加7个文件
2779 ■■■■■ 文件已修改
igds-inout/src/main/java/com/ld/igds/m/view/PlanManage.view.xml 64 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/service/HDrugLogApplyService.java 404 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/service/HDrugLogService.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/view/Drug.view.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLog.view.xml 541 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLogApply.view.xml 1047 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLogApplyPR.java 83 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLogPR.java 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/models/DrugLog.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/models/DrugLogApply.java 272 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/models/DrugLogDtl.java 133 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/models/DrugLogPeople.java 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/com/ld/igds/models/DrugLogWay.java 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-recir/src/main/java/models/recir.model.xml 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/PlanManage.view.xml
@@ -68,12 +68,12 @@
        <Property name="label">备注说明</Property>
      </PropertyDef>
      <PropertyDef name="jhxddw">
        <Property/>
        <Property></Property>
        <Property name="label">计划下达单位</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="jhxddwmc">
        <Property/>
        <Property></Property>
        <Property name="label">计划下达单位名称</Property>
      </PropertyDef>
      <PropertyDef name="jhxdsj">
@@ -244,26 +244,26 @@
      </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>
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>
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>
@@ -274,7 +274,7 @@
      <AutoForm>
        <Property name="cols">*,*,*,*,*</Property>
        <Property name="dataSet">dsParam</Property>
        <Property name="labelAlign">right</Property>
        <Property name="labelAlign">left</Property>
        <Property name="labelSeparator">:</Property>
        <Property name="labelWidth">100</Property>
        <AutoFormElement>
@@ -322,9 +322,9 @@
      </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>
if(data){&#xD;
   view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
@@ -398,7 +398,7 @@
        </Button>
        <Button>
          <ClientEvent name="onClick">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
            self.get(&quot;parent&quot;).hide();</ClientEvent>
self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times-circle</Property>
          <Property name="width">90</Property>
@@ -533,17 +533,17 @@
                  </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>
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>
igds-recir/src/main/java/com/ld/igds/drug/service/HDrugLogApplyService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,404 @@
package com.ld.igds.drug.service;
import com.bstek.bdf2.core.model.DefaultDept;
import com.bstek.bdf2.core.orm.hibernate.HibernateDao;
import com.bstek.dorado.data.provider.Page;
import com.ld.igds.constant.RedisConst;
import com.ld.igds.models.*;
import com.ld.igds.util.ContextUtil;
import com.ld.igds.util.RedisUtil;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * @Author:YAN
 */
@Service
public class HDrugLogApplyService extends HibernateDao {
    @Autowired
    private RedisUtil redisUtil;
    /**
     * ç¼“存熏蒸备案id
     */
    public static final String CACHE_DRUG_LOG_APPLY_ID = "DRUG_LOG_APPLY_ID";
    /**
     * åˆ†é¡µæŸ¥è¯¢ç†è’¸ä½œä¸šä¸»è¡¨ä¿¡æ¯
     *
     * @param page
     * @param param
     * @throws Exception
     */
    public void pageDrugLogApply(Page<DrugLogApply> page, Map<String, Object> param) throws Exception {
        StringBuffer hql = new StringBuffer();
        Map<String, Object> args = new HashMap<>();
        hql.append(" from " + DrugLogApply.class.getName() + " where companyId=:companyId");
        args.put("companyId", ContextUtil.getCompanyId());
        if (null != param) {
            buildHql(hql, param, args);
        }
        hql.append(" order by id ");
        String countHql = "select count(*) " + hql.toString();
        this.pagingQuery(page, String.valueOf(hql), countHql, args);
    }
    /**
     * æ›´æ–°æˆ–添加熏蒸备案主表信息
     *
     * @param data
     * @return
     */
    public String saveDrugLogApply(DrugLogApply data) {
        if (null == data.getCompanyId()) {
            data.setCompanyId(ContextUtil.getCompanyId());
        }
        if (null == data.getDeptId()) {
            data.setDeptId(ContextUtil.subDeptId(null));
        }
        Session session = this.getSessionFactory().openSession();
        data.setUpdateTime(new Date());
        try {
            if (null == data.getId()) {
                String id = createId(data.getCompanyId());
                data.setId(id);
                session.save(data);
            } else {
                session.update(data);
            }
            if (CollectionUtils.isEmpty(data.getDrugLogPeople())) {
                for (DrugLogPeople drugLogPeople : data.getDrugLogPeople()) {
                    if (null == drugLogPeople.getId()) {
                        drugLogPeople.setId(ContextUtil.getUUID());
                        drugLogPeople.setDrugLogId(data.getId());
                        drugLogPeople.setCompanyId(data.getCompanyId());
                        drugLogPeople.setDeptId(data.getDeptId());
                        session.save(drugLogPeople);
                    } else {
                        session.update(drugLogPeople);
                    }
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * åˆ é™¤ç†è’¸å¤‡æ¡ˆä¸»è¡¨ä¿¡æ¯
     *
     * @param data
     * @return
     */
    public String delDrugLogApply(DrugLogApply data) {
        Session session = this.getSessionFactory().openSession();
        try {
            if (null != data.getId()) {
                session.delete(data);
                for (DrugLogPeople drugLogPeople : data.getDrugLogPeople()) {
                    session.delete(drugLogPeople);
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * èŽ·å–DrugLogApply列表
     *
     * @param param
     * @throws Exception
     */
    public List<DrugLogApply> drugLogApplyList(Map<String, Object> param) throws Exception {
        StringBuffer hql = new StringBuffer();
        Map<String, Object> args = new HashMap<>();
        hql.append(" from " + DrugLogApply.class.getName() + " where companyId=:companyId");
        args.put("companyId", ContextUtil.getCompanyId());
        if (null != param) {
            buildHql(hql, param, args);
        }
        hql.append(" order by id desc");
        return this.query(String.valueOf(hql), args);
    }
    /**
     * èŽ·å–DrugLogDtl列表
     *
     * @param param
     * @throws Exception
     */
    public List<DrugLogDtl> drugLogDtlList(Map<String, Object> param) throws Exception {
        StringBuffer hql = new StringBuffer();
        Map<String, Object> args = new HashMap<>();
        hql.append(" from " + DrugLogDtl.class.getName() + " where companyId=:companyId");
        args.put("companyId", ContextUtil.getCompanyId());
        if (null != param) {
            buildHql(hql, param, args);
        }
        return this.query(String.valueOf(hql), args);
    }
    /**
     * æ›´æ–°æˆ–添加熏蒸备案储粮详情信息
     *
     * @param data
     * @return
     */
    public String saveDrugLogDtl(DrugLogDtl data) {
        if (null == data.getCompanyId()) {
            data.setCompanyId(ContextUtil.getCompanyId());
        }
        if (null == data.getDeptId()) {
            data.setDeptId(ContextUtil.subDeptId(null));
        }
        Session session = this.getSessionFactory().openSession();
        try {
            if (null == data.getId()) {
                data.setId(ContextUtil.getUUID());
                session.save(data);
            } else {
                session.update(data);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * åˆ é™¤ç†è’¸å¤‡æ¡ˆä¸»è¡¨ä¿¡æ¯
     *
     * @param data
     * @return
     */
    public String delDrugLogDtl(DrugLogDtl data) {
        Session session = this.getSessionFactory().openSession();
        try {
            if (null != data.getId()) {
                session.delete(data);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * èŽ·å–DrugLogPeople列表
     *
     * @param param
     * @throws Exception
     */
    public List<DrugLogPeople> drugLogPeopleList(Map<String, Object> param) throws Exception {
        StringBuffer hql = new StringBuffer();
        Map<String, Object> args = new HashMap<>();
        hql.append(" from " + DrugLogPeople.class.getName() + " where companyId=:companyId");
        args.put("companyId", ContextUtil.getCompanyId());
        if (null != param) {
            buildHql(hql, param, args);
        }
        return this.query(String.valueOf(hql), args);
    }
    /**
     * æ›´æ–°æˆ–添加熏蒸工作人员信息
     *
     * @param data
     * @return
     */
    public String saveDrugLogPeople(DrugLogPeople data) {
        if (null == data.getCompanyId()) {
            data.setCompanyId(ContextUtil.getCompanyId());
        }
        if (null == data.getDeptId()) {
            data.setDeptId(ContextUtil.subDeptId(null));
        }
        Session session = this.getSessionFactory().openSession();
        try {
            if (null == data.getId()) {
                data.setId(ContextUtil.getUUID());
                session.save(data);
            } else {
                session.update(data);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * åˆ é™¤ç†è’¸å·¥ä½œäººå‘˜ä¿¡æ¯
     *
     * @param data
     * @return
     */
    public String delDrugLogPeople(DrugLogPeople data) {
        Session session = this.getSessionFactory().openSession();
        try {
            if (null != data.getId()) {
                session.delete(data);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * èŽ·å–DrugLogWay列表
     *
     * @param param
     * @throws Exception
     */
    public List<DrugLogWay> drugLogWayList(Map<String, Object> param) throws Exception {
        StringBuffer hql = new StringBuffer();
        Map<String, Object> args = new HashMap<>();
        hql.append(" from " + DrugLogWay.class.getName() + " where companyId=:companyId");
        args.put("companyId", ContextUtil.getCompanyId());
        if (null != param) {
            buildHql(hql, param, args);
        }
        return this.query(String.valueOf(hql), args);
    }
    /**
     * æ›´æ–°æˆ–添加熏蒸备案主表信息
     *
     * @param data
     * @return
     */
    public String saveDrugLogWay(DrugLogWay data) {
        if (null == data.getCompanyId()) {
            data.setCompanyId(ContextUtil.getCompanyId());
        }
        if (null == data.getDeptId()) {
            data.setDeptId(ContextUtil.subDeptId(null));
        }
        Session session = this.getSessionFactory().openSession();
        try {
            if (null == data.getId()) {
                data.setId(ContextUtil.getUUID());
                session.save(data);
            } else {
                session.update(data);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * åˆ é™¤ç†è’¸å¤‡æ¡ˆä¸»è¡¨ä¿¡æ¯
     *
     * @param data
     * @return
     */
    public String delDrugLogWay(DrugLogWay data) {
        Session session = this.getSessionFactory().openSession();
        try {
            if (null != data.getId()) {
                session.delete(data);
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            session.flush();
            session.close();
        }
        return null;
    }
    /**
     * æž„建hql
     *
     * @param hql
     * @param param
     * @param args
     */
    public void buildHql(StringBuffer hql, Map<String, Object> param, Map<String, Object> args) {
        String str = (String) param.get("drugLogId");
        if (StringUtils.isNotEmpty(str)) {
            hql.append(" and drugLogId=:drugLogId");
            args.put("drugLogId", str);
        }
        str = (String) param.get("depotId");
        if (StringUtils.isNotEmpty(str)) {
            hql.append(" and depotId=:depotId");
            args.put("depotId", str);
        }
        Date date = (Date) param.get("start");
        if (null != date) {
            hql.append(" and updateTime >=:start");
            args.put("start", date);
        }
        date = (Date) param.get("end");
        if (null != date) {
            hql.append(" and updateTime <=:end");
            args.put("end", date);
        }
    }
    public String createId(String companyId) throws Exception {
        // ä»Žç¼“存中获取已有的组织编码
        String cacheKey = RedisConst.buildKey(companyId, HDrugLogApplyService.CACHE_DRUG_LOG_APPLY_ID);
        String cacheId = (String) redisUtil.get(cacheKey);
        if (null != cacheId) {
            Integer i = Integer.valueOf(cacheId);
            cacheId = String.format("%04d", ++i);
        } else {
            List<DrugLogApply> drugLogApplies = this.drugLogApplyList(null);
            if (null == drugLogApplies || drugLogApplies.size() == 0) {
                cacheId = "0001";
            } else {
                String temp = drugLogApplies.get(0).getId();
                Integer i = Integer.valueOf(temp);
                cacheId = String.format("%04d", ++i);
            }
        }
        // æ›´æ–°ç¼“å­˜
        redisUtil.set(cacheKey, cacheId);
        return cacheId;
    }
}
igds-recir/src/main/java/com/ld/igds/drug/service/HDrugLogService.java
@@ -32,6 +32,11 @@
                hql += " and depotId =:depotId";
                args.put("depotId", str);
            }
            str = (String) param.get("name");
            if (StringUtils.isNotEmpty(str)) {
                hql += " and user =:name";
                args.put("name", "%" + str + "%");
            }
        }
igds-recir/src/main/java/com/ld/igds/drug/view/Drug.view.xml
@@ -199,11 +199,6 @@
                  <Editor/>
                </AutoFormElement>
                <AutoFormElement>
                  <Property name="name">deptId</Property>
                  <Property name="property">deptId</Property>
                  <Editor/>
                </AutoFormElement>
                <AutoFormElement>
                  <Property name="name">cgrq</Property>
                  <Property name="property">cgrq</Property>
                  <Editor/>
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLog.view.xml
@@ -7,7 +7,8 @@
      <Property name="creationType">com.ld.igds.models.DrugLog</Property>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">id</Property>
        <Property name="label">熏蒸作业单号</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property></Property>
@@ -51,8 +52,9 @@
      </PropertyDef>
      <PropertyDef name="dose">
        <Property></Property>
        <Property name="label">使用剂量</Property>
        <Property name="label">总用药量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">##0.000kg</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
@@ -61,10 +63,12 @@
      <PropertyDef name="pestBatchId">
        <Property></Property>
        <Property name="label">虫害检测单号</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="num">
        <Property name="dataType">Integer</Property>
        <Property name="label">第几次熏蒸</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="mode">
        <Property></Property>
@@ -117,18 +121,22 @@
      <PropertyDef name="drugName">
        <Property></Property>
        <Property name="label">药剂名称</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="concentration">
        <Property name="dataType">Double</Property>
        <Property name="label">药剂浓度</Property>
        <Property name="displayFormat">#0.000%</Property>
      </PropertyDef>
      <PropertyDef name="grainDose">
        <Property name="dataType">Double</Property>
        <Property name="label">粮堆使用剂量</Property>
        <Property name="displayFormat">##0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="SpaceDose">
        <Property name="dataType">Double</Property>
        <Property name="label">空间使用剂量</Property>
        <Property name="displayFormat">##0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="ventilateTime">
        <Property name="dataType">Date</Property>
@@ -137,10 +145,12 @@
      <PropertyDef name="ventilateMethod">
        <Property></Property>
        <Property name="label">散气方法</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="afterPh3">
        <Property name="dataType">Double</Property>
        <Property name="label">散气后浓度</Property>
        <Property name="displayFormat">##0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="evaluate">
        <Property></Property>
@@ -165,6 +175,7 @@
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="czsjff">
        <Property></Property>
@@ -173,6 +184,261 @@
      <PropertyDef name="czclcs">
        <Property></Property>
        <Property name="label">残渣处理措施</Property>
      </PropertyDef>
      <PropertyDef name="hlxzynhljsjh">
        <Property></Property>
        <Property name="label">环流熏蒸与内环流技术结合</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">0</Property>
                <Property name="value">分别使用_固定式</Property>
              </Entity>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">分别使用_移动式</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">二合一应用_单向控制</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">二合一应用_双向控制</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="xzfazd">
        <Property></Property>
        <Property name="label">熏蒸方案制定</Property>
      </PropertyDef>
      <PropertyDef name="xzfaqcr">
        <Property></Property>
        <Property name="label">熏蒸方案起草人</Property>
      </PropertyDef>
      <PropertyDef name="xzfapzr">
        <Property></Property>
        <Property name="label">熏蒸方案批准人</Property>
      </PropertyDef>
      <PropertyDef name="xzfabbqk">
        <Property></Property>
        <Property name="label">熏蒸方案报备情况</Property>
      </PropertyDef>
      <PropertyDef name="syryzzqk">
        <Property></Property>
        <Property name="label">施药人员资质情况</Property>
      </PropertyDef>
      <PropertyDef name="syzzsh">
        <Property></Property>
        <Property name="label">施药资质审核</Property>
      </PropertyDef>
      <PropertyDef name="jx">
        <Property></Property>
        <Property name="label">剂型</Property>
      </PropertyDef>
      <PropertyDef name="syff">
        <Property></Property>
        <Property name="label">施药方法</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">0</Property>
                <Property name="value">潮解法</Property>
              </Entity>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">仓外发生器</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">钢瓶气</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="fzsycs">
        <Property></Property>
        <Property name="label">辅助施药措施</Property>
      </PropertyDef>
      <PropertyDef name="kqhqjaqjcqk">
        <Property></Property>
        <Property name="label">空气呼吸器及安全检查情况</Property>
      </PropertyDef>
      <PropertyDef name="lhqjczztsqk">
        <Property></Property>
        <Property name="label">磷化氢检测装置调试情况</Property>
      </PropertyDef>
      <PropertyDef name="yqsdjczztsqk">
        <Property></Property>
        <Property name="label">氧气深度检测装置调试情况</Property>
      </PropertyDef>
      <PropertyDef name="lhqbjyaqjc">
        <Property></Property>
        <Property name="label">磷化氢报警仪安全检查</Property>
      </PropertyDef>
      <PropertyDef name="yqbjyaqjc">
        <Property></Property>
        <Property name="label">氧气报警仪安全检查</Property>
      </PropertyDef>
      <PropertyDef name="byqcnlhqnd">
        <Property name="dataType">double</Property>
        <Property name="label">补药前仓内磷化氢浓度</Property>
      </PropertyDef>
      <PropertyDef name="nlhqnddw">
        <Property></Property>
        <Property name="label">磷化氢浓度单位</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">0</Property>
                <Property name="value">g/m³</Property>
              </Entity>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">ppm</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">ml/m³</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">%VOL</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="mbnd">
        <Property name="dataType">double</Property>
        <Property name="label">目标浓度</Property>
        <Property name="displayFormat">##0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="jsbyl">
        <Property name="dataType">double</Property>
        <Property name="label">计算补药量</Property>
        <Property name="displayFormat">##0.000g</Property>
      </PropertyDef>
      <PropertyDef name="sjbyl">
        <Property name="dataType">double</Property>
        <Property name="label">实际补药量</Property>
        <Property name="displayFormat">##0.000g</Property>
      </PropertyDef>
      <PropertyDef name="byff">
        <Property></Property>
        <Property name="label">补药方法</Property>
      </PropertyDef>
      <PropertyDef name="zyrs">
        <Property name="dataType">Integer</Property>
        <Property name="label">作业人数</Property>
      </PropertyDef>
      <PropertyDef name="byzypzr">
        <Property></Property>
        <Property name="label">补药作业批准人</Property>
      </PropertyDef>
      <PropertyDef name="xczhr">
        <Property></Property>
        <Property name="label">现场指挥人</Property>
      </PropertyDef>
      <PropertyDef name="fznd">
        <Property name="dataType">double</Property>
        <Property name="label">峰值浓度</Property>
        <Property name="displayFormat">##0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="mbndwcts">
        <Property name="dataType">Integer</Property>
        <Property name="label">目标浓度维持天数</Property>
      </PropertyDef>
      <PropertyDef name="lswzjc">
        <Property></Property>
        <Property name="label">漏气位置监测</Property>
      </PropertyDef>
      <PropertyDef name="lqbwcqdbjcs">
        <Property></Property>
        <Property name="label">漏气部位采取的补救措施</Property>
      </PropertyDef>
      <PropertyDef name="mbsj">
        <Property name="dataType">Integer</Property>
        <Property name="label">密闭时间</Property>
        <Property name="displayFormat">#天</Property>
      </PropertyDef>
      <PropertyDef name="ctz">
        <Property name="dataType">double</Property>
        <Property name="label">CT值</Property>
      </PropertyDef>
      <PropertyDef name="sqqlhqnd">
        <Property name="dataType">double</Property>
        <Property name="label">散气前磷化氢浓度</Property>
        <Property name="displayFormat">##0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="sqpzr">
        <Property></Property>
        <Property name="label">散气批准人</Property>
      </PropertyDef>
      <PropertyDef name="sqcsts">
        <Property name="dataType">Integer</Property>
        <Property name="label">散气持续天数</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="czsjzysj">
        <Property name="dataType">Date</Property>
        <Property name="label">残渣收集作业时间</Property>
      </PropertyDef>
      <PropertyDef name="czsjzyrs">
        <Property name="dataType">Integer</Property>
        <Property name="label">残渣收集作业人数</Property>
      </PropertyDef>
      <PropertyDef name="czsjzypzr">
        <Property></Property>
        <Property name="label">残渣收集作业批准人</Property>
      </PropertyDef>
      <PropertyDef name="czclzyrs">
        <Property name="dataType">Integer</Property>
        <Property name="label">残渣处理作业人数</Property>
      </PropertyDef>
      <PropertyDef name="czclpzr">
        <Property></Property>
        <Property name="label">残渣处理批准人</Property>
      </PropertyDef>
      <PropertyDef name="xzhhcjcqk">
        <Property></Property>
        <Property name="label">熏蒸后活虫检出情况</Property>
      </PropertyDef>
      <PropertyDef name="xzhckmd">
        <Property name="dataType">Integer</Property>
        <Property name="label">熏蒸后虫口密度</Property>
        <Property name="displayFormat">#头/kg</Property>
      </PropertyDef>
      <PropertyDef name="pyswthhcs">
        <Property name="dataType">Integer</Property>
        <Property name="label">培养15天后活虫数</Property>
        <Property name="displayFormat">#头/kg</Property>
      </PropertyDef>
      <PropertyDef name="pysswthhcs">
        <Property name="dataType">Integer</Property>
        <Property name="label">培养45天后活虫数</Property>
        <Property name="displayFormat">#头/kg</Property>
      </PropertyDef>
      <PropertyDef name="xzfzr">
        <Property></Property>
        <Property name="label">熏蒸负责人</Property>
      </PropertyDef>
      <PropertyDef name="xzzyry">
        <Property></Property>
        <Property name="label">熏蒸作业人员</Property>
      </PropertyDef>
    </DataType>
  </Model>
@@ -238,13 +504,11 @@
      </TextEditor>
      <Trigger id="triggerQuery">
        <ClientEvent name="onExecute">var name = view.get(&quot;#paramName.text&quot;);&#xD;
if(null != name &amp;&amp; &quot;&quot;!= name){&#xD;
    view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{name:name}).flushAsync();&#xD;
}</ClientEvent>
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{name:name}).flushAsync();</ClientEvent>
        <Property name="iconClass">fa fa-search</Property>
      </Trigger>
    </Container>
    <Container layoutConstraint="center">
    <Container layout="regionPadding:5" layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid>
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
@@ -285,7 +549,8 @@
    <Dialog id="dialogMain" layout="padding:5;regionPadding:10">
      <Property name="closeable">false</Property>
      <Property name="caption">熏蒸信息</Property>
      <Property name="width">60%</Property>
      <Property name="width">85%</Property>
      <Property name="height">80%</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
@@ -316,8 +581,19 @@
      <Children>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*,*</Property>
          <Property name="labelWidth">120</Property>
          <Property name="cols">*,*,*,*</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelPosition">top</Property>
          <Property name="labelWidth">0</Property>
          <AutoFormElement>
            <Property name="name">id</Property>
            <Property name="property">id</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">--系统自动生成--</Property>
              </TextEditor>
            </Editor>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">depotId</Property>
            <Property name="property">depotId</Property>
@@ -361,8 +637,49 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">hlxzynhljsjh</Property>
            <Property name="property">hlxzynhljsjh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzfazd</Property>
            <Property name="property">xzfazd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzfaqcr</Property>
            <Property name="property">xzfaqcr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzfapzr</Property>
            <Property name="property">xzfapzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzfabbqk</Property>
            <Property name="property">xzfabbqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">syryzzqk</Property>
            <Property name="property">syryzzqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">syzzsh</Property>
            <Property name="property">syzzsh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drugName</Property>
            <Property name="property">drugName</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jx</Property>
            <Property name="property">jx</Property>
            <Property name="trigger">listDosage</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
@@ -386,6 +703,121 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">syff</Property>
            <Property name="property">syff</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fzsycs</Property>
            <Property name="property">fzsycs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kqhqjaqjcqk</Property>
            <Property name="property">kqhqjaqjcqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lhqjczztsqk</Property>
            <Property name="property">lhqjczztsqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yqsdjczztsqk</Property>
            <Property name="property">yqsdjczztsqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lhqbjyaqjc</Property>
            <Property name="property">lhqbjyaqjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yqbjyaqjc</Property>
            <Property name="property">yqbjyaqjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">byqcnlhqnd</Property>
            <Property name="property">byqcnlhqnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">nlhqnddw</Property>
            <Property name="property">nlhqnddw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mbnd</Property>
            <Property name="property">mbnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsbyl</Property>
            <Property name="property">jsbyl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjbyl</Property>
            <Property name="property">sjbyl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">byff</Property>
            <Property name="property">byff</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zyrs</Property>
            <Property name="property">zyrs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">byzypzr</Property>
            <Property name="property">byzypzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xczhr</Property>
            <Property name="property">xczhr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fznd</Property>
            <Property name="property">fznd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mbndwcts</Property>
            <Property name="property">mbndwcts</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lswzjc</Property>
            <Property name="property">lswzjc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lqbwcqdbjcs</Property>
            <Property name="property">lqbwcqdbjcs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mbsj</Property>
            <Property name="property">mbsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ctz</Property>
            <Property name="property">ctz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sqqlhqnd</Property>
            <Property name="property">sqqlhqnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ventilateTime</Property>
            <Property name="property">ventilateTime</Property>
            <Editor/>
@@ -396,8 +828,73 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sqpzr</Property>
            <Property name="property">sqpzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sqcsts</Property>
            <Property name="property">sqcsts</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">afterPh3</Property>
            <Property name="property">afterPh3</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czsjzysj</Property>
            <Property name="property">czsjzysj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czsjzyrs</Property>
            <Property name="property">czsjzyrs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czsjff</Property>
            <Property name="property">czsjff</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czsjzypzr</Property>
            <Property name="property">czsjzypzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czclcs</Property>
            <Property name="property">czclcs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czclzyrs</Property>
            <Property name="property">czclzyrs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czclpzr</Property>
            <Property name="property">czclpzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzhhcjcqk</Property>
            <Property name="property">xzhhcjcqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzhckmd</Property>
            <Property name="property">xzhckmd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pyswthhcs</Property>
            <Property name="property">pyswthhcs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pysswthhcs</Property>
            <Property name="property">pysswthhcs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
@@ -407,13 +904,13 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czsjff</Property>
            <Property name="property">czsjff</Property>
            <Property name="name">xzfzr</Property>
            <Property name="property">xzfzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">czclcs</Property>
            <Property name="property">czclcs</Property>
            <Property name="name">xzzyry</Property>
            <Property name="property">xzzyry</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
@@ -422,16 +919,16 @@
            <Property name="readOnly">true</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement layoutConstraint="colSpan:3">
            <Property name="name">remarks</Property>
            <Property name="property">remarks</Property>
            <Property name="editorType">TextArea</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">updateTime</Property>
            <Property name="property">updateTime</Property>
            <Property name="readOnly">true</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement layoutConstraint="colSpan:4">
            <Property name="name">remarks</Property>
            <Property name="property">remarks</Property>
            <Property name="editorType">TextArea</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
@@ -439,11 +936,15 @@
      <Tools/>
    </Dialog>
    <AjaxAction id="ajaxSave">
      <Property name="service">drugLogPR#updateDrugLog</Property>
      <Property name="service">drugLogPR#saveDrugLog</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDel">
      <Property name="service">drugLogPR#delDrugLog</Property>
      <Property name="confirmMessage">确定要执行删除么?</Property>
    </AjaxAction>
    <ListDropDown id="listDosage">
      <Property name="items">片剂,注射剂,乳剂,丸剂,颗粒剂,其他</Property>
      <Property name="autoOpen">true</Property>
    </ListDropDown>
  </View>
</ViewConfig>
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLogApply.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,1047 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.ld.igds.models.DrugLogApply</Property>
      <PropertyDef name="id">
        <Property/>
        <Property name="label">熏蒸备案编号</Property>
        <Property name="readOnly">true</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property/>
        <Property name="label">库区代码</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property/>
        <Property name="label">组织编码</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="tbrq">
        <Property name="dataType">Date</Property>
        <Property name="label">填报日期</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="dwdm">
        <Property/>
        <Property name="label">单位代码</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="sqxzrq">
        <Property name="dataType">Date</Property>
        <Property name="label">申请熏蒸日期</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="fzr">
        <Property/>
        <Property name="label">负责人</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="fzrdh">
        <Property/>
        <Property name="label">负责人电话</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="xcfzr">
        <Property/>
        <Property name="label">现场负责人</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="fzrzw">
        <Property/>
        <Property name="label">负责人职务</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="xcfzrdh">
        <Property/>
        <Property name="label">现场负责人</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="tbr">
        <Property/>
        <Property name="label">填表人</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="tbrdh">
        <Property/>
        <Property name="label">填表人电话</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="sfszjjxd">
        <Property/>
        <Property name="label">是否设置警戒线(东)</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="sfszjjxx">
        <Property/>
        <Property name="label">是否设置警戒线(西)</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="sfszjjxn">
        <Property/>
        <Property name="label">是否设置警戒线(南)</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="sfszjjxb">
        <Property/>
        <Property name="label">是否设置警戒线(北)</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="ssxzzystqybqk">
        <Property/>
        <Property name="label">实施熏蒸作业时天气预报情况</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="xzssgcap">
        <Property/>
        <Property name="label">熏蒸安排及实施过程</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="aqfhjyjcccs">
        <Property/>
        <Property name="label">安全防护及应急处置措施</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="xzzysx">
        <Property/>
        <Property name="label">熏蒸注意事项</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="fileStorageId">
        <Property/>
        <Property name="label">文件存储ID</Property>
        <Property name="required">false</Property>
      </PropertyDef>
      <PropertyDef name="drugName">
        <Property/>
        <Property name="label">药剂名称</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="drugType">
        <Property/>
        <Property name="label">药剂类型/型号</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="yjyxqz">
        <Property name="dataType">Date</Property>
        <Property name="label">药剂有效期至</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="lqsl">
        <Property name="dataType">Double</Property>
        <Property name="label">领取数量</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000公斤</Property>
      </PropertyDef>
      <PropertyDef name="sysbjfs">
        <Property/>
        <Property name="label">施药设备及方式</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="zcdd">
        <Property/>
        <Property name="label">暂存地点</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="lqr">
        <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="required">false</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="depotId">
        <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>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="foodVariety">
        <Property/>
        <Property name="label">粮食品种</Property>
        <Property name="required">true</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>
      </PropertyDef>
      <PropertyDef name="foodType">
        <Property/>
        <Property name="label">粮食性质</Property>
        <Property name="required">true</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 name="label">粮食等级</Property>
        <Property name="required">true</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="number">
        <Property name="dataType">Double</Property>
        <Property name="label">粮食数量</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000吨</Property>
      </PropertyDef>
      <PropertyDef name="perWet">
        <Property name="dataType">Double</Property>
        <Property name="label">水分</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000%</Property>
      </PropertyDef>
      <PropertyDef name="perImpurity">
        <Property name="dataType">Double</Property>
        <Property name="label">杂质</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000%</Property>
      </PropertyDef>
      <PropertyDef name="lw">
        <Property name="dataType">Double</Property>
        <Property name="label">粮温</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000℃</Property>
      </PropertyDef>
      <PropertyDef name="cnsd">
        <Property name="dataType">Double</Property>
        <Property name="label">仓内湿度</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000%RH</Property>
      </PropertyDef>
      <PropertyDef name="clfs">
        <Property/>
        <Property name="label">存粮方式</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">散装储粮</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">包装</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">围包散存</Property>
              </Entity>
              <Entity>
                <Property name="key">9</Property>
                <Property name="value">其他</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="rkrq">
        <Property name="dataType">Date</Property>
        <Property name="label">入库日期</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="hc">
        <Property/>
        <Property name="label">害虫</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="cldjpd">
        <Property/>
        <Property name="label">虫粮等级判定</Property>
        <Property name="required">true</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">531</Property>
                <Property name="value">基本无虫粮</Property>
              </Entity>
              <Entity>
                <Property name="key">532</Property>
                <Property name="value">一般虫粮</Property>
              </Entity>
              <Entity>
                <Property name="key">533</Property>
                <Property name="value">严重虫粮</Property>
              </Entity>
              <Entity>
                <Property name="key">534</Property>
                <Property name="value">危险虫粮</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="ldtj">
        <Property name="dataType">Double</Property>
        <Property name="label">粮堆体积</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000m³</Property>
      </PropertyDef>
      <PropertyDef name="kjtj">
        <Property name="dataType">Double</Property>
        <Property name="label">空间体积</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000m³</Property>
      </PropertyDef>
      <PropertyDef name="lddwyyl">
        <Property name="dataType">Double</Property>
        <Property name="label">粮堆单位用药量</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="kjdwyyl">
        <Property name="dataType">Double</Property>
        <Property name="label">空间单位用药量</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000g/m³</Property>
      </PropertyDef>
      <PropertyDef name="zyyl">
        <Property name="dataType">Double</Property>
        <Property name="label">总用药量</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000kg</Property>
      </PropertyDef>
      <PropertyDef name="qmx">
        <Property/>
        <Property name="label">气密性</Property>
        <Property name="required">true</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">Ⅰ级;t≥300s</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">Ⅱ级;120s≤t&lt;300s</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">Ⅲ级;40s≤t&lt;120s (平房仓) ,60s≤ t&lt;120s (立筒仓、浅圆仓)</Property>
              </Entity>
              <Entity>
                <Property name="key">4</Property>
                <Property name="value">Ⅳ级;t&lt;40s (平房仓) ,t&lt;60s (立筒仓、浅圆仓)</Property>
              </Entity>
            </Collection>
          </Property>
          <Property name="valueProperty">value</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="jhxzksrq">
        <Property name="dataType">Date</Property>
        <Property name="label">计划熏蒸开始日期</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="jhxzjsrq">
        <Property name="dataType">Date</Property>
        <Property name="label">计划熏蒸结束日期</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="xznd">
        <Property name="dataType">Double</Property>
        <Property name="label">设定熏蒸浓度</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0.000ml/m³</Property>
      </PropertyDef>
      <PropertyDef name="mbsj">
        <Property name="dataType">Integer</Property>
        <Property name="label">密闭时间</Property>
        <Property name="required">true</Property>
        <Property name="displayFormat">#0天</Property>
      </PropertyDef>
      <PropertyDef name="xzfs">
        <Property/>
        <Property name="label">熏蒸方式</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="sqfs">
        <Property/>
        <Property name="label">散气方式</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <Reference name="drugLogPeople">
        <Property name="parameter">$${this.id}</Property>
        <Property name="dataType">[dtPeople]</Property>
        <Property name="dataProvider">drugLogApplyPR#peopleList</Property>
      </Reference>
    </DataType>
    <DataType name="dtPeople">
      <Property name="creationType">com.ld.igds.models.DrugLogPeople</Property>
      <PropertyDef name="id">
        <Property/>
        <Property name="label">id</Property>
      </PropertyDef>
      <PropertyDef name="drugLogId">
        <Property/>
        <Property name="label">熏蒸备案编号</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property/>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property/>
        <Property name="label">组织编码</Property>
      </PropertyDef>
      <PropertyDef name="mx">
        <Property/>
        <Property name="label">姓名</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="zw">
        <Property/>
        <Property name="label">职务</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="zyzg">
        <Property/>
        <Property name="label">职业资格</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="stzk">
        <Property/>
        <Property name="label">身体状况</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="xzrwfg">
        <Property/>
        <Property name="label">熏蒸任务分工</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="sfwb">
        <Property/>
        <Property name="label">是否外包</Property>
        <Property name="required">true</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
      <PropertyDef name="depotId">
        <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="start">
        <Property name="dataType">Date</Property>
        <Property name="label">备案开始时间</Property>
      </PropertyDef>
      <PropertyDef name="end">
        <Property name="dataType">Date</Property>
        <Property name="label">备案结束时间</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="padding:5;regionPadding:5">
    <ClientEvent name="onReady">view.get(&quot;#dsParam&quot;).insert({});</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataProvider">drugLogApplyPR#pageData</Property>
      <Property name="dataType">[dtMain]</Property>
      <Property name="pageSize">15</Property>
    </DataSet>
    <DataSet id="dsParam">
      <Property name="dataType">dtParam</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="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="labelSeparator">:</Property>
        <Property name="labelWidth">120</Property>
        <AutoFormElement>
          <Property name="name">depotId</Property>
          <Property name="property">depotId</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">start</Property>
          <Property name="property">start</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">end</Property>
          <Property name="property">end</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).flushAsync();</ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="iconClass">fa fa-refresh</Property>
            <Property name="exClassName">btn-default</Property>
          </Button>
          <Button layoutConstraint="left">
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).setData({});&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{}).flushAsync();</ClientEvent>
            <Property name="caption">重置</Property>
            <Property name="exClassName">btn-warn</Property>
            <Property name="iconClass">fa fa-refresh</Property>
          </Button>
        </Container>
      </AutoForm>
      <DataGrid layoutConstraint="center padding:5">
        <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>
          <Property name="caption">序号</Property>
        </RowNumColumn>
        <DataColumn name="id">
          <Property name="property">id</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="depotId">
          <Property name="property">depotId</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sqxzrq">
          <Property name="property">sqxzrq</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fzr">
          <Property name="property">fzr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fzrdh">
          <Property name="property">fzrdh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="xcfzr">
          <Property name="property">xcfzr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="fzrzw">
          <Property name="property">fzrzw</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="drugName">
          <Property name="property">drugName</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="lqsl">
          <Property name="property">lqsl</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="dataSet">dsMain</Property>
        <Property name="itemCodes">pageSize,pages</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain" layout="padding:5;regionPadding:10">
      <Property name="caption">备案信息</Property>
      <Property name="width">85%</Property>
      <Property name="height">85%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-flag-o</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="iconClass">fa fa-check-circle</Property>
          <Property name="caption">确定</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>
        </Button>
      </Buttons>
      <Children>
        <FieldSet layout="regionPadding:5">
          <Property name="caption">基本信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="cols">*,*,*,*</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="labelAlign">left</Property>
              <Property name="labelPosition">top</Property>
              <Property name="labelSeparator">:</Property>
              <AutoFormElement>
                <Property name="name">id</Property>
                <Property name="property">id</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">---系统自动生成---</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">tbrq</Property>
                <Property name="property">tbrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sqxzrq</Property>
                <Property name="property">sqxzrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fzr</Property>
                <Property name="property">fzr</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fzrdh</Property>
                <Property name="property">fzrdh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xcfzr</Property>
                <Property name="property">xcfzr</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fzrzw</Property>
                <Property name="property">fzrzw</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xcfzrdh</Property>
                <Property name="property">xcfzrdh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">tbr</Property>
                <Property name="property">tbr</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">tbrdh</Property>
                <Property name="property">tbrdh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sfszjjxd</Property>
                <Property name="property">sfszjjxd</Property>
                <Property name="trigger">listYesOrNo</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sfszjjxx</Property>
                <Property name="property">sfszjjxx</Property>
                <Property name="trigger">listYesOrNo</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sfszjjxn</Property>
                <Property name="property">sfszjjxn</Property>
                <Property name="trigger">listYesOrNo</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sfszjjxb</Property>
                <Property name="property">sfszjjxb</Property>
                <Property name="trigger">listYesOrNo</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fileStorageId</Property>
                <Property name="property">fileStorageId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">drugName</Property>
                <Property name="property">drugName</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">drugType</Property>
                <Property name="property">drugType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yjyxqz</Property>
                <Property name="property">yjyxqz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lqsl</Property>
                <Property name="property">lqsl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sysbjfs</Property>
                <Property name="property">sysbjfs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zcdd</Property>
                <Property name="property">zcdd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lqr</Property>
                <Property name="property">lqr</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateTime</Property>
                <Property name="property">updateTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">ssxzzystqybqk</Property>
                <Property name="property">ssxzzystqybqk</Property>
                <Property name="editorType">TextArea</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">xzssgcap</Property>
                <Property name="property">xzssgcap</Property>
                <Property name="editorType">TextArea</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">aqfhjyjcccs</Property>
                <Property name="property">aqfhjyjcccs</Property>
                <Property name="editorType">TextArea</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">xzzysx</Property>
                <Property name="property">xzzysx</Property>
                <Property name="editorType">TextArea</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
        <FieldSet layout="regionPadding:5">
          <Property name="caption">粮情信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="cols">*,*,*,*</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="labelAlign">left</Property>
              <Property name="labelPosition">top</Property>
              <Property name="labelSeparator">:</Property>
              <AutoFormElement>
                <Property name="name">depotId</Property>
                <Property name="property">depotId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">foodVariety</Property>
                <Property name="property">foodVariety</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">foodType</Property>
                <Property name="property">foodType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">foodLevel</Property>
                <Property name="property">foodLevel</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">number</Property>
                <Property name="property">number</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">perWet</Property>
                <Property name="property">perWet</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">perImpurity</Property>
                <Property name="property">perImpurity</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lw</Property>
                <Property name="property">lw</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cnsd</Property>
                <Property name="property">cnsd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">clfs</Property>
                <Property name="property">clfs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">rkrq</Property>
                <Property name="property">rkrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">hc</Property>
                <Property name="property">hc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cldjpd</Property>
                <Property name="property">cldjpd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">ldtj</Property>
                <Property name="property">ldtj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kjtj</Property>
                <Property name="property">kjtj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lddwyyl</Property>
                <Property name="property">lddwyyl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kjdwyyl</Property>
                <Property name="property">kjdwyyl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zyyl</Property>
                <Property name="property">zyyl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qmx</Property>
                <Property name="property">qmx</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jhxzksrq</Property>
                <Property name="property">jhxzksrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jhxzjsrq</Property>
                <Property name="property">jhxzjsrq</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
        <FieldSet layout="regionPadding:5">
          <Property name="caption">熏蒸方式</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="cols">*,*,*,*</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="labelAlign">left</Property>
              <Property name="labelPosition">top</Property>
              <Property name="labelSeparator">:</Property>
              <AutoFormElement>
                <Property name="name">xznd</Property>
                <Property name="property">xznd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">mbsj</Property>
                <Property name="property">mbsj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xzfs</Property>
                <Property name="property">xzfs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sqfs</Property>
                <Property name="property">sqfs</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">熏蒸工作人员</Property>
          <Property name="height">400</Property>
          <Buttons/>
          <Children>
            <Container layout="regionPadding:10">
              <Property name="height">55</Property>
              <Property name="exClassName">bg-color</Property>
              <Property name="contentOverflow">hidden</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;drugLogPeople&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;#ajaxDelPeople&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="dataPath">#.drugLogPeople</Property>
              <Property name="dataSet">dsMain</Property>
              <DataColumn name="mx">
                <Property name="property">mx</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="zw">
                <Property name="property">zw</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="zyzg">
                <Property name="property">zyzg</Property>
                <Property name="trigger">listEligible</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="stzk">
                <Property name="property">stzk</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="xzrwfg">
                <Property name="property">xzrwfg</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="sfwb">
                <Property name="property">sfwb</Property>
                <Property name="align">center</Property>
                <Property name="trigger">listYesOrNo</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="uaAction">
      <Property name="dataResolver">drugLogApplyPR#saveDrugLogApply</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">drugLogApplyPR#delDrugLogApply</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDelPeople">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">drugLogApplyPR#delDrugLogPeople</Property>
    </AjaxAction>
    <ListDropDown id="listYesOrNo">
      <Property name="items">是,否</Property>
    </ListDropDown>
    <ListDropDown id="listEligible">
      <Property name="items">初级,中级,高级</Property>
    </ListDropDown>
  </View>
</ViewConfig>
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLogApplyPR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,83 @@
package com.ld.igds.drug.view;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.ld.igds.drug.service.HDrugLogApplyService;
import com.ld.igds.models.DrugLogApply;
import com.ld.igds.models.DrugLogPeople;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * @Author:YAN
 */
@Component
public class DrugLogApplyPR {
    @Autowired
    private HDrugLogApplyService drugLogApplyService;
    /**
     * drugLogApplyPR#pageData
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageData(Page<DrugLogApply> page, Map<String, Object> param) throws Exception {
        drugLogApplyService.pageDrugLogApply(page, param);
    }
    /**
     * drugLogApplyPR#peopleList
     *
     * @param id
     * @return
     * @throws Exception
     */
    @DataProvider
    public List<DrugLogPeople> peopleList(String id) throws Exception {
        Map<String, Object> param = new HashMap<>();
        param.put("drugLogId", id);
        return drugLogApplyService.drugLogPeopleList(param);
    }
    /**
     * drugLogApplyPR#saveDrugLogApply æ–°å¢žæˆ–者修改
     *
     * @param data
     * @throws Exception
     */
    @DataResolver
    public String saveDrugLogApply(DrugLogApply data) throws Exception {
        drugLogApplyService.saveDrugLogApply(data);
        return "";
    }
    /**
     * drugLogApplyPR#delDrugLogApply
     *
     * @throws Exception
     */
    @Expose
    public String delDrugLogApply(DrugLogApply data) throws Exception {
        return drugLogApplyService.delDrugLogApply(data);
    }
    /**
     * drugLogApplyPR#delDrugLogPeople
     *
     * @throws Exception
     */
    @Expose
    public String delDrugLogPeople(DrugLogPeople data) throws Exception {
        return drugLogApplyService.delDrugLogPeople(data);
    }
}
igds-recir/src/main/java/com/ld/igds/drug/view/DrugLogPR.java
@@ -1,5 +1,6 @@
package com.ld.igds.drug.view;
import java.util.Map;
import com.ld.igds.drug.service.HDrugLogService;
@@ -9,57 +10,56 @@
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.ld.igds.drug.service.HDrugService;
import com.ld.igds.models.DrugLog;
/**
 * ç†è’¸ç®¡ç†çš„PR
 *
 *
 * @author:
 * @description:
 * @version:
 * @data:2020å¹´3月6日
 *
 */
@Component("drugLogPR")
public class DrugLogPR {
    @Autowired
    private HDrugLogService drugLogService;
    @Autowired
    private HDrugLogService drugLogService;
    /**
     * drugLogPR#pageDrugLog
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageDrugLog(Page<DrugLog> page, Map<String, Object> param)
            throws Exception {
        drugLogService.pageData(page, param);
    }
    /**
     * drugLogPR#pageDrugLog
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageDrugLog(Page<DrugLog> page, Map<String, Object> param)
            throws Exception {
        drugLogService.pageData(page, param);
    }
    /**
     * drugLogPR#delDrugLog
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String delDrugLog(DrugLog data) throws Exception {
        return drugLogService.delData(data);
    }
    /**
     * drugLogPR#delDrugLog
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String delDrugLog(DrugLog data) throws Exception {
        return drugLogService.delData(data);
    }
    /**
     * drugLogPR#updateDrugLog æ–°å¢žæˆ–者修改
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String updateDrugLog(DrugLog data) throws Exception {
        drugLogService.saveData(data);
        return "";
    }
    /**
     * drugLogPR#saveDrugLog æ–°å¢žæˆ–者修改
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String saveDrugLog(DrugLog data) throws Exception {
        drugLogService.saveData(data);
        return "";
    }
}
igds-recir/src/main/java/com/ld/igds/models/DrugLog.java
@@ -42,10 +42,12 @@
    @Column(name = "START_")
    @PropertyDef(label = "开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date start;
    @Column(name = "END_")
    @PropertyDef(label = "截至时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date end;
    @Column(name = "PEST_BATCH_ID_", length = 50)
@@ -151,7 +153,7 @@
    @PropertyDef(label = "磷化氢浓度单位", description = "1:g/m³(默认);2:ppm;3:ml/m³;4:%VOL")
    @Column(name = "nlhqnddw", length = 1)
    private String nlhqnddw;
    private String nlhqnddw = "1";
    @PropertyDef(label = "目标浓度", description = "单位:g/m³")
    @Column(name = "mbnd", precision = 20, scale = 3)
igds-recir/src/main/java/com/ld/igds/models/DrugLogApply.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,272 @@
package com.ld.igds.models;
import com.bstek.dorado.annotation.PropertyDef;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * ç†è’¸ä½œä¸šä¸»è¡¨ä¿¡æ¯
 *
 * @Author:YAN
 */
@Entity
@Data
@Table(name = "D_DRUG_LOG_APPLY")
public class DrugLogApply implements Serializable {
    @Id
    @Column(name = "ID_", length = 4)
    @PropertyDef(label = "熏蒸备案编号", description = "4位顺序号")
    private String id;
    @Id
    @Column(name = "DEPT_ID_", length = 21)
    @PropertyDef(label = "库区代码")
    private String deptId;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "tbrq")
    @PropertyDef(label = "填报日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date tbrq;
    @Column(name = "dwdm", length = 18)
    @PropertyDef(label = "单位代码", description = "企业信用代码")
    private String dwdm;
    @Column(name = "sqxzrq")
    @PropertyDef(label = "申请熏蒸日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date sqxzrq;
    @Column(name = "fzr", length = 20)
    @PropertyDef(label = "负责人")
    private String fzr;
    @Column(name = "fzrdh", length = 11)
    @PropertyDef(label = "负责人电话")
    private String fzrdh;
    @Column(name = "xcfzr", length = 20)
    @PropertyDef(label = "现场负责人")
    private String xcfzr;
    @Column(name = "fzrzw", length = 10)
    @PropertyDef(label = "负责人职务")
    private String fzrzw;
    @Column(name = "xcfzrdh", length = 11)
    @PropertyDef(label = "现场负责人")
    private String xcfzrdh;
    @Column(name = "tbr", length = 20)
    @PropertyDef(label = "填表人")
    private String tbr;
    @Column(name = "tbrdh", length = 11)
    @PropertyDef(label = "填表人电话")
    private String tbrdh;
    @Column(name = "sfszjjxd", length = 2)
    @PropertyDef(label = "是否设置警戒线(东)", description = "是或否")
    private String sfszjjxd;
    @Column(name = "sfszjjxx", length = 2)
    @PropertyDef(label = "是否设置警戒线(西)", description = "是或否")
    private String sfszjjxx;
    @Column(name = "sfszjjxn", length = 2)
    @PropertyDef(label = "是否设置警戒线(南)", description = "是或否")
    private String sfszjjxn;
    @Column(name = "sfszjjxb", length = 2)
    @PropertyDef(label = "是否设置警戒线(北)", description = "是或否")
    private String sfszjjxb;
    @Column(name = "ssxzzystqybqk", length = 1024)
    @PropertyDef(label = "实施熏蒸作业时天气预报情况")
    private String ssxzzystqybqk;
    @Column(name = "xzssgcap", length = 1024)
    @PropertyDef(label = "熏蒸安排及实施过程")
    private String xzssgcap;
    @Column(name = "aqfhjyjcccs", length = 1024)
    @PropertyDef(label = "安全防护及应急处置措施")
    private String aqfhjyjcccs;
    @Column(name = "xzzysx", length = 1024)
    @PropertyDef(label = "熏蒸注意事项")
    private String xzzysx;
    @Column(name = "FILE_STORAGE_ID_", length = 19)
    @PropertyDef(label = "文件存储ID")
    private String fileStorageId;
    @Column(name = "DRUG_NAME_", length = 64)
    @PropertyDef(label = "药剂名称")
    private String drugName;
    @Column(name = "DRUG_TYPE_", length = 10)
    @PropertyDef(label = "药剂类型/型号")
    private String drugType;
    @Column(name = "yjyxqz")
    @PropertyDef(label = "药剂有效期至")
    private Date yjyxqz;
    @Column(name = "lqsl", precision = 20, scale = 3)
    @PropertyDef(label = "领取数量", description = "公斤")
    private Double lqsl;
    @Column(name = "sysbjfs", length = 20)
    @PropertyDef(label = "施药设备及方式")
    private String sysbjfs;
    @Column(name = "zcdd", length = 30)
    @PropertyDef(label = "暂存地点")
    private String zcdd;
    @Column(name = "lqr", length = 20)
    @PropertyDef(label = "领取人")
    private String lqr;
    @Column(name = "UPDATE_TIME_")
    @PropertyDef(label = "更新时间")
    private Date updateTime;
    /**
     * å‚¨ç²®ç²®æƒ…明细表
     */
//    @Transient
//    private List<DrugLogDtl> drugLogDtls;
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "仓房/油罐代码")
    private String depotId;
    @Column(name = "FOOD_VARIETY_", length = 20)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
    @Column(name = "FOOD_TYPE_", length = 20)
    @PropertyDef(label = "粮食性质")
    private String foodType;
    @Column(name = "FOOD_LEVEL_", length = 10)
    @PropertyDef(label = "粮食等级")
    private String foodLevel;
    @Column(name = "NUMBER_", precision = 20, scale = 3)
    @PropertyDef(label = "粮食数量", description = "单位:吨")
    private Double number = 0.0;
    @Column(name = "PER_WET_", precision = 20, scale = 3)
    @PropertyDef(label = "水分", description = "单位:%")
    private Double perWet;
    @Column(name = "PER_IMPURITY_", precision = 20, scale = 3)
    @PropertyDef(label = "杂质", description = "单位:%")
    private Double perImpurity;
    @Column(name = "lw", precision = 20, scale = 3)
    @PropertyDef(label = "粮温")
    private Double lw;
    @Column(name = "cnsd", precision = 20, scale = 3)
    @PropertyDef(label = "仓内湿度")
    private Double cnsd;
    @Column(name = "clfs", length = 1)
    @PropertyDef(label = "存粮方式", description = "1:散装储粮;2:包装;3:围包散存;9:其他")
    private String clfs;
    @Column(name = "rkrq")
    @PropertyDef(label = "入库日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rkrq;
    @Column(name = "hc", length = 30)
    @PropertyDef(label = "害虫")
    private String hc;
    @Column(name = "cldjpd", length = 3)
    @PropertyDef(label = "虫粮等级判定")
    private String cldjpd;
    @Column(name = "ldtj", precision = 20, scale = 3)
    @PropertyDef(label = "粮堆体积", description = "m³")
    private Double ldtj;
    @Column(name = "kjtj", precision = 20, scale = 3)
    @PropertyDef(label = "空间体积", description = "m³")
    private Double kjtj;
    @Column(name = "lddwyyl", precision = 20, scale = 3)
    @PropertyDef(label = "粮堆单位用药量")
    private Double lddwyyl;
    @Column(name = "kjdwyyl", precision = 20, scale = 3)
    @PropertyDef(label = "空间单位用药量")
    private Double kjdwyyl;
    @Column(name = "zyyl", precision = 20, scale = 3)
    @PropertyDef(label = "总用药量")
    private Double zyyl;
    /**
     * ä»“房气密性以 500 Pa çš„压力半衰 æœŸ t åˆ†ä¸ºå››ä¸ªç­‰çº§ã€‚
     * 1:   â… çº§ï¼Œt≥300s。
     * 2:   â…¡çº§ï¼Œ120s≤t<300s。
     * 3:Ⅲ级,40s≤t<120s (平房仓) ï¼Œ 60s≤ t<120s (立筒仓、浅圆仓) ã€‚
     * 4:Ⅳ级,t<40s (平房仓) ï¼Œt<60s (立筒仓、浅圆仓) ã€‚
     */
    @Column(name = "qmx", length = 1)
    @PropertyDef(label = "气密性")
    private String qmx;
    @Column(name = "jhxzksrq")
    @PropertyDef(label = "计划熏蒸开始日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date jhxzksrq;
    @Column(name = "jhxzjsrq")
    @PropertyDef(label = "计划熏蒸结束日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date jhxzjsrq;
    /**
     * ç†è’¸å¤‡æ¡ˆæ–¹å¼
     */
//    @Transient
//    private List<DrugLogWay> drugLogWays;
    @Column(name = "xznd", precision = 20, scale = 3)
    @PropertyDef(label = "设定熏蒸浓度", description = "单位:ml/m³")
    private Double xznd;
    @Column(name = "mbsj")
    @PropertyDef(label = "密闭时间", description = "单位:天")
    private Integer mbsj;
    @Column(name = "xzfs", length = 30)
    @PropertyDef(label = "熏蒸方式")
    private String xzfs;
    @Column(name = "sqfs", length = 30)
    @PropertyDef(label = "散气方式")
    private String sqfs;
    /**
     * ç†è’¸ä½œä¸šäººå‘˜
     */
    @Transient
    private List<DrugLogPeople> drugLogPeople;
}
igds-recir/src/main/java/com/ld/igds/models/DrugLogDtl.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,133 @@
package com.ld.igds.models;
import com.bstek.dorado.annotation.PropertyDef;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * å®žæ–½ç†è’¸ä½œä¸šçš„储粮粮情明细表
 *
 * @Author:YAN
 */
@Entity
@Data
@Table(name = "D_DRUG_LOG_DTL")
public class DrugLogDtl implements Serializable {
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "id")
    private String id;
    @Column(name = "DRUG_LOG_ID_", length = 4)
    @PropertyDef(label = "熏蒸备案编号", description = "4位顺序号")
    private String drugLogId;
    @Column(name = "DEPT_ID_", length = 21)
    @PropertyDef(label = "库区代码")
    private String deptId;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "仓房/油罐代码")
    private String depotId;
    @Column(name = "FOOD_VARIETY_", length = 20)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
    @Column(name = "FOOD_TYPE_", length = 20)
    @PropertyDef(label = "粮食性质")
    private String foodType;
    @Column(name = "FOOD_LEVEL_", length = 10)
    @PropertyDef(label = "粮食等级")
    private String foodLevel;
    @Column(name = "NUMBER_", precision = 20, scale = 3)
    @PropertyDef(label = "粮食数量", description = "单位:吨")
    private Double number = 0.0;
    @Column(name = "PER_WET_", precision = 20, scale = 3)
    @PropertyDef(label = "水分", description = "单位:%")
    private Double perWet;
    @Column(name = "PER_IMPURITY_", precision = 20, scale = 3)
    @PropertyDef(label = "杂质", description = "单位:%")
    private Double perImpurity;
    @Column(name = "lw", precision = 20, scale = 3)
    @PropertyDef(label = "粮温")
    private Double lw;
    @Column(name = "cnsd", precision = 20, scale = 3)
    @PropertyDef(label = "仓内湿度")
    private Double cnsd;
    @Column(name = "clfs", length = 1)
    @PropertyDef(label = "存粮方式", description = "1:散装储粮;2:包装;3:围包散存;9:其他")
    private String clfs;
    @Column(name = "rkrq")
    @PropertyDef(label = "入库日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rkrq;
    @Column(name = "hc", length = 30)
    @PropertyDef(label = "害虫")
    private String hc;
    @Column(name = "cldjpd", length = 3)
    @PropertyDef(label = "虫粮等级判定")
    private String cldjpd;
    @Column(name = "ldtj", precision = 20, scale = 3)
    @PropertyDef(label = "粮堆体积", description = "m³")
    private Double ldtj;
    @Column(name = "kjtj", precision = 20, scale = 3)
    @PropertyDef(label = "空间体积", description = "m³")
    private Double kjtj;
    @Column(name = "lddwyyl", precision = 20, scale = 3)
    @PropertyDef(label = "粮堆单位用药量")
    private Double lddwyyl;
    @Column(name = "kjdwyyl", precision = 20, scale = 3)
    @PropertyDef(label = "空间单位用药量")
    private Double kjdwyyl;
    @Column(name = "zyyl", precision = 20, scale = 3)
    @PropertyDef(label = "总用药量")
    private Double zyyl;
    /**
     * ä»“房气密性以 500 Pa çš„压力半衰 æœŸ t åˆ†ä¸ºå››ä¸ªç­‰çº§ã€‚
     * 1:   â… çº§ï¼Œt≥300s。
     * 2:   â…¡çº§ï¼Œ120s≤t<300s。
     * 3:Ⅲ级,40s≤t<120s (平房仓) ï¼Œ 60s≤ t<120s (立筒仓、浅圆仓) ã€‚ 4:Ⅳ级,t<40s (平房仓) ï¼Œt<60s (立筒仓、浅圆仓) ã€‚
     */
    @Column(name = "qmx", length = 1)
    @PropertyDef(label = "气密性")
    private String qmx;
    @Column(name = "jhxzksrq")
    @PropertyDef(label = "计划熏蒸开始日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date jhxzksrq;
    @Column(name = "jhxzjsrq")
    @PropertyDef(label = "计划熏蒸结束日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date jhxzjsrq;
}
igds-recir/src/main/java/com/ld/igds/models/DrugLogPeople.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,63 @@
package com.ld.igds.models;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
 * ç†è’¸ä½œä¸šäººå‘˜ä¿¡æ¯è¡¨
 *
 * @Author:YAN
 */
@Data
@Entity
@Table(name = "D_DRUG_LOG_PEOPLE")
public class DrugLogPeople implements Serializable {
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "id")
    private String id;
    @Column(name = "DRUG_LOG_ID_", length = 4)
    @PropertyDef(label = "熏蒸备案编号", description = "4位顺序号")
    private String drugLogId;
    @Column(name = "DEPT_ID_", length = 21)
    @PropertyDef(label = "库区代码")
    private String deptId;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "mx", length = 20)
    @PropertyDef(label = "姓名")
    private String mx;
    @Column(name = "zw", length = 10)
    @PropertyDef(label = "职务")
    private String zw;
    @Column(name = "zyzg", length = 6)
    @PropertyDef(label = "职业资格", description = "初级/中级/高级")
    private String zyzg;
    @Column(name = "stzk", length = 10)
    @PropertyDef(label = "身体状况")
    private String stzk;
    @Column(name = "xzrwfg", length = 30)
    @PropertyDef(label = "熏蒸任务分工")
    private String xzrwfg;
    @Column(name = "sfwb", length = 2)
    @PropertyDef(label = "是否外包", description = "是/否")
    private String sfwb;
}
igds-recir/src/main/java/com/ld/igds/models/DrugLogWay.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,54 @@
package com.ld.igds.models;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
 * ç†è’¸å¤‡æ¡ˆæ–¹å¼è¡¨
 *
 * @Author:YAN
 */
@Data
@Entity
@Table(name = "D_DRUG_LOG_WAY")
public class DrugLogWay implements Serializable {
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "id")
    private String id;
    @Column(name = "DRUG_LOG_ID_", length = 4)
    @PropertyDef(label = "熏蒸备案编号", description = "4位顺序号")
    private String drugLogId;
    @Column(name = "DEPT_ID_", length = 21)
    @PropertyDef(label = "库区代码")
    private String deptId;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "xznd", precision = 20, scale = 3)
    @PropertyDef(label = "设定熏蒸浓度", description = "单位:ml/m³")
    private Double xznd;
    @Column(name = "mbsj")
    @PropertyDef(label = "密闭时间", description = "单位:天")
    private Integer mbsj;
    @Column(name = "xzfs", length = 30)
    @PropertyDef(label = "熏蒸方式")
    private String xzfs;
    @Column(name = "sqfs", length = 30)
    @PropertyDef(label = "散气方式")
    private String sqfs;
}
igds-recir/src/main/java/models/recir.model.xml
@@ -42,21 +42,21 @@
      <Property name="label">备注信息</Property>
    </PropertyDef>
    <PropertyDef name="deptId">
      <Property/>
      <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>
      <Property name="required">true</Property>
      <Property name="required">false</Property>
    </PropertyDef>
    <PropertyDef name="deptName">
      <Property/>
      <Property></Property>
      <Property name="label">库区名称</Property>
    </PropertyDef>
    <PropertyDef name="dwdm">
      <Property/>
      <Property></Property>
      <Property name="label">单位代码</Property>
    </PropertyDef>
    <PropertyDef name="cgrq">
@@ -65,7 +65,7 @@
      <Property name="required">true</Property>
    </PropertyDef>
    <PropertyDef name="bzw">
      <Property/>
      <Property></Property>
      <Property name="label">包装物</Property>
      <Property name="mapping">
        <Property name="mapValues">${dorado.getDataProvider(&quot;drugPR#triggerPackage&quot;).getResult()}</Property>
@@ -75,29 +75,29 @@
      <Property name="required">true</Property>
    </PropertyDef>
    <PropertyDef name="ggxh">
      <Property/>
      <Property></Property>
      <Property name="label">型号规格</Property>
      <Property name="required">true</Property>
    </PropertyDef>
    <PropertyDef name="aqsysms">
      <Property/>
      <Property></Property>
      <Property name="label">安全使用说明书</Property>
    </PropertyDef>
    <PropertyDef name="sccj">
      <Property/>
      <Property></Property>
      <Property name="label">生产厂家</Property>
      <Property name="required">true</Property>
    </PropertyDef>
    <PropertyDef name="cgly">
      <Property/>
      <Property></Property>
      <Property name="label">采购来源</Property>
    </PropertyDef>
    <PropertyDef name="cctj">
      <Property/>
      <Property></Property>
      <Property name="label">存储条件</Property>
    </PropertyDef>
    <PropertyDef name="ccdd">
      <Property/>
      <Property></Property>
      <Property name="label">储存地点</Property>
      <Property name="mapping">
        <Property name="mapValues">${dorado.getDataProvider(&quot;drugPR#triggerLocation&quot;).getResult()}</Property>
@@ -107,21 +107,21 @@
      <Property name="required">true</Property>
    </PropertyDef>
    <PropertyDef name="bzwclfs">
      <Property/>
      <Property></Property>
      <Property name="label">包装物处理方式</Property>
    </PropertyDef>
    <PropertyDef name="czclfs">
      <Property/>
      <Property></Property>
      <Property name="label">残渣处理方式</Property>
    </PropertyDef>
    <PropertyDef name="bzq">
      <Property/>
      <Property></Property>
      <Property name="label">保质期</Property>
      <Property name="required">true</Property>
      <Property name="dataType">Date</Property>
    </PropertyDef>
    <PropertyDef name="kcsldw">
      <Property/>
      <Property></Property>
      <Property name="label">库存量单位</Property>
      <Property name="mapping">
        <Property name="mapValues">${dorado.getDataProvider(&quot;drugPR#triggerUnit&quot;).getResult()}</Property>