[PATCH 1 of 2] jasperreports rename infrastructure ..type => ..group and ..part => ..type
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 10:33:14 CEST 2019
# HG changeset patch
# User dnt_bjoernsen <d.tironi at bjoernsen.de>
# Date 1570721323 -7200
# Thu Oct 10 17:28:43 2019 +0200
# Node ID 36d201244529ad01bac89c4d84ce4e7fed5699c3
# Parent 63bbd5e458390a18fbfa86466d51b3f0a4693428
jasperreports rename infrastructure ..type => ..group and ..part => ..type
diff -r 63bbd5e45839 -r 36d201244529 artifacts/doc/conf/jasper/templates/bundu.bezugswst.result1.jrxml
--- 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"/>
diff -r 63bbd5e45839 -r 36d201244529 artifacts/doc/conf/jasper/templates/bundu.bezugswst.result3.jrxml
--- 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"/>
diff -r 63bbd5e45839 -r 36d201244529 artifacts/doc/conf/jasper/templates/sinfo.collision.detail.jrxml
--- 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"/>
diff -r 63bbd5e45839 -r 36d201244529 artifacts/doc/conf/jasper/templates/sinfo.collision.overview.jrxml
--- 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"/>
diff -r 63bbd5e45839 -r 36d201244529 artifacts/doc/conf/jasper/templates/sinfo.floodduration.jrxml
--- 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"/>
diff -r 63bbd5e45839 -r 36d201244529 artifacts/doc/conf/jasper/templates/sinfo.floodduration2.jrxml
--- 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"/>
diff -r 63bbd5e45839 -r 36d201244529 artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculationResult.java
--- 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++) {
More information about the Dive4Elements-commits
mailing list