<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="排产补量">
	<query id="FrmProdSchAmount.query" desc="查询">
		<![CDATA[
	SELECT T.PRO_ORDER_NO,
       T.PRO_PLAN_ID,
       T.GX_PLAN_NO,
       T.PLAN_GROUP_ID,
       T.ORDER_SOURCE,
       T.ORD_LN_DLY_PK,
       T.PLN_DIVIDE_ID,
       DECODE(T.ISENDGX,
              '1',
              NULLIF(T.ORDER_NO || '/' || T.ORDER_SEQ, '/'),
              T.PRO_PLAN_ID) PRO_PLAN_NO,
       NULLIF(T.ORDER_NO || '/' || T.ORDER_SEQ, '/') ORDER_NO,
       T.ORDER_SEQ,
       T.DELIVERY_NO,
       T.REQ_BL_ID,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.GRADECODE,
       T.GRADENAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.LENGTHDISC,
       T.INWL_ID,
       T.INWL_DESC,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.LEN_ROLL_MAX,
       T.LEN_ROLL_MIN,
       T.AIMOUTDIAMETER,
       T.AIMWALLTHICK,
       T.AIMLENGTH,
       T.DIAMETER_GP,
       T.LEN_GP_SINGLE,
       T.ROLL_LENGTH,
       T.LEN_CUTHEAD,
       T.LEN_CUTEND,
       T.OUTNUM_CUT,
       T.DIAMETER_MANDREL,
       T.PASS_CODE,
       T.PASS_NAME,
       T.IN_WEIGHT_S,
       T.IN_NUM_S,
       T.WEIGTH_S,
       T.NUM_S,
       T.ADD_WT_IN,
       T.ADD_NUM_IN,
       T.MATCH_WT_IN,
       T.MATCH_NUM_IN,
       DECODE(T.ISENDGX, '1', 'Y', '') ISENDGX,
       DECODE(T.IF_MONITOR_ZG, '1', '是', '/') IF_MONITOR_ZG,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.STATION_ROAD,
       T.PRO_MONTH,
       T.GX_PRO_SEQ,
       TO_CHAR(ROUND(TO_NUMBER(NVL(T.PLAN_USETIME, '0')) / 60, 2)) PLAN_USETIME,
       TO_CHAR(T.PLAN_TIME_B, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME_B,
       TO_CHAR(T.PLAN_TIME_E, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME_E,
       T.BATCHED_WT,
       T.BATCHED_NUM,
       T.FINISHWEIGHT,
       T.FINISHNUM,
       DECODE(T.EXE_STATUS,
              '0',
              '计划',
              '1',
              '生产中',
              '2',
              '已生产',
              '3' ， '关闭' ， '') EXE_STATUS,
       DECODE(T.IS_REPAIR_PLN, '1', 'Y', '') IS_REPAIR_PLN,
       T.REPAIR_TYPE,
       DECODE(T.IS_PLAN_OK, '1', 'Y', '') IS_PLAN_OK,
       DECODE(T.GPREQ_IF_OK, '1', 'Y', '') GPREQ_IF_OK,
       T.IF_EXPORT,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       T.MEMO,
       TO_CHAR(T.ISSUED_TIME, 'YYYY-MM-DD HH24:MI:SS') ISSUED_TIME,
       T.ISSUED_MAN,
       TO_CHAR(T.LAST_UNDOWN_TIME, 'YYYY-MM-DD HH24:MI:SS') LAST_UNDOWN_TIME,
       T.LAST_UNDOWN_MAN,
       T.VERSION_NO,
       T.PROCESSING_COST,
       T.TOTAL_COST,
       T.IF_STOVE_ISSUED,
       TO_CHAR(T.STOVE_ISSUED_TIME, 'YYYY-MM-DD HH24:MI:SS') STOVE_ISSUED_TIME,
       T.STOVE_ISSUED_MAN,
       T.IS_ONLOAD_LINE,
       T.OUTDIAMETER_ZG,
       T.WALLTHICK_ZG,
       T.WHOLE_BACKLOG_DESC,
       T.MSC,
       T.INDEX_SEQ,
       T.BOM,
       (SELECT S1.CRAFT_PATH
          FROM CRAFT_FILE_LV2 S1
         WHERE INSTR(T1.CRAFT_FILE_LV2_D, S1.PK) > 0
           AND INSTR(S1.PLINE_CODE, T.PLINE_CODE) > 0
           AND S1.VALIDFLAG = '1'
           AND S1.PROCESS_CODE = 'D') CRAFT_FILE_LV2_G,
       T1.CRAFT_PATH,
       T1.CRAFT_SEQ,
       T1.CRAFT_NO AS CRAFT_FILE_NO,
       T1.CRAFT_NAME AS CRAFT_FILE_MAN,
       T1.PRODUCCODE,
       T1.PRODUCNAME,
       T1.STD_CODE,
       T1.STD_NAME,
       T1.STD_STYLE_DESC,
       T1.SPEC_CODE,
       T1.SPEC_NAME,
       T1.MODEL_DESC,
       DECODE(T.IF_LEN_CONTROL, '1', '是', '0', '/') IF_LEN_CONTROL,
       DECODE(T.IF_MINUS_SIC_ROLL, '1', '是', '0', '/') IF_MINUS_SIC_ROLL,
       T.TUBE_END_RATIO,
       T.GPREQ_NUM,
       T.GPREQ_WEIGHT,
       T.VERIFY1,
       T.VERIFY2,
       T.VERIFY3,
       NVL(T.WEIGTH_S_MIN, 0) WEIGTH_S_MIN,
       (SELECT T9.BASENAME
          FROM COM_BASE_INFO T9
         WHERE T9.BASECODE = T.PRIORITY) PRIORITY,
       T.PRIORITY_MEMO,
       NVL(T.PLANS_NUM, 0) PLANS_NUM,
       T.ORIGINAL_NUMBER,
       T1.FINAL_USER_DESC,
       T.PROD_STANDARD,
       T.OUTPUT_STANDARD,
       T.THICKNESS_WALL,
       T.DECISION,
       T.PROCESS_DESC_C,
       DECODE(T.OUTS_BILLET_FL,'1','外购','0','自炼') OUTS_BILLET_FL,
       T1.OUTS_STL_PIPE_FL,
       ROUND(CASE
         WHEN T.DIAMETER_GP IS NOT NULL AND TO_NUMBER(T.DIAMETER_GP) > 0 THEN
          (TO_NUMBER(T.LEN_GP_SINGLE) / 1000) *
          (7.8 * 3.1415926 / 4 * TO_NUMBER(T.DIAMETER_GP) *
          TO_NUMBER(T.DIAMETER_GP) / 1000 / 1000)
         ELSE
          0
       END,3) BILLET_WEIGHT
  FROM PLN_ORDER_ZG_S T,
       (SELECT Q1.PRODUCCODE,
               Q1.PRODUCNAME,
               Q1.STD_CODE,
               Q1.STD_NAME,
               Q1.STD_STYLE_DESC,
               Q1.SPEC_CODE,
               Q1.SPEC_NAME,
               Q1.ORD_LN_DLY_PK,
               Q1.ORD_LN_PK,
               Q1.STEELCODE,
               Q1.STEELNAME,
               Q1.DELVRY_QTY,
               Q1.MODEL_DESC,
               Q2.CRAFT_SEQ,
               Q2.CRAFT_NO,
               Q3.CRAFT_NAME,
               Q4.ABRVITION FINAL_USER_DESC,
               Q1.LENGTHMAX,
               Q1.LENGTHMIN,
               Q1.OUTS_STL_PIPE_FL,
               NVL(Q2.CRAFT_PATH,
                   (SELECT C1.CRAFT_PATH
                      FROM CRAFT_ORD_DESIGN C2, CRAFT_ORD_DESIGN_FILE C1
                     WHERE C1.CRAFT_NO = C2.CRAFT_NO
                       AND C1.CRAFT_NO_V = C2.CRAFT_NO_V
                       AND C1.VALIDFLAG = '1'
                       AND C2.VALIDFLAG = '1'
                       AND C2.ORD_LN_PK = Q1.ORD_LN_PK)) AS CRAFT_PATH,
               Q2.CRAFT_FILE_LV2_D
          FROM PLN_SALEORD              Q1,
               CRAFT_ORD_DESIGN         Q2,
               CRAFT_ORD_DESIGN_APPOINT Q3,
               SLM_BASE_CUSTOMER        Q4
         WHERE Q1.ORD_LN_PK = Q2.ORD_LN_PK(+)
           AND Q1.ORD_LN_PK = Q3.ORD_LN_PK(+)
           AND Q2.VALIDFLAG(+) = '1'
           AND Q1.FINAL_USER = Q4.CUSTOMER_NO(+)) T1,
       (SELECT MIN(S.NEXT_GX) NEXT_GX,
               S.PRO_PLAN_ID,
               MIN(S.PLAN_GROUP_ID) PLAN_GROUP_ID
          FROM PLN_ORDER_ZG S
         GROUP BY S.PRO_PLAN_ID) T2
 WHERE T.ORD_LN_DLY_PK = T1.ORD_LN_DLY_PK(+)
   AND T.PRO_PLAN_ID = T2.PRO_PLAN_ID(+)
		]]>
	</query>
	<query id="FrmProdSchAmount.queryAddPlnOrderZgSStrat" desc="查询合同状态">
		<![CDATA[
		SELECT T.PRO_ORDER_NO,
       T.PRO_PLAN_ID,
       T.GX_PLAN_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.PLINE_CODE,
       T.PLINE_NAME,
       T.STEELCODE,
       T.STEELNAME,
       T.GRADECODE,
       T.GRADENAME,
       T.OUTDIAMETER,
       T.WALLTHICK,
       T.LENGTHDISC,
       T.INWL_ID,
       T.INWL_DESC,
       T.OUTWL_ID,
       T.OUTWL_DESC,
       T.LEN_ROLL_MAX,
       T.LEN_ROLL_MIN,
       T.AIMOUTDIAMETER,
       T.AIMWALLTHICK,
       T.AIMLENGTH,
       T.DIAMETER_GP,
       T.LEN_GP_SINGLE,
       T.ROLL_LENGTH,
       T.LEN_CUTHEAD,
       T.LEN_CUTEND,
       T.OUTNUM_CUT,
       T.DIAMETER_MANDREL,
       T.PASS_CODE,
       T.PASS_NAME,
       NVL(T.IN_WEIGHT_S, 0) IN_WEIGHT_S,
       NVL(T.IN_NUM_S, 0) IN_NUM_S,
       NVL(T.WEIGTH_S, 0) WEIGTH_S,
       NVL(T.NUM_S, 0) NUM_S,
       NVL(T.ADD_WT_IN, 0) ADD_WT_IN,
       NVL(T.ADD_NUM_IN, 0) ADD_NUM_IN,
       NVL(T.MATCH_WT_IN, 0) MATCH_WT_IN,
       NVL(T.MATCH_NUM_IN, 0) MATCH_NUM_IN,
       T.ISENDGX,
       T.IF_MONITOR_ZG,
       T.PRDCR_NO,
       T.MONITOR_POINT,
       T.CRAFT_FILE_NO,
       T.CRAFT_FILE_MAN,
       T.CRAFT_SEQ,
       T.STATION_ROAD,
       T.PRO_MONTH,
       T.CIC,
       T.PIC,
       T.SIC,
       T.DIC,
       T.WIC,
       T.GIC,
       T.GX_PRO_SEQ,
       T.PLAN_USETIME,
       TO_CHAR(T.PLAN_TIME_B, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME_B,
       TO_CHAR(T.PLAN_TIME_E, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME_E,
       T.BATCHED_WT,
       T.BATCHED_NUM,
       T.FINISHWEIGHT,
       T.FINISHNUM,
       T.EXE_STATUS,
       T.IS_REPAIR_PLN,
       T.REPAIR_TYPE,
       T.IS_PLAN_OK,
       T.GPREQ_IF_OK,
       T.GPREQ_ID,
       T.ZY_BATCH_ID,
       T.CIC_GROUP_GP,
       T.PIC_GROUP_GP,
       T.SIC_GROUP_GP,
       T.DIC_GROUP_GP,
       T.WIC_GROUP_GP,
       T.GIC_GROUP_GP,
       T.CIC_GP,
       T.PIC_GP,
       T.SIC_GP,
       T.DIC_GP,
       T.WIC_GP,
       T.GIC_GP,
       T.IF_EXPORT,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       T.MEMO,
       TO_CHAR(T.ISSUED_TIME, 'YYYY-MM-DD HH24:MI:SS') ISSUED_TIME,
       T.ISSUED_MAN,
       TO_CHAR(T.LAST_UNDOWN_TIME, 'YYYY-MM-DD HH24:MI:SS') LAST_UNDOWN_TIME,
       T.LAST_UNDOWN_MAN,
       T.VERSION_NO,
       T.PROCESSING_COST,
       T.TOTAL_COST,
       T.IF_STOVE_ISSUED,
       TO_CHAR(T.STOVE_ISSUED_TIME, 'YYYY-MM-DD HH24:MI:SS') STOVE_ISSUED_TIME,
       T.STOVE_ISSUED_MAN,
       T.IS_ONLOAD_LINE,
       T.OUTDIAMETER_ZG,
       T.WALLTHICK_ZG,
       T.PROCESS_CODE_C,
       T.PROCESS_DESC_C,
       T.MSC,
       T.INDEX_SEQ,
       T.BOM,
       T.WHOLE_BACKLOG_DESC,
       T.IF_CRAFT_LOCKED,
       T.IF_LEN_CONTROL,
       T.IF_MINUS_SIC_ROLL,
       T.AIMWALLTHICK_OLD,
       T.WEIGTH_S_OLD,
       T.NUM_S_OLD,
       T.WALL_UPDATE_USER,
       TO_CHAR(T.WALL_UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') WALL_UPDATE_TIME,
       T.TUBE_END_RATIO,
       NVL(T.GPREQ_NUM, 0) GPREQ_NUM,
       NVL(T.GPREQ_WEIGHT, 0) GPREQ_WEIGHT,
       T.VERIFY1,
       T.VERIFY2,
       T.VERIFY3,
       T.WEIGTH_S_MIN,
       T.PRIORITY,
       T.PRIORITY_MEMO,
       NVL(T.PLANS_NUM, 0) PLANS_NUM,
       T.ORIGINAL_NUMBER,
       T.PROD_STANDARD,
       T.OUTPUT_STANDARD,
       T.THICKNESS_WALL,
       T.DECISION,
       T.APPLY_NO,
       T.APPLY_STATUS,
       T.ISSUED_MEMO,
       T.OUTS_BILLET_FL,T.PLINE_CODE_ZZ,T.PLINE_NAME_ZZ,T.GRADECODE_LK,
       T.GRADENAME_LK,T.CIC_GROUP_LK,NVL(T.GPREQ_WEIGHT_MIN,0) GPREQ_WEIGHT_MIN
  FROM PLN_ORDER_ZG_S T
 WHERE T.PRO_PLAN_ID = ?
   AND T.GX_PLAN_NO = ?		
		]]>
	</query>
	<query id="FrmProdSchAmount.queryAddPlnOrderZgSAmount" desc="新增">
		<![CDATA[
		INSERT INTO PLN_ORDER_ZG_S
  (PRO_ORDER_NO,
   PRO_PLAN_ID,
   GX_PLAN_NO,
   PLAN_GROUP_ID,
   ORDER_SOURCE,
   ORD_LN_DLY_PK,
   PLN_DIVIDE_ID,
   ORDER_NO,
   ORDER_SEQ,
   DELIVERY_NO,
   REQ_BL_ID,
   PLINE_CODE,
   PLINE_NAME,
   STEELCODE,
   STEELNAME,
   GRADECODE,
   GRADENAME,
   OUTDIAMETER,
   WALLTHICK,
   LENGTHDISC,
   INWL_ID,
   INWL_DESC,
   OUTWL_ID,
   OUTWL_DESC,
   LEN_ROLL_MAX,
   LEN_ROLL_MIN,
   AIMOUTDIAMETER,
   AIMWALLTHICK,
   AIMLENGTH,
   DIAMETER_GP,
   LEN_GP_SINGLE,
   ROLL_LENGTH,
   LEN_CUTHEAD,
   LEN_CUTEND,
   OUTNUM_CUT,
   DIAMETER_MANDREL,
   PASS_CODE,
   PASS_NAME,
   WEIGTH_S,
   NUM_S,
   ADD_WT_IN,
   ADD_NUM_IN,
   ISENDGX,
   IF_MONITOR_ZG,
   PRDCR_NO,
   MONITOR_POINT,
   CRAFT_FILE_NO,
   CRAFT_FILE_MAN,
   CRAFT_SEQ,
   STATION_ROAD,
   PRO_MONTH,
   CIC,
   PIC,
   SIC,
   DIC,
   WIC,
   GIC,
   GX_PRO_SEQ,
   PLAN_USETIME,
   PLAN_TIME_B,
   PLAN_TIME_E,
   EXE_STATUS,
   ZY_BATCH_ID,
   CIC_GROUP_GP,
   PIC_GROUP_GP,
   SIC_GROUP_GP,
   DIC_GROUP_GP,
   WIC_GROUP_GP,
   GIC_GROUP_GP,
   CIC_GP,
   PIC_GP,
   SIC_GP,
   DIC_GP,
   WIC_GP,
   GIC_GP,
   IF_EXPORT,
   CREATE_TIME,
   MEMO,
   VERSION_NO,
   PROCESSING_COST,
   TOTAL_COST,
   IS_ONLOAD_LINE,
   OUTDIAMETER_ZG,
   WALLTHICK_ZG,
   PROCESS_CODE_C,
   PROCESS_DESC_C,
   MSC,
   INDEX_SEQ,
   BOM,
   WHOLE_BACKLOG_DESC,
   IF_CRAFT_LOCKED,
   IF_LEN_CONTROL,
   IF_MINUS_SIC_ROLL,
   TUBE_END_RATIO,
   GPREQ_NUM,
   GPREQ_WEIGHT,
   VERIFY1,
   VERIFY2,
   VERIFY3,
   WEIGTH_S_MIN,
   PRIORITY,
   PRIORITY_MEMO,
   PLANS_NUM,
   PROD_STANDARD,
   OUTPUT_STANDARD,
   THICKNESS_WALL,
   DECISION,
   APPLY_NO,
   APPLY_STATUS,
   ISSUED_MEMO,
   OUTS_BILLET_FL,
   PLINE_CODE_ZZ,
   PLINE_NAME_ZZ,
   GRADECODE_LK,
   GRADENAME_LK,
   CIC_GROUP_LK,
   GPREQ_WEIGHT_MIN,
   PROGY_MEMO)
VALUES
  ('#PRO_ORDER_NO#',
   '#PRO_PLAN_ID#',
   '#GX_PLAN_NO#',
   '#PLAN_GROUP_ID#',
   '#ORDER_SOURCE#',
   '#ORD_LN_DLY_PK#',
   '#PLN_DIVIDE_ID#',
   '#ORDER_NO#',
   '#ORDER_SEQ#',
   '#DELIVERY_NO#',
   '#REQ_BL_ID#',
   '#PLINE_CODE#',
   '#PLINE_NAME#',
   '#STEELCODE#',
   '#STEELNAME#',
   '#GRADECODE#',
   '#GRADENAME#',
   '#OUTDIAMETER#',
   '#WALLTHICK#',
   '#LENGTHDISC#',
   '#INWL_ID#',
   '#INWL_DESC#',
   '#OUTWL_ID#',
   '#OUTWL_DESC#',
   '#LEN_ROLL_MAX#',
   '#LEN_ROLL_MIN#',
   '#AIMOUTDIAMETER#',
   '#AIMWALLTHICK#',
   '#AIMLENGTH#',
   DECODE('#PLINE_CODE#','C072',
   		DECODE('#PASS_NAME#','383','380','454','450','#DIAMETER_GP#'),
   '#DIAMETER_GP#'),
   '#LEN_GP_SINGLE#',
   '#ROLL_LENGTH#',
   '#LEN_CUTHEAD#',
   '#LEN_CUTEND#',
   '#OUTNUM_CUT#',
   '#DIAMETER_MANDREL#',
   '#PASS_CODE#',
   '#PASS_NAME#',
   '#WEIGTH_S#',
   '#NUM_S#',
   '#ADD_WT_IN#',
   '#ADD_NUM_IN#',
   '#ISENDGX#',
   '#IF_MONITOR_ZG#',
   '#PRDCR_NO#',
   '#MONITOR_POINT#',
   '#CRAFT_FILE_NO#',
   '#CRAFT_FILE_MAN#',
   '#CRAFT_SEQ#',
   '#STATION_ROAD#',
   '#PRO_MONTH#',
   '#CIC#',
   '#PIC#',
   '#SIC#',
   '#DIC#',
   '#WIC#',
   '#GIC#',
   '#GX_PRO_SEQ#',
   '#PLAN_USETIME#',
   TO_DATE('#PLAN_TIME_B#', 'YYYY-MM-DD HH24:MI:SS'),
   TO_DATE('#PLAN_TIME_E#', 'YYYY-MM-DD HH24:MI:SS'),
   '0',
   '#ZY_BATCH_ID#',
   '#CIC_GROUP_GP#',
   '#PIC_GROUP_GP#',
   '#SIC_GROUP_GP#',
   '#DIC_GROUP_GP#',
   '#WIC_GROUP_GP#',
   '#GIC_GROUP_GP#',
   '#CIC_GP#',
   '#PIC_GP#',
   '#SIC_GP#',
   '#DIC_GP#',
   '#WIC_GP#',
   '#GIC_GP#',
   '#IF_EXPORT#',
   TO_DATE('#CREATE_TIME#', 'YYYY-MM-DD HH24:MI:SS'),
   '#MEMO#',
   '#VERSION_NO#',
   '#PROCESSING_COST#',
   '#TOTAL_COST#',
   '#IS_ONLOAD_LINE#',
   '#OUTDIAMETER_ZG#',
   '#WALLTHICK_ZG#',
   '#PROCESS_CODE_C#',
   '#PROCESS_DESC_C#',
   '#MSC#',
   '#INDEX_SEQ#',
   '#BOM#',
   '#WHOLE_BACKLOG_DESC#',
   '#IF_CRAFT_LOCKED#',
   '#IF_LEN_CONTROL#',
   '#IF_MINUS_SIC_ROLL#',
   '#TUBE_END_RATIO#',
   '#GPREQ_NUM#',
   '#GPREQ_WEIGHT#',
   '#VERIFY1#',
   '#VERIFY2#',
   '#VERIFY3#',
   '#WEIGTH_S_MIN#',
   '#PRIORITY#',
   '#PRIORITY_MEMO#',
   '#PLANS_NUM#',
   '#PROD_STANDARD#',
   '#OUTPUT_STANDARD#',
   '#THICKNESS_WALL#',
   '#DECISION#',
   '#APPLY_NO#',
   '#APPLY_STATUS#',
   '#ISSUED_MEMO#',
   '#OUTS_BILLET_FL#',
   '#PLINE_CODE_ZZ#',
   '#PLINE_NAME_ZZ#',
   '#GRADECODE_LK#',
   '#GRADENAME_LK#',
   '#CIC_GROUP_LK#',
   '#GPREQ_WEIGHT_MIN#',
   '#PROGY_MEMO#')
		]]>
	</query>
	<query id="FrmProdSchAmount.UpdatePlnOrderZgS" desc="修改状态(关闭，已生产)">
		<![CDATA[
		
		]]>
	</query>
	<query id="FrmProdSchAmount.DeletePlnOrderZgSAmount" desc="删除排产补量">
		<![CDATA[
		DELETE PLN_ORDER_ZG_S
 WHERE PRO_PLAN_ID = ?
   AND GX_PLAN_NO = ?
	]]>
	</query>
	<query id="FrmProdSchAmount.selectGpIcList" desc="查询CIC集合">
		<![CDATA[
		SELECT T.PRO_PLAN_ID,
		T.PROGY_MEMO,
       M1.PROCESS_CODE,
       M1.PROCESS_DESC,
       M1.CIC,
       M1.PIC,
       M1.SIC,
       M1.DIC,
       M1.WIC,
       M1.GIC
  FROM PLN_ORDER_ZG_S              T,
       PLN_SALEORD                 T1,
       CRAFT_ORD_DESIGN            M,
       CRAFT_ORD_DESIGN_MSC_PL_PRC M1
 WHERE T1.ORD_LN_DLY_PK = T.ORD_LN_DLY_PK
   AND M.ORD_LN_PK = T1.ORD_LN_PK
   AND M.CRAFT_SEQ = T.CRAFT_SEQ
   AND M1.DESGIN_KEY = M.DESGIN_KEY
   AND M1.MSC_PLINE = T.INDEX_SEQ
   AND M1.PROCESS_CODE IN ('A', 'B', 'C')
   AND T.PRO_PLAN_ID = ?
 GROUP BY T.PRO_PLAN_ID,
       M1.PROCESS_CODE,
       M1.PROCESS_DESC,
       T.PROGY_MEMO,
       M1.CIC,
       M1.PIC,
       M1.SIC,
       M1.DIC,
       M1.WIC,
       M1.GIC
			]]>
	</query>
</queryMap>