<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="探伤实绩">

	<query id="FrmHttCrackDetectResult.getQueryCrackDetection" desc="查询探伤实绩">
        <![CDATA[

SELECT T.*,
       NVL(T.EWASTE_NUM, 0) + NVL(T.EWASTE_NUM_ET, 0) +
       NVL(T.REJECT_NUM, 0) EWASTE_NUM,
       NVL(T.EPASS_NUM, 0) + NVL(T.EPASS_NUM_ET, 0) + NVL(T.FINAL_NUM, 0) EPASS_NUM,
       T1.REPORT_PATH  REPORT_FULL,
       SUBSTR(T1.REPORT_PATH,INSTR(T1.REPORT_PATH,'/',-1)+1) REPORT
  FROM HTT_CRACK_DETECTION_ET T
  LEFT JOIN HTT_CRACK_DETECTION_PARA T1
    ON T.RESULT_NO = T1.RESULT_NO
 WHERE T.HEAT_PLAN_NO = ?
 ORDER BY T.COL_TIME DESC, T.BATCH_NO
        ]]>
	</query>
	
	
	<query id="FrmHttCrackDetectResult.getResultData" desc="查超声探伤实绩">
        <![CDATA[
SELECT T.*
  FROM HTT_CRACK_DETECTION_ET T
 WHERE T.RESULT_NO = ?
        ]]>
	</query>
	
		<query id="FrmHttCrackDetectResult.getResultParaData" desc="查超声探伤实绩">
        <![CDATA[
SELECT T.*
  FROM HTT_CRACK_DETECTION_PARA T
 WHERE T.RESULT_NO = ?
        ]]>
	</query>
	
		<query id="FrmHttCrackDetectResult.getResultProbeData" desc="查超声探伤实绩">
        <![CDATA[
SELECT T.*
  FROM htt_crack_detection_probe T
 WHERE T.PROBE_ID = ?
        ]]>
	</query>
	
	
	<query id="FrmHttCrackDetectResult.getResultStandData" desc="查超声探伤实绩">
        <![CDATA[
SELECT T.*
  FROM htt_crack_detection_standard T
 WHERE T.STANDARD_ID = ?
        ]]>
	</query>
	
			<query id="FrmHttCrackDetectResult.getqueryfailnum" desc="查询废品支数">
		<![CDATA[
delete HTT_WASTE_RESULT where RESULT_NO = ?
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.queryItemInfo" desc="查询探伤工艺信息">
		<![CDATA[
SELECT
       (select max(e.basename)
          from CRAFT_ORD_DESIGN_STD_DIC D, ---CRAFT_ORD_DESIGN_STD_DIC
               COM_BASE_INFO            E
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND E.basecode = D.STD_DESC
           and instr(d.groove_dir, '纵向') > 0
           and d.PROCESS_CODE ='F'
                ) 探伤标准纵向,
       (select max(e.basename)
          from CRAFT_ORD_DESIGN_STD_DIC D, ---CRAFT_ORD_DESIGN_STD_DIC
               COM_BASE_INFO            E
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND E.basecode = D.STD_DESC
           and instr(d.groove_dir, '横向') > 0
           and d.PROCESS_CODE ='F'
                ) 探伤标准横向,
       (select max(d.coverage)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.groove_dir, '横向') > 0
           and d.PROCESS_CODE ='F'
             ) 探伤标准横向覆盖率,
       (select max(d.coverage)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.groove_dir, '纵向') > 0
           and d.PROCESS_CODE ='F'
               ) 探伤标准纵向覆盖率,
    (select  max(d.lv_desc)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.groove_dir, '纵向') > 0
             AND instr(d.Groove_Pos, '内') > 0
           and d.PROCESS_CODE ='F'
                ) 探伤标准纵id,
      (select  max(d.lv_desc)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.groove_dir, '纵向') > 0
             AND instr(d.Groove_Pos, '外') > 0
           and d.PROCESS_CODE ='F'
                ) 探伤标准纵od,
      (select  max(d.lv_desc)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.groove_dir, '横向') > 0
             AND instr(d.Groove_Pos, '内') > 0
           and d.PROCESS_CODE ='F'
              ) 探伤标准横id,
    (select  max(d.lv_desc)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.groove_dir, '横向') > 0
             AND instr(d.Groove_Pos, '外') > 0
           and d.PROCESS_CODE ='F'
                ) 探伤标准横od,
       (select max(d.coverage)
          from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
           AND instr(d.PHY_NAME, '分层') > 0
           and d.PROCESS_CODE ='F'
                ) 探伤标准分层覆盖率,
       (select max(e.basename)
          from CRAFT_ORD_DESIGN_STD_DIC D, ---CRAFT_ORD_DESIGN_STD_DIC
               COM_BASE_INFO            E
         where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149')
     or (d.position_desc = '全长' and
       d.phy_code in ('P0105', 'P0104', 'P0032')))
           and D.desgin_key = C.desgin_key
            AND E.basecode = D.STD_DESC
           AND instr(d.PHY_NAME, '分层') > 0
           and d.PROCESS_CODE ='F'

               ) 探伤标准分层,
       (select sc.std_min_percent || '%t' || '～' || sc.std_max_percent || '%t'
          from (select std_min_percent,
                       std_max_percent,
                       desgin_key,
                       process_code,
                       bias_name
                  from Craft_Ord_Design_Std_Sic sc
                 where 1 = 1
                 order by process_code desc) sc
         where sc.bias_name = '管端壁厚'
           and sc.procesS_code in ('F', 'D')
           and sc.std_min_percent is not null
           and sc.std_max_percent is not null
           and rownum = 1
           AND sc.desgin_key = c.desgin_key
           and rownum = 1) 壁厚检测标准

  FROM   CRAFT_ORD_DESIGN C
 WHERE
  c.craft_no = ?
   and C.VALIDFLAG = '1'
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.queryLoadRESULT" desc="查询最大实绩编号">
		<![CDATA[
     SELECT ? ||
         LPAD(NVL(MAX(TO_NUMBER(SUBSTR(RESULT_NO, LENGTH(RESULT_NO) - 5))),
                  0) + 1,
              6,
              '0') RESULT_NO
    FROM HTT_CRACK_DETECTION_ET
   WHERE RESULT_NO LIKE ? || '______'
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.getTestingGrade" desc="查询探伤等级">
		<![CDATA[
     SELECT T.LONGITUDINAL_EXTERNAL,T.LONGITUDINAL_INTERNAL,T.TRANSVERSE_EXTERNAL,T.TRANSVERSE_INTERNAL,T.ACCPETANCE_LEVEL FROM HTT_CRACK_DETECTION_PARA T
   WHERE T.RESULT_NO = ?
   AND T.REPORT_NO = '0'
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.getTestingGrade2" desc="查询探伤等级">
		<![CDATA[
     SELECT T.LONGITUDINAL_EXTERNAL,T.LONGITUDINAL_INTERNAL,T.TRANSVERSE_EXTERNAL,T.TRANSVERSE_INTERNAL,T.ACCPETANCE_LEVEL FROM HTT_CRACK_DETECTION_PARA T
   WHERE T.RESULT_NO = ?
   AND T.REPORT_NO = '1'
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.getTestingGrade3" desc="查询探伤等级">
		<![CDATA[
     SELECT T.LONGITUDINAL_EXTERNAL,T.LONGITUDINAL_INTERNAL,T.TRANSVERSE_EXTERNAL,T.TRANSVERSE_INTERNAL,T.ACCPETANCE_LEVEL FROM HTT_CRACK_DETECTION_PARA T
   WHERE T.RESULT_NO = ?
   AND T.REPORT_NO = '4'
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.getQueryExpandResult1" desc="查询探伤实绩合格支数的和">
        <![CDATA[
   SELECT NVL(SUM(T.TESTING_NUM), 0) TESTING_NUM FROM HTT_CRACK_DETECTION_ET T
   WHERE T.HEAT_PLAN_NO = ?
        ]]>
	</query>
		<query id="FrmHttCrackDetectResult.getQueryExpandResultStuts" desc="查询相同炉计划ID下探伤状态">
		<![CDATA[
SELECT B.STATION_STATUS 
  FROM htt_crack_detection_et T INNER JOIN htt_COM_INFO B ON T.RESULT_NO=B.RESULT_NO
 WHERE T.HEAT_PLAN_NO = ? AND T.PLINE_CODE =?
			]]>
	</query>
	<query id="FrmHttCrackDetectResult.detelefailnum" desc="删除废品缺陷">
		<![CDATA[
DELETE HTT_WASTE_RESULT WHERE RESULT_NO = ?
		]]>
	</query>

	<query id="FrmHttCrackDetectResult.detelefailnum2" desc="删除废品缺陷">
		<![CDATA[
DELETE HTT_WASTE_MAT_NO WHERE (DEF_SERIAL_ITEM,DEF_SERIAL_NO) IN (SELECT DEF_SERIAL_ITEM,DEF_SERIAL_NO FROM HTT_WASTE_RESULT WHERE RESULT_NO = ? )
		]]>
	</query>

		<query id="FrmHttCrackDetectResult.getQuerybase" desc="查询探伤废品原因">
		<![CDATA[
SELECT T.BASECODE,T.BASENAME FROM COM_BASE_INFO T WHERE T.SORTCODE =?
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.AddCrackDetection" desc="新增探伤实绩">
		<![CDATA[
INSERT INTO HTT_CRACK_DETECTION_ET
  (RESULT_NO,
   HEAT_PLAN_NO,
   ZY_BATCH_ID,
   PRO_PLAN_ID,
   GX_PLAN_NO,
   PLINE_CODE,
   PLINE_NAME,
   TESTING_TYPE,
   TESTING_NUM,
   PASS_NUM,
   DUBIOUS_NUM,
   FTESTING_NUM,
   FPASS_NUM,
   FTESTING_REASON,
   EPASS_NUM,
   EWASTE_NUM,
   EWASTE_REASON,
   COL_TIME,
   COL_END_TIME,
   COL_USER,
   COL_SHIFT,
   COL_GROUP,
   CREATE_TIME,
   PRO_YEAR_MONTH_DAY,
   BAL_YEAR_MONTH,
   PROCESS_SEQ,
   BATCH_NO,
   MANUAL_PASS_NUM,
   MANUAL_FTESTING_NUM,
   REJECTED_NUM,
   FINAL_NUM,
   REJECT_NUM,
   TOTAL_FAIL_LEN,
   EWASTE_WT,
   TESTING_WT,
   PASS_NUM_ET,
   DUBIOUS_NUM_ET,
   FTESTING_NUM_ET,
   FPASS_NUM_ET,
   EPASS_NUM_ET,
   EWASTE_NUM_ET,
   PENDING_NUM,
   NOTCH_INFO,
   NOTCH_LENGTH,
   NOTCH_WIDTH,
   NOTCH_DEPTH,
   TESTING_TIME,
   MACHINE_NO,
   TESTING_GRADE,
   JUDGE_STOVE_NO,
   REPORT_NO,
   PROCESS_CODE,
    DISQUALIFIED_REASON,
    QUALIFIED_NUM_AFTER_CUT,
    DISQUALIFIED_NUM,
    TESTING_POSITION,
    TESTING_STANDARD,
    WORK_UNIT)
VALUES
  ('#RESULT_NO#',
   '#HEAT_PLAN_NO#',
   '#ZY_BATCH_ID#',
   '#PRO_PLAN_ID#',
   '#GX_PLAN_NO#',
   '#PLINE_CODE#',
   '#PLINE_NAME#',
   '#TESTING_TYPE#',
   '#TESTING_NUM#',
   '#PASS_NUM#',
   '#DUBIOUS_NUM#',
   '#FTESTING_NUM#',
   '#FPASS_NUM#',
   '#FTESTING_REASON#',
   '#EPASS_NUM#',
   '#EWASTE_NUM#',
   '#EWASTE_REASON#',
     TO_DATE( '#COL_TIME#', 'YYYY-MM-DD HH24:MI:SS'),
     TO_DATE( '#COL_END_TIME#', 'YYYY-MM-DD HH24:MI:SS'),
   '#COL_USER#',
   '#COL_SHIFT#',
   '#COL_GROUP#',
   SYSDATE,
   TO_CHAR( TO_DATE( '#COL_TIME#', 'YYYY-MM-DD HH24:MI:SS'),'YYYYMMDD'),
    TO_CHAR( TO_DATE( '#COL_TIME#', 'YYYY-MM-DD HH24:MI:SS'),'YYYYMM'),
   '#PROCESS_SEQ#',
   '#BATCH_NO#',
   '#MANUAL_PASS_NUM#',
   '#MANUAL_FTESTING_NUM#',
   '#REJECTED_NUM#',
   '#FINAL_NUM#',
   '#REJECT_NUM#',
   '#TOTAL_FAIL_LEN#',
   '#EWASTE_WT#',
   '#TESTING_WT#',
   '#PASS_NUM_ET#',
   '#DUBIOUS_NUM_ET#',
   '#FTESTING_NUM_ET#',
   '#FPASS_NUM_ET#',
   '#EPASS_NUM_ET#',
   '#EWASTE_NUM_ET#',
   '#PENDING_NUM#',
   '#NOTCH_INFO#',
   '#NOTCH_LENGTH#',
   '#NOTCH_WIDTH#',
   '#NOTCH_DEPTH#',
   '#TESTING_TIME#',
   '#MACHINE_NO#',
   '#TESTING_GRADE#',
   '#JUDGE_STOVE_NO#',
   '#REPORT_NO#',
   '#PROCESS_CODE#',
    '#DISQUALIFIED_REASON#',
    '#QUALIFIED_NUM_AFTER_CUT#',
    '#DISQUALIFIED_NUM#',
    '#TESTING_POSITION#',
    '#TESTING_STANDARD#',
     '#WORK_UNIT#')
		]]>
	</query>


	<query id="FrmHttCrackDetectResult.AddCrackHead" desc="新增探伤信息头">
		<![CDATA[
  INSERT INTO HTT_CRACK_HEADINFO
  (RESULT_NO,
   JUDGE_STOVE_NO,
   BATCH_NO,
   GRADECODE,
   GRADENAME,
   PRO_ORDER_NO,
   STEELCODE,
   STEELNAME,
   STD_CODE,
   STD_NAME,
   SPEC_CODE,
   SPEC_NAME,
   PRODUCCODE,
   PRODUCNAME,
   PROD_STANDARD,
   STD_STYLE,
   STD_STYLE_DESC

   )
  SELECT ?,
         JUDGE_STOVE_NO,
         ?,
         GRADECODE,
         GRADENAME,
         ORDER_NO || '/' || ORDER_SEQ,
         STEELCODE,
         STEELNAME,
         STD_CODE,
         STD_NAME,
         SPEC_CODE,
         SPEC_NAME,
         PRODUCCODE,
         PRODUCNAME,
         PROD_STANDARD,
           STD_STYLE,
   STD_STYLE_DESC
    FROM pln_zy_rcl_m
    WHERE heat_plan_NO =?

		]]>
	</query>

	<query id="FrmHttCrackDetectResult.AddCrackHead1" desc="新增探伤信息头">
		<![CDATA[
		INSERT INTO HTT_CRACK_HEADINFO
  (RESULT_NO,
   JUDGE_STOVE_NO,
   BATCH_NO,
   GRADECODE,
   GRADENAME,
   PRO_ORDER_NO,
   STEELCODE,
   STEELNAME,
   STD_CODE,
   STD_NAME,
   SPEC_CODE,
   SPEC_NAME,
   PRODUCCODE,
   PRODUCNAME,
   PROD_STANDARD,
   STD_STYLE,
   STD_STYLE_DESC)
  SELECT ?,
         JUDGE_STOVE_NO,
         ?,
         GRADECODE,
         GRADENAME,
         ORDER_NO || '/' || ORDER_SEQ,
         STEELCODE,
         STEELNAME,
         STD_CODE,
         STD_NAME,
         SPEC_CODE,
         SPEC_NAME,
         PRODUCCODE,
         PRODUCNAME,
         PROD_STANDARD,
   STD_STYLE,
   STD_STYLE_DESC
    FROM pln_zy_jgx_m
    WHERE heat_plan_NO =?

		]]>
	</query>

	<query id="FrmHttCrackDetectResult.AddCrackHead2" desc="新增探伤信息头">
		<![CDATA[
	  INSERT INTO HTT_CRACK_HEADINFO
    (RESULT_NO,
     JUDGE_STOVE_NO,
     BATCH_NO,
     GRADECODE,
     GRADENAME,
     PRO_ORDER_NO,
     STEELCODE,
     STEELNAME,
     STD_CODE,
     STD_NAME,
     SPEC_CODE,
     SPEC_NAME,
     PRODUCCODE,
     PRODUCNAME,
     PROD_STANDARD)
    SELECT ?,
           ?,
           ?,
           GRADECODE,
           GRADENAME,
           ORDER_NO,
           STEELCODE,
           STEELNAME,
           STD_CODE,
           STD_NAME,
           SPEC_CODE,
           SPEC_NAME,
           PRODUCCODE,
           PRODUCNAME,
           PROD_STANDARD
      FROM HTT_ENTRUST
     WHERE SUBCONTRACT_NO = ?
       AND SUBCONTRACT_NO_SEQ = ?

		]]>
	</query>

	<query id="FrmHttCrackDetectResult.deleteHttCrackResult" desc="删除探伤实绩">
		<![CDATA[
		DELETE HTT_CRACK_DETECTION_ET WHERE RESULT_NO = ?		
		]]>
	</query>

	<query id="FrmHttCrackDetectResult.deleteHttCrackResultHead" desc="删除探伤实绩">
		<![CDATA[
		DELETE HTT_CRACK_HEADINFO WHERE RESULT_NO = ?
		]]>
	</query>



	<query id="FrmHttCrackDetectResult.deleteHttCrackResultComInfo" desc="删除热处理公共信息表">
		<![CDATA[
		DELETE HTT_COM_INFO WHERE RESULT_NO = ?
		]]>
	</query>



	<query id="FrmHttCrackDetectResult.deleteHttCrackResultPara" desc="删除探伤实绩">
		<![CDATA[
		DELETE HTT_CRACK_DETECTION_PARA WHERE RESULT_NO = ?
		]]>
	</query>

	<query id="FrmHttCrackDetectResult.deleteHttCrackResultProbe" desc="删除探伤实绩">
		<![CDATA[
		DELETE HTT_CRACK_DETECTION_PROBE WHERE PROBE_ID IN (SELECT PROBE_ID FROM HTT_CRACK_DETECTION_PARA WHERE RESULT_NO = ?)
		]]>
	</query>

	<query id="FrmHttCrackDetectResult.deleteHttCrackResultStandard" desc="删除探伤实绩">
		<![CDATA[
		DELETE HTT_CRACK_DETECTION_STANDARD WHERE STANDARD_ID IN (SELECT STANDARD_ID FROM HTT_CRACK_DETECTION_PARA WHERE RESULT_NO = ?)
		]]>
	</query>
	
		<query id="FrmHttCrackDetectResult.UpdatePath" desc="修改队列表工艺路径">
		<![CDATA[
UPDATE PORT_HTT_BATCH_SAMPLE_RESULT T
   SET T.PRC_TECHNOLOGY_PATH = SUBSTR(T.PRC_TECHNOLOGY_PATH, 1,16) || ? ||
                               SUBSTR(T.PRC_TECHNOLOGY_PATH,18, LENGTH(T.PRC_TECHNOLOGY_PATH))
 WHERE T.HEAT_PLAN_NO = ?
 AND PROCESS_SEQ = (SELECT real_process_seq FROM pln_zy_rcl_m WHERE heat_plan_no = t.heat_plan_no)
 AND MAT_STATUS='00'
			]]>
	</query>	
	<query id="FrmHttCrackDetectResult.queryExpandFailNUM1" desc="查询工序废品数量">
		<![CDATA[
		SELECT NVL(SUM(T.EWASTE_NUM),0) FAIL_NUM FROM HTT_CRACK_DETECTION_ET T
WHERE  T.HEAT_PLAN_NO=? 
			]]>
	</query>
	<query id="FrmHttCrackDetectResult.updateHttCrackResult" desc="修改探伤实绩">
		<![CDATA[
		
UPDATE HTT_CRACK_DETECTION_ET
   SET TESTING_TYPE      = ?,
       TESTING_STANDARD1 = ?,
       TESTING_STANDARD2 = ?,
       TESTING_STANDARD3 = ?,
       TESTING_STANDARD4 = ?,
       TESTING_STANDARD5 = ?,
       TESTING_STANDARD6 = ?,
       TESTING_STANDARD7 = ?,
       TESTING_STANDARD8 = ?,
       LEXTERNAL_LVL     = ?,
       LINTERNAL_LVL     = ?,
       TEXTERNAL_LVL     = ?,
       TINTERNAL_LVL     = ?,
       WALL_THICK_MIN    = ?,
       WALL_THICK_MAX    = ?,
       PROBE_RUN_SPEED   = ?,
       PIPE_ROT_SPEED    = ?,
       TESTING_NUM       = ?,
       PASS_NUM          = ?,
       DUBIOUS_NUM       = ?,
       FTESTING_NUM      = ?,
       FPASS_NUM         = ?,
       FTESTING_REASON   = ?,
       EPASS_NUM         = ?,
       EWASTE_NUM        = ?,
       EWASTE_REASON     = ?,
       TEC_LEVEL         = ?,
       COL_TIME          = TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
       COL_SHIFT         = ?,
       COL_GROUP         = ?,  
       SIGN_ISSUED = ?,
       UPDATE_TIME = TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
       UPDATE_NAME = ?
 WHERE RESULT_NO = ?	
			]]>
	</query>
	<query id="FrmHttCrackDetectResult.updateComInfoResult" desc="修改公共信息">
		<![CDATA[
UPDATE HTT_COM_INFO
   SET PRO_NUM     = ?,
       PRO_WT      = ?,
       FAIL_NUM=?,
       FAIL_WT=?,
       RRO_TIME   = TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS'),
       PRO_SHIFT  = ?,
       PRO_GROUP  = ?
 WHERE RESULT_NO = ?
		]]>
	</query>


	<query id="FrmHttCrackDetectResult.GetCrackResult" desc="热处理高温炉实绩查询">
		<![CDATA[
          SELECT *
 FROM HTT_CRACK_DETECTION_ET
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.getCrackStand" desc="热处理高温炉实绩查询">
		<![CDATA[
SELECT  DESGIN_KEY,
       DIC,
       USE_CODE,
       USE_DESC,
       SPECL_FL,
       XH,
       PHY_CODE,
       PHY_NAME,
       POSITION_CODE,
       POSITION_DESC,
       STD_DESC,
       LV_CODE,
       LV_DESC,
       GROOVE_POS,
       GROOVE_DIR,
       COVERAGE,
       RATE,
       DESC_RATE,
       DESC_VAL,
       GROUP_SEQ,
       MEMO,
       MIN_D,
       MAX_D,
       MIN_H,
       MAX_H,
       MSC_PLINE
        ,(SELECT baseNAME FROM com_base_info WHERE basecode=T.STD_DESC ) STD_NAME

      , (SELECT std_min_percent || '%~' || STD_MAX_PERCENT || '%' FROM CRAFT_ORD_DESIGN_STD_SIC C WHERE C.DESGIN_KEY = T.DESGIN_KEY  AND C.MSC_PLINE = T.MSC_PLINE
      AND C.PROCESS_CODE  IN ('F','G')
      -- AND SIC = ?
       AND  (CASE WHEN  instr(T.PHY_NAME,'管端')>0 THEN '404020' ELSE '404019' END)= C.BIAS_CODE     AND ROWNUM =1  )  SIC
  FROM CRAFT_ORD_DESIGN_STD_DIC T
 WHERE DESGIN_KEY = (SELECT DESGIN_KEY
                        FROM CRAFT_ORD_DESIGN
                       WHERE ORD_LN_PK =
                             (SELECT ORD_LN_PK
                                FROM PLN_SALEORD
                               WHERE ORD_LN_DLY_PK =
                                     ?)
                         AND CRAFT_SEQ =?)
   AND MSC_PLINE =?
   ORDER BY  DECODE(DIC,?,0,1)
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.getCrackStand1" desc="热处理高温炉实绩查询">
		<![CDATA[
SELECT  DESGIN_KEY,
       DIC,
       USE_CODE,
       USE_DESC,
       SPECL_FL,
       XH,
       PHY_CODE,
       PHY_NAME,
       POSITION_CODE,
       POSITION_DESC,
       STD_DESC,
       LV_CODE,
       LV_DESC,
       GROOVE_POS,
       GROOVE_DIR,
       COVERAGE,
       RATE,
       DESC_RATE,
       DESC_VAL,
       GROUP_SEQ,
       MEMO,
       MIN_D,
       MAX_D,
       MIN_H,
       MAX_H,
       MSC_PLINE
        ,(SELECT baseNAME FROM com_base_info WHERE basecode=T.STD_DESC ) STD_NAME

      , (SELECT std_min_percent || '%~' || STD_MAX_PERCENT || '%' FROM CRAFT_ORD_DESIGN_STD_SIC C WHERE C.DESGIN_KEY = T.DESGIN_KEY  AND C.MSC_PLINE = T.MSC_PLINE
    AND C.PROCESS_CODE  IN ('F','G')
      -- AND SIC = ?
       AND  (CASE WHEN  instr(T.PHY_NAME,'管端')>0 THEN '404020' ELSE '404019' END)= C.BIAS_CODE     AND ROWNUM =1  )  SIC
  FROM CRAFT_ORD_DESIGN_STD_DIC T
 WHERE DESGIN_KEY = ?
   AND DIC =?
   AND MSC_PLINE =?
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.getCrackPara" desc="">
		<![CDATA[
              SELECT *
  FROM HTT_CRACK_DETECTION_PARA
 WHERE RESULT_NO =?
   AND REPORT_NO = ?
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.getReportDeafault" desc="">
		<![CDATA[
              SELECT *
  FROM HTT_REPORT_DEFAULT
 WHERE PLINE_CODE = ?
   AND REPORT_NO = ?
   AND MACHINE_NO = ?
   AND COLUMN_VISIBLE= '1'
   ORDER BY REPORT_SEQ
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.getReportType" desc="">
		<![CDATA[
 SELECT DISTINCT REPORT_NO
   FROM HTT_REPORT_DEFAULT
  WHERE PLINE_CODE = ?
    AND COLUMN_VISIBLE = '1'

        ]]>
	</query>



	<query id="FrmHttCrackDetectResult.getHttSign" desc="">
		<![CDATA[
              SELECT *
  FROM HTT_SIGNATURE
 WHERE PLINE_CODE = ?
   AND PROCESS_NO = ?
   ORDER BY USER_ID
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.AddCrackDetectionPara" desc="新增探伤实绩">
		<![CDATA[
INSERT INTO HTT_CRACK_DETECTION_PARA
  (HEAT_PLAN_NO,
   JUDGE_STOVE_NO,
   BATCH_NO,
   REPORT_NO,
   LONGITUDINAL_EXTERNAL,
   LONGITUDINAL_INTERNAL,
   TRANSVERSE_EXTERNAL,
   TRANSVERSE_INTERNAL,
   WALL_THICKNESS,
   LAMINATION,
   PROBE_ID,
   STANDARD_ID,
   TESTING_TECHNOLOGY,
   ARTIFICIAL_NOTCH_SHAPE,
   TESTING_METHOD,
   COUPLANT,
   PROBE_ROTARY_SPEED,
   TESTING_SPEED,
   UNTESTED_AREA,
   NDT_PROCEDURE_NO,
   PITCH,
   ROTATION_SPEED,
   PIPE_RUNNING_SPEED,
   CONVEYING_SPEED,
   INSTRUMENT_TYPE,
   TRANSDUCER_TYPE,
   SUPPRESSION,
   TESTING_LENGTH,
   OPERATOR_NAME,
   OPERATOR_LEVEL,
   SIGNATORY,
   SIGNATORY_LEVEL,
   SHIFT,
   PRO_DATE,
   REPORT_PATH,
   MEMO,
   RESULT_NO,
   PROBE_RUNNING_SPEED,
   OBLIQUE_EXTERNAL,
   OBLIQUE_INTERNAL,
   PIPE_ROTARY_SPEED,
   COL_GROUP,CALIBRATION_METHOD,ACCPETANCE_LEVEL,HOLE_DIAMETER,EXCITATION_FREQUENCY_NC89,EXCITATION_FREQUENCY_NC180,TESTING_SPEED_NC89,TESTING_SPEED_NV180,
   GAIN_LONGITUDINAL,GAIN_TRANSVERSE,
       LIFTING_FORCE,
       MAGNETIZATION_METHOD,
       SHIM_TYPE,
       MAGNETIZATION_TIME,
       TESTING_AREA,
       LONGITUDINAL_MAGNETIZATION_C,
       LONGITUDINAL_EMISSION_F,
       TRANSVERSE_MAGNETIZATION_C,
       TRANSVERSE_EMISSION_F,
       CIRCUMFERENTIAL_TRAVEL_SPEED,
       SHIM_MAGNETICSARTICLE,
       MAGNETIC_TYPE,
       TEST_PART,
       MAGNETIC_TYPE_S,
       MAGNETIC_SUSPENDING_L,
       CIRCUMFERENTIAL_CURRENT,
       LONGITUDINAL_CURRENT,
       SENSITIVITY,
       COIL_CURRENT_INTENSITY,
       CENTER_STICK_CURRENT,
       DEMAGNETIZA_METHOD,LONGITUDINAL_MAGNETIZATION_C2,
   LONGITUDINAL_EMISSION_F2,
   TRANSVERSE_MAGNETIZATION_C2,
   TRANSVERSE_EMISSION_F2,
   LONGITUDINAL_MAGNETIZATION_C1,
   LONGITUDINAL_EMISSION_F1,
   TRANSVERSE_MAGNETIZATION_C1,
   TRANSVERSE_EMISSION_F1,
   MAGNETIZATION_C1,
   MAGNETIZATION_C2,
   MAGNETIZATION_C3,
   EMISSION_F1,
   EMISSION_F2,
   EMISSION_F3,
          STANDARD_DEFECT,
       STANDARD_WALL,
       STANDARD_LAM,
       STANDARD_OBLIQUE,
       COVERAGE_DEFECT,
       COVERAGE_WALL,
       COVERAGE_LAM,
       COVERAGE_OBLIQUE,
       FREQUENCY_DEFECT,
       FREQUENCY_WALL,
       FREQUENCY_LAM,
       FREQUENCY_OBLIQUE,
       OBLIQUE,REPORT_NUMBER,ARTIFICIAL_DEFECT_SHAPE,
       SAMPLE_NO,BLACK_LIGHT,WHITE_LIGHT,WET_PARTICLE_CONCENTRATION,INSTRUMENT_NAME,
       CIRCUMFERENTIAL_MAGNETIZATION,
       SUPERVISOR,
       SUPERVISOR_LEVEL,
       test_way

       )
VALUES
  ('#HEAT_PLAN_NO#',
   '#JUDGE_STOVE_NO#',
   '#BATCH_NO#',
   '#REPORT_NO#',
   '#LONGITUDINAL_EXTERNAL#',
   '#LONGITUDINAL_INTERNAL#',
   '#TRANSVERSE_EXTERNAL#',
   '#TRANSVERSE_INTERNAL#',
   '#WALL_THICKNESS#',
   '#LAMINATION#',
   '#PROBE_ID#',
   '#STANDARD_ID#',
   '#TESTING_TECHNOLOGY#',
   '#ARTIFICIAL_NOTCH_SHAPE#',
   '#TESTING_METHOD#',
   '#COUPLANT#',
   '#PROBE_ROTARY_SPEED#',
   '#TESTING_SPEED#',
   '#UNTESTED_AREA#',
   '#NDT_PROCEDURE_NO#',
   '#PITCH#',
   '#ROTATION_SPEED#',
   '#PIPE_RUNNING_SPEED#',
   '#CONVEYING_SPEED#',
   '#INSTRUMENT_TYPE#',
   '#TRANSDUCER_TYPE#',
   '#SUPPRESSION#',
   '#TESTING_LENGTH#',
   '#OPERATOR_NAME#',
   '#OPERATOR_LEVEL#',
   '#SIGNATORY#',
   '#SIGNATORY_LEVEL#',
   '#SHIFT#',
   TO_DATE('#PRO_DATE#', 'YYYY-MM-DD HH24:MI:SS'),
   '#REPORT_PATH#',
   '#MEMO#',
   '#RESULT_NO#',
   '#PROBE_RUNNING_SPEED#',
   '#OBLIQUE_EXTERNAL#',
   '#OBLIQUE_INTERNAL#',
   '#PIPE_ROTARY_SPEED#',
   '#COL_GROUP#','#CALIBRATION_METHOD#','#ACCPETANCE_LEVEL#','#HOLE_DIAMETER#','#EXCITATION_FREQUENCY_NC89#','#EXCITATION_FREQUENCY_NC180#','#TESTING_SPEED_NC89#','#TESTING_SPEED_NV180#',
   '#GAIN_LONGITUDINAL#','#GAIN_TRANSVERSE#',
       '#LIFTING_FORCE#',
       '#MAGNETIZATION_METHOD#',
       '#SHIM_TYPE#',
       '#MAGNETIZATION_TIME#',
       '#TESTING_AREA#',
       '#LONGITUDINAL_MAGNETIZATION_C#',
       '#LONGITUDINAL_EMISSION_F#',
       '#TRANSVERSE_MAGNETIZATION_C#',
       '#TRANSVERSE_EMISSION_F#',
       '#CIRCUMFERENTIAL_TRAVEL_SPEED#',
       '#SHIM_MAGNETICSARTICLE#',
       '#MAGNETIC_TYPE#',
       '#TEST_PART#',
       '#MAGNETIC_TYPE_S#',
       '#MAGNETIC_SUSPENDING_L#',
       '#CIRCUMFERENTIAL_CURRENT#',
       '#LONGITUDINAL_CURRENT#',
       '#SENSITIVITY#',
       '#COIL_CURRENT_INTENSITY#',
       '#CENTER_STICK_CURRENT#',
       '#DEMAGNETIZA_METHOD#',
       '#LONGITUDINAL_MAGNETIZATION_C2#',
   '#LONGITUDINAL_EMISSION_F2#',
   '#TRANSVERSE_MAGNETIZATION_C2#',
   '#TRANSVERSE_EMISSION_F2#',
   '#LONGITUDINAL_MAGNETIZATION_C1#',
   '#LONGITUDINAL_EMISSION_F1#',
   '#TRANSVERSE_MAGNETIZATION_C1#',
   '#TRANSVERSE_EMISSION_F1#',
   '#MAGNETIZATION_C1#',
   '#MAGNETIZATION_C2#',
   '#MAGNETIZATION_C3#',
   '#EMISSION_F1#',
   '#EMISSION_F2#',
   '#EMISSION_F3#',
       '#STANDARD_DEFECT#',
       '#STANDARD_WALL#',
       '#STANDARD_LAM#',
       '#STANDARD_OBLIQUE#',
       '#COVERAGE_DEFECT#',
       '#COVERAGE_WALL#',
       '#COVERAGE_LAM#',
       '#COVERAGE_OBLIQUE#',
       '#FREQUENCY_DEFECT#',
       '#FREQUENCY_WALL#',
       '#FREQUENCY_LAM#',
       '#FREQUENCY_OBLIQUE#',
       '#OBLIQUE#','#REPORT_NUMBER#','#ARTIFICIAL_DEFECT_SHAPE#',
        '#SAMPLE_NO#','#BLACK_LIGHT#','#WHITE_LIGHT#','#WET_PARTICLE_CONCENTRATION#','#INSTRUMENT_NAME#'
        ,'#CIRCUMFERENTIAL_MAGNETIZATION#',
        '#SUPERVISOR#',
          '#SUPERVISOR_LEVEL#',
           '#TEST_WAY#'
       )
		]]>
	</query>



	<query id="FrmHttCrackDetectResult.getMaxProbeId" desc="">
		<![CDATA[
              	SELECT ? ||
	LPAD(NVL(MAX(TO_NUMBER(SUBSTR(PROBE_ID, LENGTH(PROBE_ID) - 2))),
	0) + 1,
	3,
	'0') PROBE_ID
	FROM HTT_CRACK_DETECTION_PROBE
	WHERE PROBE_ID LIKE ? || '___'
        ]]>
	</query>

	<query id="FrmHttCrackDetectResult.getMaxStandID" desc="">
		<![CDATA[
              	SELECT ? ||
	LPAD(NVL(MAX(TO_NUMBER(SUBSTR(STANDARD_ID, LENGTH(STANDARD_ID) - 2))),
	0) + 1,
	3,
	'0') STANDARD_ID
	FROM HTT_CRACK_DETECTION_STANDARD
	WHERE STANDARD_ID LIKE ? || '___'
        ]]>
	</query>


	<query id="FrmHttCrackDetectResult.AddCrackDetectionProbe" desc="">
		<![CDATA[
INSERT INTO HTT_CRACK_DETECTION_PROBE
  (PROBE_ID,
   PROBE_TYPE_CODE,
   PROBE_QTY,
   PROBE_PARAMETERS,
   PROBE_SEQ,
   PROBE_TYPE_NAME)
VALUES
  ('#PROBE_ID#',
   '#PROBE_TYPE_CODE#',
   '#PROBE_QTY#',
   '#PROBE_PARAMETERS#',
   '#PROBE_SEQ#',
   '#PROBE_TYPE_NAME#')
		]]>
	</query>
	<query id="FrmHttCrackDetectResult.AddCrackDetectionStandard" desc="">
		<![CDATA[
INSERT INTO HTT_CRACK_DETECTION_STANDARD
  (STANDARD_ID, STANDARD_CODE, STANDARD_NAME, STANDARD_SEQ)
VALUES
  ('#STANDARD_ID#', '#STANDARD_CODE#', '#STANDARD_NAME#', '#STANDARD_SEQ#')

		]]>
	</query>

	<query id="FrmHttCrackDetectResult.UpdateReportUrl" desc="">
		<![CDATA[
UPDATE  HTT_CRACK_DETECTION_PARA SET REPORT_PATH = ? WHERE RESULT_NO = ? AND REPORT_NO =?
		]]>
	</query>


	<query id="FrmHttCrackDetectResult.QueryNotchInfo" desc="">
		<![CDATA[
SELECT PRO_ORDER_NO, E.NOTCH_LENGTH, E.NOTCH_WIDTH, E.NOTCH_DEPTH
  FROM HTT_CRACK_HEADINFO H, HTT_CRACK_DETECTION_ET E
 WHERE H.RESULT_NO = E.RESULT_NO
   AND PRO_ORDER_NO = ?
   AND E.NOTCH_LENGTH IS NOT NULL
   AND E.NOTCH_WIDTH IS NOT NULL
   AND E.NOTCH_DEPTH IS NOT NULL
   AND ROWNUM =1
		]]>
	</query>



	<query id="FrmHttCrackDetectResult.updateResultData" desc="">
        <![CDATA[
update htt_crack_detection_et t 
SET
   NOTCH_INFO = '#NOTCH_INFO#',
   NOTCH_LENGTH ='#NOTCH_LENGTH#',
   NOTCH_WIDTH ='#NOTCH_WIDTH#',
   NOTCH_DEPTH = '#NOTCH_DEPTH#',
   TESTING_GRADE = '#TESTING_GRADE#',
    TESTING_STANDARD = '#TESTING_STANDARD#'
    WHERE RESULT_NO= '#RESULT_NO#'

        ]]>
	</query>
	
	
	<query id="FrmHttCrackDetectResult.UpdateCrackDetectionPara" desc="">
		<![CDATA[
 UPDATE HTT_CRACK_DETECTION_PARA T
   SET 
        T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#',
        T.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#',
        T.BATCH_NO = '#BATCH_NO#',
        T.REPORT_NO = '#REPORT_NO#',
        T.LONGITUDINAL_EXTERNAL = '#LONGITUDINAL_EXTERNAL#',
        T.LONGITUDINAL_INTERNAL = '#LONGITUDINAL_INTERNAL#',
        T.TRANSVERSE_EXTERNAL = '#TRANSVERSE_EXTERNAL#',
        T.TRANSVERSE_INTERNAL = '#TRANSVERSE_INTERNAL#',
        T.WALL_THICKNESS = '#WALL_THICKNESS#',
        T.LAMINATION = '#LAMINATION#',
        T.PROBE_ID = '#PROBE_ID#',
        T.STANDARD_ID = '#STANDARD_ID#',
        T.TESTING_TECHNOLOGY = '#TESTING_TECHNOLOGY#',
        T.ARTIFICIAL_NOTCH_SHAPE = '#ARTIFICIAL_NOTCH_SHAPE#',
        T.TESTING_METHOD = '#TESTING_METHOD#',
        T.COUPLANT = '#COUPLANT#',
        T.PROBE_ROTARY_SPEED = '#PROBE_ROTARY_SPEED#',
        T.TESTING_SPEED = '#TESTING_SPEED#',
        T.UNTESTED_AREA = '#UNTESTED_AREA#',
        T.NDT_PROCEDURE_NO = '#NDT_PROCEDURE_NO#',
        T.PITCH = '#PITCH#',
        T.ROTATION_SPEED = '#ROTATION_SPEED#',
        T.PIPE_RUNNING_SPEED = '#PIPE_RUNNING_SPEED#',
        T.CONVEYING_SPEED = '#CONVEYING_SPEED#',
        T.INSTRUMENT_TYPE = '#INSTRUMENT_TYPE#',
        T.TRANSDUCER_TYPE = '#TRANSDUCER_TYPE#',
        T.SUPPRESSION = '#SUPPRESSION#',
        T.TESTING_LENGTH = '#TESTING_LENGTH#',
        T.OPERATOR_NAME = '#OPERATOR_NAME#',
        T.OPERATOR_LEVEL = '#OPERATOR_LEVEL#',
        T.SIGNATORY = '#SIGNATORY#',
        T.SIGNATORY_LEVEL = '#SIGNATORY_LEVEL#',
        T.SHIFT = '#SHIFT#',
      --  T.PRO_DATE = SYSDATE,
        T.CREATE_DATE = SYSDATE,
        T.REPORT_PATH = '#REPORT_PATH#',
        T.MEMO = '#MEMO#',
        T.RESULT_NO = '#RESULT_NO#',
        T.PROBE_RUNNING_SPEED = '#PROBE_RUNNING_SPEED#',
        T.OBLIQUE_EXTERNAL = '#OBLIQUE_EXTERNAL#',
        T.OBLIQUE_INTERNAL = '#OBLIQUE_INTERNAL#',
        T.PIPE_ROTARY_SPEED = '#PIPE_ROTARY_SPEED#',
        T.COL_GROUP = '#COL_GROUP#',
        T.CALIBRATION_METHOD = '#CALIBRATION_METHOD#',
        T.ACCPETANCE_LEVEL = '#ACCPETANCE_LEVEL#',
        T.HOLE_DIAMETER = '#HOLE_DIAMETER#',
        T.EXCITATION_FREQUENCY_NC89 = '#EXCITATION_FREQUENCY_NC89#',
        T.EXCITATION_FREQUENCY_NC180 = '#EXCITATION_FREQUENCY_NC180#',
        T.TESTING_SPEED_NC89 = '#TESTING_SPEED_NC89#',
        T.TESTING_SPEED_NV180 = '#TESTING_SPEED_NV180#',
        T.GAIN_LONGITUDINAL = '#GAIN_LONGITUDINAL#',
        T.GAIN_TRANSVERSE = '#GAIN_TRANSVERSE#',
        T.LIFTING_FORCE = '#LIFTING_FORCE#',
        T.MAGNETIZATION_METHOD = '#MAGNETIZATION_METHOD#',
        T.SHIM_TYPE = '#SHIM_TYPE#',
        T.MAGNETIZATION_TIME = '#MAGNETIZATION_TIME#',
        T.TESTING_AREA = '#TESTING_AREA#',
        T.LONGITUDINAL_MAGNETIZATION_C = '#LONGITUDINAL_MAGNETIZATION_C#',
        T.LONGITUDINAL_EMISSION_F = '#LONGITUDINAL_EMISSION_F#',
        T.TRANSVERSE_MAGNETIZATION_C = '#TRANSVERSE_MAGNETIZATION_C#',
        T.TRANSVERSE_EMISSION_F = '#TRANSVERSE_EMISSION_F#',
        T.CIRCUMFERENTIAL_TRAVEL_SPEED = '#CIRCUMFERENTIAL_TRAVEL_SPEED#',
        T.SHIM_MAGNETICSARTICLE = '#SHIM_MAGNETICSARTICLE#',
        T.MAGNETIC_TYPE = '#MAGNETIC_TYPE#',
        T.TEST_PART = '#TEST_PART#',
        T.MAGNETIC_TYPE_S = '#MAGNETIC_TYPE_S#',
        T.MAGNETIC_SUSPENDING_L = '#MAGNETIC_SUSPENDING_L#',
        T.CIRCUMFERENTIAL_CURRENT = '#CIRCUMFERENTIAL_CURRENT#',
        T.LONGITUDINAL_CURRENT = '#LONGITUDINAL_CURRENT#',
        T.SENSITIVITY = '#SENSITIVITY#',
        T.COIL_CURRENT_INTENSITY = '#COIL_CURRENT_INTENSITY#',
        T.CENTER_STICK_CURRENT = '#CENTER_STICK_CURRENT#',
        T.DEMAGNETIZA_METHOD = '#DEMAGNETIZA_METHOD#',
        T.LONGITUDINAL_MAGNETIZATION_C2 = '#LONGITUDINAL_MAGNETIZATION_C2#',
        T.LONGITUDINAL_EMISSION_F2 = '#LONGITUDINAL_EMISSION_F2#',
        T.TRANSVERSE_MAGNETIZATION_C2 = '#TRANSVERSE_MAGNETIZATION_C2#',
        T.TRANSVERSE_EMISSION_F2 = '#TRANSVERSE_EMISSION_F2#',
        T.LONGITUDINAL_MAGNETIZATION_C1 = '#LONGITUDINAL_MAGNETIZATION_C1#',
        T.LONGITUDINAL_EMISSION_F1 = '#LONGITUDINAL_EMISSION_F1#',
        T.TRANSVERSE_MAGNETIZATION_C1 = '#TRANSVERSE_MAGNETIZATION_C1#',
        T.TRANSVERSE_EMISSION_F1 = '#TRANSVERSE_EMISSION_F1#',
        T.MAGNETIZATION_C1 = '#MAGNETIZATION_C1#',
        T.MAGNETIZATION_C2 = '#MAGNETIZATION_C2#',
        T.MAGNETIZATION_C3 = '#MAGNETIZATION_C3#',
        T.EMISSION_F1 = '#EMISSION_F1#',
        T.EMISSION_F2 = '#EMISSION_F2#',
        T.EMISSION_F3 = '#EMISSION_F3#',
        T.STANDARD_DEFECT = '#STANDARD_DEFECT#',
        T.STANDARD_WALL = '#STANDARD_WALL#',
        T.STANDARD_LAM = '#STANDARD_LAM#',
        T.STANDARD_OBLIQUE = '#STANDARD_OBLIQUE#',
        T.COVERAGE_DEFECT = '#COVERAGE_DEFECT#',
        T.COVERAGE_WALL = '#COVERAGE_WALL#',
        T.COVERAGE_LAM = '#COVERAGE_LAM#',
        T.COVERAGE_OBLIQUE = '#COVERAGE_OBLIQUE#',
        T.FREQUENCY_DEFECT = '#FREQUENCY_DEFECT#',
        T.FREQUENCY_WALL = '#FREQUENCY_WALL#',
        T.FREQUENCY_LAM = '#FREQUENCY_LAM#',
        T.FREQUENCY_OBLIQUE = '#FREQUENCY_OBLIQUE#',
        T.OBLIQUE = '#OBLIQUE#',
        T.REPORT_NUMBER = '#REPORT_NUMBER#',
        T.ARTIFICIAL_DEFECT_SHAPE = '#ARTIFICIAL_DEFECT_SHAPE#',
        T.SAMPLE_NO = '#SAMPLE_NO#',
        T.BLACK_LIGHT = '#BLACK_LIGHT#',
        T.WHITE_LIGHT = '#WHITE_LIGHT#',
        T.WET_PARTICLE_CONCENTRATION = '#WET_PARTICLE_CONCENTRATION#',
        T.INSTRUMENT_NAME = '#INSTRUMENT_NAME#',
        T.CIRCUMFERENTIAL_MAGNETIZATION = '#CIRCUMFERENTIAL_MAGNETIZATION#',
        T.SUPERVISOR='#SUPERVISOR#',
        T.SUPERVISOR_LEVEL='#SUPERVISOR_LEVEL#',
        t.TEST_WAY='#TEST_WAY#'
 WHERE
T.REPORT_NO = '#REPORT_NO#'
AND T.RESULT_NO = '#RESULT_NO#'
		]]>
	</query>

	

</queryMap>