Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@18930 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
1b33aaa5fb
commit
faaac5e954
18
at/at3.cpp
18
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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
16
at/at3100a.h
16
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
|
||||
|
@ -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 <printbar.h>
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
#include "at3200a.h"
|
||||
|
||||
PAGE "Mensile donazioni per gruppo e rh" -1 -1 78 12
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,10 @@
|
||||
#include "at3300a.h"
|
||||
|
||||
PAGE "Statistica donatori per categoria" -1 -1 78 20
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
@ -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));
|
||||
|
@ -1,6 +1,10 @@
|
||||
#include "at3400a.h"
|
||||
|
||||
PAGE "Riepilogo mensile donazioni" -1 -1 78 12
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
#include "at3500a.h"
|
||||
|
||||
PAGE "Riepilogo giornaliero donazioni" -1 -1 78 15
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
#include "at3600a.h"
|
||||
|
||||
PAGE "Statistica donazioni/donatori" -1 -1 78 16
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 <printbar.h>
|
||||
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
|
||||
|
@ -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 = "";
|
||||
|
@ -1,10 +1,14 @@
|
||||
#include "at3800a.h"
|
||||
|
||||
PAGE "Riepilogo donazioni per tipo e punto" -1 -1 78 12
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
#include "at3900a.h"
|
||||
|
||||
PAGE "Statistica donatori per comune domicilio" -1 -1 78 20
|
||||
TOOLBAR "" 0 0 0 2
|
||||
#include <printbar.h>
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user