43 |
root |
1 |
/***************************************************************************
|
|
|
2 |
* Copyright (C) 2007 by Andreas Theofilu *
|
|
|
3 |
* andreas@TheoSys.at *
|
|
|
4 |
* *
|
|
|
5 |
* This program is free software; you can redistribute it and/or modify *
|
|
|
6 |
* it under the terms of the GNU General Public License as published by *
|
|
|
7 |
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
8 |
* (at your option) any later version. *
|
|
|
9 |
* *
|
|
|
10 |
* This program is distributed in the hope that it will be useful, *
|
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
13 |
* GNU General Public License for more details. *
|
|
|
14 |
* *
|
|
|
15 |
* You should have received a copy of the GNU General Public License *
|
|
|
16 |
* along with this program; if not, write to the *
|
|
|
17 |
* Free Software Foundation, Inc., *
|
|
|
18 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
|
19 |
***************************************************************************/
|
|
|
20 |
|
|
|
21 |
#include <klineedit.h>
|
|
|
22 |
#include <kmessagebox.h>
|
|
|
23 |
#include <klocale.h>
|
|
|
24 |
#include <kdatewidget.h>
|
|
|
25 |
#include <kcombobox.h>
|
|
|
26 |
#include <knuminput.h>
|
|
|
27 |
#include <qcheckbox.h>
|
|
|
28 |
|
|
|
29 |
#include <stdlib.h>
|
|
|
30 |
#include <iostream.h>
|
|
|
31 |
#include "helper.h"
|
|
|
32 |
#include "tilgungsplanwidget.h"
|
|
|
33 |
#include "ziaendwidget.h"
|
|
|
34 |
|
|
|
35 |
tilgungsplanWidget::tilgungsplanWidget ( QWidget* parent, const char* name, WFlags fl )
|
|
|
36 |
: tilgungsplanWidgetBase ( parent,name,fl )
|
|
|
37 |
{
|
|
|
38 |
QDate dt;
|
|
|
39 |
|
|
|
40 |
// Maske mit sinnvollen Parametern versorgen
|
|
|
41 |
comboBox_tageber->setCurrentItem(3);
|
|
|
42 |
comboBox_Ratart->setCurrentItem(1);
|
|
|
43 |
comboBox_Abschl->setCurrentItem(10);
|
|
|
44 |
kDoubleNumInput_Zinssatz->setValue(5.5);
|
|
|
45 |
kDateWidget_Auszahlung->setDate(QDate::currentDate());
|
|
|
46 |
// Datum: Der 5. des nächsten Monats
|
|
|
47 |
dt = QDate::currentDate();
|
|
|
48 |
dt = dt.addMonths(1);
|
|
|
49 |
dt.setYMD(dt.year(), dt.month(), 5);
|
|
|
50 |
kDateWidget_RaVon->setDate(dt);
|
|
|
51 |
dt = dt.addYears(1);
|
|
|
52 |
kDateWidget_RaBis->setDate(dt);
|
|
|
53 |
kDateWidget_ZiGiltAb->setDate(QDate::currentDate());
|
|
|
54 |
kDoubleNumInput_Betrag->setValue(100000.0);
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
tilgungsplanWidget::~tilgungsplanWidget()
|
|
|
58 |
{}
|
|
|
59 |
|
|
|
60 |
/*$SPECIALIZATION$*/
|
|
|
61 |
void tilgungsplanWidget::mnCalcTPSumSlot()
|
|
|
62 |
{
|
|
|
63 |
QDate dt, dt1;
|
|
|
64 |
QString str, zia;
|
|
|
65 |
TRech *tp;
|
|
|
66 |
int ret, day1, day2, mon1, mon2, year1, year2;
|
|
|
67 |
char hv0[255];
|
|
|
68 |
|
|
|
69 |
// Wurde eine Zinssatzänderung gewünscht, dann rufen wird die
|
|
|
70 |
// Dialogbox dazu auf.
|
|
|
71 |
if (checkBox_ZiChange->isChecked())
|
|
|
72 |
{
|
|
|
73 |
ziaendWidgetBase *dlg = new ziaendWidgetBase(this, "ziaendWidgetBase", TRUE, 0);
|
|
|
74 |
|
|
|
75 |
if (dlg->exec() == QDialog::Accepted)
|
|
|
76 |
zia = QString::fromUtf8(".zinstbl.dat");
|
|
|
77 |
else
|
|
|
78 |
zia = QString::fromUtf8("");
|
|
|
79 |
|
|
|
80 |
delete dlg;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
// Zuweisen der Inhalte der Widgets zur internen Parameterstruktur.
|
|
|
84 |
TpPars.effformel = 0.0;
|
|
|
85 |
TpPars.gewicht = 0.0;
|
|
|
86 |
TpPars.tageb = comboBox_tageber->currentItem();
|
|
|
87 |
TpPars.verzart = comboBox_verzart->currentItem();
|
|
|
88 |
TpPars.ratenart = comboBox_Ratart->currentItem();
|
|
|
89 |
TpPars.valuta = comboBox_valuta->currentItem();
|
|
|
90 |
TpPars.zssoll = kDoubleNumInput_Zinssatz->value();
|
|
|
91 |
TpPars.zuschfix = kDoubleNumInput_ZiZuschuss->value();
|
|
|
92 |
TpPars.zuschprz = 0.0;
|
|
|
93 |
TpPars.zuschannu = kDoubleNumInput_AnnZuschuss->value();
|
|
|
94 |
dt = kDateWidget_Auszahlung->date();
|
|
|
95 |
TpPars.ragab = make_date(dt.day(), dt.month(), dt.year());
|
|
|
96 |
dt = kDateWidget_Abschluss->date();
|
|
|
97 |
TpPars.abschl = make_date(dt.day(), dt.month(), dt.year());
|
|
|
98 |
TpPars.ultimo = checkBox_RechUltimo->isChecked();
|
|
|
99 |
TpPars.anzraten = kIntNumInput_AnzRaten->value();
|
|
|
100 |
ret = comboBox_Abschl->currentItem();
|
|
|
101 |
|
|
|
102 |
switch (ret)
|
|
|
103 |
{
|
|
|
104 |
case 0: TpPars.abschlry = 0; break;
|
|
|
105 |
case 1: TpPars.abschlry = 1; break;
|
|
|
106 |
case 2: TpPars.abschlry = 3; break;
|
|
|
107 |
case 3: TpPars.abschlry = 6; break;
|
|
|
108 |
case 4: TpPars.abschlry = 12; break;
|
|
|
109 |
case 5: TpPars.abschlry = 41; break;
|
|
|
110 |
case 6: TpPars.abschlry = 43; break;
|
|
|
111 |
case 7: TpPars.abschlry = 46; break;
|
|
|
112 |
case 8: TpPars.abschlry = 47; break;
|
|
|
113 |
case 9: TpPars.abschlry = 48; break;
|
|
|
114 |
case 10: TpPars.abschlry = 52; break;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
TpPars.zuschver = 0; // Zuschuss Verrechnung ??
|
|
|
118 |
TpPars.spesen = kDoubleNumInput_Fixspesen->value();
|
|
|
119 |
TpPars.rahmen = kDoubleNumInput_Betrag->value();
|
|
|
120 |
TpPars.kapital = 0.0;
|
|
|
121 |
TpPars.raplan[0] = atoi(lineEdit_RaJan->text());
|
|
|
122 |
TpPars.raplan[1] = atoi(lineEdit_RaFeb->text());
|
|
|
123 |
TpPars.raplan[2] = atoi(lineEdit_RaMar->text());
|
|
|
124 |
TpPars.raplan[3] = atoi(lineEdit_RaApr->text());
|
|
|
125 |
TpPars.raplan[4] = atoi(lineEdit_RaMai->text());
|
|
|
126 |
TpPars.raplan[5] = atoi(lineEdit_RaJun->text());
|
|
|
127 |
TpPars.raplan[6] = atoi(lineEdit_RaJul->text());
|
|
|
128 |
TpPars.raplan[7] = atoi(lineEdit_RaAug->text());
|
|
|
129 |
TpPars.raplan[8] = atoi(lineEdit_RaSep->text());
|
|
|
130 |
TpPars.raplan[9] = atoi(lineEdit_RaOkt->text());
|
|
|
131 |
TpPars.raplan[10] = atoi(lineEdit_RaNov->text());
|
|
|
132 |
TpPars.raplan[11] = atoi(lineEdit_RaDez->text());
|
|
|
133 |
TpPars.rate = kDoubleNumInput_Rate->value();
|
|
|
134 |
dt = kDateWidget_RaVon->date();
|
|
|
135 |
TpPars.dvon = make_date(dt.day(), dt.month(), dt.year());
|
|
|
136 |
dt = kDateWidget_RaBis->date();
|
|
|
137 |
TpPars.dbis = make_date(dt.day(), dt.month(), dt.year());
|
|
|
138 |
dt = kDateWidget_Endfael->date();
|
|
|
139 |
TpPars.endfaell = make_date(dt.day(), dt.month(), dt.year());
|
|
|
140 |
TpPars.runden = checkBox_Runden->isChecked();
|
|
|
141 |
TpPars.mehrfach = FALSE;
|
|
|
142 |
TpPars.laufstop = FALSE;
|
|
|
143 |
TpPars.ziaend = FALSE;
|
|
|
144 |
TpPars.effekt = TRUE;
|
|
|
145 |
TpPars.fixrate = checkBox_Rate->isChecked();
|
|
|
146 |
|
|
|
147 |
if (TpPars.dbis > TpPars.endfaell)
|
|
|
148 |
TpPars.endfaell = TpPars.dbis;
|
|
|
149 |
|
|
|
150 |
// Berechnung anstossen
|
|
|
151 |
tp = new TRech (&TpPars);
|
|
|
152 |
|
|
|
153 |
if ((ret = tp->tilgpl()) != 0)
|
|
|
154 |
{
|
|
|
155 |
switch (ret)
|
|
|
156 |
{
|
|
|
157 |
case 1: str = QString::fromUtf8("Fehler beim Erzeugen einer Temporärdatei!"); break;
|
|
|
158 |
case 2: str = QString::fromUtf8("Erste Einschränkung nicht vorhanden!"); break;
|
|
|
159 |
case 3:
|
|
|
160 |
date_int (&day1, &mon1, &year1, TpPars.ragab);
|
|
|
161 |
date_int (&day2, &mon2, &year2, TpPars.dvon);
|
|
|
162 |
sprintf (hv0, "Das Auszahlungsdatum (%02d.%02d.%d) muss kleiner als das Datum der ersten Einschränkung sein (%02d.%02d.%d)!",
|
|
|
163 |
day1, mon1, year1, day2, mon2, year2);
|
|
|
164 |
str = QString::fromUtf8(hv0); break;
|
|
|
165 |
case 4:
|
|
|
166 |
date_int (&day1, &mon1, &year1, TpPars.abschl);
|
|
|
167 |
date_int (&day2, &mon2, &year2, TpPars.ragab);
|
|
|
168 |
sprintf (hv0, "Das Abschlussdatum (%02d.%02d.%d) darf nicht kleiner als das Auszahlungsdatum (%02d, %02d.%d) sein!",
|
|
|
169 |
day1, mon1, year1, day2, mon2, year2);
|
|
|
170 |
str = QString::fromUtf8(hv0); break;
|
|
|
171 |
case 5:
|
|
|
172 |
date_int (&day1, &mon1, &year1, TpPars.dvon);
|
|
|
173 |
date_int (&day2, &mon2, &year2, TpPars.dbis);
|
|
|
174 |
sprintf (hv0, "Die erste Einschränkung (%02d.%02d.%d) darf nicht größer als die letzte Einschränkung (%02d.%02d.%d) sein!",
|
|
|
175 |
day1, mon1, year1, day2, mon2, year2);
|
|
|
176 |
str = QString::fromUtf8(hv0); break;
|
|
|
177 |
case 6:
|
|
|
178 |
date_int (&day1, &mon1, &year1, TpPars.dbis);
|
|
|
179 |
date_int (&day2, &mon2, &year2, TpPars.endfaell);
|
|
|
180 |
sprintf (hv0, "Die letzte Einschränkung (%02d.%02d.%d) darf nicht größer die Endfälligkeit (%02d.%02d.%d) sein!",
|
|
|
181 |
day1, mon1, year1, day2, mon2, year2);
|
|
|
182 |
str = QString::fromUtf8(hv0); break;
|
|
|
183 |
case 7: str = QString::fromUtf8("Es wurde keine Rate angegeben!"); break;
|
|
|
184 |
case 8: str = QString::fromUtf8("Kein, oder ungültiges Auszahlungsdatum!"); break;
|
|
|
185 |
case 9: str = QString::fromUtf8("Die Verzinsung in Bezug auf den Abschlussrythmus ist ungültig!"); break;
|
|
|
186 |
case 10: str = QString::fromUtf8("Das Abschlussdatum fehlt oder ist ungültig!"); break;
|
|
|
187 |
case 11:
|
|
|
188 |
sprintf(hv0, "Der Abschlussrythmus ist ungültig! (%d)",TpPars.abschlry);
|
|
|
189 |
str = QString::fromUtf8(hv0); break;
|
|
|
190 |
case 12: str = QString::fromUtf8("Die Verzinsungsart ist ungültig!"); break;
|
|
|
191 |
case 13: str = QString::fromUtf8("Die Ratenart ist ungültig!"); break;
|
|
|
192 |
case 14: str = QString::fromUtf8("Die Laufzeit ist über 100 Jahre!"); break;
|
|
|
193 |
case 15: str = QString::fromUtf8("Es wurde keine Rate vorgegeben!"); break;
|
|
|
194 |
case 16: str = QString::fromUtf8("Die vorgegebene Rate darf nicht kleiner als 0 sein!"); break;
|
|
|
195 |
case 18: str = QString::fromUtf8("Die erste Einschränkung oder die Ratenleiste ist ungültig!"); break;
|
|
|
196 |
case 19: str = QString::fromUtf8("Die letzte Einschränkung oder die Ratenleiste ist ungültig!"); break;
|
|
|
197 |
case 22: str = QString::fromUtf8("Nicht genügend Speicher!"); break;
|
|
|
198 |
case 23: str = QString::fromUtf8("\"Antizipativ\" erlaubt keine Zinssatzänderung!"); break;
|
|
|
199 |
case 24: str = QString::fromUtf8("Fehler beim Lesen der Zinssatzänderungen!"); break;
|
|
|
200 |
default:
|
|
|
201 |
sprintf (hv0, "Unbekannter Fehler \"%d\"! Prüfen Sie die Eingaben.", ret);
|
|
|
202 |
str = QString::fromUtf8(hv0);
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
KMessageBox::error(0, str, i18n("Fehler"));
|
|
|
206 |
lineEdit_EffZi->clear();
|
|
|
207 |
lineEdit_GesBelast->clear();
|
|
|
208 |
return;
|
|
|
209 |
}
|
|
|
210 |
// cout << "Effektivzinssätze: " << TpPars.effformel << ", " << TpPars.gewicht << endl;
|
|
|
211 |
PointNumber(TpPars.effformel, 3, &hv0[0]);
|
|
|
212 |
lineEdit_EffZi->clear();
|
|
|
213 |
lineEdit_EffZi->insert(hv0);
|
|
|
214 |
PointNumber(TpPars.gesamt, 2, &hv0[0]);
|
|
|
215 |
lineEdit_GesBelast->clear();
|
|
|
216 |
lineEdit_GesBelast->insert(hv0);
|
|
|
217 |
kDoubleNumInput_Rate->setValue(TpPars.ergrate);
|
|
|
218 |
kIntNumInput_AnzRaten->setValue(TpPars.anzraten);
|
|
|
219 |
date_int(&day1, &mon1, &year1, TpPars.dbis);
|
|
|
220 |
dt.setYMD(year1, mon1, day1);
|
|
|
221 |
kDateWidget_RaBis->setDate(dt);
|
|
|
222 |
date_int(&day1, &mon1, &year1, TpPars.endfaell);
|
|
|
223 |
dt.setYMD(year1, mon1, day1);
|
|
|
224 |
kDateWidget_Endfael->setDate(dt);
|
|
|
225 |
}
|
|
|
226 |
|
|
|
227 |
void tilgungsplanWidget::txRaDezSlot()
|
|
|
228 |
{
|
|
|
229 |
QString svalue = lineEdit_RaDez->text();
|
|
|
230 |
|
|
|
231 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
232 |
{
|
|
|
233 |
lineEdit_RaDez->clear();
|
|
|
234 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
235 |
}
|
|
|
236 |
}
|
|
|
237 |
|
|
|
238 |
void tilgungsplanWidget::txRaNovSlot()
|
|
|
239 |
{
|
|
|
240 |
QString svalue = lineEdit_RaNov->text();
|
|
|
241 |
|
|
|
242 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
243 |
{
|
|
|
244 |
lineEdit_RaNov->clear();
|
|
|
245 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
246 |
}
|
|
|
247 |
}
|
|
|
248 |
|
|
|
249 |
void tilgungsplanWidget::txRaOktSlot()
|
|
|
250 |
{
|
|
|
251 |
QString svalue = lineEdit_RaOkt->text();
|
|
|
252 |
|
|
|
253 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
254 |
{
|
|
|
255 |
lineEdit_RaOkt->clear();
|
|
|
256 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
257 |
}
|
|
|
258 |
}
|
|
|
259 |
|
|
|
260 |
void tilgungsplanWidget::txRaSepSlot()
|
|
|
261 |
{
|
|
|
262 |
QString svalue = lineEdit_RaSep->text();
|
|
|
263 |
|
|
|
264 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
265 |
{
|
|
|
266 |
lineEdit_RaSep->clear();
|
|
|
267 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
268 |
}
|
|
|
269 |
}
|
|
|
270 |
|
|
|
271 |
void tilgungsplanWidget::txRaAugSlot()
|
|
|
272 |
{
|
|
|
273 |
QString svalue = lineEdit_RaAug->text();
|
|
|
274 |
|
|
|
275 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
276 |
{
|
|
|
277 |
lineEdit_RaAug->clear();
|
|
|
278 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
279 |
}
|
|
|
280 |
}
|
|
|
281 |
|
|
|
282 |
void tilgungsplanWidget::txRaJulSlot()
|
|
|
283 |
{
|
|
|
284 |
QString svalue = lineEdit_RaJul->text();
|
|
|
285 |
|
|
|
286 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
287 |
{
|
|
|
288 |
lineEdit_RaJul->clear();
|
|
|
289 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
290 |
}
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
void tilgungsplanWidget::txRaJunSlot()
|
|
|
294 |
{
|
|
|
295 |
QString svalue = lineEdit_RaJun->text();
|
|
|
296 |
|
|
|
297 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
298 |
{
|
|
|
299 |
lineEdit_RaJun->clear();
|
|
|
300 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
301 |
}
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
void tilgungsplanWidget::txRaMaiSlot()
|
|
|
305 |
{
|
|
|
306 |
QString svalue = lineEdit_RaMai->text();
|
|
|
307 |
|
|
|
308 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
309 |
{
|
|
|
310 |
lineEdit_RaMai->clear();
|
|
|
311 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
312 |
}
|
|
|
313 |
}
|
|
|
314 |
|
|
|
315 |
void tilgungsplanWidget::txRaMarSlot()
|
|
|
316 |
{
|
|
|
317 |
QString svalue = lineEdit_RaMar->text();
|
|
|
318 |
|
|
|
319 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
320 |
{
|
|
|
321 |
lineEdit_RaMar->clear();
|
|
|
322 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
323 |
}
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
void tilgungsplanWidget::txRaFebSlot()
|
|
|
327 |
{
|
|
|
328 |
QString svalue = lineEdit_RaFeb->text();
|
|
|
329 |
|
|
|
330 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
331 |
{
|
|
|
332 |
lineEdit_RaFeb->clear();
|
|
|
333 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
334 |
}
|
|
|
335 |
}
|
|
|
336 |
|
|
|
337 |
void tilgungsplanWidget::txRaJanSlot()
|
|
|
338 |
{
|
|
|
339 |
QString svalue = lineEdit_RaJan->text();
|
|
|
340 |
|
|
|
341 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
342 |
{
|
|
|
343 |
lineEdit_RaJan->clear();
|
|
|
344 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
345 |
}
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
void tilgungsplanWidget::txRaAprSlot()
|
|
|
349 |
{
|
|
|
350 |
QString svalue = lineEdit_RaApr->text();
|
|
|
351 |
|
|
|
352 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
353 |
{
|
|
|
354 |
lineEdit_RaApr->clear();
|
|
|
355 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
356 |
}
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
void tilgungsplanWidget::txGesBelastSlot()
|
|
|
360 |
{}
|
|
|
361 |
|
|
|
362 |
void tilgungsplanWidget::txEffZiSlot()
|
|
|
363 |
{}
|
|
|
364 |
|
|
|
365 |
void tilgungsplanWidget::txAbDezSlot()
|
|
|
366 |
{
|
|
|
367 |
QString svalue = lineEdit_AbDez->text();
|
|
|
368 |
|
|
|
369 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
370 |
{
|
|
|
371 |
lineEdit_AbDez->clear();
|
|
|
372 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
373 |
}
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
void tilgungsplanWidget::txAbNovSlot()
|
|
|
377 |
{
|
|
|
378 |
QString svalue = lineEdit_AbNov->text();
|
|
|
379 |
|
|
|
380 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
381 |
{
|
|
|
382 |
lineEdit_AbNov->clear();
|
|
|
383 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
384 |
}
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
void tilgungsplanWidget::txAbOktSlot()
|
|
|
388 |
{
|
|
|
389 |
QString svalue = lineEdit_AbOkt->text();
|
|
|
390 |
|
|
|
391 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
392 |
{
|
|
|
393 |
lineEdit_AbOkt->clear();
|
|
|
394 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
395 |
}
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
void tilgungsplanWidget::txAbSepSlot()
|
|
|
399 |
{
|
|
|
400 |
QString svalue = lineEdit_AbSep->text();
|
|
|
401 |
|
|
|
402 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
403 |
{
|
|
|
404 |
lineEdit_AbSep->clear();
|
|
|
405 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
406 |
}
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
void tilgungsplanWidget::txAbAugSlot()
|
|
|
410 |
{
|
|
|
411 |
QString svalue = lineEdit_AbAug->text();
|
|
|
412 |
|
|
|
413 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
414 |
{
|
|
|
415 |
lineEdit_AbAug->clear();
|
|
|
416 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
417 |
}
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
void tilgungsplanWidget::txAbJulSlot()
|
|
|
421 |
{
|
|
|
422 |
QString svalue = lineEdit_AbJul->text();
|
|
|
423 |
|
|
|
424 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
425 |
{
|
|
|
426 |
lineEdit_AbJul->clear();
|
|
|
427 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
428 |
}
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
void tilgungsplanWidget::txAbJunSlot()
|
|
|
432 |
{
|
|
|
433 |
QString svalue = lineEdit_AbJun->text();
|
|
|
434 |
|
|
|
435 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
436 |
{
|
|
|
437 |
lineEdit_AbJun->clear();
|
|
|
438 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
439 |
}
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
void tilgungsplanWidget::txAbMaiSlot()
|
|
|
443 |
{QString svalue = lineEdit_AbMai->text();
|
|
|
444 |
|
|
|
445 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
446 |
{
|
|
|
447 |
lineEdit_AbMai->clear();
|
|
|
448 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
449 |
}}
|
|
|
450 |
|
|
|
451 |
void tilgungsplanWidget::txAbMarSlot()
|
|
|
452 |
{
|
|
|
453 |
QString svalue = lineEdit_AbMar->text();
|
|
|
454 |
|
|
|
455 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
456 |
{
|
|
|
457 |
lineEdit_AbMar->clear();
|
|
|
458 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
459 |
}
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
void tilgungsplanWidget::txAbFebSlot()
|
|
|
463 |
{
|
|
|
464 |
QString svalue = lineEdit_AbFeb->text();
|
|
|
465 |
|
|
|
466 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
467 |
{
|
|
|
468 |
lineEdit_AbFeb->clear();
|
|
|
469 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
470 |
}
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
void tilgungsplanWidget::txAbJanSlot()
|
|
|
474 |
{
|
|
|
475 |
QString svalue = lineEdit_AbJan->text();
|
|
|
476 |
|
|
|
477 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
478 |
{
|
|
|
479 |
lineEdit_AbJan->clear();
|
|
|
480 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
481 |
}
|
|
|
482 |
}
|
|
|
483 |
|
|
|
484 |
void tilgungsplanWidget::txAbAprSlot()
|
|
|
485 |
{
|
|
|
486 |
QString svalue = lineEdit_AbApr->text();
|
|
|
487 |
|
|
|
488 |
if (!svalue.isEmpty() && svalue.compare("0") && svalue.compare("1"))
|
|
|
489 |
{
|
|
|
490 |
lineEdit_AbApr->clear();
|
|
|
491 |
KMessageBox::information(0, i18n("Es sind nur die Ziffern 0 und 1 erlabt!"), i18n("Warnung"));
|
|
|
492 |
}
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
void tilgungsplanWidget::intAnzRatenSlot()
|
|
|
496 |
{}
|
|
|
497 |
|
|
|
498 |
void tilgungsplanWidget::numAnnZuschSlot()
|
|
|
499 |
{}
|
|
|
500 |
|
|
|
501 |
void tilgungsplanWidget::dtZiGiltAbSlot()
|
|
|
502 |
{}
|
|
|
503 |
|
|
|
504 |
void tilgungsplanWidget::dtRaVonSlot()
|
|
|
505 |
{}
|
|
|
506 |
|
|
|
507 |
void tilgungsplanWidget::dtRaBisSlot()
|
|
|
508 |
{}
|
|
|
509 |
|
|
|
510 |
void tilgungsplanWidget::dtEndfaelSlot()
|
|
|
511 |
{}
|
|
|
512 |
|
|
|
513 |
void tilgungsplanWidget::dtAuszahlSlot()
|
|
|
514 |
{}
|
|
|
515 |
|
|
|
516 |
void tilgungsplanWidget::dtAbschlussSlot()
|
|
|
517 |
{}
|
|
|
518 |
|
|
|
519 |
void tilgungsplanWidget::lbRatartSlot()
|
|
|
520 |
{}
|
|
|
521 |
|
|
|
522 |
void tilgungsplanWidget::cbZiChangeSlot()
|
|
|
523 |
{}
|
|
|
524 |
|
|
|
525 |
void tilgungsplanWidget::cbUltimoSlot()
|
|
|
526 |
{}
|
|
|
527 |
|
|
|
528 |
void tilgungsplanWidget::cbRateSlot()
|
|
|
529 |
{}
|
|
|
530 |
|
|
|
531 |
void tilgungsplanWidget::mnCalcTPSlot()
|
|
|
532 |
{}
|
|
|
533 |
|
|
|
534 |
void tilgungsplanWidget::lbVerzartSlot()
|
|
|
535 |
{}
|
|
|
536 |
|
|
|
537 |
void tilgungsplanWidget::lbTageberSlot()
|
|
|
538 |
{}
|
|
|
539 |
|
|
|
540 |
void tilgungsplanWidget::numZuzaehlSlot()
|
|
|
541 |
{}
|
|
|
542 |
|
|
|
543 |
void tilgungsplanWidget::numBeaGebSlot()
|
|
|
544 |
{}
|
|
|
545 |
|
|
|
546 |
void tilgungsplanWidget::numZisatzSlot()
|
|
|
547 |
{}
|
|
|
548 |
|
|
|
549 |
void tilgungsplanWidget::numZiZuschSlot()
|
|
|
550 |
{}
|
|
|
551 |
|
|
|
552 |
void tilgungsplanWidget::numRateSlot()
|
|
|
553 |
{}
|
|
|
554 |
|
|
|
555 |
void tilgungsplanWidget::numFixspesenSlot()
|
|
|
556 |
{}
|
|
|
557 |
|
|
|
558 |
void tilgungsplanWidget::cbRundenSlot()
|
|
|
559 |
{}
|
|
|
560 |
|
|
|
561 |
void tilgungsplanWidget::numBetragSlot()
|
|
|
562 |
{}
|
|
|
563 |
|
|
|
564 |
void tilgungsplanWidget::helpAbout()
|
|
|
565 |
{}
|
|
|
566 |
|
|
|
567 |
void tilgungsplanWidget::helpContents()
|
|
|
568 |
{}
|
|
|
569 |
|
|
|
570 |
void tilgungsplanWidget::helpIndex()
|
|
|
571 |
{}
|
|
|
572 |
|
|
|
573 |
void tilgungsplanWidget::editFind()
|
|
|
574 |
{}
|
|
|
575 |
|
|
|
576 |
void tilgungsplanWidget::editPaste()
|
|
|
577 |
{}
|
|
|
578 |
|
|
|
579 |
void tilgungsplanWidget::editCopy()
|
|
|
580 |
{}
|
|
|
581 |
|
|
|
582 |
void tilgungsplanWidget::editCut()
|
|
|
583 |
{}
|
|
|
584 |
|
|
|
585 |
void tilgungsplanWidget::editRedo()
|
|
|
586 |
{}
|
|
|
587 |
|
|
|
588 |
void tilgungsplanWidget::editUndo()
|
|
|
589 |
{}
|
|
|
590 |
|
|
|
591 |
void tilgungsplanWidget::fileExit()
|
|
|
592 |
{}
|
|
|
593 |
|
|
|
594 |
void tilgungsplanWidget::filePrint()
|
|
|
595 |
{}
|
|
|
596 |
|
|
|
597 |
void tilgungsplanWidget::fileSaveAs()
|
|
|
598 |
{}
|
|
|
599 |
|
|
|
600 |
void tilgungsplanWidget::fileSave()
|
|
|
601 |
{}
|
|
|
602 |
|
|
|
603 |
void tilgungsplanWidget::fileOpen()
|
|
|
604 |
{}
|
|
|
605 |
|
|
|
606 |
void tilgungsplanWidget::fileNew()
|
|
|
607 |
{}
|
|
|
608 |
|
|
|
609 |
void tilgungsplanWidget::lbValutaSlot()
|
|
|
610 |
{}
|
|
|
611 |
|
|
|
612 |
void tilgungsplanWidget::cbAbschlSlot()
|
|
|
613 |
{
|
|
|
614 |
int item = comboBox_Abschl->currentItem();
|
|
|
615 |
char hv0[256];
|
|
|
616 |
|
|
|
617 |
switch (item)
|
|
|
618 |
{
|
|
|
619 |
case 0: TpPars.abschlry = 0; break;
|
|
|
620 |
case 1: TpPars.abschlry = 1; break;
|
|
|
621 |
case 2: TpPars.abschlry = 3; break;
|
|
|
622 |
case 3: TpPars.abschlry = 6; break;
|
|
|
623 |
case 4: TpPars.abschlry = 12; break;
|
|
|
624 |
case 5: TpPars.abschlry = 41; break;
|
|
|
625 |
case 6: TpPars.abschlry = 43; break;
|
|
|
626 |
case 7: TpPars.abschlry = 46; break;
|
|
|
627 |
case 8: TpPars.abschlry = 47; break;
|
|
|
628 |
case 9: TpPars.abschlry = 48; break;
|
|
|
629 |
case 10: TpPars.abschlry = 52; break;
|
|
|
630 |
default:
|
|
|
631 |
sprintf (hv0, "Gewähltes Item: %d", item);
|
|
|
632 |
KMessageBox::information(0, i18n(hv0));
|
|
|
633 |
}
|
|
|
634 |
}
|
|
|
635 |
|
|
|
636 |
#include "tilgungsplanwidget.moc"
|
|
|
637 |
|