<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="镦拔扩订单">

	<query id="FrmOrderDbk.queryDbkM" desc="镦拔扩订单 查询镦拔扩订单">
             <![CDATA[
              SELECT 
       T.PRO_PLAN_ID,
       T.PRO_ORDER_NO,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.PLAN_GROUP_ID,
       T.REQ_BL_ID,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.GRADECODE,
       T.GRADENAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.GETRATE,
       T.OUTDIAMETER_IN,
       T.WALLTHICK_IN,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.INWL_ID,
       T.INWL_DESC,
       T.PLANWEIGHT,
       T.PLANNUM,
       T.MATCH_WEIGHT,
       T.MATCH_NUM,
       T.IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLANWEIGHT,
       T.REQ_PROD_WEIGHT,
       T.IN_WEIGHT,
       T.IN_NUM,
       TO_CHAR(T.PLAN_TIME, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME,
       T.PLAN_USETIME,
       T.ISENDGX,
       T.PREVIOUS_GX,
       T.PREV_GXPLAN_ID,
       T.IF_MONITOR_DBK,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.PRO_MONTH,
       T.PLANSTATUS,
       T.FINISHWEIGHT,
       T.CREATE_NAME,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       T.UPDATE_NAME,
       TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
       T.PREVIOUS_GX_CODE
 FROM PLN_GX_DBK_M T
 WHERE 1=1
                 ]]>
	</query>

	<query id="FrmOrderDbk.queryDbk" desc="镦拔扩订单 查询镦拔扩工序合同">
             <![CDATA[
                  SELECT 
       T.PRO_ORDER_NO,
       T.PLAN_GROUP_ID,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       T.ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.INDEX_SEQ,
       T.BOM,
       T.BACKLOG_SEQ,
       T.STEELCODE,
       T.STEELNAME,
       T.OUTWL_ID,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.AIMWALLTHICK,
       T.LENGTHMAX,
       T.LENGTHMIN,
       T.AIMLENGTH,
       T.INWL_ID,
       T.OUTDIAMETER_IN,
       T.WALLTHICK_IN,
       T.LENGTHMAX_IN,
       T.LENGTHMIN_IN,
       T.GETRATE,
       T.BJ_TYPE,
       T.PLINE_CODE_MAY,
       T.PLINE_NAME_MAY,
       T.ORDERWEIGHT,
       T.ORDERNUM,
       T.MATCH_WT,
       T.MATCH_NUM,
       T.IFBUYPLAN,
       T.BUYPLANID,
       T.BUYPLAN_WT,
       T.REQ_PROD_WT,
       T.REQ_PROD_NUM,
       TO_CHAR(T.PROD_END_DATE, 'YYYY-MM-DD HH24:MI:SS') PROD_END_DATE,
       T.ORDERSTATUS,
       T.IS_PLANED,
       T.PRO_PLAN_ID,
       T.FINISHWEIGHT,
       T.ISENDGX,
       T.NEXT_GX,
       T.IS_EXTRA_ORD,
       T.IF_MONITOR_BJ,
       T.PRDCR_NO,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CREATE_NAME,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       T.UPDATE_NAME,
       TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
       T.CRAFT_SEQ,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.STATION_ROAD,
       T.PREVIOUS_GX,
       T.PREVIOUS_GX_CODE
 FROM PLN_ORDER_DBK T
 WHERE 1=1
 AND T.PRO_PLAN_ID IS NOT NULL
                 ]]>
	</query>

</queryMap>