<?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="bill_of_lading_manual" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="10" bottomMargin="10">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="136"/>
	<parameter name="DESP_ID_FIRST" class="java.lang.String"/>
	<parameter name="DESP_ID_LAST" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT distinct
	SHP.SHIPMENT_DATE AS SHIP_DATE,
	CASE WHEN SHP.SHIPMENT_ID IS NULL THEN ' ' ELSE SHP.SHIPMENT_ID END AS SHIPMENT_ID,
	CASE WHEN SHP.LR_NO IS NULL THEN ' ' ELSE SHP.LR_NO END AS SHIPMENT_LR_NO,
	CASE WHEN S.SITE_CODE IS NULL THEN ' ' ELSE S.descr END AS SITE_CODE,
        CASE WHEN S.ADD1 IS NULL THEN ' ' ELSE S.ADD1 END AS ADD1,
        CASE WHEN S.ADD2 IS NULL THEN ' ' ELSE S.ADD2 END AS ADD2,
        CASE WHEN S.ADD3 IS NULL THEN ' ' ELSE S.ADD2 END AS ADD3,
        CASE WHEN S.CITY IS NULL THEN ' ' ELSE S.CITY END AS CITY,
        CASE WHEN S.STATE_CODE IS NULL THEN ' ' ELSE S.STATE_CODE END AS STATE_CODE,
        CASE WHEN S.PIN IS NULL THEN ' ' ELSE S.PIN END AS PIN,
	SHP.CONSIGNEE_NAME AS CUST_NAME_DLV,
        CASE WHEN SHP.ADDR1 IS NULL THEN ' ' ELSE SHP.ADDR1 END AS DLV_ADD1,
        CASE WHEN SHP.ADDR2 IS NULL THEN ' ' ELSE SHP.ADDR2 END AS DLV_ADD2,
        CASE WHEN SHP.ADDR3 IS NULL THEN ' ' ELSE SHP.ADDR3 END AS DLV_ADD3,
        CASE WHEN SHP.CITY IS NULL THEN ' ' ELSE SHP.CITY END AS DLV_CITY,
        CASE WHEN SHP.PIN IS NULL THEN ' ' ELSE SHP.PIN END AS DLV_PIN,
        CASE WHEN T.TRAN_NAME IS NULL THEN ' ' ELSE T.TRAN_NAME END AS TRAN_NAME,
        CASE WHEN T.SUFFIX IS NULL THEN ' ' ELSE T.SUFFIX END AS SUFFIX,
        CASE WHEN T.PREFIX IS NULL THEN ' ' ELSE T.PREFIX END AS PREFIX,
        CASE WHEN t.SCAC_code IS NULL THEN ' ' ELSE T.SCAC_code END AS SCAC,
        CASE WHEN SHP.PRO_NO IS NULL THEN ' ' ELSE SHP.PRO_NO END AS PRO_NO,
        CASE WHEN SHP.REMARKS IS NULL THEN ' ' ELSE SHP.REMARKS END AS SHIPMENT_REMARKS,
	1 as COPY_NUMBER
FROM
		SHIPMENT SHP,
		SITE S,
		TRANSPORTER T
WHERE
	 (shp.shipment_id >= '$P!{DESP_ID_FIRST}' and shp.shipment_id <= '$P!{DESP_ID_LAST}')
    AND SHP.SITE_CODE = S.SITE_CODE
    AND SHP.TRAN_CODE = T.TRAN_CODE
    AND SHP.CONFIRMED = 'Y'

    UNION ALL

    SELECT distinct
	SHP.SHIPMENT_DATE AS SHIP_DATE,
	CASE WHEN SHP.SHIPMENT_ID IS NULL THEN ' ' ELSE SHP.SHIPMENT_ID END AS SHIPMENT_ID,
	CASE WHEN SHP.LR_NO IS NULL THEN ' ' ELSE SHP.LR_NO END AS SHIPMENT_LR_NO,
	CASE WHEN S.SITE_CODE IS NULL THEN ' ' ELSE S.descr END AS SITE_CODE,
        CASE WHEN S.ADD1 IS NULL THEN ' ' ELSE S.ADD1 END AS ADD1,
        CASE WHEN S.ADD2 IS NULL THEN ' ' ELSE S.ADD2 END AS ADD2,
        CASE WHEN S.ADD3 IS NULL THEN ' ' ELSE S.ADD2 END AS ADD3,
        CASE WHEN S.CITY IS NULL THEN ' ' ELSE S.CITY END AS CITY,
        CASE WHEN S.STATE_CODE IS NULL THEN ' ' ELSE S.STATE_CODE END AS STATE_CODE,
        CASE WHEN S.PIN IS NULL THEN ' ' ELSE S.PIN END AS PIN,
	SHP.CONSIGNEE_NAME AS CUST_NAME_DLV,
        CASE WHEN SHP.ADDR1 IS NULL THEN ' ' ELSE SHP.ADDR1 END AS DLV_ADD1,
        CASE WHEN SHP.ADDR2 IS NULL THEN ' ' ELSE SHP.ADDR2 END AS DLV_ADD2,
        CASE WHEN SHP.ADDR3 IS NULL THEN ' ' ELSE SHP.ADDR3 END AS DLV_ADD3,
        CASE WHEN SHP.CITY IS NULL THEN ' ' ELSE SHP.CITY END AS DLV_CITY,
        CASE WHEN SHP.PIN IS NULL THEN ' ' ELSE SHP.PIN END AS DLV_PIN,
        CASE WHEN T.TRAN_NAME IS NULL THEN ' ' ELSE T.TRAN_NAME END AS TRAN_NAME,
        CASE WHEN T.SUFFIX IS NULL THEN ' ' ELSE T.SUFFIX END AS SUFFIX,
        CASE WHEN T.PREFIX IS NULL THEN ' ' ELSE T.PREFIX END AS PREFIX,
        CASE WHEN t.SCAC_code IS NULL THEN ' ' ELSE T.SCAC_code END AS SCAC,
        CASE WHEN SHP.PRO_NO IS NULL THEN ' ' ELSE SHP.PRO_NO END AS PRO_NO,
        CASE WHEN SHP.REMARKS IS NULL THEN ' ' ELSE SHP.REMARKS END AS SHIPMENT_REMARKS,
	2 AS COPY_NUMBER
FROM
		SHIPMENT SHP,
		SITE S,
		TRANSPORTER T
WHERE
	 (shp.shipment_id >= '$P!{DESP_ID_FIRST}' and shp.shipment_id <= '$P!{DESP_ID_LAST}')
    AND SHP.SITE_CODE = S.SITE_CODE
    AND SHP.TRAN_CODE = T.TRAN_CODE
    AND SHP.CONFIRMED = 'Y']]>
	</queryString>
	<field name="SITE_CODE" class="java.lang.String"/>
	<field name="ADD1" class="java.lang.String"/>
	<field name="ADD2" class="java.lang.String"/>
	<field name="CITY" class="java.lang.String"/>
	<field name="STATE_CODE" class="java.lang.String"/>
	<field name="PIN" class="java.lang.String"/>
	<field name="DLV_ADD1" class="java.lang.String"/>
	<field name="DLV_ADD2" class="java.lang.String"/>
	<field name="DLV_ADD3" class="java.lang.String"/>
	<field name="DLV_CITY" class="java.lang.String"/>
	<field name="DLV_PIN" class="java.lang.String"/>
	<field name="TRAN_NAME" class="java.lang.String"/>
	<field name="SCAC" class="java.lang.String"/>
	<field name="PRO_NO" class="java.lang.String"/>
	<field name="SHIP_DATE" class="java.util.Date"/>
	<field name="CUST_NAME_DLV" class="java.lang.String"/>
	<field name="SHIPMENT_ID" class="java.lang.String"/>
	<field name="SHIPMENT_LR_NO" class="java.lang.String"/>
	<field name="PREFIX" class="java.lang.String"/>
	<field name="SUFFIX" class="java.lang.String"/>
	<field name="ADD3" class="java.lang.String"/>
	<field name="SHIPMENT_REMARKS" class="java.lang.String"/>
	<field name="COPY_NUMBER" class="java.lang.Double"/>
	<variable name="compute_1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String(ibase.webitm.reports.sun.BaseReportGFMethods.gf_bar_code("9012k"+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{SCAC}) +""+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{PREFIX})+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{PRO_NO})+ibase.webitm.reports.utility.BaseReportMethods.trim( $F{SUFFIX}) ) )]]></variableExpression>
	</variable>
	<variable name="compute_2" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String($F{CITY}.trim()+" / "+$F{STATE_CODE}.trim()+" / "+$F{PIN}.trim())]]></variableExpression>
	</variable>
	<variable name="compute_3" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String($F{DLV_CITY}.trim()+" / "+$F{DLV_PIN}.trim())]]></variableExpression>
	</variable>
	<variable name="compute_4" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String(ibase.webitm.reports.sun.BaseReportGFMethods.gf_bar_code("402"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{SHIPMENT_LR_NO})))]]></variableExpression>
	</variable>
	<variable name="compute_4_1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String("(402)   "+(ibase.webitm.reports.utility.BaseReportMethods.trim($F{SHIPMENT_LR_NO})))]]></variableExpression>
	</variable>
	<variable name="compute_1_1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String(ibase.webitm.reports.utility.BaseReportMethods.trim( $F{PRO_NO}))]]></variableExpression>
	</variable>
	<variable name="variable1" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String((ibase.webitm.reports.utility.BaseReportMethods.isNull($F{SITE_CODE}) ?" " : ibase.webitm.reports.utility.BaseReportMethods.trim($F{SITE_CODE}))
+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{ADD1}) ? "" : "\n"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{ADD1}))
+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{ADD2}) ? "" : "\n"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{ADD2}))
+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{ADD3}) ? "" : "\n"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{ADD3}))
+"\n"+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{CITY}) ? " " : ibase.webitm.reports.utility.BaseReportMethods.trim($F{CITY})+" /")+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{STATE_CODE}) ? " " :ibase.webitm.reports.utility.BaseReportMethods.trim($F{STATE_CODE}))+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{PIN}) ? " " :" /"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{PIN})))]]></variableExpression>
	</variable>
	<variable name="variable2" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[new java.lang.String((ibase.webitm.reports.utility.BaseReportMethods.isNull($F{CUST_NAME_DLV}) ?" " : ibase.webitm.reports.utility.BaseReportMethods.trim($F{CUST_NAME_DLV}))
+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{DLV_ADD1}) ? "" : "\n"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{DLV_ADD1}))
+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{DLV_ADD2}) ? "" : "\n"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{DLV_ADD2}))
+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{DLV_ADD3}) ? "" : "\n"+ibase.webitm.reports.utility.BaseReportMethods.trim($F{DLV_ADD3}))
+"\n"+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{DLV_CITY}) ? " " : ibase.webitm.reports.utility.BaseReportMethods.trim($F{DLV_CITY}))+" "+(ibase.webitm.reports.utility.BaseReportMethods.isNull($F{DLV_PIN}) ? " " :ibase.webitm.reports.utility.BaseReportMethods.trim($F{DLV_PIN})))]]></variableExpression>
	</variable>
	<group name="shipment_id" isStartNewPage="true" isResetPageNumber="true">
		<groupExpression><![CDATA[$F{SHIPMENT_ID}+$F{COPY_NUMBER}]]></groupExpression>
		<groupHeader>
			<band height="504">
				<staticText>
					<reportElement x="7" y="0" width="558" height="20"/>
					<textElement textAlignment="Center">
						<font fontName="Arial" size="16" isBold="true"/>
					</textElement>
					<text><![CDATA[BILL OF LADING]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="239" width="227" height="23"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Freight Charge Terms: (freight charges are prepaid unless marked otherwise)]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="398" y="179" width="148" height="13"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{PRO_NO}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement x="6" y="273" width="320" height="1"/>
				</line>
				<line direction="BottomUp">
					<reportElement x="565" y="20" width="1" height="292"/>
				</line>
				<line>
					<reportElement x="6" y="25" width="1" height="286"/>
				</line>
				<staticText>
					<reportElement x="482" y="264" width="80" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[3rd Party ______]]></text>
				</staticText>
				<staticText>
					<reportElement x="507" y="1" width="30" height="15"/>
					<textElement>
						<font fontName="Arial" size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Page]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="6" y="19" width="320" height="15" forecolor="#FEFEFE" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Courier New" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[SHIP FORM]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="20" width="111" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Bill of Lading Number:]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="537" y="1" width="30" height="15"/>
					<textElement>
						<font fontName="Courier New" size="12"/>
					</textElement>
					<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="372" y="165" width="174" height="13"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SCAC}]]></textFieldExpression>
				</textField>
				<rectangle>
					<reportElement x="293" y="183" width="15" height="12"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</rectangle>
				<staticText>
					<reportElement x="391" y="281" width="170" height="30"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Master Bill of Lading: with attached underlying Bills of Lading]]></text>
				</staticText>
				<line>
					<reportElement x="326" y="279" width="239" height="1"/>
				</line>
				<staticText>
					<reportElement x="263" y="183" width="40" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[FOB:]]></text>
				</staticText>
				<textField pattern="">
					<reportElement x="7" y="3" width="150" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIP_DATE}.equals(null)?"":(new SimpleDateFormat("MM/dd/yy").format($F{SHIP_DATE}))]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="138" y="274" width="188" height="37"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIPMENT_REMARKS}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="334" y="166" width="50" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[SCAC:]]></text>
				</staticText>
				<line>
					<reportElement x="327" y="164" width="239" height="1"/>
				</line>
				<staticText>
					<reportElement x="334" y="265" width="80" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Prepaid ______]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="445" y="20" width="113" height="12"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="10" isUnderline="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIPMENT_LR_NO}.trim()]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="263" y="94" width="40" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[FOB:]]></text>
				</staticText>
				<rectangle>
					<reportElement x="350" y="283" width="15" height="12"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</rectangle>
				<staticText>
					<reportElement mode="Opaque" x="6" y="107" width="320" height="15" forecolor="#FEFEFE" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Courier New" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[SHIP TO]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="110" width="100" height="17"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[CARRIER NAME:]]></text>
				</staticText>
				<line direction="BottomUp">
					<reportElement x="326" y="20" width="1" height="291"/>
				</line>
				<staticText>
					<reportElement x="334" y="130" width="80" height="15"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Trailer Number:]]></text>
				</staticText>
				<line>
					<reportElement x="326" y="19" width="239" height="1"/>
				</line>
				<staticText>
					<reportElement x="334" y="179" width="70" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Pro number:]]></text>
				</staticText>
				<rectangle>
					<reportElement x="293" y="93" width="15" height="12"/>
					<graphicElement>
						<pen lineWidth="2.0"/>
					</graphicElement>
				</rectangle>
				<staticText>
					<reportElement x="411" y="265" width="73" height="15"/>
					<textElement>
						<font fontName="Arial" isBold="true"/>
					</textElement>
					<text><![CDATA[Collect ______]]></text>
				</staticText>
				<staticText>
					<reportElement x="11" y="94" width="45" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[SID#:]]></text>
				</staticText>
				<staticText>
					<reportElement x="8" y="274" width="130" height="15"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[SPECIAL INSTRUCTIONS:]]></text>
				</staticText>
				<staticText>
					<reportElement x="8" y="183" width="45" height="12">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[CID#:]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="144" width="90" height="15"/>
					<textElement>
						<font fontName="Arial"/>
					</textElement>
					<text><![CDATA[Seal Number (s):]]></text>
				</staticText>
				<textField isBlankWhenNull="true">
					<reportElement x="420" y="110" width="133" height="15"/>
					<textElement>
						<font fontName="Arial" isUnderline="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{TRAN_NAME}.trim()]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="6" y="198" width="320" height="15" forecolor="#FEFEFE" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Courier New" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[THIRD PARTY FREIGHT CHARGES BILL TO:]]></text>
				</staticText>
				<line>
					<reportElement x="326" y="108" width="239" height="1"/>
				</line>
				<line>
					<reportElement x="326" y="236" width="239" height="1"/>
				</line>
				<textField isBlankWhenNull="true">
					<reportElement x="334" y="197" width="203" height="31"/>
					<textElement>
						<font fontName="Code 128AB" size="40"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_1}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="355" y="46" width="203" height="38"/>
					<textElement>
						<font fontName="Code 128AB" size="40"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_4}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="355" y="83" width="179" height="16"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_4_1}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="334" y="223" width="179" height="16"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{compute_1_1}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="340" y="299" width="51" height="12"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[(check box)]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="213" width="33" height="15">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[Name:]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="228" width="40" height="15">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[Address:]]></text>
				</staticText>
				<staticText>
					<reportElement x="8" y="254" width="69" height="15">
						<printWhenExpression><![CDATA[new Boolean(false)]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<text><![CDATA[City/State/Zip:]]></text>
				</staticText>
				<subreport>
					<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="412" width="572" height="92" isRemoveLineWhenBlank="true">
						<printWhenExpression><![CDATA[new Boolean(true)]]></printWhenExpression>
					</reportElement>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<subreportParameter name="DESP_DESP_ID">
						<subreportParameterExpression><![CDATA[$F{SHIPMENT_ID}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression class="java.io.InputStream"><![CDATA[new FileInputStream("C:/jboss-5.1.0.GA/server/default/deploy/ibase.ear/ibase.war/webitm/reports/jrxml/bill_of_lading_man_subreport2.jasper")]]></subreportExpression>
				</subreport>
				<subreport>
					<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="311" width="572" height="101" isRemoveLineWhenBlank="true">
						<printWhenExpression><![CDATA[new Boolean(true)]]></printWhenExpression>
					</reportElement>
					<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
					<subreportParameter name="DESP_DESP_ID">
						<subreportParameterExpression><![CDATA[$F{SHIPMENT_ID}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression class="java.io.InputStream"><![CDATA[new FileInputStream("C:/jboss-5.1.0.GA/server/default/deploy/ibase.ear/ibase.war/webitm/reports/jrxml/bill_of_lading_man_subreport1.jasper")]]></subreportExpression>
				</subreport>
				<textField isBlankWhenNull="true">
					<reportElement x="58" y="94" width="159" height="12"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{SHIPMENT_ID}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="9" y="35" width="301" height="59"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{variable1}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="9" y="122" width="301" height="59"/>
					<textElement>
						<font fontName="Courier New"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$V{variable2}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="148">
				<staticText>
					<reportElement mode="Transparent" x="313" y="1" width="221" height="35" forecolor="#000000" backcolor="#010101"/>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[COD Amount:  $ ________________
Fee Terms: Collect:         Prepaid:
Customer check acceptable:]]></text>
				</staticText>
				<line>
					<reportElement x="6" y="36" width="558" height="1"/>
				</line>
				<staticText>
					<reportElement x="361" y="95" width="179" height="11"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[CARRIER SIGNATURE / PICKUP DATE]]></text>
				</staticText>
				<rectangle>
					<reportElement x="278" y="137" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="11" y="28" width="149" height="10"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[Shipper:________________ By: _________________]]></text>
				</staticText>
				<staticText>
					<reportElement x="289" y="117" width="55" height="17"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Driver/Pallets said to contain]]></text>
				</staticText>
				<staticText>
					<reportElement x="317" y="57" width="240" height="15"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[The carrier shall not make delivery of this shipment without payment of freight and all other lawful charges.]]></text>
				</staticText>
				<staticText>
					<reportElement x="215" y="94" width="60" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isUnderline="true"/>
					</textElement>
					<text><![CDATA[Trailer Loaded:]]></text>
				</staticText>
				<staticText>
					<reportElement x="167" y="15" width="130" height="15"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[$ ________________ per lb
$ ________________ per shipment (truckload)]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="56" width="300" height="30"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[RECEIVED, subject to the written transportation contract between shipper and carrier, if applicable, otherwise
subject to the terms and conditions of the shipper's standard transportation contract in the effect on the date of
shipment, which is available to the carrier on request. This shipment is not subject to any classification or
tariffs which may be established by the carrier.]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Transparent" x="321" y="69" width="240" height="20" forecolor="#000000" backcolor="#010101"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Arial" size="8" isBold="false"/>
					</textElement>
					<text><![CDATA[_______________________________________Shipper Signature]]></text>
				</staticText>
				<line>
					<reportElement x="352" y="91" width="1" height="57"/>
				</line>
				<staticText>
					<reportElement x="227" y="108" width="35" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Shipper]]></text>
				</staticText>
				<line>
					<reportElement x="563" y="91" width="1" height="57"/>
				</line>
				<staticText>
					<reportElement x="289" y="136" width="55" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Driver/Pieces]]></text>
				</staticText>
				<staticText>
					<reportElement x="361" y="107" width="190" height="30"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[Carrier acknowledges receipt of packages and required placards.  Carrier certifies emergency response information was made available and/or carrier has the DOT emergency response guidebook or equivalent documentation in the vehicle.]]></text>
				</staticText>
				<rectangle>
					<reportElement x="491" y="23" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="10" y="3" width="300" height="10"/>
					<textElement>
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[Carriers liability for loss, damage or delay is limited to:]]></text>
				</staticText>
				<line>
					<reportElement x="312" y="54" width="1" height="38"/>
				</line>
				<rectangle>
					<reportElement x="502" y="13" width="8" height="8"/>
				</rectangle>
				<rectangle>
					<reportElement x="278" y="107" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="10" y="107" width="190" height="25"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="6"/>
					</textElement>
					<text><![CDATA[This is to certify that the above named materials are properly classified, packaged, marked and labeled, and are in proper condition for transportation according to the applicable regulations of the DOT.]]></text>
				</staticText>
				<rectangle>
					<reportElement x="217" y="121" width="8" height="8"/>
				</rectangle>
				<staticText>
					<reportElement x="227" y="120" width="35" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Driver]]></text>
				</staticText>
				<line>
					<reportElement x="205" y="91" width="1" height="56"/>
				</line>
				<line>
					<reportElement x="5" y="91" width="559" height="1"/>
				</line>
				<line>
					<reportElement x="6" y="54" width="558" height="1"/>
				</line>
				<line>
					<reportElement x="6" y="147" width="558" height="1"/>
				</line>
				<line>
					<reportElement x="5" y="91" width="1" height="57"/>
				</line>
				<staticText>
					<reportElement mode="Transparent" x="11" y="38" width="560" height="15" forecolor="#000000" backcolor="#010101"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[NOTE Carrier's liability is for the actual loss unless otherwise agreed in contract, or stated above and signed by Shipper.]]></text>
				</staticText>
				<staticText>
					<reportElement x="281" y="94" width="60" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isUnderline="true"/>
					</textElement>
					<text><![CDATA[Freight Counted:]]></text>
				</staticText>
				<line>
					<reportElement x="5" y="0" width="1" height="92"/>
				</line>
				<staticText>
					<reportElement x="289" y="107" width="35" height="10"/>
					<textElement>
						<font fontName="Arial" size="7"/>
					</textElement>
					<text><![CDATA[By Shipper]]></text>
				</staticText>
				<rectangle>
					<reportElement x="278" y="117" width="8" height="8"/>
				</rectangle>
				<rectangle>
					<reportElement x="217" y="109" width="8" height="8"/>
				</rectangle>
				<line>
					<reportElement x="563" y="0" width="1" height="92"/>
				</line>
				<break>
					<reportElement x="0" y="147" width="1" height="1"/>
				</break>
				<staticText>
					<reportElement x="10" y="95" width="134" height="11"/>
					<textElement textAlignment="Left">
						<font fontName="Arial" size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[SHIPPER SIGNATURE / DATE]]></text>
				</staticText>
				<line>
					<reportElement x="312" y="-1" width="1" height="38"/>
				</line>
				<line>
					<reportElement x="5" y="0" width="560" height="1"/>
				</line>
				<rectangle>
					<reportElement x="440" y="13" width="8" height="8"/>
				</rectangle>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
