Corretta stampa firma singola
git-svn-id: svn://10.65.10.50/trunk@3725 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
51b1fc5c48
commit
1348123529
@ -162,7 +162,7 @@ int TQuadroA::calcola_firma()
|
|||||||
{
|
{
|
||||||
TPrint_section& totali = section('F', last_page);
|
TPrint_section& totali = section('F', last_page);
|
||||||
TForm_item& signature = totali.find_field(2);
|
TForm_item& signature = totali.find_field(2);
|
||||||
const int y = signature.y();
|
const int y = signature.y()-1;
|
||||||
|
|
||||||
TString cognome = signature.get();
|
TString cognome = signature.get();
|
||||||
if (cognome.len() > 30 && cognome[29] == ' ')
|
if (cognome.len() > 30 && cognome[29] == ' ')
|
||||||
@ -172,8 +172,8 @@ int TQuadroA::calcola_firma()
|
|||||||
cognome << ' ' << nome;
|
cognome << ' ' << nome;
|
||||||
signature.set(cognome);
|
signature.set(cognome);
|
||||||
|
|
||||||
totali.row(y-1).reset();
|
totali.row(y).reset();
|
||||||
totali.row(y-1).put(cognome, signature.x()-1);
|
totali.row(y).put(cognome, signature.x()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return y;
|
return y;
|
||||||
@ -255,16 +255,16 @@ bool TQuadroA::print(const long codditta, const long NumFis, const long NumNoFis
|
|||||||
int elementi = 0; // Numero di elementi stampati in questa pagina
|
int elementi = 0; // Numero di elementi stampati in questa pagina
|
||||||
bool stampato_ultimo = FALSE;
|
bool stampato_ultimo = FALSE;
|
||||||
bool stampati_totali = FALSE;
|
bool stampati_totali = FALSE;
|
||||||
|
long persone = 0;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
TDipendenti indice;
|
TDipendenti indice;
|
||||||
if (quadro() == "A" || quadro() == "B")
|
if (quadro() == "A" || quadro() == "B")
|
||||||
{
|
{
|
||||||
const int i = indice.fill(cur);
|
persone = indice.fill(cur);
|
||||||
if (i > 0)
|
if (persone > 0)
|
||||||
{
|
{
|
||||||
if (usa_progind())
|
if (usa_progind())
|
||||||
progind()->addstatus(cur.items()-i); // Segna come elaborati tutti gli ignorati
|
progind()->addstatus(cur.items()-persone); // Segna come elaborati tutti gli ignorati
|
||||||
|
|
||||||
cur = indice[0].pos();
|
cur = indice[0].pos();
|
||||||
}
|
}
|
||||||
@ -272,17 +272,19 @@ bool TQuadroA::print(const long codditta, const long NumFis, const long NumNoFis
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
persone = cur.items();
|
||||||
cur = 0;
|
cur = 0;
|
||||||
|
}
|
||||||
while (!stampati_totali)
|
while (!stampati_totali)
|
||||||
{
|
{
|
||||||
bool stampero_ultimo = (stampato_ultimo == FALSE);
|
bool stampero_ultimo = (stampato_ultimo == FALSE);
|
||||||
if (stampero_ultimo)
|
if (stampero_ultimo)
|
||||||
{
|
{
|
||||||
if (indice.items() > 0) // Usa indice alternativo
|
if (indice.items() > 0) // Usa indice alternativo
|
||||||
stampero_ultimo &= pos == indice.items()-1;
|
stampero_ultimo = (pos == persone-1);
|
||||||
else // Usa indice del cursore
|
else // Usa indice del cursore
|
||||||
stampero_ultimo &= cur.pos() == cur.items()-1;
|
stampero_ultimo = (cur.pos() == persone-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!stampato_ultimo)
|
if (!stampato_ultimo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user