<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="ZgGxCheck.queryV_ZG_PCORDERS_CX" desc="查询V_ZG_PCORDERS_CX视图">
             <![CDATA[
                SELECT id,
                opdate,
                cx,
                kongxing,
                lgno,
                zhano,
                planmonth,
                orderno,
                jz,
                customer,
                kind,
                steellevel,
                waijing,
                bihou,
                kouxing,
                lengthgyd,
                lengthmin,
                lengthmax,
                lengthfix,
                lengthcp,
                target,
                gystatus,
                cpunit,
                cpweight,
                lengthto,
                fq,
                qiet,
                qiew,
                zhapino,
                bmlength,
                dbclength,
                dcsl,
                ordertype,
                qietw,
                kzbihou,
                kzbihoustandard,
                zhalength,
                dm,
                dbpc,
                bc,
                zgrelease,
                gyshstatus,
                steelgrades,
                pikind,
                zgstandard,
                lgstandard,
                jiagstandard,
                gyno,
                duancdesc,
                duancmin,
                uppert,
                lowert,
                minweight,
                planweight,
                planwfp,
                planufp,
                pisource,
                lkweight,
                lkunit,
                steelgrade,
                zggid,
                lgblrelease,
                lzstatus,
                jiatpiunit,
                planpiunit,
                planpiweight,
				orderstatus,
                scno,
                unith,
                isuploaded,
                uploadid,
                zguploadtype,
                orderfjtk,
                remark,
                xbdiameter,
                mqqs,
                zhaweightfinished,
                versionnum,
                cpstandard,
                cpgc,
                zlweight,
                zlweightfix,
                gid,
				case BLTYPE
				WHEN '0' THEN '正常'
				WHEN '1' THEN '轧制补量'
				WHEN '2' THEN '加工补量'
				END
                as bltype,
                rowcolor,
                createdby,
                createddate,
                changeby,
                changedate,
                class1modified,
                class1modifiedid,
                wgpid,
                deliveryno,
                pkno,
                jz1,
                pmonthsign FROM v_zg_pcorders_cx
                 ]]>
	</query>
	<query id="ZgGxCheck.queryOrdersCount" desc="查询V_ZG_PCORDERS_CX视图">
             <![CDATA[
             select count(s.pro_plan_id) from pln_order_dbk_s s  where s.order_no = ? and s.order_seq = ?
                 ]]>
	</query>
	<query id="ZgGxCheck.queryZGOrderS" desc="查询">
             <![CDATA[
              SELECT 
		       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,
		       LEN_CUTHEAD,
		       LEN_CUTEND,
		       OUTNUM_CUT,
		       DIAMETER_MANDREL,
		       PASS_CODE,
		       PASS_NAME,
		       IN_WEIGHT_S,
		       IN_NUM_S,
		       WEIGTH_S,
		       NUM_S,
		       ADD_WT_IN,
		       ADD_NUM_IN,
		       MATCH_WT_IN,
		       MATCH_NUM_IN,
		       DECODE(ISENDGX,'0','否','1'，'是') ISENDGX,
		       DECODE(IF_MONITOR_ZG,'0','否','1'，'是') 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_CHAR(PLAN_TIME_B, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME_B,
		       TO_CHAR(PLAN_TIME_E, 'YYYY-MM-DD HH24:MI:SS') PLAN_TIME_E,
		       BATCHED_WT,
		       BATCHED_NUM,
		       FINISHWEIGHT,
		       FINISHNUM,
		       DECODE(EXE_STATUS,'0','计划','1','生产中','2','完成','3','关闭A') EXE_STATUS,
		       IS_REPAIR_PLN,
		       REPAIR_TYPE,
		       IS_PLAN_OK,
		       GPREQ_IF_OK,
		       GPREQ_ID,
		       ZY_BATCH_ID,
		       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
		 FROM PLN_ORDER_ZG_S
                 ]]>
	</query>
</queryMap>