<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="wave_task_det" pageWidth="756" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="720" leftMargin="18" rightMargin="18" topMargin="18" bottomMargin="18">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="P_wave_id" class="java.lang.String"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<parameterDescription><![CDATA[]]></parameterDescription>
		<defaultValueExpression><![CDATA["E:\\manohar\\reports\\"]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[SELECT WAVE_TASK_DET.WAVE_ID,WAVE_TASK_DET.LINE_NO,REFSER.DESCR, WAVE_TASK_DET.STATUS, WAVE_TASK_DET.SALE_ORDER,PTCN,
WAVE_TASK_DET.REF_ID,
(CASE WHEN WAVE_TASK_DET.wave_status ='C' THEN 'Created' when WAVE_TASK_DET.wave_status ='W' then 'Waiting'
        when  WAVE_TASK_DET.wave_status ='V' then 'Verified' ELSE NULL END) WAVESTATUS
FROM   WAVE_TASK_DET,REFSER
WHERE  WAVE_TASK_DET.REF_SER= REFSER.REF_SER
AND  WAVE_ID =$P{P_wave_id}
order by WAVE_TASK_DET.LINE_NO]]>
	</queryString>
	<field name="WAVE_ID" class="java.lang.String"/>
	<field name="LINE_NO" class="java.lang.String"/>
	<field name="DESCR" class="java.lang.String"/>
	<field name="STATUS" class="java.lang.String"/>
	<field name="SALE_ORDER" class="java.lang.String"/>
	<field name="PTCN" class="java.lang.String"/>
	<field name="REF_ID" class="java.lang.String"/>
	<field name="WAVESTATUS" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="18" splitType="Stretch">
			<staticText>
				<reportElement x="5" y="4" width="459" height="14"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Wave Tasks Details]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="21" splitType="Stretch">
			<staticText>
				<reportElement x="3" y="1" width="62" height="20"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Wave Id]]></text>
			</staticText>
			<staticText>
				<reportElement x="69" y="1" width="38" height="20"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Line No]]></text>
			</staticText>
			<staticText>
				<reportElement x="113" y="1" width="162" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Task Description]]></text>
			</staticText>
			<staticText>
				<reportElement x="277" y="1" width="58" height="20"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Sale Order]]></text>
			</staticText>
			<staticText>
				<reportElement x="338" y="1" width="77" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[PTCN]]></text>
			</staticText>
			<line>
				<reportElement x="2" y="0" width="489" height="1"/>
			</line>
			<line>
				<reportElement x="2" y="20" width="489" height="1"/>
			</line>
			<line>
				<reportElement x="416" y="1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="335" y="0" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="110" y="1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="66" y="1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="2" y="1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="276" y="1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="491" y="0" width="1" height="20"/>
			</line>
			<staticText>
				<reportElement x="420" y="1" width="70" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Wave Status]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="5" y="0" width="60" height="20"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{WAVE_ID}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="69" y="0" width="38" height="20"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{LINE_NO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="278" y="0" width="56" height="19"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{SALE_ORDER}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="338" y="0" width="77" height="20"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{PTCN}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="113" y="0" width="162" height="20"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DESCR}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="2" y="19" width="489" height="1"/>
			</line>
			<line>
				<reportElement x="110" y="0" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="66" y="0" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="2" y="0" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="2" y="-1" width="489" height="1"/>
			</line>
			<line>
				<reportElement x="416" y="0" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="335" y="-1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="276" y="-1" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="491" y="-1" width="1" height="20"/>
			</line>
			<textField>
				<reportElement x="420" y="0" width="70" height="20"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{WAVESTATUS}]]></textFieldExpression>
			</textField>
		</band>
		<band/>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
	<noData>
		<band height="56">
			<staticText>
				<reportElement x="5" y="1" width="459" height="14"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Wave Tasks Details]]></text>
			</staticText>
			<staticText>
				<reportElement x="3" y="16" width="62" height="20"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Wave Id]]></text>
			</staticText>
			<staticText>
				<reportElement x="69" y="16" width="38" height="20"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Line No]]></text>
			</staticText>
			<line>
				<reportElement x="66" y="16" width="1" height="20"/>
			</line>
			<staticText>
				<reportElement x="277" y="16" width="58" height="20"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Sale Order]]></text>
			</staticText>
			<line>
				<reportElement x="335" y="15" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="2" y="16" width="1" height="20"/>
			</line>
			<staticText>
				<reportElement x="338" y="16" width="77" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[PTCN]]></text>
			</staticText>
			<line>
				<reportElement x="2" y="35" width="489" height="1"/>
			</line>
			<staticText>
				<reportElement x="420" y="16" width="70" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Wave Status]]></text>
			</staticText>
			<line>
				<reportElement x="110" y="16" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="491" y="15" width="1" height="20"/>
			</line>
			<staticText>
				<reportElement x="113" y="16" width="162" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Task Description]]></text>
			</staticText>
			<line>
				<reportElement x="276" y="16" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="416" y="16" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="2" y="55" width="489" height="1"/>
			</line>
			<line>
				<reportElement x="2" y="15" width="489" height="1"/>
			</line>
			<line>
				<reportElement x="2" y="35" width="1" height="20"/>
			</line>
			<line>
				<reportElement x="491" y="35" width="1" height="20"/>
			</line>
			<staticText>
				<reportElement x="5" y="35" width="486" height="20"/>
				<textElement textAlignment="Center"/>
				<text><![CDATA[NA]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
