<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
    <query id="JdgQcmZbsPhyResult.insert" desc="新增">
        <![CDATA[
 INSERT INTO QCM_ZBS_PHY_RESULT(
        ZBS_ID,
        ZBS_SEQ,
        SAMPLE_NO,
        PROCESS_CODE,
        PHY_CODE_MAX,
        PHY_NAME_MAX,
        PHY_CODE_MIN,
        PHY_NAME_MIN,
        PHY_CODE,
        PHY_NAME,
        ITEM_CODE_F,
        ITEM_NAME_F,
        ITEM_CODE_W,
        ITEM_NAME_W,
        ITEM_CODE_S,
        ITEM_NAME_S,
        VALUE1,
        VALUE2,
        VALUE3,
        VALUE4,
        VALUE5,
        VALUE6,
        VALUE7,
        VALUE8,
        VALUE9,
        VALUE10,
        VALUE11,
        VALUE12,
        VALUE13,
        VALUE14,
        VALUE15,
        AVERAGE,
        NK_TOL_QUALIFIED,
        JF_TOL_QUALIFIED,
        IS_GOOD,
        IS_DEFECT,
        CHECK_TEMP,
        HARDNESS_TYPE,
        PHY_CODE_DIR,
        PHY_NAME_DIR,
        SAMPLE_STYLE,
        SAMPLE_SIZE,
        JF_MIN,
        JF_MAX,
        VALUE_KSI,
        VALUE_PSI,
        VALUE_F2,
        VALUE_F3,
        AVERAGE_VALUE_F,
        FORMUAL_NO,
        FORMUAL_NAME,
        SAMPLE_ID,
        SIZE_DESC,
        NK_MIN,
        NK_MAX,
        NK_ADD_MIN,
        NK_ADD_MAX,
        NK_JUDGE_BASIS,
        NK_ADD_CONDITION,
        NK_ADD_JUDGE_BASIS,
        JF_JUDGE_BASIS,
        JF_ADD_CONDITION,
        JF_ADD_JUDGE_BASIS,
        JF_ADD_MIN,
        JF_ADD_MAX,
        ISRCL,
       DEVICE_NO,
       DEVICE_NAME,
       CHECK_NAME,
       CHECK_TIME,
       AUDIT_NAME,
       AUDIT_TIME,
       REMARK,
       SAMPLE_JB,
	   NOTCH_SHAPE)
 VALUES( 
        '#ZBS_ID#',
        (SELECT NVL(MAX(A.ZBS_SEQ), 0) + 1
      FROM QCM_ZBS_PHY_RESULT A
     WHERE A.ZBS_ID = '#ZBS_ID#'),
        '#SAMPLE_NO#',
        '#PROCESS_CODE#',
        '#PHY_CODE_MAX#',
        '#PHY_NAME_MAX#',
        '#PHY_CODE_MIN#',
        '#PHY_NAME_MIN#',
        '#PHY_CODE#',
        '#PHY_NAME#',
        '#ITEM_CODE_F#',
        '#ITEM_NAME_F#',
        '#ITEM_CODE_W#',
        '#ITEM_NAME_W#',
        '#ITEM_CODE_S#',
        '#ITEM_NAME_S#',
        '#VALUE1#',
        '#VALUE2#',
        '#VALUE3#',
        '#VALUE4#',
        '#VALUE5#',
        '#VALUE6#',
        '#VALUE7#',
        '#VALUE8#',
        '#VALUE9#',
        '#VALUE10#',
        '#VALUE11#',
        '#VALUE12#',
        '#VALUE13#',
        '#VALUE14#',
        '#VALUE15#',
        '#AVERAGE#',
        '#NK_TOL_QUALIFIED#',
        '#JF_TOL_QUALIFIED#',
        '#IS_GOOD#',
        '#IS_DEFECT#',
        '#CHECK_TEMP#',
        '#HARDNESS_TYPE#',
        '#PHY_CODE_DIR#',
        '#PHY_NAME_DIR#',
        '#SAMPLE_STYLE#',
        '#SAMPLE_SIZE#',
        '#JF_MIN#',
        '#JF_MAX#',
        '#VALUE_KSI#',
        '#VALUE_PSI#',
        '#VALUE_F2#',
        '#VALUE_F3#',
        '#AVERAGE_VALUE_F#',
        '#FORMUAL_NO#',
        '#FORMUAL_NAME#',
        '#SAMPLE_ID#',
        '#SIZE_DESC#',
        '#NK_MIN#',
        '#NK_MAX#',
        '#NK_ADD_MIN#',
        '#NK_ADD_MAX#',
        '#NK_JUDGE_BASIS#',
        '#NK_ADD_CONDITION#',
        '#NK_ADD_JUDGE_BASIS#',
        '#JF_JUDGE_BASIS#',
        '#JF_ADD_CONDITION#',
        '#JF_ADD_JUDGE_BASIS#',
        '#JF_ADD_MIN#',
        '#JF_ADD_MAX#',
        '#ISRCL#',
        '#DEVICE_NO#',
        '#DEVICE_NAME#',
        '#CHECK_NAME#',
        TO_DATE('#CHECK_TIME#','YYYY-MM-DD HH24:MI:SS'),
        '#AUDIT_NAME#',
        TO_DATE('#AUDIT_TIME#','YYYY-MM-DD HH24:MI:SS'),
        '#REMARK#',
        '#SAMPLE_JB#',
		'#NOTCH_SHAPE#')
        ]]>
    </query>

    <query id="JdgQcmZbsPhyResult.delete" desc="删除">
        <![CDATA[
 DELETE FROM QCM_ZBS_PHY_RESULT WHERE ZBS_ID = {0}
        ]]>
    </query>
</queryMap>