Ignore:
Timestamp:
Sep 20, 2010, 1:14:10 PM (14 years ago)
Author:
gav
Message:

Improvements to asset reports: Asset Detail and Asset Register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/reports/assetDetail.jrxml

    r652 r653  
    5656                        <band height="52">
    5757                                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
    58                                         <reportElement x="9" y="24" width="331" height="20"/>
     58                                        <reportElement stretchType="RelativeToTallestObject" x="9" y="24" width="331" height="20" isPrintWhenDetailOverflows="true"/>
    5959                                        <textElement>
    6060                                                <font fontName="Serif" size="8"/>
     
    6363                                </textField>
    6464                                <textField isStretchWithOverflow="true">
    65                                         <reportElement mode="Opaque" x="9" y="4" width="331" height="20" backcolor="#FFFF33"/>
     65                                        <reportElement stretchType="RelativeToTallestObject" mode="Opaque" x="9" y="4" width="331" height="20" isPrintWhenDetailOverflows="true" backcolor="#FFFF33"/>
    6666                                        <textElement>
    6767                                                <font fontName="Serif" size="10" isBold="true"/>
     
    7070                                </textField>
    7171                                <textField isStretchWithOverflow="true">
    72                                         <reportElement x="352" y="12" width="203" height="40"/>
     72                                        <reportElement stretchType="RelativeToTallestObject" x="352" y="12" width="203" height="40" isPrintWhenDetailOverflows="true"/>
    7373                                        <textElement>
    7474                                                <font fontName="Serif" size="8"/>
     
    8787        <pageHeader>
    8888                <band height="93" splitType="Stretch">
    89                         <textField>
    90                                 <reportElement key="staticText-1" x="0" y="57" width="340" height="20"/>
     89                        <textField isStretchWithOverflow="true">
     90                                <reportElement key="staticText-1" stretchType="RelativeToTallestObject" x="0" y="57" width="340" height="20" isPrintWhenDetailOverflows="true"/>
    9191                                <textElement textAlignment="Center" verticalAlignment="Top" markup="none">
    9292                                        <font fontName="Serif" size="14"/>
     
    9898                                <imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression>
    9999                        </image>
    100                         <textField>
    101                                 <reportElement x="0" y="77" width="340" height="12">
     100                        <textField isStretchWithOverflow="true">
     101                                <reportElement stretchType="RelativeToTallestObject" x="0" y="77" width="340" height="12" isPrintWhenDetailOverflows="true">
    102102                                        <printWhenExpression><![CDATA[$P{asset}.equals( "All" )]]></printWhenExpression>
    103103                                </reportElement>
    104104                                <textElement textAlignment="Center" verticalAlignment="Middle">
    105                                         <font fontName="Serif"/>
     105                                        <font fontName="Serif" size="8"/>
    106106                                </textElement>
    107107                                <textFieldExpression class="java.lang.String"><![CDATA["For All Assets"]]></textFieldExpression>
     
    117117                        <elementGroup>
    118118                                <textField isStretchWithOverflow="true">
    119                                         <reportElement style="DetailBorder" x="138" y="2" width="288" height="20"/>
     119                                        <reportElement style="DetailBorder" stretchType="RelativeToTallestObject" x="138" y="2" width="288" height="20" isPrintWhenDetailOverflows="true"/>
    120120                                        <textElement textAlignment="Center" verticalAlignment="Middle">
    121121                                                <font fontName="Serif" size="8"/>
     
    124124                                </textField>
    125125                                <textField isStretchWithOverflow="true">
    126                                         <reportElement x="9" y="2" width="129" height="20"/>
     126                                        <reportElement stretchType="RelativeToTallestObject" x="9" y="2" width="129" height="20" isPrintWhenDetailOverflows="true"/>
    127127                                        <textElement>
    128128                                                <font fontName="Serif" size="8" isBold="true" isUnderline="false"/>
     
    138138        <pageFooter>
    139139                <band height="28" splitType="Stretch">
    140                         <textField pattern="dd-MMM-yyyy">
    141                                 <reportElement x="50" y="2" width="200" height="12"/>
     140                        <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy">
     141                                <reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/>
    142142                                <textElement>
    143143                                        <font fontName="Serif" size="8"/>
     
    145145                                <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
    146146                        </textField>
    147                         <textField evaluationTime="Report">
    148                                 <reportElement x="537" y="14" width="40" height="12"/>
     147                        <textField isStretchWithOverflow="true" evaluationTime="Report">
     148                                <reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/>
    149149                                <textElement>
    150150                                        <font fontName="Serif" size="8"/>
     
    152152                                <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
    153153                        </textField>
    154                         <textField>
    155                                 <reportElement x="0" y="2" width="50" height="12"/>
     154                        <textField isStretchWithOverflow="true">
     155                                <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/>
    156156                                <textElement markup="none">
    157157                                        <font fontName="Serif" size="8"/>
     
    159159                                <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
    160160                        </textField>
    161                         <textField>
    162                                 <reportElement x="50" y="14" width="200" height="12"/>
     161                        <textField isStretchWithOverflow="true">
     162                                <reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/>
    163163                                <textElement markup="none">
    164164                                        <font fontName="Serif" size="8"/>
     
    166166                                <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
    167167                        </textField>
    168                         <textField>
    169                                 <reportElement x="0" y="14" width="50" height="12"/>
     168                        <textField isStretchWithOverflow="true">
     169                                <reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/>
    170170                                <textElement markup="none">
    171171                                        <font fontName="Serif" size="8"/>
     
    173173                                <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
    174174                        </textField>
    175                         <textField>
    176                                 <reportElement x="457" y="14" width="80" height="12"/>
     175                        <textField isStretchWithOverflow="true">
     176                                <reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/>
    177177                                <textElement textAlignment="Right">
    178178                                        <font fontName="Serif" size="8"/>
     
    184184        <lastPageFooter>
    185185                <band height="28">
    186                         <textField evaluationTime="Report">
    187                                 <reportElement x="537" y="14" width="40" height="12"/>
     186                        <textField isStretchWithOverflow="true" evaluationTime="Report">
     187                                <reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/>
    188188                                <textElement>
    189189                                        <font fontName="Serif" size="8"/>
     
    191191                                <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
    192192                        </textField>
    193                         <textField pattern="dd-MMM-yyyy">
    194                                 <reportElement x="50" y="2" width="200" height="12"/>
     193                        <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy">
     194                                <reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/>
    195195                                <textElement>
    196196                                        <font fontName="Serif" size="8"/>
     
    198198                                <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
    199199                        </textField>
    200                         <textField>
    201                                 <reportElement x="0" y="2" width="50" height="12"/>
     200                        <textField isStretchWithOverflow="true">
     201                                <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/>
    202202                                <textElement markup="none">
    203203                                        <font fontName="Serif" size="8"/>
     
    205205                                <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
    206206                        </textField>
    207                         <textField>
    208                                 <reportElement x="0" y="14" width="50" height="12"/>
     207                        <textField isStretchWithOverflow="true">
     208                                <reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/>
    209209                                <textElement markup="none">
    210210                                        <font fontName="Serif" size="8"/>
     
    212212                                <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
    213213                        </textField>
    214                         <textField>
    215                                 <reportElement x="50" y="14" width="200" height="12"/>
     214                        <textField isStretchWithOverflow="true">
     215                                <reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/>
    216216                                <textElement markup="none">
    217217                                        <font fontName="Serif" size="8"/>
     
    219219                                <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
    220220                        </textField>
    221                         <textField>
    222                                 <reportElement x="457" y="14" width="80" height="12"/>
     221                        <textField isStretchWithOverflow="true">
     222                                <reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/>
    223223                                <textElement textAlignment="Right">
    224224                                        <font fontName="Serif" size="8"/>
Note: See TracChangeset for help on using the changeset viewer.