Skip to content

Commit

Permalink
Kleine Optimierung
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Maierhofer committed Jan 24, 2025
1 parent 8c70de3 commit 536924b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
43 changes: 13 additions & 30 deletions src/de/jost_net/JVerein/gui/control/MittelverwendungControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,40 +111,23 @@ public Part getSaldoList() throws ApplicationException

public Part getSaldoList(int tab) throws ApplicationException
{
try
if (getDatumvon().getDate() != null)
{
if (getDatumvon().getDate() != null)
{
settings.setAttribute("von",
new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate()));
settings.setAttribute("bis",
new JVDateFormatTTMMJJJJ().format(getDatumbis().getDate()));
}
settings.setAttribute("von",
new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate()));
settings.setAttribute("bis",
new JVDateFormatTTMMJJJJ().format(getDatumbis().getDate()));
}

if (saldoList[tab] == null)
{
saldoList[tab] = new MittelverwendungList(null, datumvon.getDate(),
datumbis.getDate(), tab);
}
else
{
settings.setAttribute("von",
new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate()));

saldoList[tab].setDatumvon(datumvon.getDate());
saldoList[tab].setDatumbis(datumbis.getDate());
ArrayList<MittelverwendungZeile> zeile = saldoList[tab].getInfo();
saldoList[tab].removeAll();
for (MittelverwendungZeile sz : zeile)
{
saldoList[tab].addItem(sz);
}
}
if (saldoList[tab] == null)
{
saldoList[tab] = new MittelverwendungList(null, datumvon.getDate(),
datumbis.getDate(), tab);
}
catch (RemoteException e)
else
{
throw new ApplicationException(
String.format("Fehler aufgetreten %s", e.getMessage()));
saldoList[tab].setDatumvon(datumvon.getDate());
saldoList[tab].setDatumbis(datumbis.getDate());
}
return saldoList[tab].getSaldoList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ protected void orderBy(int index)
Column.ALIGN_LEFT);
saldoList.addColumn("Kommentar", "kommentar");
saldoList.setRememberColWidths(true);
saldoList.setRememberOrder(true);
saldoList.removeFeature(FeatureSummary.class);
}
else
Expand Down

0 comments on commit 536924b

Please sign in to comment.