<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="下拉框动态数据获取管理">

	<query id="ProcessTracking.addProcessOrderC" desc="新增交货行进程记录">
		<![CDATA[
		 INSERT INTO PROCESS_ORDER_C(
        ELIM_NUM,
        ELIM_WGT,
        CHARGE_NUM,
        CHARGE_WGT,
        ORD_LN_PK,
        ORD_LN_DLY_PK,
        PROCESS_CDOE,
        ORD_PK,
        PROCESS_DESC,
        ORDER_NO,
        ORDER_SEQ,
        DELIVERY_NO,
        DELVRY_EDATE,
        PSS_NUM,
        PSS_WGT,
        WRK_NUM,
        WRK_WGT,
        EST_NUM,
        EST_WGT,
        INS_NUM,
        INS_WGT,
        PAY_NUM,
        PAY_WGT,
        OUT_NUM,
        OUT_WGT,
        EVENT_ID,
        EVENT_DESC,
        FORM_NAME,
        CALL_FUNC_CODING,
        UPDATE_TIME)
 VALUES( 
        '#ELIM_NUM#',
        '#ELIM_WGT#',
        '#CHARGE_NUM#',
        '#CHARGE_WGT#',
        '#ORD_LN_PK#',
        '#ORD_LN_DLY_PK#',
        '#PROCESS_CDOE#',
        '#ORD_PK#',
        '#PROCESS_DESC#',
        '#ORDER_NO#',
        '#ORDER_SEQ#',
        '#DELIVERY_NO#',
        SYSDATE,
        '#PSS_NUM#',
        '#PSS_WGT#',
        '#WRK_NUM#',
        '#WRK_WGT#',
        '#EST_NUM#',
        '#EST_WGT#',
        '#INS_NUM#',
        '#INS_WGT#',
        '#PAY_NUM#',
        '#PAY_WGT#',
        '#OUT_NUM#',
        '#OUT_WGT#',
        '#EVENT_ID#',
        '#EVENT_DESC#',
        '#FORM_NAME#',
        '#CALL_FUNC_CODING#',
        SYSDATE)
		]]>
	</query>

	<query id="ProcessTracking.updateProcessOrderC" desc="修改交货行进程记录">
		<![CDATA[
		UPDATE PROCESS_ORDER_C
   SET EVENT_ID         = ?,
       EVENT_DESC       = ?,
       FORM_NAME        = ?,
       CALL_FUNC_CODING = ?,
       UPDATE_TIME      = SYSDATE,
		]]>
	</query>

	<query id="ProcessTracking.queryProcessOrderC" desc="查询交货行进程记录">
		<![CDATA[
		    SELECT ORD_LN_PK, ORD_LN_DLY_PK, PROCESS_CDOE, ORD_PK, PROCESS_DESC, ORDER_NO, ORDER_SEQ, DELIVERY_NO, DELVRY_EDATE, 
              PSS_NUM, PSS_WGT, WRK_NUM, WRK_WGT, EST_NUM, EST_WGT, INS_NUM, INS_WGT, PAY_NUM, PAY_WGT, OUT_NUM, OUT_WGT,
              EVENT_ID, EVENT_DESC, FORM_NAME, CALL_FUNC_CODING, UPDATE_TIME, ELIM_NUM, ELIM_WGT, CHARGE_NUM, CHARGE_WGT 
         FROM PROCESS_ORDER_C T WHERE T.ORD_LN_DLY_PK=? AND T.PROCESS_CDOE=?
		]]>
	</query>

	<query id="ProcessTracking.addProcessOrderM" desc="新增合同行进程记录">
		<![CDATA[
		 INSERT INTO PROCESS_ORDER_M(
        FINAL_USER_DESC,
        DELVRY_RANGE_TPE,
        DELVRY_RANGE_MIN,
        DELVRY_RANGE_MAX,
        DELVRY_EDATE,
        DELVRY_BDATE,
        ORDER_QTY,
        ORDER_UNIT,
        ORD_ENSU_TOTL_LEN,
        PRDCT_WGT,
        PRDCT_UNIT,
        PSS_NUM,
        PSS_WGT,
        PAY_NUM,
        PAY_WGT,
        OUT_NUM,
        OUT_WGT,
        EVENT_ID,
        EVENT_DESC,
        FORM_NAME,
        CALL_FUNC_CODING,
        UPDATE_TIME,
        ELIM_NUM,
        ELIM_WGT,
        CHARGE_NUM,
        CHARGE_WGT,
        ORD_LN_PK,
        ORD_PK,
        ORDER_NO,
        ORDER_SEQ,
        PSS_CODE,
        ORDER_STS,
        ORDER_LN_STATUS,
        ORDER_TYP,
        PSC,
        PSC_DESC,
        MSC,
        MSC_DESC,
        MSC_STYLE,
        MEMO,
        USE_CODE,
        CUST_ALPHA_NO,
        USE_DESC,
        PRD_CLS,
        PRODUCCODE,
        PRODUCNAME,
        STD_CODE,
        STD_NAME,
        STEELCODE,
        STEELNAME,
        STD_STYLE,
        STD_STYLE_DESC,
        SPEC_CODE,
        SPEC_NAME,
        MODEL_CODE,
        MODEL_DESC,
        LEN_NO,
        LEN_DESC,
        LEN_UNIT,
        LEN_MIN,
        LEN_MAX,
        SHRT_LEN_RATO,
        SHORTEST,
        LONG_LEN_RATO,
        LONGEST,
        SHRT_STOVE,
        AVG_LEN_MIN,
        DIFRNC_LEN_MAX,
        ENDLEN_SPECSTD,
        SIGL_LEN,
        MPS_DESC,
        MPS_NO,
        PRDCR_NO,
        PRDCR_DESC,
        ADD_ASK_NO,
        ORDER_ADD_DESC,
        ORDER_SPECIAL_DESC,
        FINAL_USER)
 VALUES( 
        '#FINAL_USER_DESC#',
        '#DELVRY_RANGE_TPE#',
        '#DELVRY_RANGE_MIN#',
        '#DELVRY_RANGE_MAX#',
        SYSDATE,
        SYSDATE,
        '#ORDER_QTY#',
        '#ORDER_UNIT#',
        '#ORD_ENSU_TOTL_LEN#',
        '#PRDCT_WGT#',
        '#PRDCT_UNIT#',
        '#PSS_NUM#',
        '#PSS_WGT#',
        '#PAY_NUM#',
        '#PAY_WGT#',
        '#OUT_NUM#',
        '#OUT_WGT#',
        '#EVENT_ID#',
        '#EVENT_DESC#',
        '#FORM_NAME#',
        '#CALL_FUNC_CODING#',
        SYSDATE,
        '#ELIM_NUM#',
        '#ELIM_WGT#',
        '#CHARGE_NUM#',
        '#CHARGE_WGT#',
        '#ORD_LN_PK#',
        '#ORD_PK#',
        '#ORDER_NO#',
        '#ORDER_SEQ#',
        '#PSS_CODE#',
        '#ORDER_STS#',
        '#ORDER_LN_STATUS#',
        '#ORDER_TYP#',
        '#PSC#',
        '#PSC_DESC#',
        '#MSC#',
        '#MSC_DESC#',
        '#MSC_STYLE#',
        '#MEMO#',
        '#USE_CODE#',
        '#CUST_ALPHA_NO#',
        '#USE_DESC#',
        '#PRD_CLS#',
        '#PRODUCCODE#',
        '#PRODUCNAME#',
        '#STD_CODE#',
        '#STD_NAME#',
        '#STEELCODE#',
        '#STEELNAME#',
        '#STD_STYLE#',
        '#STD_STYLE_DESC#',
        '#SPEC_CODE#',
        '#SPEC_NAME#',
        '#MODEL_CODE#',
        '#MODEL_DESC#',
        '#LEN_NO#',
        '#LEN_DESC#',
        '#LEN_UNIT#',
        '#LEN_MIN#',
        '#LEN_MAX#',
        '#SHRT_LEN_RATO#',
        '#SHORTEST#',
        '#LONG_LEN_RATO#',
        '#LONGEST#',
        '#SHRT_STOVE#',
        '#AVG_LEN_MIN#',
        '#DIFRNC_LEN_MAX#',
        '#ENDLEN_SPECSTD#',
        '#SIGL_LEN#',
        '#MPS_DESC#',
        '#MPS_NO#',
        '#PRDCR_NO#',
        '#PRDCR_DESC#',
        '#ADD_ASK_NO#',
        '#ORDER_ADD_DESC#',
        '#ORDER_SPECIAL_DESC#',
        '#FINAL_USER#')
		]]>
	</query>

	<query id="ProcessTracking.updateProcessOrderM" desc="修改合同行进程记录">
		<![CDATA[
		UPDATE PROCESS_ORDER_M
   SET EVENT_ID         = ?,
       EVENT_DESC       = ?,
       FORM_NAME        = ?,
       CALL_FUNC_CODING = ?,
       UPDATE_TIME      = SYSDATE,
		]]>
	</query>

	<query id="ProcessTracking.queryProcessOrderM" desc="查询合同行进程记录">
		<![CDATA[
		SELECT ORD_LN_PK, ORD_PK, ORDER_NO, ORDER_SEQ, PSS_CODE, ORDER_STS, ORDER_LN_STATUS, ORDER_TYP, PSC,
       PSC_DESC, MSC, MSC_DESC, MSC_STYLE, MEMO, USE_CODE, CUST_ALPHA_NO, USE_DESC, PRD_CLS, PRODUCCODE,
       PRODUCNAME, STD_CODE, STD_NAME, STEELCODE, STEELNAME, STD_STYLE, STD_STYLE_DESC, SPEC_CODE, 
       SPEC_NAME, MODEL_CODE, MODEL_DESC, LEN_NO, LEN_DESC, LEN_UNIT, LEN_MIN, LEN_MAX, SHRT_LEN_RATO,
       SHORTEST, LONG_LEN_RATO, LONGEST, SHRT_STOVE, AVG_LEN_MIN, DIFRNC_LEN_MAX, ENDLEN_SPECSTD, SIGL_LEN,
       MPS_DESC, MPS_NO, PRDCR_NO, PRDCR_DESC, ADD_ASK_NO, ORDER_ADD_DESC, ORDER_SPECIAL_DESC, FINAL_USER,
       FINAL_USER_DESC, DELVRY_RANGE_TPE, DELVRY_RANGE_MIN, DELVRY_RANGE_MAX, DELVRY_EDATE, DELVRY_BDATE, 
       ORDER_QTY, ORDER_UNIT, ORD_ENSU_TOTL_LEN, PRDCT_WGT, PRDCT_UNIT, PSS_NUM, PSS_WGT, PAY_NUM, PAY_WGT,
       OUT_NUM, OUT_WGT, EVENT_ID, EVENT_DESC, FORM_NAME, CALL_FUNC_CODING, UPDATE_TIME, ELIM_NUM, ELIM_WGT,
       CHARGE_NUM, CHARGE_WGT FROM PROCESS_ORDER_M T
       WHERE T.ORD_LN_PK=?
		]]>
	</query>

	<query id="ProcessTracking.queryOrderLineByPk" desc="查询合同行信息">
		<![CDATA[
		SELECT ORD_PK,ORD_LN_PK,ORDER_SEQ,CUST_ALPHA_NO,PSC,PSC_DESC,MSC,MSC_DESC,MSC_STYLE,USE_CODE,USE_DESC,
       PRD_CLS,PRODUCCODE,PRODUCNAME,STD_CODE,STD_NAME,STEELCODE,STEELNAME,STD_STYLE,STD_STYLE_DESC,
       ORDER_SPEC_CODE,ORDER_SPEC_DESC,SPEC_CODE,SPEC_NAME,DIMATER,HEIGHT,MODEL_CODE,MODEL_DESC,LEN_NO,
       LEN_DESC,LEN_UNIT,LEN_MIN,LEN_MAX,SHRT_LEN_RATO,SHORTEST,LONG_LEN_RATO,LONGEST,SHRT_STOVE,
       AVG_LEN_MIN,DIFRNC_LEN_MAX,ENDLEN_SPECSTD,SIGL_LEN,ORDER_UNIT,ORDER_QTY,ORD_ENSU_TOTL_LEN,
       PRDCT_WGT,DELVRY_RANGE_TPE,DELVRY_RANGE_MIN,DELVRY_RANGE_MAX,FINAL_USER,FINAL_USER_DESC,
       OUTS_BILLET_FL,OUTS_STL_PIPE_FL,ASSEL_FL,PRODUCER_FL,PRDCR_NO,PRDCR_DESC,MPS_FL,MPS_NO,MPS_DESC,
       DELVRY_BDATE,DELVRY_EDATE,DELVRY_DESC,TRANS_DESC,ADD_ASK_NO,ORDER_ADD_DESC,ORDER_SPECIAL_FL,
       ORDER_SPECIAL_HEAD,ORDER_SPECIAL_PATH,ORDER_SPECIAL_DESC,ZBS,ORDER_PRICE,TRANS_PRICE,TEST_ID,
       TEST_PRICE,OUT_PRICE,BALNCE_PRICE,BE_ORDER_LN_STATUS,BE_OBJ_STS_OP,ORDER_LN_STATUS,OBJ_STS_OP,
       MEMO,VALIDFLAG,CREATE_NAME,CREATE_TIME,UPDATE_NAME,UPDATE_TIME,DELETE_NAME,DELETE_TIME,ORD_LN_PK_OLD,ISLOCK
  FROM SLM_ORDER_LINE T
 WHERE T.ORD_LN_PK = ?
   AND T.VALIDFLAG = '1'
		]]>
	</query>

	<query id="ProcessTracking.queryOrderLineDlyByPk" desc="查询交货行信息">
		<![CDATA[
		SELECT ORD_PK,ORD_LN_PK,ORD_LN_DLY_PK,DELIVERY_NO,DELVRY_BDATE,DELVRY_EDATE,DELVRY_QTY,ORDER_UNIT,
       WGT_ESTMT,ENSU_TOTL_LEN,RECEIV_NO,RECEIV_NM,DELVRY_ADDR,AGENCY_FL,RECEIV_ADDR,TRANSIT_TYP,
       TRANSIT_PLAN,TRANSIT_MNY,BE_DELIVERY_STATUS,BE_OBJ_STS_OP,DELIVERY_STATUS,OBJ_STS_OP,VALIDFLAG,
       CREATE_NAME,CREATE_TIME,UPDATE_NAME,UPDATE_TIME,DELETE_NAME,DELETE_TIME,ISLOCK,PICKUP_FLAG
  FROM SLM_ORDER_LINE_DELIVERY T
 WHERE T.ORD_LN_DLY_PK = ?
   AND T.VALIDFLAG = '1'
		]]>
	</query>


</queryMap>