Patch level : at

Files correlati     : at3.exe
Ricompilazione Demo : [ ]
Commento            : corretto stampa totali in statistiche (integer non andava bene)


git-svn-id: svn://10.65.10.50/trunk@11269 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2003-06-23 10:31:12 +00:00
parent 30077ad2c3
commit 6535e4db78
3 changed files with 24 additions and 24 deletions

View File

@ -459,12 +459,12 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot)
rigatotali.aggiorna_valore(i,riga[i]);
totalemese+=riga[i];
valore = "";
valore.format("%8d",riga[i].integer());
valore.format("%8s",riga[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totalemese.integer());
valore.format("%8s",totalemese.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -486,12 +486,12 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot)
{
totalemese+=rigatotali[i];
valore = "";
valore.format("%8d",rigatotali[i].integer());
valore.format("%8s",rigatotali[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totalemese.integer());
valore.format("%8s",totalemese.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -540,12 +540,12 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot)
rigatotali.aggiorna_valore(i,riga[i]);
totalemese+=riga[i];
valore = "";
valore.format("%8d",riga[i].integer());
valore.format("%8s",riga[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totalemese.integer());
valore.format("%8s",totalemese.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -567,12 +567,12 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot)
{
totalemese+=rigatotali[i];
valore = "";
valore.format("%8d",rigatotali[i].integer());
valore.format("%8s",rigatotali[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totalemese.integer());
valore.format("%8s",totalemese.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -622,12 +622,12 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot)
rigatotali.aggiorna_valore(i,differenza);
totalemese+=differenza;
valore = "";
valore.format("%8d",differenza.integer());
valore.format("%8s",differenza.string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totalemese.integer());
valore.format("%8s",totalemese.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -649,12 +649,12 @@ void TRiepilogoDonazioni::stampa_sezione(TString16 codsez, TString16 codsot)
{
totalemese+=rigatotali[i];
valore = "";
valore.format("%8d",rigatotali[i].integer());
valore.format("%8s",rigatotali[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totalemese.integer());
valore.format("%8s",totalemese.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);

View File

@ -415,12 +415,12 @@ void TRiepilogoGiornaliero::stampa_tutto()
rigatotali.aggiorna_valore(i,riga[i]);
totaledata+=riga[i];
valore = "";
valore.format("%8d",riga[i].integer());
valore.format("%8s",riga[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totaledata.integer());
valore.format("%8s",totaledata.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -441,12 +441,12 @@ void TRiepilogoGiornaliero::stampa_tutto()
{
totaledata+=rigatotali[i];
valore = "";
valore.format("%8d",rigatotali[i].integer());
valore.format("%8s",rigatotali[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totaledata.integer());
valore.format("%8s",totaledata.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -470,12 +470,12 @@ void TRiepilogoGiornaliero::stampa_tutto()
rigatotali.aggiorna_valore(i,riga[i]);
totaledata+=riga[i];
valore = "";
valore.format("%8d",riga[i].integer());
valore.format("%8s",riga[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totaledata.integer());
valore.format("%8s",totaledata.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -496,12 +496,12 @@ void TRiepilogoGiornaliero::stampa_tutto()
{
totaledata+=rigatotali[i];
valore = "";
valore.format("%8d",rigatotali[i].integer());
valore.format("%8s",rigatotali[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totaledata.integer());
valore.format("%8s",totaledata.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);

View File

@ -456,14 +456,14 @@ void TStatisticaSog::stampa_sezione(TString16 codsez, TString16 codsot)
rigatotali.aggiorna_valore(i,riga[i]);
totalegruppo+=riga[i];
valore = "";
valore.format("%8d",riga[i].integer());
valore.format("%8s",riga[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
if (totalegruppo != 0)
{
valore = "";
valore.format("%8d",totalegruppo.integer());
valore.format("%8s",totalegruppo.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -486,12 +486,12 @@ void TStatisticaSog::stampa_sezione(TString16 codsez, TString16 codsot)
{
totale+=rigatotali[i];
valore = "";
valore.format("%8d",rigatotali[i].integer());
valore.format("%8s",rigatotali[i].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+10;
}
valore = "";
valore.format("%8d",totale.integer());
valore.format("%8s",totale.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);