Mercurial > dive4elements > river
changeset 9622:36d201244529
jasperreports rename infrastructure ..type => ..group and ..part => ..type
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Thu, 10 Oct 2019 17:28:43 +0200 |
parents | 63bbd5e45839 |
children | 677ff7ed9a60 |
files | artifacts/doc/conf/jasper/templates/bundu.bezugswst.result1.jrxml artifacts/doc/conf/jasper/templates/bundu.bezugswst.result3.jrxml artifacts/doc/conf/jasper/templates/sinfo.collision.detail.jrxml artifacts/doc/conf/jasper/templates/sinfo.collision.overview.jrxml artifacts/doc/conf/jasper/templates/sinfo.floodduration.jrxml artifacts/doc/conf/jasper/templates/sinfo.floodduration2.jrxml artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java |
diffstat | 7 files changed, 16 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/jasper/templates/bundu.bezugswst.result1.jrxml Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/doc/conf/jasper/templates/bundu.bezugswst.result1.jrxml Thu Oct 10 17:28:43 2019 +0200 @@ -59,7 +59,7 @@ <field name="meta:inundationduration_header" class="java.lang.String"/> <field name="meta:inundationduration_q_header" class="java.lang.String"/> <field name="meta:infrastructure_height_header" class="java.lang.String"/> - <field name="meta:infrastructure_type_header" class="java.lang.String"/> + <field name="meta:infrastructure_group_header" class="java.lang.String"/> <field name="meta:w_1_header" class="java.lang.String"/> <field name="meta:q_1_header" class="java.lang.String"/> <field name="meta:bezeichnung_1_header" class="java.lang.String"/>
--- a/artifacts/doc/conf/jasper/templates/bundu.bezugswst.result3.jrxml Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/doc/conf/jasper/templates/bundu.bezugswst.result3.jrxml Thu Oct 10 17:28:43 2019 +0200 @@ -61,7 +61,7 @@ <field name="meta:inundationduration_header" class="java.lang.String"/> <field name="meta:inundationduration_q_header" class="java.lang.String"/> <field name="meta:infrastructure_height_header" class="java.lang.String"/> - <field name="meta:infrastructure_type_header" class="java.lang.String"/> + <field name="meta:infrastructure_group_header" class="java.lang.String"/> <field name="meta:w_1_header" class="java.lang.String"/> <field name="meta:q_1_header" class="java.lang.String"/> <field name="meta:bezeichnung_1_header" class="java.lang.String"/>
--- a/artifacts/doc/conf/jasper/templates/sinfo.collision.detail.jrxml Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/doc/conf/jasper/templates/sinfo.collision.detail.jrxml Thu Oct 10 17:28:43 2019 +0200 @@ -59,7 +59,7 @@ <field name="meta:inundationduration_header" class="java.lang.String"/> <field name="meta:inundationduration_q_header" class="java.lang.String"/> <field name="meta:infrastructure_height_header" class="java.lang.String"/> - <field name="meta:infrastructure_type_header" class="java.lang.String"/> + <field name="meta:infrastructure_group_header" class="java.lang.String"/> <field name="meta:w_1_header" class="java.lang.String"/> <field name="meta:q_1_header" class="java.lang.String"/> <field name="meta:bezeichnung_1_header" class="java.lang.String"/>
--- a/artifacts/doc/conf/jasper/templates/sinfo.collision.overview.jrxml Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/doc/conf/jasper/templates/sinfo.collision.overview.jrxml Thu Oct 10 17:28:43 2019 +0200 @@ -59,7 +59,7 @@ <field name="meta:inundationduration_header" class="java.lang.String"/> <field name="meta:inundationduration_q_header" class="java.lang.String"/> <field name="meta:infrastructure_height_header" class="java.lang.String"/> - <field name="meta:infrastructure_type_header" class="java.lang.String"/> + <field name="meta:infrastructure_group_header" class="java.lang.String"/> <field name="meta:w_1_header" class="java.lang.String"/> <field name="meta:q_1_header" class="java.lang.String"/> <field name="meta:bezeichnung_1_header" class="java.lang.String"/>
--- a/artifacts/doc/conf/jasper/templates/sinfo.floodduration.jrxml Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/doc/conf/jasper/templates/sinfo.floodduration.jrxml Thu Oct 10 17:28:43 2019 +0200 @@ -57,8 +57,8 @@ <field name="meta:inundationduration_header" class="java.lang.String"/> <field name="meta:inundationduration_q_header" class="java.lang.String"/> <field name="meta:infrastructure_height_header" class="java.lang.String"/> + <field name="meta:infrastructure_group_header" class="java.lang.String"/> <field name="meta:infrastructure_type_header" class="java.lang.String"/> - <field name="meta:infrastructure_part_header" class="java.lang.String"/> <field name="meta:w_1_header" class="java.lang.String"/> <field name="meta:q_1_header" class="java.lang.String"/> <field name="meta:bezeichnung_1_header" class="java.lang.String"/> @@ -193,13 +193,13 @@ <reportElement key="" style="htmlStyle" positionType="Float" stretchType="RelativeToBandHeight" x="264" y="0" width="60" height="24"/> <box padding="5"/> <textElement textAlignment="Left" verticalAlignment="Bottom"/> - <textFieldExpression><![CDATA[$F{meta:infrastructure_type_header}]]></textFieldExpression> + <textFieldExpression><![CDATA[$F{meta:infrastructure_group_header}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement key="" style="htmlStyle" positionType="Float" stretchType="RelativeToBandHeight" x="324" y="0" width="60" height="24"/> <box padding="5"/> <textElement textAlignment="Left" verticalAlignment="Bottom"/> - <textFieldExpression><![CDATA[$F{meta:infrastructure_part_header}]]></textFieldExpression> + <textFieldExpression><![CDATA[$F{meta:infrastructure_type_header}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement key="wOpt" style="htmlStyle" positionType="Float" stretchType="RelativeToBandHeight" x="384" y="0" width="60" height="24"/>
--- a/artifacts/doc/conf/jasper/templates/sinfo.floodduration2.jrxml Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/doc/conf/jasper/templates/sinfo.floodduration2.jrxml Thu Oct 10 17:28:43 2019 +0200 @@ -57,8 +57,8 @@ <field name="meta:inundationduration_header" class="java.lang.String"/> <field name="meta:inundationduration_q_header" class="java.lang.String"/> <field name="meta:infrastructure_height_header" class="java.lang.String"/> + <field name="meta:infrastructure_group_header" class="java.lang.String"/> <field name="meta:infrastructure_type_header" class="java.lang.String"/> - <field name="meta:infrastructure_part_header" class="java.lang.String"/> <field name="meta:w_1_header" class="java.lang.String"/> <field name="meta:q_1_header" class="java.lang.String"/> <field name="meta:bezeichnung_1_header" class="java.lang.String"/> @@ -193,13 +193,13 @@ <reportElement key="" style="htmlStyle" positionType="Float" stretchType="RelativeToBandHeight" x="132" y="0" width="40" height="24"/> <box padding="2"/> <textElement textAlignment="Left" verticalAlignment="Bottom"/> - <textFieldExpression><![CDATA[$F{meta:infrastructure_type_header}]]></textFieldExpression> + <textFieldExpression><![CDATA[$F{meta:infrastructure_group_header}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement key="" style="htmlStyle" positionType="Float" stretchType="RelativeToBandHeight" x="172" y="0" width="40" height="24"/> <box padding="2"/> <textElement textAlignment="Left" verticalAlignment="Bottom"/> - <textFieldExpression><![CDATA[$F{meta:infrastructure_part_header}]]></textFieldExpression> + <textFieldExpression><![CDATA[$F{meta:infrastructure_type_header}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement key="" style="htmlStyle" positionType="Float" stretchType="RelativeToBandHeight" x="212" y="0" width="40" height="24"/>
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java Thu Oct 10 16:08:47 2019 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java Thu Oct 10 17:28:43 2019 +0200 @@ -123,13 +123,13 @@ } public String getFloodHeightLabel(final CallContext context) { - return Resources.getMsg(context.getMeta(), FACET_ABSOLUTE_HEIGHT, FACET_ABSOLUTE_HEIGHT) - + " " + SInfoResultType.getInfrastructureLabel(context, this.m_group, this.m_type, this.m_riverside); + return Resources.getMsg(context.getMeta(), FACET_ABSOLUTE_HEIGHT, FACET_ABSOLUTE_HEIGHT) + " " + + SInfoResultType.getInfrastructureLabel(context, this.m_group, this.m_type, this.m_riverside); } public String getFloodDurationLabel(final CallContext context) { - return Resources.getMsg(context.getMeta(), FACET_FLOOD_DURATION_DESCRIPTION, FACET_FLOOD_DURATION_DESCRIPTION) - + " " + SInfoResultType.getInfrastructureLabel(context, this.m_group, this.m_type, this.m_riverside); + return Resources.getMsg(context.getMeta(), FACET_FLOOD_DURATION_DESCRIPTION, FACET_FLOOD_DURATION_DESCRIPTION) + " " + + SInfoResultType.getInfrastructureLabel(context, this.m_group, this.m_type, this.m_riverside); } } @@ -308,9 +308,8 @@ exportContextPDF.addJRMetadata(source, "inundationduration_header", SInfoResultType.floodDuration); exportContextPDF.addJRMetadata(source, "inundationduration_q_header", SInfoResultType.floodDischarge); exportContextPDF.addJRMetadata(source, "infrastructure_height_header", SInfoResultType.infrastructureHeight); - // FIXME Tironi: report-keys ..type => ..group und ..part => ..type umbenennen zwecks Einheitlichkeit - exportContextPDF.addJRMetadata(source, "infrastructure_type_header", SInfoResultType.infrastructuregroup); - exportContextPDF.addJRMetadata(source, "infrastructure_part_header", SInfoResultType.infrastructuretype); + exportContextPDF.addJRMetadata(source, "infrastructure_group_header", SInfoResultType.infrastructuregroup); + exportContextPDF.addJRMetadata(source, "infrastructure_type_header", SInfoResultType.infrastructuretype); for (int i = 1; i <= this.getWaterlevelCount(); i++) {