Commit fa38469f authored by msingh's avatar msingh

Added jrxml by Manish on 21/10/16 for Case Label


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103772 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bf412e28
<?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="Case Label" pageWidth="288" pageHeight="239" columnWidth="273" leftMargin="10" rightMargin="5" topMargin="0" bottomMargin="20">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="as_tran_id" class="java.lang.String"/>
<parameter name="as_item_code" class="java.lang.String"/>
<parameter name="as_user_id" class="java.lang.String"/>
<parameter name="as_user_site" class="java.lang.String"/>
<parameter name="as_mode" class="java.lang.String"/>
<queryString>
<![CDATA[SELECT ASN_HDR.ASN_NO,
ASN_DET.ITEM_CODE,
ITEM.DESCR,
ASN_DET.LOT_NO,
ASN_DET.QUANTITY,
(TRIM(ASN_HDR.ASN_NO) ||TO_CHAR(ASN_DET.QUANTITY) || TO_CHAR(TRIM(ASN_DET.LOT_NO))) LBL1,
(TRIM(ASN_HDR.ASN_NO) || TRIM(ASN_DET.ITEM_CODE) || TO_CHAR(TRIM(ASN_DET.QUANTITY))) LBL2,
(TRIM(ASN_HDR.ASN_NO) ||TRIM(ASN_DET.LOT_NO)) LBL3,
(TRIM(ASN_DET.TRAN_ID) || TO_CHAR(TRIM(ASN_DET.ITEM_CODE))) LBL4,
FN_R_GET_EMP_NAME('$P!{as_user_id}') AS LOGIN_EMP_FNAME
FROM ASN_DET,
ITEM,
ASN_HDR
WHERE ASN_DET.TRAN_ID = ASN_HDR.TRAN_ID
AND ASN_DET.ITEM_CODE = ITEM.ITEM_CODE
AND ASN_HDR.ASN_NO IN ('$P!{as_tran_id}')
AND ASN_DET.ITEM_CODE IN ('$P!{as_item_code}')]]>
</queryString>
<field name="ITEM_CODE" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="DESCR" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="LOT_NO" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="QUANTITY" class="java.math.BigDecimal">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="LBL1" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="LBL2" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="LBL3" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="LBL4" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="LOGIN_EMP_FNAME" class="java.lang.String"/>
<field name="ASN_NO" class="java.lang.String"/>
<sortField name="ASN_NO"/>
<sortField name="ITEM_CODE"/>
<variable name="v_barcode" class="java.lang.String" resetType="None">
<variableExpression><![CDATA[new java.lang.String(
ibase.webitm.reports.sun.BaseReportGFMethods.gf_bar_code (
((($P{as_mode}).equals("A")? $F{LBL1} : ($P{as_mode}).equals("B")? $F{LBL2} :($P{as_mode}).equals("C")? $F{LBL3} : ($P{as_mode}).equals("D")? $F{LBL4}:"" ))
)
)]]></variableExpression>
</variable>
<variable name="v_barcode_1" class="java.lang.String" resetType="None">
<variableExpression><![CDATA[new java.lang.String((($P{as_mode}).equals("A")? $F{LBL1} : ($P{as_mode}).equals("B")? $F{LBL2} :($P{as_mode}).equals("C")? $F{LBL3} : ($P{as_mode}).equals("D")? $F{LBL4}:"" ))]]></variableExpression>
</variable>
<variable name="footer" class="java.lang.String" resetType="None">
<variableExpression><![CDATA[new java.lang.String("LOGIN SITE : "+ (ibase.webitm.reports.utility.BaseReportMethods.isNull( $P{as_user_site})?"":$P{as_user_site}) + " " + "USER - "+ ( ibase.webitm.reports.utility.BaseReportMethods.isNull($F{LOGIN_EMP_FNAME})?"":$F{LOGIN_EMP_FNAME})
+ " " +new SimpleDateFormat("hh:mm:ss").format(new Date()))]]></variableExpression>
</variable>
<group name="pono and item code">
<groupExpression><![CDATA[$F{ASN_NO}+$F{ITEM_CODE}]]></groupExpression>
<groupHeader>
<band height="219">
<staticText>
<reportElement positionType="Float" x="150" y="120" width="38" height="13" forecolor="#666666"/>
<textElement textAlignment="Left">
<font fontName="Arial" size="10" isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Qty
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="150" y="135" width="38" height="13" forecolor="#666666"/>
<textElement textAlignment="Left">
<font fontName="Arial" size="10" isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Lot No
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="6" y="120" width="54" height="13" forecolor="#666666"/>
<textElement textAlignment="Left">
<font fontName="Arial" size="10" isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Item Descr
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="150" y="104" width="38" height="13" forecolor="#666666"/>
<textElement textAlignment="Left">
<font fontName="Arial" size="10" isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[ASN No
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="60" y="120" width="4" height="13" forecolor="#666666"/>
<textElement>
<font fontName="Arial" size="11" isBold="true"/>
</textElement>
<text><![CDATA[:
]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="60" y="104" width="4" height="13" forecolor="#666666" backcolor="#FFFFFF"/>
<textElement>
<font fontName="Arial" size="11" isBold="true"/>
</textElement>
<text><![CDATA[:
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="188" y="120" width="4" height="13" forecolor="#666666"/>
<textElement>
<font fontName="Arial" size="11" isBold="true"/>
</textElement>
<text><![CDATA[:
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="188" y="104" width="4" height="13" forecolor="#666666"/>
<textElement>
<font fontName="Arial" size="11" isBold="true"/>
</textElement>
<text><![CDATA[:
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" x="188" y="135" width="4" height="13" forecolor="#666666"/>
<textElement>
<font fontName="Arial" size="11" isBold="true"/>
</textElement>
<text><![CDATA[:
]]></text>
</staticText>
<staticText>
<reportElement positionType="Float" mode="Transparent" x="6" y="104" width="54" height="13" forecolor="#666666"/>
<textElement textAlignment="Left">
<font fontName="Arial" size="10" isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Item Code
]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement positionType="Float" x="10" y="22" width="254" height="21"/>
<textElement textAlignment="Center">
<font fontName="Code 128AB" size="30"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{v_barcode}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="10" y="47" width="254" height="20"/>
<textElement textAlignment="Center">
<font fontName="Arial" size="11"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{v_barcode_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="64" y="104" width="85" height="13"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{ITEM_CODE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="64" y="120" width="85" height="13"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{DESCR}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="192" y="135" width="75" height="13"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{LOT_NO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="192" y="120" width="75" height="13"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{QUANTITY}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="199" width="273" height="20"/>
<textElement>
<font fontName="Arial" size="7"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$V{footer}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="192" y="104" width="75" height="13"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{ASN_NO}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band splitType="Stretch"/>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment