@@ -196,44 +196,46 @@ protected void addDataHeaderToRow(final Row row, final MessstelleAuswertungOptio
196196 if (isGesamtSheet ) {
197197 addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "MstId" );
198198 }
199- if (fahrzeugOptions .isKraftfahrzeugverkehr ()) {
200- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "KFZ" );
199+
200+ if (fahrzeugOptions .isPersonenkraftwagen ()) {
201+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "PKW" );
201202 }
202- if (fahrzeugOptions .isSchwerverkehr ()) {
203- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "SV " );
203+ if (fahrzeugOptions .isLieferwagen ()) {
204+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "LFW " );
204205 }
205- if (fahrzeugOptions .isGueterverkehr ()) {
206- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "GV " );
206+ if (fahrzeugOptions .isLastkraftwagen ()) {
207+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "LKW " );
207208 }
208- if (fahrzeugOptions .isSchwerverkehrsanteilProzent ()) {
209- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "SV% " );
209+ if (fahrzeugOptions .isLastzuege ()) {
210+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "LZ " );
210211 }
211- if (fahrzeugOptions .isGueterverkehrsanteilProzent ()) {
212- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "GV%" );
212+ if (fahrzeugOptions .isBusse ()) {
213+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "BUS" );
214+ }
215+ if (fahrzeugOptions .isKraftraeder ()) {
216+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "KRAD" );
213217 }
214218 if (fahrzeugOptions .isRadverkehr ()) {
215219 addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "RAD" );
216220 }
217221 if (fahrzeugOptions .isFussverkehr ()) {
218222 addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "FUß" );
219223 }
220- if (fahrzeugOptions .isLastkraftwagen ()) {
221- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "LKW" );
222- }
223- if (fahrzeugOptions .isLieferwagen ()) {
224- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "LFW" );
224+
225+ if (fahrzeugOptions .isKraftfahrzeugverkehr ()) {
226+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "KFZ" );
225227 }
226- if (fahrzeugOptions .isLastzuege ()) {
227- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "LZ " );
228+ if (fahrzeugOptions .isSchwerverkehr ()) {
229+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "SV " );
228230 }
229- if (fahrzeugOptions .isBusse ()) {
230- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "BUS " );
231+ if (fahrzeugOptions .isSchwerverkehrsanteilProzent ()) {
232+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "SV% " );
231233 }
232- if (fahrzeugOptions .isKraftraeder ()) {
233- addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "KRAD " );
234+ if (fahrzeugOptions .isGueterverkehr ()) {
235+ addStringToCell (row .createCell (headerCellIndex ++, CellType .STRING ), "GV " );
234236 }
235- if (fahrzeugOptions .isPersonenkraftwagen ()) {
236- addStringToCell (row .createCell (headerCellIndex , CellType .STRING ), "PKW " );
237+ if (fahrzeugOptions .isGueterverkehrsanteilProzent ()) {
238+ addStringToCell (row .createCell (headerCellIndex , CellType .STRING ), "GV% " );
237239 }
238240 }
239241
@@ -304,20 +306,23 @@ protected void addDataToRow(
304306 if (isGesamtSheet ) {
305307 addStringToCell (row .createCell (cellIndex ++, CellType .STRING ), auswertung .getObjectId ());
306308 }
307- if (fahrzeugOptions .isKraftfahrzeugverkehr ()) {
308- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeKraftfahrzeugverkehr ());
309+ if (fahrzeugOptions .isPersonenkraftwagen ()) {
310+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeAllePkw ());
309311 }
310- if (fahrzeugOptions .isSchwerverkehr ()) {
311- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeSchwerverkehr ());
312+ if (fahrzeugOptions .isLieferwagen ()) {
313+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlLfw ());
312314 }
313- if (fahrzeugOptions .isGueterverkehr ()) {
314- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeGueterverkehr ());
315+ if (fahrzeugOptions .isLastkraftwagen ()) {
316+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlLkw ());
315317 }
316- if (fahrzeugOptions .isSchwerverkehrsanteilProzent ()) {
317- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getProzentSchwerverkehr ());
318+ if (fahrzeugOptions .isLastzuege ()) {
319+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeLastzug ());
318320 }
319- if (fahrzeugOptions .isGueterverkehrsanteilProzent ()) {
320- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getProzentGueterverkehr ());
321+ if (fahrzeugOptions .isBusse ()) {
322+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlBus ());
323+ }
324+ if (fahrzeugOptions .isKraftraeder ()) {
325+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlKrad ());
321326 }
322327 if (fahrzeugOptions .isRadverkehr ()) {
323328 addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlRad ());
@@ -326,24 +331,22 @@ protected void addDataToRow(
326331 // Wird aktuell noch nicht erfasst
327332 addStringToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), StringUtils .EMPTY );
328333 }
329- if (fahrzeugOptions .isLastkraftwagen ()) {
330- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlLkw ());
331- }
332- if (fahrzeugOptions .isLieferwagen ()) {
333- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlLfw ());
334+ if (fahrzeugOptions .isKraftfahrzeugverkehr ()) {
335+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeKraftfahrzeugverkehr ());
334336 }
335- if (fahrzeugOptions .isLastzuege ()) {
336- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeLastzug ());
337+ if (fahrzeugOptions .isSchwerverkehr ()) {
338+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeSchwerverkehr ());
337339 }
338- if (fahrzeugOptions .isBusse ()) {
339- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlBus ());
340+ if (fahrzeugOptions .isSchwerverkehrsanteilProzent ()) {
341+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getProzentSchwerverkehr ());
340342 }
341- if (fahrzeugOptions .isKraftraeder ()) {
342- addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getAnzahlKrad ());
343+ if (fahrzeugOptions .isGueterverkehr ()) {
344+ addBigDecimalToCell (row .createCell (cellIndex ++, CellType .NUMERIC ), auswertung .getDaten ().getSummeGueterverkehr ());
343345 }
344- if (fahrzeugOptions .isPersonenkraftwagen ()) {
345- addBigDecimalToCell (row .createCell (cellIndex , CellType .NUMERIC ), auswertung .getDaten ().getSummeAllePkw ());
346+ if (fahrzeugOptions .isGueterverkehrsanteilProzent ()) {
347+ addBigDecimalToCell (row .createCell (cellIndex , CellType .NUMERIC ), auswertung .getDaten ().getProzentGueterverkehr ());
346348 }
349+
347350 }
348351
349352 protected void addBigDecimalToCell (final Cell cell , final BigDecimal data ) {
0 commit comments