Skip to content

Commit

Permalink
@n Backports: 0113,0116,0117,0118,0121,0122
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhn committed Jul 28, 2011
1 parent 032b048 commit 825cd6e
Show file tree
Hide file tree
Showing 14 changed files with 390 additions and 301 deletions.
14 changes: 14 additions & 0 deletions build/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
2011-07-28 Version 2.0.3

* BUG: 0122 BUGZILLA 1109 - Bricht man einen Auftrag im chipTAN-Dialog ab, befindet
sich im Job-Status die Erfolgsmeldung "0030 Auftrag angenommen - TAN erforderlich".
Das wurde in AbstractHBCIJob#handleResult als Erfolg interpretiert, weil
0030 explizit ein OK-Status ist. Fuer diesen Status gibts jetzt eine Sonderrolle
* BUG: 0121 Zeitraum und Stichtag in Sparquote initial nicht gesetzt, wurde erst nach
Klick auf "Aktualisieren" korrekt berechnet
* BUG: 0118 UmsatzTyp#matches(Umsatz,boolean allowReassign)
* BUG: 0117 Bei Sammelauftraegen fehlte die Laengen-Pruefung der BLZ
* NEW: 0116 Filter-Einstellungen in Umsatzliste nur noch fuer die Dauer der Sitzung speichern - siehe
http://www.onlinebanking-forum.de/phpBB2/viewtopic.php?p=76837#76837
* CHG: 0113 Zeitraum in Auswertung "Sparquote" jetzt auch ueber neuen Schiebe-Regler

2011-07-06 Version 2.0.2

* BUG: 0112 BUGZILLA 1100 - Callbacks 12 und 13 duerfen nicht im Passport behandelt werden, weil das auch in
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plugin xmlns="http://www.willuhn.de/schema/jameica-plugin"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.willuhn.de/schema/jameica-plugin http://www.willuhn.de/schema/jameica-plugin-1.2.xsd"
name="hibiscus" version="2.0.2" class="de.willuhn.jameica.hbci.HBCI">
name="hibiscus" version="2.0.3" class="de.willuhn.jameica.hbci.HBCI">

<description>HBCI-Onlinebanking-Plugin für Jameica</description>
<url>https://www.willuhn.de/products/hibiscus/releases/current/hibiscus.zip</url>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**********************************************************************
* $Source: /cvsroot/hibiscus/hibiscus/src/de/willuhn/jameica/hbci/gui/controller/UmsatzDetailControl.java,v $
* $Revision: 1.43 $
* $Date: 2011/06/07 10:07:50 $
* $Revision: 1.43.2.1 $
* $Date: 2011/07/28 12:07:34 $
* $Author: willuhn $
* $Locker: $
* $State: Exp $
Expand Down Expand Up @@ -149,11 +149,7 @@ public Input getKonto() throws RemoteException
return konto;
Konto k = getUmsatz().getKonto();
konto = new LabelInput(k.getKontonummer());
String comment = k.getBezeichnung();
String s = HBCIUtils.getNameForBLZ(k.getBLZ());
if (s != null && s.length() > 0)
comment += " [" + s + "]";
konto.setComment(s);
konto.setComment(HBCIUtils.getNameForBLZ(k.getBLZ()));
return konto;
}

Expand Down Expand Up @@ -396,7 +392,10 @@ public synchronized void handleStore()

/**********************************************************************
* $Log: UmsatzDetailControl.java,v $
* Revision 1.43 2011/06/07 10:07:50 willuhn
* Revision 1.43.2.1 2011/07/28 12:07:34 willuhn
* @N Backports: 0113,0116,0117,0118,0121,0122
*
* Revision 1.43 2011-06-07 10:07:50 willuhn
* @C Verwendungszweck-Handling vereinheitlicht/vereinfacht - geht jetzt fast ueberall ueber VerwendungszweckUtil
*
* Revision 1.42 2010-09-27 11:51:38 willuhn
Expand Down
9 changes: 6 additions & 3 deletions src/de/willuhn/jameica/hbci/gui/parts/AbstractFromToList.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**********************************************************************
* $Source: /cvsroot/hibiscus/hibiscus/src/de/willuhn/jameica/hbci/gui/parts/AbstractFromToList.java,v $
* $Revision: 1.11 $
* $Date: 2011/06/28 09:24:35 $
* $Revision: 1.10.2.1 $
* $Date: 2011/07/28 12:07:34 $
* $Author: willuhn $
* $Locker: $
* $State: Exp $
Expand Down Expand Up @@ -354,7 +354,10 @@ public void keyReleased(KeyEvent e)

/**********************************************************************
* $Log: AbstractFromToList.java,v $
* Revision 1.11 2011/06/28 09:24:35 willuhn
* Revision 1.10.2.1 2011/07/28 12:07:34 willuhn
* @N Backports: 0113,0116,0117,0118,0121,0122
*
* Revision 1.11 2011-06-28 09:24:35 willuhn
* @N Position speichern
*
* Revision 1.10 2011-01-20 17:13:21 willuhn
Expand Down
132 changes: 44 additions & 88 deletions src/de/willuhn/jameica/hbci/gui/parts/KontoauszugList.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**********************************************************************
* $Source: /cvsroot/hibiscus/hibiscus/src/de/willuhn/jameica/hbci/gui/parts/KontoauszugList.java,v $
* $Revision: 1.45 $
* $Date: 2011/06/23 15:20:05 $
* $Revision: 1.45.2.1 $
* $Date: 2011/07/28 12:07:33 $
* $Author: willuhn $
* $Locker: $
* $State: Exp $
Expand Down Expand Up @@ -77,9 +77,6 @@ public class KontoauszugList extends UmsatzList
{
private final static I18N i18n = Application.getPluginLoader().getPlugin(HBCI.class).getResources().getI18N();

private static Date endDate = null;
private static Integer currentTab = null;

// Konto/Zeitraum/Suchbegriff/nur geprueft
private TextInput text = null;
private CheckboxInput unchecked = null;
Expand Down Expand Up @@ -168,11 +165,12 @@ public synchronized void paint(Composite parent) throws RemoteException
}

// Wir merken uns das aktive Tab.
if (currentTab != null) folder.setSelection(currentTab);
Integer tab = (Integer) cache.get("tab");
if (tab != null) folder.setSelection(tab);
folder.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e)
{
currentTab = folder.getSelectionIndex();
cache.put("tab",folder.getSelectionIndex());
}
});

Expand Down Expand Up @@ -204,10 +202,7 @@ public void handleAction(Object context) throws ApplicationException

new Headline(parent,i18n.tr("Gefundene Umsätze"));

removeAll();
List<Umsatz> list = getUmsaetze();
for(Umsatz u:list)
addItem(u);
handleReload(true);

parent.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e)
Expand All @@ -218,9 +213,6 @@ public void widgetDisposed(DisposeEvent e)
});
super.paint(parent);

// Zum Schluss Sortierung aktualisieren
sort();

// Machen wir explizit nochmal, weil wir die paint()-Methode ueberschrieben haben
restoreState();
}
Expand Down Expand Up @@ -252,7 +244,8 @@ public CheckboxInput getUnChecked()
if (this.unchecked != null)
return this.unchecked;

this.unchecked = new CheckboxInput(mySettings.getBoolean("kontoauszug.list.unchecked",false));
Boolean b = (Boolean) cache.get("kontoauszug.list.unchecked");
this.unchecked = new CheckboxInput(b != null && b.booleanValue());
this.unchecked.addListener(this.listener);
return this.unchecked;
}
Expand All @@ -265,29 +258,17 @@ public Input getStart()
if (this.start != null)
return this.start;

Date dStart = null;
String s = mySettings.getString("kontoauszug.list.from",null);
if (s != null)
// Wir schlagen den aktuellen Monat als Startdatum nur beim ersten
// Aufruf in dieser Sitzung vor.
Date date = (Date) cache.get("kontoauszug.list.from");
if (date == null && cache.get("suggest.start") == null)
{
try
{
dStart = HBCI.DATEFORMAT.parse(s);
}
catch (Exception e)
{
Logger.error("unable to restore start date",e);
mySettings.setAttribute("kontoauszug.list.from",(String) null);
}
}
else
{
// Ansonsten nehmen wir den ersten des aktuellen Monats
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DAY_OF_MONTH, 1);
dStart = cal.getTime();
date = cal.getTime();
cache.put("suggest.start",Boolean.FALSE);
}

this.start = new DateInput(dStart, HBCI.DATEFORMAT);
this.start = new DateInput(date, HBCI.DATEFORMAT);
this.start.setComment(i18n.tr("Frühestes Valuta-Datum"));
this.start.addListener(this.listener);
return this.start;
Expand All @@ -302,7 +283,7 @@ public Input getEnd()
if (this.end != null)
return this.end;

this.end = new DateInput(endDate, HBCI.DATEFORMAT);
this.end = new DateInput((Date) cache.get("kontoauszug.list.to"), HBCI.DATEFORMAT);
this.end.setComment(i18n.tr("Spätestes Valuta-Datum"));
this.end.addListener(this.listener);
return this.end;
Expand All @@ -318,26 +299,9 @@ public UmsatzTypInput getKategorie() throws RemoteException
if (this.kategorie != null)
return this.kategorie;

UmsatzTyp preset = null;

/////////////////////
// Preset laden
String s = mySettings.getString("kontoauszug.list.kategorie",null);
if (s != null && s.length() > 0)
{
try
{
preset = (UmsatzTyp) de.willuhn.jameica.hbci.Settings.getDBService().createObject(UmsatzTyp.class,s);
}
catch (Exception e)
{
// Kategorie existiert wohl nicht mehr - dann loeschen wir die Vorauswahl
mySettings.setAttribute("kontoauszug.list.kategorie",(String)null);
}
}
//
/////////////////////

UmsatzTyp preset = (UmsatzTyp) cache.get("kontoauszug.list.kategorie");
if (preset == null || preset.getID() == null)
preset = null; // wurde zwischenzeitlich geloescht
this.kategorie = new UmsatzTypInput(preset,UmsatzTyp.TYP_EGAL);
this.kategorie.setPleaseChoose(i18n.tr("<Alle Kategorien>"));
this.kategorie.setComment(null);
Expand All @@ -357,7 +321,7 @@ public DialogInput getGegenkontoNummer() throws RemoteException

AdresseAuswahlDialog d = new AdresseAuswahlDialog(AdresseAuswahlDialog.POSITION_MOUSE);
d.addCloseListener(new AddressListener());
this.gegenkontoNummer = new DialogInput(mySettings.getString("kontoauszug.list.gegenkonto.nummer",null),d);
this.gegenkontoNummer = new DialogInput((String) cache.get("kontoauszug.list.gegenkonto.nummer"),d);
this.gegenkontoNummer.setValidChars(HBCIProperties.HBCI_KTO_VALIDCHARS);
this.gegenkontoNummer.addListener(this.listener);
return this.gegenkontoNummer;
Expand All @@ -373,7 +337,7 @@ public Input getGegenkontoBLZ() throws RemoteException
if (this.gegenkontoBLZ != null)
return this.gegenkontoBLZ;

this.gegenkontoBLZ = new BLZInput(mySettings.getString("kontoauszug.list.gegenkonto.blz",null));
this.gegenkontoBLZ = new BLZInput((String)cache.get("kontoauszug.list.gegenkonto.blz"));
this.gegenkontoBLZ.setComment(null);
this.gegenkontoBLZ.addListener(this.listener);
return this.gegenkontoBLZ;
Expand All @@ -388,7 +352,7 @@ public Input getGegenkontoName() throws RemoteException
{
if (this.gegenkontoName != null)
return this.gegenkontoName;
this.gegenkontoName = new TextInput(mySettings.getString("kontoauszug.list.gegenkonto.name",null),HBCIProperties.HBCI_TRANSFER_NAME_MAXLENGTH);
this.gegenkontoName = new TextInput((String)cache.get("kontoauszug.list.gegenkonto.name"),HBCIProperties.HBCI_TRANSFER_NAME_MAXLENGTH);
this.gegenkontoName.setValidChars(HBCIProperties.HBCI_DTAUS_VALIDCHARS);
this.gegenkontoName.addListener(this.listener);
return this.gegenkontoName;
Expand All @@ -403,7 +367,7 @@ public Input getText() throws RemoteException
{
if (this.text != null)
return this.text;
this.text = new TextInput(mySettings.getString("kontoauszug.list.text",null),HBCIProperties.HBCI_TRANSFER_USAGE_MAXLENGTH);
this.text = new TextInput((String)cache.get("kontoauszug.list.text"),HBCIProperties.HBCI_TRANSFER_USAGE_MAXLENGTH);
this.text.addListener(this.listener);
return this.text;
}
Expand All @@ -418,7 +382,7 @@ public Input getMindestBetrag() throws RemoteException
if (this.betragFrom != null)
return this.betragFrom;

this.betragFrom = new DecimalInput(mySettings.getDouble("kontoauszug.list.betrag.from",Double.NaN), HBCI.DECIMALFORMAT);
this.betragFrom = new DecimalInput((Double)cache.get("kontoauszug.list.betrag.from"), HBCI.DECIMALFORMAT);
this.betragFrom.setComment(HBCIProperties.CURRENCY_DEFAULT_DE);
this.betragFrom.addListener(this.listener);
this.betragFrom.addListener(new Listener()
Expand Down Expand Up @@ -461,7 +425,7 @@ public Input getHoechstBetrag() throws RemoteException
if (this.betragTo != null)
return this.betragTo;

this.betragTo = new DecimalInput(mySettings.getDouble("kontoauszug.list.betrag.to",Double.NaN), HBCI.DECIMALFORMAT);
this.betragTo = new DecimalInput((Double)cache.get("kontoauszug.list.betrag.to"), HBCI.DECIMALFORMAT);
this.betragTo.setComment(HBCIProperties.CURRENCY_DEFAULT_DE);
this.betragTo.addListener(this.listener);
return this.betragTo;
Expand All @@ -486,6 +450,18 @@ private synchronized List<Umsatz> getUmsaetze() throws RemoteException
UmsatzTyp typ = (UmsatzTyp) getKategorie().getValue();
boolean unchecked = ((Boolean) getUnChecked().getValue()).booleanValue();

// Aktuelle Werte speichern
cache.put("kontoauszug.list.from", start);
cache.put("kontoauszug.list.to", end);
cache.put("kontoauszug.list.gegenkonto.nummer",gkNummer);
cache.put("kontoauszug.list.gegenkonto.blz", gkBLZ);
cache.put("kontoauszug.list.gegenkonto.name", gkName);
cache.put("kontoauszug.list.kategorie", typ);
cache.put("kontoauszug.list.text", zk);
cache.put("kontoauszug.list.betrag.from", min);
cache.put("kontoauszug.list.betrag.to", max);
cache.put("kontoauszug.list.unchecked", unchecked);

DBIterator umsaetze = UmsatzUtil.getUmsaetzeBackwards();

// BUGZILLA 449
Expand Down Expand Up @@ -648,32 +624,6 @@ public void run()
for(Umsatz u:list)
addItem(u);

// Aktuelle Werte speichern
try
{
// Nur fuer die Dauer der Sitzung speichern
endDate = (Date) getEnd().getValue(); // BUGZILLA 951

// Wir speichern hier alle eingegebenen Suchbegriffe fuer's naechste mal
Date from = (Date) getStart().getValue();
UmsatzTyp typ = (UmsatzTyp) getKategorie().getValue();
Double bFrom = (Double) getMindestBetrag().getValue();
Double bTo = (Double) getHoechstBetrag().getValue();
boolean unchecked = ((Boolean) getUnChecked().getValue()).booleanValue();
mySettings.setAttribute("kontoauszug.list.from",from == null ? null : HBCI.DATEFORMAT.format(from));
mySettings.setAttribute("kontoauszug.list.gegenkonto.nummer",getGegenkontoNummer().getText());
mySettings.setAttribute("kontoauszug.list.gegenkonto.blz",(String) getGegenkontoBLZ().getValue());
mySettings.setAttribute("kontoauszug.list.gegenkonto.name",(String) getGegenkontoName().getValue());
mySettings.setAttribute("kontoauszug.list.kategorie",typ == null ? null : typ.getID());
mySettings.setAttribute("kontoauszug.list.text",(String) getText().getValue());
mySettings.setAttribute("kontoauszug.list.betrag.from",bFrom == null ? Double.NaN : bFrom.doubleValue());
mySettings.setAttribute("kontoauszug.list.betrag.to",bTo == null ? Double.NaN : bTo.doubleValue());
mySettings.setAttribute("kontoauszug.list.unchecked",unchecked);
}
catch (RemoteException re)
{
Logger.error("error while saving last filter settings",re);
}

// Zum Schluss Sortierung aktualisieren
sort();
Expand Down Expand Up @@ -751,7 +701,13 @@ public void handleEvent(Event event)

/*********************************************************************
* $Log: KontoauszugList.java,v $
* Revision 1.45 2011/06/23 15:20:05 willuhn
* Revision 1.45.2.1 2011/07/28 12:07:33 willuhn
* @N Backports: 0113,0116,0117,0118,0121,0122
*
* Revision 1.46 2011-07-20 15:13:10 willuhn
* @N Filter-Einstellungen nur noch fuer die Dauer der Sitzung speichern - siehe http://www.onlinebanking-forum.de/phpBB2/viewtopic.php?p=76837#76837
*
* Revision 1.45 2011-06-23 15:20:05 willuhn
* @B BUGZILLA 1082
*
* Revision 1.44 2011-05-19 08:41:53 willuhn
Expand Down
Loading

0 comments on commit 825cd6e

Please sign in to comment.