Patch level : AT

Files correlati     : at3.exe
Ricompilazione Demo : [ ]
Commento            : sistemata stampa totali superiori a 32000 e rotti


git-svn-id: svn://10.65.10.50/trunk@11250 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2003-06-19 12:54:39 +00:00
parent 995351ffa5
commit c7e7016b40
2 changed files with 10 additions and 10 deletions

View File

@ -377,14 +377,14 @@ void TRiepilogoPunto::stampa_sezione(TString16 codsez, TString16 codsot)
rigatotali.aggiorna_valore(i,riga[i]);
totalepunto+=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 (totalepunto != ZERO)
{
valore = "";
valore.format("%8d",totalepunto.integer());
valore.format("%8s",totalepunto.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -410,14 +410,14 @@ void TRiepilogoPunto::stampa_sezione(TString16 codsez, TString16 codsot)
rigatotali.aggiorna_valore(i,riga[i]);
totalepunto+=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 (totalepunto != ZERO)
{
valore = "";
valore.format("%8d",totalepunto.integer());
valore.format("%8s",totalepunto.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);
@ -440,12 +440,12 @@ void TRiepilogoPunto::stampa_sezione(TString16 codsez, TString16 codsot)
{
totalepunto+=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",totalepunto.integer());
valore.format("%8s",totalepunto.string(8,0));
rigastampa.overwrite((const char*)valore, pos+4);
row.put((const char*) rigastampa);
printer().print(row);

View File

@ -375,7 +375,7 @@ void TStatSogxCom::stampa_sezione(TString16 codsez, TString16 codsot)
rigastampa << comuni.get(COM_DENCOM);
int pos = 41;
valore = "";
valore.format("%8d",riga[(int) colonnat.integer()].integer());
valore.format("%8s",riga[(int) colonnat.integer()].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+8;
row.put((const char*) rigastampa);
@ -396,7 +396,7 @@ void TStatSogxCom::stampa_sezione(TString16 codsez, TString16 codsot)
const char* indicet = "T";
real& colonnat = (real&)_colonne->find(indicet);
valore = "";
valore.format("%8d",rigatotali[(int) colonnat.integer()].integer());
valore.format("%8s",rigatotali[(int) colonnat.integer()].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+8;
row.put((const char*) rigastampa);
@ -438,7 +438,7 @@ void TStatSogxCom::stampa_totali()
rigastampa << comuni.get(COM_DENCOM);
int pos = 41;
valore = "";
valore.format("%8d",riga[(int) colonnat.integer()].integer());
valore.format("%8s",riga[(int) colonnat.integer()].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+8;
row.put((const char*) rigastampa);
@ -459,7 +459,7 @@ void TStatSogxCom::stampa_totali()
const char* indicet = "T";
real& colonnat = (real&)_colonne->find(indicet);
valore = "";
valore.format("%8d",rigatotali[(int) colonnat.integer()].integer());
valore.format("%8s",rigatotali[(int) colonnat.integer()].string(8,0));
rigastampa.overwrite((const char*)valore, pos);
pos = pos+8;
row.put((const char*) rigastampa);