czt
2 天以前 256f9c48f2c52985a094a220b644d60d24cb6ed4
省质检报告提交
已修改5个文件
已添加6个文件
2617 ■■■■■ 文件已修改
igds-core/src/main/java/com/ld/igds/check/CheckStandardManager.java 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/check/CheckStandardPR.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/m/service/HQualityManageService.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/m/view/QualityManager1.view.xml 1718 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/m/view/QualityManager1PR.java 194 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/m/view/QualityManagerPR.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/models/CheckItemDd.java 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/models/CheckItemDm.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/models/CheckItemSyy.java 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/models/CheckItemXmf.java 110 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/models/MQuality.java 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/check/CheckStandardManager.java
@@ -1,14 +1,18 @@
package com.ld.igds.check;
import com.bstek.bdf2.core.orm.hibernate.HibernateDao;
import com.ld.igds.check.dto.CheckItemData;
import com.ld.igds.check.dto.CheckUpdateResult;
import com.ld.igds.check.service.CoreCheckStandardService;
import com.ld.igds.models.*;
import com.ld.igds.util.ContextUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * æ£€éªŒé¡¹ ---- ç®¡ç†ä¸šåŠ¡
@@ -16,7 +20,7 @@
 * @author: chen
 */
@Component(CheckStandardManager.BEAN_ID)
public class CheckStandardManager {
public class CheckStandardManager extends HibernateDao {
    public static final String BEAN_ID = "check.checkStandardManager";
@@ -92,4 +96,91 @@
        }
        return result;
    }
    /************省质检报告检验项**************/
    /**
     * å¤§è±†
     * @param param
     * @return
     */
    public List<CheckItemDd> findDataDd(Map<String, Object> param){
        String hql = " from " + CheckItemDd.class.getName()
                + " where 1 =1";
        Map<String,Object> args = new HashMap<String,Object>();
        if(null != param){
            String str = (String) param.get("qlyOrgReportId");
            if (StringUtils.isNotEmpty(str)) {
                hql += " and qlyOrgReportId =:qlyOrgReportId";
                args.put("qlyOrgReportId", str);
            }
        }
        hql += " order by qlyOrgReportSoybeanId";
        return this.query(hql, args);
    }
    /**
     * å¤§ç±³
     * @param param
     * @return
     */
    public List<CheckItemDm> findDataDm(Map<String, Object> param){
        String hql = " from " + CheckItemDm.class.getName()
                + " where 1 =1";
        Map<String,Object> args = new HashMap<String,Object>();
        if(null != param){
            String str = (String) param.get("qlyOrgReportId");
            if (StringUtils.isNotEmpty(str)) {
                hql += " and qlyOrgReportId =:qlyOrgReportId";
                args.put("qlyOrgReportId", str);
            }
        }
        hql += " order by qlyOrgReportRiceId";
        return this.query(hql, args);
    }
    /**
     * å¤§ç±³
     * @param param
     * @return
     */
    public List<CheckItemXmf> findDataXmf(Map<String, Object> param){
        String hql = " from " + CheckItemXmf.class.getName()
                + " where 1 =1";
        Map<String,Object> args = new HashMap<String,Object>();
        if(null != param){
            String str = (String) param.get("qlyOrgReportId");
            if (StringUtils.isNotEmpty(str)) {
                hql += " and qlyOrgReportId =:qlyOrgReportId";
                args.put("qlyOrgReportId", str);
            }
        }
        hql += " order by qlyOrgReportNoodlesId";
        return this.query(hql, args);
    }
    /**
     * å¤§ç±³
     * @param param
     * @return
     */
    public List<CheckItemSyy> findDataSyy(Map<String, Object> param){
        String hql = " from " + CheckItemSyy.class.getName()
                + " where 1 =1";
        Map<String,Object> args = new HashMap<String,Object>();
        if(null != param){
            String str = (String) param.get("qlyOrgReportId");
            if (StringUtils.isNotEmpty(str)) {
                hql += " and qlyOrgReportId =:qlyOrgReportId";
                args.put("qlyOrgReportId", str);
            }
        }
        hql += " order by qlyOrgReportOilId";
        return this.query(hql, args);
    }
}
igds-core/src/main/java/com/ld/igds/check/CheckStandardPR.java
@@ -6,7 +6,7 @@
import com.bstek.dorado.annotation.Expose;
import com.ld.igds.check.dto.CheckItemData;
import com.ld.igds.check.service.HCheckStandardService;
import com.ld.igds.models.CheckStandard;
import com.ld.igds.models.*;
import com.ld.igds.sys.service.SysDeptService;
import com.ld.igds.util.ContextUtil;
import com.ld.igds.util.DateUtil;
@@ -125,4 +125,46 @@
        return result;
    }
    /**
     * çœè´¨æ£€æŠ¥å‘Šæ£€éªŒé¡¹-大豆
     * checkStandardPR#listCheckItemsDdByParam
     */
    @DataProvider
    @Expose
    public List<CheckItemDd> listCheckItemsDdByParam(Map<String, Object> param) {
        return checkStandardManager.findDataDd(param);
    }
    /**
     * çœè´¨æ£€æŠ¥å‘Šæ£€éªŒé¡¹-小麦粉
     *
     * checkStandardPR#listCheckItemsXmfByParam
     */
    @DataProvider
    @Expose
    public List<CheckItemXmf> listCheckItemsXmfByParam(Map<String, Object> param) {
        return checkStandardManager.findDataXmf(param);
    }
    /**
     * çœè´¨æ£€æŠ¥å‘Šæ£€éªŒé¡¹-大米
     *  checkStandardPR#listCheckItemsDmByParam
     */
    @DataProvider
    @Expose
    public List<CheckItemDm> listCheckItemsDmByParam(Map<String, Object> param) {
        return checkStandardManager.findDataDm(param);
    }
    /**
     * çœè´¨æ£€æŠ¥å‘Šæ£€éªŒé¡¹-食用油
     *  checkStandardPR#listCheckItemsSyyByParam
     */
    @DataProvider
    @Expose
    public List<CheckItemSyy> listCheckItemsSyyByParam(Map<String, Object> param) {
        return checkStandardManager.findDataSyy(param);
    }
}
igds-core/src/main/java/com/ld/igds/m/service/HQualityManageService.java
@@ -51,6 +51,12 @@
                args.put("type", str);
            }
            str = (String) param.get("provReserve");
            if (StringUtils.isNotEmpty(str)) {
                hql += " and provReserve =:provReserve";
                args.put("provReserve", str);
            }
            Date date = (Date) param.get("start");
            if (null != date) {
igds-core/src/main/java/com/ld/igds/m/view/QualityManager1.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,1718 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <ClientEvent name="onDataChange">if(arg.property ==&quot;depotId&quot;){&#xD;
    autoByDepot(arg.newValue);&#xD;
}&#xD;
if(arg.property ==&quot;foodVariety&quot;){&#xD;
    checkByFood(arg.newValue);&#xD;
}       </ClientEvent>
      <Property name="creationType">com.ld.igds.models.MQuality</Property>
      <PropertyDef name="id">
        <Property name="label">ID</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property name="label">组织编码</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property name="label">库区编码</Property>
      </PropertyDef>
      <PropertyDef name="depotId">
        <Property name="label">检测仓库</Property>
        <Property name="required">true</Property>
        <Property name="mapping">
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="foodVariety">
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_VARIETY_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="label">粮食品种</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="foodLevel">
        <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>
        <Property name="label">粮食等级</Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property name="label">检验类别</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;qualityManagerPR#triggerType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="standard">
        <Property name="label">检验依据</Property>
        <Property name="required">true</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;qualityManagerPR#triggerStandard&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="user">
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="time">
        <Property name="label">检验时间</Property>
        <Property name="dataType">DateTime</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="result">
        <Property name="label">检验结论</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="checkArea">
        <Property name="label">扦样区域</Property>
      </PropertyDef>
      <PropertyDef name="checkUser">
        <Property name="label">扦样人</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="ypsl">
        <Property name="label">样品数量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">0.## KG</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="checkTime">
        <Property name="label">扦样时间</Property>
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="dbsl">
        <Property name="label">代表数量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">0.## KG</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="ypdj">
        <Property name="label">样品等级</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_LEVEL_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="normalYear">
        <Property name="label">正常存储年限</Property>
        <Property name="mapping">
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="name">是</Property>
                <Property name="code">1</Property>
              </Entity>
              <Entity>
                <Property name="name">否</Property>
                <Property name="code">0</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property name="label">备注信息</Property>
      </PropertyDef>
      <PropertyDef name="storeDate">
        <Property name="dataType">Date</Property>
        <Property name="label">入库日期</Property>
      </PropertyDef>
      <PropertyDef name="unit">
        <Property></Property>
        <Property name="label">检验单位</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="zblb">
        <Property></Property>
        <Property name="label">指标类别</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="qfrq">
        <Property name="dataType">Date</Property>
        <Property name="label">签发日期</Property>
      </PropertyDef>
      <PropertyDef name="bgcjsj">
        <Property name="dataType">Date</Property>
        <Property name="label">报告出具时间</Property>
      </PropertyDef>
      <PropertyDef name="shrxm">
        <Property></Property>
        <Property name="label">审核人姓名</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="qydbh">
        <Property></Property>
        <Property name="label">扦样单编号</Property>
      </PropertyDef>
      <PropertyDef name="jdrxm">
        <Property></Property>
        <Property name="label">监督人姓名</Property>
      </PropertyDef>
      <PropertyDef name="ypbh">
        <Property></Property>
        <Property name="label">样品编号</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">数据更新时间</Property>
      </PropertyDef>
      <PropertyDef name="spaqzbsfhg">
        <Property></Property>
        <Property name="label">食品是否合格</Property>
        <Property name="mapping">
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="name">0-不合格</Property>
                <Property name="code">0</Property>
              </Entity>
              <Entity>
                <Property name="name">1-合格</Property>
                <Property name="code">1</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="reportType">
        <Property name="label">报告类型</Property>
        <Property name="mapping">
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="name">1-单位检验</Property>
                <Property name="code">1</Property>
              </Entity>
              <Entity>
                <Property name="name">2-整体检验(加权平均)</Property>
                <Property name="code">2</Property>
              </Entity>
              <Entity>
                <Property name="name">3-其他</Property>
                <Property name="code">3</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="fileId">
        <Property></Property>
        <Property name="label">附件id</Property>
      </PropertyDef>
      <PropertyDef name="fileName">
        <Property></Property>
        <Property name="label">附件名称</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="fileTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">附件上传时间</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告id</Property>
      </PropertyDef>
      <PropertyDef name="orderId">
        <Property></Property>
        <Property name="label">订单表ID</Property>
      </PropertyDef>
      <PropertyDef name="sampleId">
        <Property></Property>
        <Property name="label">样品表ID</Property>
      </PropertyDef>
      <PropertyDef name="orgId">
        <Property></Property>
        <Property name="label">机构表ID</Property>
      </PropertyDef>
      <PropertyDef name="qualityOrgId">
        <Property></Property>
        <Property name="label">质检机构编号</Property>
      </PropertyDef>
      <PropertyDef name="qualityOrgName">
        <Property></Property>
        <Property name="label">质检机构名称</Property>
      </PropertyDef>
      <PropertyDef name="gysxydm">
        <Property></Property>
        <Property name="label">供应商信用代码</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="kdbm">
        <Property></Property>
        <Property name="label">库点编码</Property>
      </PropertyDef>
      <PropertyDef name="kdmc">
        <Property></Property>
        <Property name="label">库点名称</Property>
      </PropertyDef>
      <PropertyDef name="delectionType">
        <Property></Property>
        <Property name="label">检测报告类型</Property>
      </PropertyDef>
      <PropertyDef name="deletctionNumber">
        <Property></Property>
        <Property name="label">检测报告编号</Property>
      </PropertyDef>
      <PropertyDef name="jlcpmc">
        <Property></Property>
        <Property name="label">军粮产品名称</Property>
      </PropertyDef>
      <PropertyDef name="jllspz">
        <Property></Property>
        <Property name="label">军粮粮食品种</Property>
      </PropertyDef>
      <PropertyDef name="lotNumber">
        <Property></Property>
        <Property name="label">批号</Property>
      </PropertyDef>
      <PropertyDef name="specificationModel">
        <Property></Property>
        <Property name="label">规格型号</Property>
      </PropertyDef>
      <PropertyDef name="cysm">
        <Property></Property>
        <Property name="label">抽样说明</Property>
      </PropertyDef>
      <PropertyDef name="registration">
        <Property></Property>
        <Property name="label">登记时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectPlan">
        <Property></Property>
        <Property name="label">检验方案</Property>
      </PropertyDef>
      <PropertyDef name="productType">
        <Property></Property>
        <Property name="label">产品类型</Property>
      </PropertyDef>
      <PropertyDef name="cyjs">
        <Property></Property>
        <Property name="label">抽样基数</Property>
      </PropertyDef>
      <PropertyDef name="cysl">
        <Property></Property>
        <Property name="label">抽样数量</Property>
      </PropertyDef>
      <PropertyDef name="sampler">
        <Property></Property>
        <Property name="label">抽样人</Property>
      </PropertyDef>
      <PropertyDef name="samplerTime">
        <Property></Property>
        <Property name="label">抽样时间</Property>
      </PropertyDef>
      <PropertyDef name="samplerArea">
        <Property></Property>
        <Property name="label">抽样地点</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property name="dataType">Date</Property>
        <Property name="label">生产日期</Property>
      </PropertyDef>
      <PropertyDef name="isActive">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="reportFile">
        <Property></Property>
        <Property name="label">质检报告文件</Property>
      </PropertyDef>
      <PropertyDef name="createDate">
        <Property></Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="createBy">
        <Property></Property>
        <Property name="label">创建人</Property>
      </PropertyDef>
      <PropertyDef name="updateDate">
        <Property></Property>
        <Property name="label">更新时间</Property>
      </PropertyDef>
      <PropertyDef name="updateBy">
        <Property></Property>
        <Property name="label">更新人</Property>
      </PropertyDef>
      <Reference name="orgReportRiceList">
        <Property name="dataProvider">checkStandardPR#listCheckItemsDmByParam</Property>
        <Property name="dataType">[dtDm]</Property>
        <Property name="parameter">
          <Entity>
            <Property name="qlyOrgReportId">$${this.qlyOrgReportId}</Property>
          </Entity>
        </Property>
      </Reference>
      <Reference name="orgReportNoodlesList">
        <Property name="dataProvider">checkStandardPR#listCheckItemsXmfByParam</Property>
        <Property name="dataType">[dtXmf]</Property>
        <Property name="parameter">
          <Entity>
            <Property name="qlyOrgReportId">$${this.qlyOrgReportId}</Property>
          </Entity>
        </Property>
      </Reference>
      <Reference name="orgReportSoybeanList">
        <Property name="dataProvider">checkStandardPR#listCheckItemsDdByParam</Property>
        <Property name="dataType">[dtDd]</Property>
        <Property name="parameter">
          <Entity>
            <Property name="qlyOrgReportId">$${this.qlyOrgReportId}</Property>
          </Entity>
        </Property>
      </Reference>
      <Reference name="orgReportOilList">
        <Property name="dataProvider">checkStandardPR#listCheckItemsSyyByParam</Property>
        <Property name="dataType">[dtSyy]</Property>
        <Property name="parameter">
          <Entity>
            <Property name="qlyOrgReportId">$${this.qlyOrgReportId}</Property>
          </Entity>
        </Property>
      </Reference>
    </DataType>
    <DataType name="dtQualityParam">
      <PropertyDef name="depotId">
        <Property></Property>
        <Property name="label">仓库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;depotPR#getAllCache&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property name="label">检验类别</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;qualityManagerPR#triggerType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</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>
    <DataType name="dataTypeUser">
      <Property name="creationType">com.bstek.bdf2.core.model.DefaultUser</Property>
      <PropertyDef name="password">
        <Property name="dataType">String</Property>
        <Property name="label">密码</Property>
        <Property name="required">true</Property>
        <Validator type="length">
          <Property name="minLength">6</Property>
        </Validator>
        <Validator type="custom">
          <ClientEvent name="onValidate">if (arg.entity.get(&quot;confirmPassword&quot;)){
                        arg.entity.validate(&quot;confirmPassword&quot;);
                        }
                    </ClientEvent>
        </Validator>
      </PropertyDef>
      <PropertyDef name="confirmPassword">
        <Property name="dataType">String</Property>
        <Property name="label">确认密码</Property>
        <Property name="required">true</Property>
        <Validator type="custom">
          <ClientEvent name="onValidate">var confirm = arg.data;&#xD;
                        var password = arg.entity.get(&quot;password&quot;);&#xD;
                        if (confirm ==password) {&#xD;
                        arg.result = { state:&quot;ok&quot;}&#xD;
                        } else {&#xD;
                        arg.result = { state:&quot;error&quot;, text: &quot;两次密码不一致&quot;}; &#xD;
                        }
                    </ClientEvent>
        </Validator>
      </PropertyDef>
      <PropertyDef name="salt">
        <Property name="dataType">String</Property>
      </PropertyDef>
      <PropertyDef name="male">
        <Property name="dataType">boolean</Property>
        <Property name="label">性别</Property>
        <Property name="mapping">
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">true</Property>
                <Property name="value">男</Property>
              </Entity>
              <Entity>
                <Property name="key">false</Property>
                <Property name="value">女</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
        <Property name="defaultValue">true</Property>
      </PropertyDef>
      <PropertyDef name="enabled">
        <Property name="dataType">boolean</Property>
        <Property name="label">是否可用</Property>
        <Property name="defaultValue">true</Property>
      </PropertyDef>
      <PropertyDef name="birthday">
        <Property name="dataType">Date</Property>
        <Property name="label">出生日期</Property>
      </PropertyDef>
      <PropertyDef name="address">
        <Property name="dataType">String</Property>
        <Property name="label">地址</Property>
        <Validator type="length">
          <Property name="maxLength">120</Property>
        </Validator>
      </PropertyDef>
      <PropertyDef name="username">
        <Property name="dataType">String</Property>
        <Property name="label">用户名</Property>
        <Property name="required">true</Property>
        <Validator type="ajax">
          <Property name="service">bdf2.userMaintain#userIsExists</Property>
        </Validator>
        <Validator type="length">
          <Property name="maxLength">60</Property>
        </Validator>
      </PropertyDef>
      <PropertyDef name="cname">
        <Property name="dataType">String</Property>
        <Property name="label">中文名</Property>
        <Property name="required">true</Property>
        <Validator type="length">
          <Property name="minLength">2</Property>
          <Property name="maxLength">60</Property>
        </Validator>
      </PropertyDef>
      <PropertyDef name="ename">
        <Property name="dataType">String</Property>
        <Property name="label">英文名</Property>
        <Property name="required">true</Property>
        <Validator type="length">
          <Property name="maxLength">60</Property>
        </Validator>
      </PropertyDef>
      <PropertyDef name="administrator">
        <Property name="dataType">boolean</Property>
        <Property name="label">是否为管理员</Property>
      </PropertyDef>
      <PropertyDef name="mobile">
        <Property name="dataType">String</Property>
        <Property name="label">手机</Property>
        <Property name="required">true</Property>
        <Validator type="length">
          <Property name="maxLength">11</Property>
          <Property name="minLength">11</Property>
          <Property name="resultMessage">请输入11位手机号码</Property>
        </Validator>
      </PropertyDef>
      <PropertyDef name="email">
        <Property name="dataType">String</Property>
        <Property name="label">邮箱</Property>
        <Property name="required">true</Property>
        <Validator type="regExp">
          <Property name="resultMessage">邮箱格式输入错误</Property>
          <Property name="whiteRegExp">^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$
                    </Property>
          <Property name="validateMode">whiteBlack</Property>
        </Validator>
        <Validator type="length">
          <Property name="maxLength">120</Property>
        </Validator>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property name="dataType">String</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtDd">
      <ClientEvent name="onDataChange"> </ClientEvent>
      <Property name="creationType">com.ld.igds.models.CheckItemDd</Property>
      <PropertyDef name="qlyOrgReportSoybeanId">
        <Property></Property>
        <Property name="label">大豆质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="completeParticle">
        <Property></Property>
        <Property name="label">完整粒率</Property>
      </PropertyDef>
      <PropertyDef name="damageParticle">
        <Property></Property>
        <Property name="label">损伤粒率</Property>
      </PropertyDef>
      <PropertyDef name="damageParticleHot">
        <Property></Property>
        <Property name="label">热损伤粒率</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="impurityContent">
        <Property></Property>
        <Property name="label">杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisCamv">
        <Property></Property>
        <Property name="label">CAMV35S</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisNos">
        <Property></Property>
        <Property name="label">NOS</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisCoFour">
        <Property></Property>
        <Property name="label">CO4EPSPS</Property>
      </PropertyDef>
      <PropertyDef name="lection">
        <Property></Property>
        <Property name="label">LECTION</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtDm">
      <ClientEvent name="onDataChange"> </ClientEvent>
      <Property name="creationType">com.ld.igds.models.CheckItemDm</Property>
      <PropertyDef name="qlyOrgReportRiceId">
        <Property></Property>
        <Property name="label">大米质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="brokenRice">
        <Property></Property>
        <Property name="label">碎米总量</Property>
      </PropertyDef>
      <PropertyDef name="smallBrokenRice">
        <Property></Property>
        <Property name="label">小碎米含量</Property>
      </PropertyDef>
      <PropertyDef name="processingAccuracy">
        <Property></Property>
        <Property name="label">加工精度</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="impuriryContent">
        <Property></Property>
        <Property name="label">杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="tastingValue">
        <Property></Property>
        <Property name="label">品尝评分值</Property>
      </PropertyDef>
      <PropertyDef name="amyloseContent">
        <Property></Property>
        <Property name="label">直链淀粉含量</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="incompleteContent">
        <Property></Property>
        <Property name="label">不完善粒含量</Property>
      </PropertyDef>
      <PropertyDef name="inorganicContent">
        <Property></Property>
        <Property name="label">无机杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="yellowRiceContent">
        <Property></Property>
        <Property name="label">黄粒米含量</Property>
      </PropertyDef>
      <PropertyDef name="mixingRate">
        <Property></Property>
        <Property name="label">互混率</Property>
      </PropertyDef>
      <PropertyDef name="aflatioxin">
        <Property></Property>
        <Property name="label">黄曲霉毒素</Property>
      </PropertyDef>
      <PropertyDef name="cadmium">
        <Property></Property>
        <Property name="label">镉</Property>
      </PropertyDef>
      <PropertyDef name="inorganicArsenic">
        <Property></Property>
        <Property name="label">无机砷</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtXmf">
      <ClientEvent name="onDataChange"> </ClientEvent>
      <Property name="creationType">com.ld.igds.models.CheckItemXmf</Property>
      <PropertyDef name="qlyOrgReportNoodlesId">
        <Property></Property>
        <Property name="label">小麦粉质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="processingAccuracy">
        <Property></Property>
        <Property name="label">加工精度</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="cadmium">
        <Property></Property>
        <Property name="label">镉</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
      <PropertyDef name="ashContent">
        <Property></Property>
        <Property name="label">灰分含量</Property>
      </PropertyDef>
      <PropertyDef name="fattyContent">
        <Property></Property>
        <Property name="label">脂肪酸含量</Property>
      </PropertyDef>
      <PropertyDef name="sandContent">
        <Property></Property>
        <Property name="label">含砂量</Property>
      </PropertyDef>
      <PropertyDef name="looksForm">
        <Property></Property>
        <Property name="label">外观形态</Property>
      </PropertyDef>
      <PropertyDef name="wetGluten">
        <Property></Property>
        <Property name="label">湿面筋含量</Property>
      </PropertyDef>
      <PropertyDef name="deoxynivalenol">
        <Property></Property>
        <Property name="label">脱氧雪腐镰刀菌烯醇</Property>
      </PropertyDef>
      <PropertyDef name="zearalenone">
        <Property></Property>
        <Property name="label">玉米赤霉烯酮</Property>
      </PropertyDef>
      <PropertyDef name="lead">
        <Property></Property>
        <Property name="label">铅</Property>
      </PropertyDef>
      <PropertyDef name="benzoylPeroxide">
        <Property></Property>
        <Property name="label">过氧化苯甲酰</Property>
      </PropertyDef>
      <PropertyDef name="reportFile">
        <Property></Property>
        <Property name="label">报告文件</Property>
      </PropertyDef>
      <PropertyDef name="hfhljg">
        <Property></Property>
        <Property name="label">灰分含量结果</Property>
      </PropertyDef>
      <PropertyDef name="zfshljg">
        <Property></Property>
        <Property name="label">脂肪酸含量结果</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtSyy">
      <ClientEvent name="onDataChange"> </ClientEvent>
      <Property name="creationType">com.ld.igds.models.CheckItemSyy</Property>
      <PropertyDef name="qlyOrgReportOilId">
        <Property></Property>
        <Property name="label">食用油质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="colorLustre">
        <Property></Property>
        <Property name="label">色泽</Property>
      </PropertyDef>
      <PropertyDef name="transparency">
        <Property></Property>
        <Property name="label">透明度</Property>
      </PropertyDef>
      <PropertyDef name="odorTaste">
        <Property></Property>
        <Property name="label">气味滋味</Property>
      </PropertyDef>
      <PropertyDef name="waterVolatileContent">
        <Property></Property>
        <Property name="label">水分及挥发物含量</Property>
      </PropertyDef>
      <PropertyDef name="insolubleContent">
        <Property></Property>
        <Property name="label">不溶性杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="acidValue">
        <Property></Property>
        <Property name="label">酸价</Property>
      </PropertyDef>
      <PropertyDef name="peroxideValue">
        <Property></Property>
        <Property name="label">过氧化值</Property>
      </PropertyDef>
      <PropertyDef name="heatingTest">
        <Property></Property>
        <Property name="label">加热试验</Property>
      </PropertyDef>
      <PropertyDef name="aflatioxin">
        <Property></Property>
        <Property name="label">黄曲霉毒素</Property>
      </PropertyDef>
      <PropertyDef name="benzoPyrene">
        <Property></Property>
        <Property name="label">苯并芘</Property>
      </PropertyDef>
      <PropertyDef name="bha">
        <Property></Property>
        <Property name="label">BHA</Property>
      </PropertyDef>
      <PropertyDef name="bht">
        <Property></Property>
        <Property name="label">BHT</Property>
      </PropertyDef>
      <PropertyDef name="tbhq">
        <Property></Property>
        <Property name="label">TBHQ</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="padding:5;regionPadding:5">
    <ClientEvent name="onReady">var deptId = window.parent.DEPT_ID;//父页面中的分库编码&#xD;
&#xD;
/**&#xD;
 * é¢„览PDF文件&#xD;
 */&#xD;
showFilePdf = function(){&#xD;
    var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
    var fileName = cur.get(&quot;fileId&quot;);&#xD;
    var fileTime = new Date(cur.get(&quot;fileTime&quot;)).formatDate(&quot;y-m-d H:i:s&quot;);&#xD;
    if(!fileName){&#xD;
        $alert(&quot;没有获取到文件名称,无法预览。&quot;);&#xD;
        return;&#xD;
    }&#xD;
    if(!cur.get(&quot;fileTime&quot;)){&#xD;
        $alert(&quot;没有获取到附件上传时间,无法访问。&quot;);&#xD;
        return;&#xD;
    }&#xD;
    &#xD;
    var url = &quot;./basic/file/show-pdf?fileName=&quot;+fileName+&quot;&amp;fileTime=&quot;+fileTime+&quot;&amp;filePathType=common&quot;;&#xD;
    &#xD;
    window.open(url, &quot;_blank&quot;);&#xD;
};</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <Property name="javaScriptFile">./static/plugins/lodop/LodopFuncs.js</Property>
    <DataSet id="dsMain">
      <Property name="loadMode">lazy</Property>
      <Property name="dataProvider">qualityManager1PR#listQuality</Property>
      <Property name="dataType">[dtMain]</Property>
      <Property name="pageSize">15</Property>
    </DataSet>
    <DataSet id="dsParam">
      <ClientEvent name="onReady">self.insert({});</ClientEvent>
      <Property name="dataType">dtQualityParam</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="contentOverflow">hidden</Property>
      <Property name="height">55</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">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">view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
                </ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="exClassName">btn-warm</Property>
        <Property name="iconClass">fa fa-print</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">showFilePdf();</ClientEvent>
        <Property name="exClassName">btn-normal</Property>
        <Property name="caption">查看质检附件</Property>
        <Property name="iconClass">fa fa-picture-o</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if (!data) {&#xD;
    $alert(&quot;请先选择数据!&quot;);&#xD;
    return;&#xD;
}&#xD;
printBill();</ClientEvent>
        <Property name="caption">打印质检报告</Property>
        <Property name="exClassName">btn-warm</Property>
        <Property name="iconClass">fa fa-print</Property>
      </Button>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <AutoForm>
        <Property name="cols">*,*,*,*,*</Property>
        <Property name="dataSet">dsParam</Property>
        <Property name="labelAlign">right</Property>
        <Property name="labelSeparator">:</Property>
        <Property name="labelWidth">110</Property>
        <AutoFormElement>
          <Property name="name">depotId</Property>
          <Property name="property">depotId</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">type</Property>
          <Property name="property">type</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="hbox regionPadding:15">
          <Button layoutConstraint="left">
            <ClientEvent name="onClick">var param = view.get(&quot;#dsParam.data&quot;);&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param.toJSON()).flushAsync();                   </ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="exClassName">btn-default</Property>
            <Property name="iconClass">fa fa-refresh</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).setData({});</ClientEvent>
            <Property name="exClassName">btn-warn</Property>
            <Property name="iconClass">fa fa-refresh</Property>
            <Property name="caption">重置</Property>
          </Button>
        </Container>
      </AutoForm>
      <DataGrid layoutConstraint="center padding:5px">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}              </ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <DataColumn name="qlyOrgReportId">
          <Property name="property">qlyOrgReportId</Property>
        </DataColumn>
        <DataColumn name="orderId">
          <Property name="property">orderId</Property>
        </DataColumn>
        <DataColumn name="sampleId">
          <Property name="property">sampleId</Property>
        </DataColumn>
        <DataColumn name="orgId">
          <Property name="property">orgId</Property>
        </DataColumn>
        <DataColumn name="qualityOrgId">
          <Property name="property">qualityOrgId</Property>
        </DataColumn>
        <DataColumn name="qualityOrgName">
          <Property name="property">qualityOrgName</Property>
        </DataColumn>
        <DataColumn name="gysxydm">
          <Property name="property">gysxydm</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="kdbm">
          <Property name="property">kdbm</Property>
        </DataColumn>
        <DataColumn name="kdmc">
          <Property name="property">kdmc</Property>
        </DataColumn>
        <DataColumn name="delectionType">
          <Property name="property">delectionType</Property>
        </DataColumn>
        <DataColumn name="deletctionNumber">
          <Property name="property">deletctionNumber</Property>
        </DataColumn>
        <DataColumn name="jlcpmc">
          <Property name="property">jlcpmc</Property>
        </DataColumn>
        <DataColumn name="jllspz">
          <Property name="property">jllspz</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="itemCodes">pageSize,pages</Property>
        <Property name="dataSet">dsMain</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain">
      <ClientEvent name="beforeShow">var data = view.get(&quot;#dsMain.data:#&quot;)&#xD;
var metricsBefore = data.get(&quot;zblb&quot;)&#xD;
if(metricsBefore){&#xD;
    var list = metricsBefore.split(&quot;#&quot;);&#xD;
    var metrics =&quot;&quot; ;&#xD;
    list.forEach(item=>{&#xD;
        if(item == 1)metrics+=&quot;1:质量指标检验#&quot;;&#xD;
        if(item == 2)metrics+=&quot;2:储存品质检验#&quot;;&#xD;
        if(item == 3)metrics+=&quot;3:食品安全检验#&quot;;    &#xD;
    });&#xD;
    data.set(&quot;zblb&quot;, metrics.substring(0,metrics.length-1));&#xD;
}</ClientEvent>
      <Property name="visible">false</Property>
      <Property name="caption">质量巡检信息</Property>
      <Property name="width">80%</Property>
      <Property name="height">720</Property>
      <Property name="closeable">false</Property>
      <Buttons>
        <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</Property>
          <Property name="exClassName">btn-warn</Property>
        </Button>
      </Buttons>
      <Children>
        <FieldSet layout="padding:5">
          <Property name="caption">基础信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="dataSet">dsMain</Property>
              <Property name="readOnly">false</Property>
              <Property name="labelSeparator">:</Property>
              <Property name="labelAlign">right</Property>
              <Property name="cols">*,*,*,*</Property>
              <Property name="labelWidth">120</Property>
              <AutoFormElement>
                <Property name="name">qlyOrgReportId</Property>
                <Property name="property">qlyOrgReportId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orderId</Property>
                <Property name="property">orderId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sampleId</Property>
                <Property name="property">sampleId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgId</Property>
                <Property name="property">orgId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qualityOrgId</Property>
                <Property name="property">qualityOrgId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qualityOrgName</Property>
                <Property name="property">qualityOrgName</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">gysxydm</Property>
                <Property name="property">gysxydm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqybh</Property>
                <Property name="property">jlqybh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqymc</Property>
                <Property name="property">jlqymc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kdbm</Property>
                <Property name="property">kdbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kdmc</Property>
                <Property name="property">kdmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">delectionType</Property>
                <Property name="property">delectionType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">deletctionNumber</Property>
                <Property name="property">deletctionNumber</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlcpmc</Property>
                <Property name="property">jlcpmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jllspz</Property>
                <Property name="property">jllspz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lotNumber</Property>
                <Property name="property">lotNumber</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">specificationModel</Property>
                <Property name="property">specificationModel</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cysm</Property>
                <Property name="property">cysm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">registration</Property>
                <Property name="property">registration</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">inspectPlan</Property>
                <Property name="property">inspectPlan</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">productType</Property>
                <Property name="property">productType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cyjs</Property>
                <Property name="property">cyjs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cysl</Property>
                <Property name="property">cysl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sampler</Property>
                <Property name="property">sampler</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">samplerTime</Property>
                <Property name="property">samplerTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">samplerArea</Property>
                <Property name="property">samplerArea</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createTime</Property>
                <Property name="property">createTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">isActive</Property>
                <Property name="property">isActive</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createDate</Property>
                <Property name="property">createDate</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createBy</Property>
                <Property name="property">createBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateDate</Property>
                <Property name="property">updateDate</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateBy</Property>
                <Property name="property">updateBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fileId</Property>
                <Property name="property">fileId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fileName</Property>
                <Property name="property">fileName</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">fileTime</Property>
                <Property name="property">fileTime</Property>
                <Editor/>
              </AutoFormElement>
              <Container>
                <Label layoutConstraint="left">
                  <Property name="width">10px</Property>
                </Label>
                <Button layoutConstraint="left">
                  <ClientEvent name="onClick">showFilePdf();</ClientEvent>
                  <Property name="exClassName">btn-normal</Property>
                  <Property name="caption">预览</Property>
                  <Property name="iconClass">fa fa-picture-o</Property>
                </Button>
              </Container>
            </AutoForm>
          </Children>
        </FieldSet>
        <Control>
          <Property name="height">10</Property>
        </Control>
        <FieldSet layout="padding:5">
          <Property name="caption">大米检测项信息</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridorgReportRiceList">
              <Property name="dataPath">#.orgReportRiceList</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="hideMode">display</Property>
              <Property name="highlightCurrentRow">false</Property>
              <Property name="visible">true</Property>
              <Property name="height">200</Property>
              <RowNumColumn/>
              <DataColumn name="brokenRice">
                <Property name="property">brokenRice</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="smallBrokenRice">
                <Property name="property">smallBrokenRice</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="processingAccuracy">
                <Property name="property">processingAccuracy</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="impuriryContent">
                <Property name="property">impuriryContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="tastingValue">
                <Property name="property">tastingValue</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="amyloseContent">
                <Property name="property">amyloseContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="incompleteContent">
                <Property name="property">incompleteContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="inorganicContent">
                <Property name="property">inorganicContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="yellowRiceContent">
                <Property name="property">yellowRiceContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="mixingRate">
                <Property name="property">mixingRate</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="aflatioxin">
                <Property name="property">aflatioxin</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="cadmium">
                <Property name="property">cadmium</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="inorganicArsenic">
                <Property name="property">inorganicArsenic</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
            </DataGrid>
          </Children>
        </FieldSet>
        <FieldSet layout="padding:5">
          <Property name="caption">小麦粉检测项信息</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridOrgReportNoodlesList">
              <Property name="dataPath">#.orgReportNoodlesList</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="hideMode">display</Property>
              <Property name="highlightCurrentRow">false</Property>
              <Property name="visible">true</Property>
              <Property name="height">200</Property>
              <RowNumColumn/>
              <DataColumn name="processingAccuracy">
                <Property name="property">processingAccuracy</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="cadmium">
                <Property name="property">cadmium</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="ashContent">
                <Property name="property">ashContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="fattyContent">
                <Property name="property">fattyContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="sandContent">
                <Property name="property">sandContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="looksForm">
                <Property name="property">looksForm</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="wetGluten">
                <Property name="property">wetGluten</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="deoxynivalenol">
                <Property name="property">deoxynivalenol</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="zearalenone">
                <Property name="property">zearalenone</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="lead">
                <Property name="property">lead</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="benzoylPeroxide">
                <Property name="property">benzoylPeroxide</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="reportFile">
                <Property name="property">reportFile</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="hfhljg">
                <Property name="property">hfhljg</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="zfshljg">
                <Property name="property">zfshljg</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
            </DataGrid>
          </Children>
        </FieldSet>
        <FieldSet layout="padding:5">
          <Property name="caption">大豆检测项信息</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridCheckItem">
              <Property name="dataPath">#.orgReportSoybeanList</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="hideMode">display</Property>
              <Property name="highlightCurrentRow">false</Property>
              <Property name="visible">true</Property>
              <Property name="height">200</Property>
              <RowNumColumn/>
              <DataColumn name="completeParticle">
                <Property name="property">completeParticle</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="damageParticle">
                <Property name="property">damageParticle</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="damageParticleHot">
                <Property name="property">damageParticleHot</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="impurityContent">
                <Property name="property">impurityContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="transgenosisCamv">
                <Property name="property">transgenosisCamv</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="transgenosisNos">
                <Property name="property">transgenosisNos</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="transgenosisCoFour">
                <Property name="property">transgenosisCoFour</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="lection">
                <Property name="property">lection</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
            </DataGrid>
          </Children>
        </FieldSet>
        <FieldSet layout="padding:5">
          <Property name="caption">食用油检测项信息</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridOrgReportOilList">
              <Property name="dataPath">#.orgReportOilList</Property>
              <Property name="dataSet">dsMain</Property>
              <Property name="hideMode">display</Property>
              <Property name="highlightCurrentRow">false</Property>
              <Property name="visible">true</Property>
              <Property name="height">200</Property>
              <RowNumColumn/>
              <DataColumn name="colorLustre">
                <Property name="property">colorLustre</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="transparency">
                <Property name="property">transparency</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="odorTaste">
                <Property name="property">odorTaste</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="waterVolatileContent">
                <Property name="property">waterVolatileContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="insolubleContent">
                <Property name="property">insolubleContent</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="acidValue">
                <Property name="property">acidValue</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="peroxideValue">
                <Property name="property">peroxideValue</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="heatingTest">
                <Property name="property">heatingTest</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="aflatioxin">
                <Property name="property">aflatioxin</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="benzoPyrene">
                <Property name="property">benzoPyrene</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="bha">
                <Property name="property">bha</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="bht">
                <Property name="property">bht</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="tbhq">
                <Property name="property">tbhq</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
                <Property name="readOnly">true</Property>
              </DataColumn>
            </DataGrid>
          </Children>
        </FieldSet>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="uaAction">
      <Property name="dataResolver">qualityManagerPR#saveQuality</Property>
      <UpdateItem>
        <Property name="dataSet">dsMain</Property>
        <Property name="dataPath">[#current]</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">qualityManagerPR#delQuality</Property>
    </AjaxAction>
    <AjaxAction id="ajaxGetDepot">
      <Property name="service">depotPR#getDepot</Property>
    </AjaxAction>
    <UploadAction id="uploadFile">
      <ClientEvent name="onFileUploaded">var fileId = arg.returnValue;&#xD;
        if(fileId==(&quot;10&quot;)){&#xD;
        $alert(&quot;上传失败:附件名称为空。&quot;);&#xD;
        return;&#xD;
        }&#xD;
        if(fileId==(&quot;20&quot;)){&#xD;
        $alert(&quot;上传失败:附件不是pdf文件。&quot;);&#xD;
        return;&#xD;
        }&#xD;
var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
data.set(&quot;fileId&quot;,fileId);&#xD;
data.set(&quot;fileName&quot;,arg.file.name);&#xD;
data.set(&quot;fileTime&quot;,new Date);</ClientEvent>
      <Property name="fileResolver">myUploadProcessor#uploadCommonFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>
igds-core/src/main/java/com/ld/igds/m/view/QualityManager1PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,194 @@
package com.ld.igds.m.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.check.CheckStandardManager;
import com.ld.igds.check.dto.CheckItemData;
import com.ld.igds.m.ReportManage;
import com.ld.igds.m.service.HQualityManageService;
import com.ld.igds.models.Depot;
import com.ld.igds.models.DicTrigger;
import com.ld.igds.models.MQuality;
import com.ld.igds.view.service.HDepotService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
 * è´¨é‡è¿½æº¯ç®¡ç†
 *
 * @author: chen
 */
@Component
public class QualityManager1PR {
    @Autowired
    private HQualityManageService qualityManageService;
    @Autowired
    private CheckStandardManager checkStandardManager;
    @Autowired
    private ReportManage reportManage;
    @Autowired
    private HDepotService depotService;
    /**
     * æ£€éªŒç±»åˆ«
     * <p>
     * ${dorado.getDataProvider("qualityManagerPR#triggerType").getResult()}
     *
     * @return
     */
    @DataProvider
    public List<DicTrigger> triggerType() {
        List<DicTrigger> list = new ArrayList<DicTrigger>();
        list.add(new DicTrigger("01", "入仓验收"));
        list.add(new DicTrigger("02", "出仓检验"));
        list.add(new DicTrigger("03", "3月末普检"));
        list.add(new DicTrigger("04", "9月末普检"));
        list.add(new DicTrigger("05", "入库初检"));
        list.add(new DicTrigger("06", "月度检查"));
        list.add(new DicTrigger("07", "3月末库内普查"));
        list.add(new DicTrigger("08", "9月末库内普查"));
        return list;
    }
    /**
     * æŒ‡æ ‡ç±»åˆ«
     * <p>
     * ${dorado.getDataProvider("qualityManagerPR#triggerStandard").getResult()}
     *
     * @return
     */
    @DataProvider
    public List<DicTrigger> triggerStandard() {
        List<DicTrigger> list = new ArrayList<DicTrigger>();
        list.add(new DicTrigger("1", "国标"));
        list.add(new DicTrigger("0", "其他"));
        return list;
    }
    /**
     * æ£€éªŒä¾æ®
     * <p>
     * ${dorado.getDataProvider("qualityManagerPR#triggerMetrics").getResult()}
     *
     * @return
     */
    @DataProvider
    public List<DicTrigger> triggerMetrics() {
        List<DicTrigger> list = new ArrayList<DicTrigger>();
        list.add(new DicTrigger("1", "质量指标检验"));
        list.add(new DicTrigger("2", "储存品质检验"));
        list.add(new DicTrigger("3", "食品安全检验"));
        return list;
    }
    /**
     * åˆ†é¡µèŽ·å–è´¨é‡å·¡æ£€è®°å½•ä¿¡æ¯
     * <p>
     * qualityManager1PR#listQuality
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void listQuality(Page<MQuality> page, Map<String, Object> param) throws Exception {
        if (param == null) {
            param = new java.util.HashMap<>();
        }
        param.put("provReserve", "Y");
        qualityManageService.listQuality(page, param);
    }
    /**
     * ä¿å­˜è´¨é‡å·¡æ£€è®°å½•及相关检测项信息
     * qualityManagerPR#saveQuality
     *
     * @param data
     */
    @DataResolver
    public void saveQuality(MQuality data) {
        if (StringUtils.isEmpty(data.getId())) {
            data.setId( "ZJ_" + qualityManageService.getIdByTime(data.getTime()));
        }
        try {
            qualityManageService.saveQuality(data.getId(), data);
            //保存货位质检数据
            Depot depot = depotService.getDepotById(data.getCompanyId(), data.getDepotId());
            depot.setCheckDate(data.getTime());
            //保存检测的化验项信息
            if (null != data.getCheckItems()) {
                checkStandardManager.updateCheckItems(data.getId(), null, data.getCheckItems());
                List<CheckItemData> checkItems = data.getCheckItems();
                for (CheckItemData checkItem : checkItems) {
                    if("C01".equals(checkItem.getStandardId())){
                        String value = checkItem.getValue();
                        depot.setPerWet(Double.valueOf(value));
                    }
                    if("C02".equals(checkItem.getStandardId())){
                        String value = checkItem.getValue();
                        depot.setPerImpurity(Double.valueOf(value));
                    }
                    if("C03".equals(checkItem.getStandardId())){
                        String value = checkItem.getValue();
                        depot.setBulkWeight(Double.valueOf(value));
                    }
                }
            }
            depotService.updateDepot(depot);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    /**
     * qualityManagerPR#delQuality
     *
     * @param data
     * @return
     */
    @Expose
    public String delQuality(MQuality data) {
        return qualityManageService.delQuality(data);
    }
    /**
     * qualityManagerPR#getPer
     *
     * @param checkId
     * @return
     */
    @Expose
    public CheckItemData getPer(String checkId) {
        return qualityManageService.getCheckItem(checkId);
    }
    /**
     * qualityManagerPR#printQualityBill æ‰“印质检报告单
     *
     * @param data
     * @return
     */
    @Expose
    public String printQualityBill(MQuality data) {
        if (StringUtils.isEmpty(data.getFoodVariety())) {
            return "粮情品种为空,不支持打印!";
        }
        return reportManage.printQualityBill(data);
    }
}
igds-core/src/main/java/com/ld/igds/m/view/QualityManagerPR.java
@@ -96,7 +96,7 @@
    /**
     * åˆ†é¡µèŽ·å–è´¨é‡å·¡æ£€è®°å½•ä¿¡æ¯
     * <p>
     * qualityManagerPR#listQuality
     * qualityManager1PR#listQuality
     *
     * @param page
     * @param param
@@ -104,6 +104,10 @@
     */
    @DataProvider
    public void listQuality(Page<MQuality> page, Map<String, Object> param) throws Exception {
        if (param == null) {
            param = new java.util.HashMap<>();
        }
        param.put("provReserve", "N");
        qualityManageService.listQuality(page, param);
    }
igds-core/src/main/java/com/ld/igds/models/CheckItemDd.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,86 @@
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;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_Dd")
public class CheckItemDd {
    @Id
    @Column(name = "QLY_ORG_REPORT_SOYBEAN_ID_", length = 40)
    @PropertyDef(label = "大豆质检结果ID")
    private String qlyOrgReportSoybeanId;  //大豆质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "COMPLETE_PARTICLE_", length = 50)
    @PropertyDef(label = "完整粒率")
    private String completeParticle;  //完整粒率
    @Column(name = "DAMAGE_PARTICLE_", length = 50)
    @PropertyDef(label = "损伤粒率")
    private String damageParticle;  //损伤粒率
    @Column(name = "DAMAGE_PARTICLE_HOT_", length = 50)
    @PropertyDef(label = "热损伤粒率")
    private String damageParticleHot;  //热损伤粒率
    @Column(name = "WATER_CONTENT_", length = 50)
    @PropertyDef(label = "水分含量")
    private String waterContent;  //水分含量
    @Column(name = "COLOR_ODOR_", length = 50)
    @PropertyDef(label = "色泽气味")
    private String colorOdor;  //色泽气味
    @Column(name = "IMPURITY_CONTENT_", length = 50)
    @PropertyDef(label = "杂质含量")
    private String impurityContent;  //杂质含量
    @Column(name = "TRANSGENOSIS_CAMV_", length = 50)
    @PropertyDef(label = "CAMV35S")
    private String transgenosisCamv;  //CAMV35S
    @Column(name = "TRANSGENOSIS_NOS_", length = 50)
    @PropertyDef(label = "NOS")
    private String transgenosisNos;  //NOS
    @Column(name = "TRANSGENOSIS_CO_FOUR_", length = 50)
    @PropertyDef(label = "CO4EPSPS")
    private String transgenosisCoFour;  //CO4EPSPS
    @Column(name = "LECTION_", length = 50)
    @PropertyDef(label = "LECTION")
    private String lection;  //LECTION
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
}
igds-core/src/main/java/com/ld/igds/models/CheckItemDm.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,104 @@
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;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_DM")
public class CheckItemDm {
    @Id
    @Column(name = "QLY_ORG_REPORT_RICE_ID_", length = 40)
    @PropertyDef(label = "大米质检结果ID")
    private String qlyOrgReportRiceId;  //大米质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "BROKEN_RICE_", length = 50)
    @PropertyDef(label = "碎米总量")
    private String brokenRice;  //碎米总量
    @Column(name = "SMALL_BROKEN_RICE_", length = 50)
    @PropertyDef(label = "小碎米含量")
    private String smallBrokenRice;  //小碎米含量
    @Column(name = "PROCESSING_ACCURACY_", length = 50)
    @PropertyDef(label = "加工精度")
    private String processingAccuracy;  //加工精度
    @Column(name = "COLOR_ODOR_", length = 50)
    @PropertyDef(label = "色泽气味")
    private String colorOdor;  //色泽气味
    @Column(name = "IMPURITY_CONTENT_", length = 50)
    @PropertyDef(label = "杂质含量")
    private String impuriryContent;  //杂质含量
    @Column(name = "TASTING_VALUE_", length = 50)
    @PropertyDef(label = "品尝评分值")
    private String tastingValue;  //品尝评分值
    @Column(name = "AMYLOSE_CONTENT_", length = 50)
    @PropertyDef(label = "直链淀粉含量")
    private String amyloseContent;  //直链淀粉含量
    @Column(name = "WATER_CONTENT_", length = 50)
    @PropertyDef(label = "水分含量")
    private String waterContent;  //水分含量
    @Column(name = "INCOMPLETE_CONTENT_", length = 50)
    @PropertyDef(label = "不完善粒含量")
    private String incompleteContent;  //不完善粒含量
    @Column(name = "INORGANIC_CONTENT_", length = 50)
    @PropertyDef(label = "无机杂质含量")
    private String inorganicContent;  //无机杂质含量
    @Column(name = "YELLOW_RICE_CONTENT_", length = 50)
    @PropertyDef(label = "黄粒米含量")
    private String yellowRiceContent;  //黄粒米含量
    @Column(name = "MIXING_RATE_", length = 50)
    @PropertyDef(label = "互混率")
    private String mixingRate;  //互混率
    @Column(name = "AFLATIOXIN_", length = 50)
    @PropertyDef(label = "黄曲霉毒素")
    private String aflatioxin;  //黄曲霉毒素
    @Column(name = "CADMIUM_", length = 50)
    @PropertyDef(label = "镉")
    private String cadmium;  //镉
    @Column(name = "INORGANIC_ARCENIC_", length = 50)
    @PropertyDef(label = "无机砷")
    private String inorganicArsenic;  //无机砷
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
}
igds-core/src/main/java/com/ld/igds/models/CheckItemSyy.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,98 @@
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;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_SYY")
public class CheckItemSyy {
    @Id
    @Column(name = "QLY_ORG_REPORT_OIL_ID_", length = 40)
    @PropertyDef(label = "食用油质检结果ID")
    private String qlyOrgReportOilId;  //食用油质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "COLOR_LUSTRE_", length = 50)
    @PropertyDef(label = "色泽")
    private String colorLustre;  //色泽
    @Column(name = "TRANSPARENCY_", length = 50)
    @PropertyDef(label = "透明度")
    private String transparency;  //透明度
    @Column(name = "ODOR_TASTE_", length = 50)
    @PropertyDef(label = "气味滋味")
    private String odorTaste;  //气味滋味
    @Column(name = "WATER_VOLATILE_CONTENT_", length = 50)
    @PropertyDef(label = "水分及挥发物含量")
    private String waterVolatileContent;  //水分及挥发物含量
    @Column(name = "INSOLUBLE_CONTENT_", length = 50)
    @PropertyDef(label = "不溶性杂质含量")
    private String insolubleContent;  //不溶性杂质含量
    @Column(name = "ACID_VALUE_", length = 50)
    @PropertyDef(label = "酸价")
    private String acidValue;  //酸价
    @Column(name = "PEROXIDE_VALUE_", length = 50)
    @PropertyDef(label = "过氧化值")
    private String peroxideValue;  //过氧化值
    @Column(name = "HEATING_TEST_", length = 50)
    @PropertyDef(label = "加热试验")
    private String heatingTest;  //加热试验
    @Column(name = "AFLATIOXIN_", length = 50)
    @PropertyDef(label = "黄曲霉毒素")
    private String aflatioxin;  //黄曲霉毒素
    @Column(name = "BENZO_PYRENE_", length = 50)
    @PropertyDef(label = "苯并芘")
    private String benzoPyrene;  //苯并芘
    @Column(name = "BHA_", length = 50)
    @PropertyDef(label = "BHA")
    private String bha;  //BHA
    @Column(name = "BHT_", length = 50)
    @PropertyDef(label = "BHT")
    private String bht;  //BHT
    @Column(name = "TBHQ_", length = 50)
    @PropertyDef(label = "TBHQ")
    private String tbhq;  //TBHQ
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
}
igds-core/src/main/java/com/ld/igds/models/CheckItemXmf.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,110 @@
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;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_XMF")
public class CheckItemXmf {
    @Id
    @Column(name = "QLY_ORG_REPORT_NOODLES_ID_", length = 40)
    @PropertyDef(label = "小麦粉质检结果ID")
    private String qlyOrgReportNoodlesId;  //小麦粉质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "PROCESSING_ACCURACY_", length = 50)
    @PropertyDef(label = "加工精度")
    private String processingAccuracy;  //加工精度
    @Column(name = "COLOR_ODOR_", length = 50)
    @PropertyDef(label = "色泽气味")
    private String colorOdor;  //色泽气味
    @Column(name = "WATER_CONTENT_", length = 50)
    @PropertyDef(label = "水分含量")
    private String waterContent;  //水分含量
    @Column(name = "CADMIUM_", length = 50)
    @PropertyDef(label = "镉")
    private String cadmium;  //镉
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
    @Column(name = "ASH_CONTENT_", length = 50)
    @PropertyDef(label = "灰分含量")
    private String ashContent;  //灰分含量
    @Column(name = "FATTY_CONTENT_", length = 50)
    @PropertyDef(label = "脂肪酸含量")
    private String fattyContent;  //脂肪酸含量
    @Column(name = "SAND_CONTENT_", length = 50)
    @PropertyDef(label = "含砂量")
    private String sandContent;  //含砂量
    @Column(name = "LOOKS_FORM_", length = 50)
    @PropertyDef(label = "外观形态")
    private String looksForm;  //外观形态
    @Column(name = "WET_GLUTEN_", length = 50)
    @PropertyDef(label = "湿面筋含量")
    private String wetGluten;  //湿面筋含量
    @Column(name = "DEOXYNIVALENOL_", length = 50)
    @PropertyDef(label = "脱氧雪腐镰刀菌烯醇")
    private String deoxynivalenol;  //脱氧雪腐镰刀菌烯醇
    @Column(name = "ZEARALENONE_", length = 50)
    @PropertyDef(label = "玉米赤霉烯酮")
    private String zearalenone;  //玉米赤霉烯酮
    @Column(name = "LEAD_", length = 50)
    @PropertyDef(label = "铅")
    private String lead;  //铅
    @Column(name = "BENZOYL_PEROXIDE_", length = 50)
    @PropertyDef(label = "过氧化苯甲酰")
    private String benzoylPeroxide;  //过氧化苯甲酰
    @Column(name = "REPORT_FILE_", length = 100)
    @PropertyDef(label = "报告文件")
    private String reportFile;  //报告文件
    @Column(name = "HFHLJG_", length = 50)
    @PropertyDef(label = "灰分含量结果")
    private String hfhljg;  //灰分含量结果
    @Column(name = "ZFSHLJG_", length = 50)
    @PropertyDef(label = "脂肪酸含量结果")
    private String zfshljg;  //脂肪酸含量结果
}
igds-core/src/main/java/com/ld/igds/models/MQuality.java
@@ -3,6 +3,7 @@
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.check.dto.CheckItemData;
import com.ld.igds.constant.Constant;
import lombok.Data;
import javax.persistence.*;
@@ -167,4 +168,161 @@
    @PropertyDef(label = "附件上传时间")
    private Date fileTime;
    /************
     * é»„陂军粮用-省质检中心报告
     ************/
    @Column(name = "PROV_RESERVE_", length = 1)
    @PropertyDef(label = "是否为省级质检中心报告", description = "Y-是,N-否")
    private String provReserve = Constant.YN_N;
    @Column(name = "QLY_ORG_REPORTID_", length = 20)
    @PropertyDef(label = "质检报告id")
    private String qlyOrgReportId;  //质检报告id
    @Column(name = "ORDER_ID_", length = 20)
    @PropertyDef(label = "订单表ID")
    private String orderId;  //订单表ID
    @Column(name = "SAMPLE_ID_", length = 20)
    @PropertyDef(label = "样品表ID")
    private String sampleId;  //样品表ID
    @Column(name = "ORG_ID_", length = 20)
    @PropertyDef(label = "机构表ID")
    private String orgId;  //机构表ID
    @Column(name = "QUALITY_ORG_ID_", length = 50)
    @PropertyDef(label = "质检机构编号")
    private String qualityOrgId;  //质检机构编号
    @Column(name = "QUALITY_ORG_NAME_", length = 50)
    @PropertyDef(label = "质检机构名称")
    private String qualityOrgName;  //质检机构名称
    @Column(name = "GYSXYDM_", length = 50)
    @PropertyDef(label = "供应商信用代码")
    private String gysxydm;  //供应商信用代码
    @Column(name = "JLQYBH_", length = 50)
    @PropertyDef(label = "军粮企业编号")
    private String jlqybh;  //军粮企业编号
    @Column(name = "JLQYMC_", length = 50)
    @PropertyDef(label = "军粮企业名称")
    private String jlqymc;  //军粮企业名称
    @Column(name = "KDBM_", length = 20)
    @PropertyDef(label = "库点编码")
    private String kdbm;  //库点编码
    @Column(name = "KDMC_", length = 50)
    @PropertyDef(label = "库点名称")
    private String kdmc;  //库点名称
    @Column(name = "DELECTION_TYPE_", length = 20)
    @PropertyDef(label = "检测报告类型")
    private String delectionType;  //检测报告类型
    @Column(name = "DELETCTION_NUMBER_", length = 50)
    @PropertyDef(label = "检测报告编号")
    private String deletctionNumber;  //检测报告编号
    @Column(name = "JLCPMC_", length = 50)
    @PropertyDef(label = "军粮产品名称")
    private String jlcpmc;  //军粮产品名称
    @Column(name = "JLLSPZ_", length = 50)
    @PropertyDef(label = "军粮粮食品种")
    private String jllspz;  //军粮粮食品种
    @Column(name = "LOT_NUMBER_", length = 50)
    @PropertyDef(label = "批号")
    private String lotNumber;  //批号
    @Column(name = "SPECIFICATION_MODEL_", length = 50)
    @PropertyDef(label = "规格型号")
    private String specificationModel;  //规格型号
    @Column(name = "CYSM_", length = 200)
    @PropertyDef(label = "抽样说明")
    private String cysm;  //抽样说明
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "REGISTRATION_", length = 20)
    @PropertyDef(label = "登记时间")
    private String registration;  //登记时间
    @Column(name = "INSPECT_PLAN_", length = 200)
    @PropertyDef(label = "检验方案")
    private String inspectPlan;  //检验方案
    @Column(name = "PRODUCT_TYPE_", length = 20)
    @PropertyDef(label = "产品类型")
    private String productType;  //产品类型
    @Column(name = "CYJS_", length = 20)
    @PropertyDef(label = "抽样基数")
    private String cyjs;  //抽样基数
    @Column(name = "CYSL_", length = 20)
    @PropertyDef(label = "抽样数量")
    private String cysl;  //抽样数量
    @Column(name = "SAMPLER_", length = 50)
    @PropertyDef(label = "抽样人")
    private String sampler;  //抽样人
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "SAMPLER_TIME_", length = 20)
    @PropertyDef(label = "抽样时间")
    private String samplerTime;  //抽样时间
    @Column(name = "SAMPLER_AREA_", length = 200)
    @PropertyDef(label = "抽样地点")
    private String samplerArea;  //抽样地点
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "CREATE_TIME_", length = 20)
    @PropertyDef(label = "生产日期")
    private Date createTime;  //生产日期
    @Column(name = "IS_ACTIVE_", length = 1)
    @PropertyDef(label = "是否有效")
    private String isActive;  //是否有效
    @Column(name = "REPORT_FILE_", length = 200)
    @PropertyDef(label = "质检报告文件")
    private String reportFile;  //质检报告文件
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREATE_DATE_", length = 20)
    @PropertyDef(label = "创建时间")
    private String createDate;  //创建时间
    @Column(name = "CREATE_BY_", length = 50)
    @PropertyDef(label = "创建人")
    private String createBy;  //创建人
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "UPDATE_DATE_", length = 20)
    @PropertyDef(label = "更新时间")
    private String updateDate;  //更新时间
    @Column(name = "UPDATE_BY_", length = 50)
    @PropertyDef(label = "更新人")
    private String updateBy;  //更新人
    @Transient
    private List<CheckItemDm> orgReportRiceList;  //大米检验结果
    @Transient
    private List<CheckItemXmf> orgReportNoodlesList;  //小麦粉质检结果
    @Transient
    private List<CheckItemDd> orgReportSoybeanList;  //大豆质检结果
    @Transient
    private List<CheckItemSyy> orgReportOilList;  //食用油质检结果
}