From faaac5e95478fe6d9b113c363b2fe8fec4853f3e Mon Sep 17 00:00:00 2001 From: luca Date: Mon, 25 May 2009 15:22:21 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@18930 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at3.cpp | 18 +++++++++--------- at/at3100.cpp | 20 +++++++++++--------- at/at3100a.h | 16 ++++++++-------- at/at3100a.uml | 14 +++----------- at/at3200.cpp | 2 +- at/at3200a.uml | 19 ++++++------------- at/at3300.cpp | 2 +- at/at3300a.uml | 16 +++++----------- at/at3400.cpp | 10 +++++----- at/at3400a.uml | 17 +++++------------ at/at3500.cpp | 2 +- at/at3500a.uml | 18 ++++++------------ at/at3600.cpp | 2 +- at/at3600a.uml | 18 ++++++------------ at/at3700.cpp | 2 +- at/at3700a.uml | 16 ++++------------ at/at3800.cpp | 4 ++-- at/at3800a.uml | 19 ++++++------------- at/at3900.cpp | 2 +- at/at3900a.uml | 18 ++++++------------ 20 files changed, 88 insertions(+), 147 deletions(-) diff --git a/at/at3.cpp b/at/at3.cpp index 53904bb8c..f9067145c 100755 --- a/at/at3.cpp +++ b/at/at3.cpp @@ -13,23 +13,23 @@ int main(int argc,char** argv) switch (r) { case 0: - rt = at3100(argc,argv) ; break; + rt = at3100(argc,argv) ; break; //Statistica soggetti per sesso e eta' case 1: - rt = at3200(argc,argv) ; break; + rt = at3200(argc,argv) ; break; //Mensile donazioni per gruppo e rh case 2: - rt = at3300(argc,argv) ; break; + rt = at3300(argc,argv) ; break; //Statistica soggetti per categoria case 3: - rt = at3400(argc,argv) ; break; + rt = at3400(argc,argv) ; break; //Riepilogo mensile donazioni case 4: - rt = at3500(argc,argv) ; break; + rt = at3500(argc,argv) ; break; //Riepilogo giornaliero donazioni case 5: - rt = at3600(argc,argv) ; break; + rt = at3600(argc,argv) ; break; //Statistica donazioni/donatori case 6: - rt = at3700(argc,argv) ; break; + rt = at3700(argc,argv) ; break; //Statistica soggetti per sesso, gruppo e rh case 7: - rt = at3800(argc,argv) ; break; + rt = at3800(argc,argv) ; break; //Riepilogo donazioni per tipo e punto case 8: - rt = at3900(argc,argv) ; break; + rt = at3900(argc,argv) ; break; //Statistica soggetti per comune di domicilio default: error_box(usage, argv[0]) ; break; } diff --git a/at/at3100.cpp b/at/at3100.cpp index 5efcfa1bb..dd3963d6b 100755 --- a/at/at3100.cpp +++ b/at/at3100.cpp @@ -181,7 +181,7 @@ bool TStatSogxEta::create() _atstats = new TLocalisamfile(LF_ATSTATS); _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } @@ -396,7 +396,7 @@ void TStatSogxEta::stampa_sezione(TString16 codsez, TString16 codsot) TRigaSFascia rigatotali(0,0); TString16 valore; real totalefascia = ZERO; - for (int r=0;r<_etaini.items();r++) + for (int r = 0;r < _etaini.items(); r++) { TRigaSFascia& riga = (TRigaSFascia&)_righe[r]; row.reset(); @@ -411,20 +411,22 @@ void TStatSogxEta::stampa_sezione(TString16 codsez, TString16 codsot) rigastampa << valreal.string(); rigastampa << " anni"; totalefascia = ZERO; - for (int j=0;j<_colonne->items();j++) + + for (int j = 0;j < _colonne->items(); j++) totalefascia+=riga[j]; + // ciclo per stampa int pos = 15; - for (j=0;j<_colonne->items();j++) + for (int k = 0;k < _colonne->items(); k++) { - rigatotali.aggiorna_valore(j,riga[j]); + rigatotali.aggiorna_valore(k, riga[k]); valore = ""; - valore.format("%8s",riga[j].string(8,0)); + valore.format("%8s",riga[k].string(8,0)); rigastampa.overwrite((const char*)valore, pos); - pos=pos+10; + pos = pos + 10; if (totalefascia != ZERO) { - real perc = (riga[j]/totalefascia)*100; + real perc = (riga[k]/totalefascia)*100; valore = ""; valore << perc.string(3,2); rigastampa.overwrite((const char*)valore, pos); @@ -432,7 +434,7 @@ void TStatSogxEta::stampa_sezione(TString16 codsez, TString16 codsot) pos = pos+6; if (totalegenerale != ZERO) { - real perc = (riga[j]/totalegenerale)*100; + real perc = (riga[k]/totalegenerale)*100; valore = ""; valore << perc.string(3,2); rigastampa.overwrite((const char*)valore, pos); diff --git a/at/at3100a.h b/at/at3100a.h index f47dffaee..121f1e0bb 100755 --- a/at/at3100a.h +++ b/at/at3100a.h @@ -1,14 +1,14 @@ // statistica donatori per sesso e fascie di eta' // definizione campi per maschera di selezione -#define F_SEZINI 101 -#define F_D_SEZINI 102 -#define F_SOTINI 103 -#define F_D_SOTINI 104 -#define F_SEZFIN 105 -#define F_D_SEZFIN 106 -#define F_SOTFIN 107 -#define F_D_SOTFIN 108 +#define F_SEZINI 201 +#define F_D_SEZINI 202 +#define F_SOTINI 203 +#define F_D_SOTINI 204 +#define F_SEZFIN 205 +#define F_D_SEZFIN 206 +#define F_SOTFIN 207 +#define F_D_SOTFIN 208 #define F_CATDON 301 #define F_D_CATDON 302 diff --git a/at/at3100a.uml b/at/at3100a.uml index add94a127..c99fda9e2 100755 --- a/at/at3100a.uml +++ b/at/at3100a.uml @@ -1,18 +1,10 @@ #include "at3100a.h" -TOOLBAR "" 0 20 0 2 -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END +TOOLBAR "" 0 0 0 2 +#include ENDPAGE -PAGE "Statistica donatori per sesso e fascie di eta'" -1 -1 78 20 +PAGE "Statistica donatori per sesso e fascie di eta'" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN diff --git a/at/at3200.cpp b/at/at3200.cpp index 6b4e6ecbc..cc0abb90b 100755 --- a/at/at3200.cpp +++ b/at/at3200.cpp @@ -271,7 +271,7 @@ bool TMensileDonxGr::create() _atstatd = new TLocalisamfile(LF_ATSTATD); _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } diff --git a/at/at3200a.uml b/at/at3200a.uml index 445705b8f..abc0dab2e 100755 --- a/at/at3200a.uml +++ b/at/at3200a.uml @@ -1,10 +1,14 @@ #include "at3200a.h" -PAGE "Mensile donazioni per gruppo e rh" -1 -1 78 12 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Mensile donazioni per gruppo e rh" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN - PROMPT 1 1 "Scelta sezioni/sottogruppi" + PROMPT 1 1 "Scelta sezioni/sottogruppi" END STRING F_SEZINI 2 @@ -159,16 +163,5 @@ BEGIN PROMPT 2 8 "Stampa solo totale finale (non stampa il dettaglio per sezione)" END - -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK diff --git a/at/at3300.cpp b/at/at3300.cpp index b9c62b30e..a1fd496c6 100755 --- a/at/at3300.cpp +++ b/at/at3300.cpp @@ -182,7 +182,7 @@ bool TStatSogxCat::create() _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); _categorie = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } diff --git a/at/at3300a.uml b/at/at3300a.uml index a54990e62..e808d7265 100755 --- a/at/at3300a.uml +++ b/at/at3300a.uml @@ -1,6 +1,10 @@ #include "at3300a.h" -PAGE "Statistica donatori per categoria" -1 -1 78 20 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Statistica donatori per categoria" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN @@ -304,15 +308,5 @@ BEGIN PROMPT 2 13 "Stampa solo totale finale (non stampa il dettaglio per sezione)" END -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK diff --git a/at/at3400.cpp b/at/at3400.cpp index dc6a71e00..bb178c097 100755 --- a/at/at3400.cpp +++ b/at/at3400.cpp @@ -219,7 +219,7 @@ bool TRiepilogoDonazioni::create() _atstatd = new TLocalisamfile(LF_ATSTATD); _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } @@ -644,13 +644,13 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot) rigastampa = "Totale periodo"; totalemese = ZERO; pos = 21; - for (i=0;i<_colonne->items();i++) + for (int j = 0; j < _colonne->items(); j++) { - totalemese+=rigatotali[i]; + totalemese += rigatotali[j]; valore = ""; - valore.format("%8s",rigatotali[i].string(8,0)); + valore.format("%8s", rigatotali[j].string(8,0)); rigastampa.overwrite((const char*)valore, pos); - pos = pos+10; + pos = pos + 10; } valore = ""; valore.format("%8s",totalemese.string(8,0)); diff --git a/at/at3400a.uml b/at/at3400a.uml index 401549962..815f4aa7a 100755 --- a/at/at3400a.uml +++ b/at/at3400a.uml @@ -1,6 +1,10 @@ #include "at3400a.h" -PAGE "Riepilogo mensile donazioni" -1 -1 78 12 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Riepilogo mensile donazioni" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN @@ -144,16 +148,5 @@ BEGIN PROMPT 2 8 "Stampa solo totale finale (non stampa il dettaglio per sezione)" END - -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK diff --git a/at/at3500.cpp b/at/at3500.cpp index 737e9aebf..879ec13ee 100755 --- a/at/at3500.cpp +++ b/at/at3500.cpp @@ -154,7 +154,7 @@ bool TRiepilogoGiornaliero::create() _atstatd = new TLocalisamfile(LF_ATSTATD); _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } diff --git a/at/at3500a.uml b/at/at3500a.uml index 9166ce5d1..b79e3d32f 100755 --- a/at/at3500a.uml +++ b/at/at3500a.uml @@ -1,10 +1,14 @@ #include "at3500a.h" -PAGE "Riepilogo giornaliero donazioni" -1 -1 78 15 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Riepilogo giornaliero donazioni" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN - PROMPT 1 1 "Scelta sezioni/sottogruppi" + PROMPT 1 1 "Scelta sezioni/sottogruppi" END STRING F_SEZINI 2 @@ -174,15 +178,5 @@ BEGIN FLAGS "D" END -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK diff --git a/at/at3600.cpp b/at/at3600.cpp index 55f9f9dc6..1e98a16cb 100755 --- a/at/at3600.cpp +++ b/at/at3600.cpp @@ -208,7 +208,7 @@ bool TStatDonGrRh::create() _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); _asoggetti = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } diff --git a/at/at3600a.uml b/at/at3600a.uml index eaa66ae36..fb8e3dd0d 100755 --- a/at/at3600a.uml +++ b/at/at3600a.uml @@ -1,10 +1,14 @@ #include "at3600a.h" -PAGE "Statistica donazioni/donatori" -1 -1 78 16 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Statistica donazioni/donatori" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN - PROMPT 1 1 "Scelta sezioni/sottogruppi" + PROMPT 1 1 "Scelta sezioni/sottogruppi" END STRING F_SEZINI 2 @@ -246,15 +250,5 @@ BEGIN PROMPT 2 13 "Stampa solo totale finale (non stampa il dettaglio per sezione)" END -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK diff --git a/at/at3700.cpp b/at/at3700.cpp index 5a0c9d349..75b41a59d 100755 --- a/at/at3700.cpp +++ b/at/at3700.cpp @@ -205,7 +205,7 @@ bool TStatisticaSog::create() _atstats = new TLocalisamfile(LF_ATSTATS); _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } diff --git a/at/at3700a.uml b/at/at3700a.uml index c80d60b21..d78c38931 100755 --- a/at/at3700a.uml +++ b/at/at3700a.uml @@ -1,22 +1,14 @@ #include "at3700a.h" -TOOLBAR "" 0 20 0 2 -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END +TOOLBAR "" 0 0 0 2 +#include ENDPAGE -PAGE "Statistica donatori per sesso, gruppo e rh" -1 -1 78 12 +PAGE "Statistica donatori per sesso, gruppo e rh" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN - PROMPT 1 1 "Scelta sezioni/sottogruppi" + PROMPT 1 1 "Scelta sezioni/sottogruppi" END STRING F_SEZINI 2 diff --git a/at/at3800.cpp b/at/at3800.cpp index bfc2f65da..0bfa78007 100755 --- a/at/at3800.cpp +++ b/at/at3800.cpp @@ -166,7 +166,7 @@ bool TRiepilogoPunto::create() _sezioni = new TLocalisamfile(LF_SEZIONI); _colonne = new TAssoc_array(); _punti = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } @@ -435,7 +435,7 @@ void TRiepilogoPunto::stampa_sezione(TString16 codsez, TString16 codsot) totalepunto = ZERO; //pos = 31; pos = 51; - for (i=0;i<_colonne->items();i++) + for (int i = 0; i < _colonne->items(); i++) { totalepunto+=rigatotali[i]; valore = ""; diff --git a/at/at3800a.uml b/at/at3800a.uml index 23978ad1a..59e737097 100755 --- a/at/at3800a.uml +++ b/at/at3800a.uml @@ -1,10 +1,14 @@ #include "at3800a.h" -PAGE "Riepilogo donazioni per tipo e punto" -1 -1 78 12 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Riepilogo donazioni per tipo e punto" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN - PROMPT 1 1 "Scelta sezioni/sottogruppi" + PROMPT 1 1 "Scelta sezioni/sottogruppi" END STRING F_SEZINI 2 @@ -139,16 +143,5 @@ BEGIN PROMPT 2 7 "Stampa solo totale finale (non stampa il dettaglio per sezione)" END - -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK diff --git a/at/at3900.cpp b/at/at3900.cpp index e2a2511c5..81677ded3 100755 --- a/at/at3900.cpp +++ b/at/at3900.cpp @@ -185,7 +185,7 @@ bool TStatSogxCom::create() _comuni = new TLocalisamfile(LF_COMUNI); _colonne = new TAssoc_array(); _comprovincia = new TAssoc_array(); - dispatch_e_menu(BAR_ITEM(1)); + dispatch_e_menu(BAR_ITEM_ID(1)); return TRUE; } diff --git a/at/at3900a.uml b/at/at3900a.uml index fc916e0bf..132e4d579 100755 --- a/at/at3900a.uml +++ b/at/at3900a.uml @@ -1,10 +1,14 @@ #include "at3900a.h" -PAGE "Statistica donatori per comune domicilio" -1 -1 78 20 +TOOLBAR "" 0 0 0 2 +#include +ENDPAGE + +PAGE "Statistica donatori per comune domicilio" 0 2 0 0 GROUPBOX DLG_NULL 77 4 BEGIN - PROMPT 1 1 "Scelta sezioni/sottogruppi" + PROMPT 1 1 "Scelta sezioni/sottogruppi" END STRING F_SEZINI 2 @@ -249,15 +253,5 @@ BEGIN FLAGS "U" END -BUTTON DLG_OK 9 2 -BEGIN - PROMPT -12 -1 "" -END - -BUTTON DLG_QUIT 9 2 -BEGIN - PROMPT -22 -1 "" -END - ENDPAGE ENDMASK