Corretto errore di formattazione del file

git-svn-id: svn://10.65.10.50/trunk@510 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
nik 1994-11-02 11:25:38 +00:00
parent 43817827af
commit 9f80c0bc3c

View File

@ -199,22 +199,22 @@ print_action CG1100_application::postprocess_page(int file,int counter)
{
//const char * buf;
struct bil_ivd* bil = (struct bil_ivd*) _buf;
/*
if (_sez_da_stamp != _sez_stamp)
{
if (_sez_da_stamp == '5' || _sez_da_stamp == '9')
{
reset_print();
_i = 1;
set_con_IV();
_resetta_righe_stampa = FALSE;
}
else
_resetta_righe_stampa = TRUE;
}
else
_resetta_righe_stampa = TRUE;
*/
/*
if (_sez_da_stamp != _sez_stamp)
{
if (_sez_da_stamp == '5' || _sez_da_stamp == '9')
{
reset_print();
_i = 1;
set_con_IV();
_resetta_righe_stampa = FALSE;
}
else
_resetta_righe_stampa = TRUE;
}
else
_resetta_righe_stampa = TRUE;
*/
_sez_stamp = _sez_da_stamp;
_let_stamp = _let_da_stamp;
_numr_stamp = _numr_da_stamp;
@ -258,39 +258,39 @@ void CG1100_application::set_page(int file,int counter)
{
case con_IV_direttiva:
{
// if (_resetta_righe_stampa)
// {
reset_print();
_i = 1;
// }
// if (_resetta_righe_stampa)
// {
reset_print();
_i = 1;
// }
if (_sez_da_stamp != _sez_stamp)
// {
// if (_sez_da_stamp=='1' || _sez_da_stamp=='2')
set_con_IV ();
// if (_sez_da_stamp == '5' || _sez_da_stamp == '9')
// {
// set_row (_i,"%s","");
// set_auto_ff(TRUE);
// }
// }
// {
// if (_sez_da_stamp=='1' || _sez_da_stamp=='2')
set_con_IV ();
// if (_sez_da_stamp == '5' || _sez_da_stamp == '9')
// {
// set_row (_i,"%s","");
// set_auto_ff(TRUE);
// }
// }
else
if (_buf != NULL)
set_con_IV();
}
break;
case con_ana_bil:
set_con_ana();
break;
case senza_IV_direttiva:
set_senza_IV();
break;
case senza_ana_bil:
set_senza_ana();
break;
default:
break;
}
break;
case con_ana_bil:
set_con_ana();
break;
case senza_IV_direttiva:
set_senza_IV();
break;
case senza_ana_bil:
set_senza_ana();
break;
default:
break;
}
}
//////////////////////////////////////////////////////////////
@ -429,7 +429,7 @@ void CG1100_application::scegli_cur()
bool CG1100_application::preprocess_print (int file,int counter)
{
//scegli_cur();
//scegli_cur();
switch (_tipo_stampa)
{
case con_IV_direttiva:
@ -456,9 +456,9 @@ bool CG1100_application::preprocess_print (int file,int counter)
return FALSE;
}
break;
default:
break;
}
default:
break;
}
return TRUE;
}
@ -497,15 +497,15 @@ void CG1100_application::set_con_IV()
set_row (_i++,"@0gCONTI D' ORDINE ATTIVI");
set_row (_i++,"@0g%c", app);
stampa_classe = FALSE;
}
}
else
if ((_sez_da_stamp == '1')&&(_let_da_stamp != 'Z'))
{
char app = ' ';
set_row (_i++,"@0g%c", app);
set_row (_i++,"@0gATTIVO");
set_row (_i++,"@0g%c", app);
}
{
char app = ' ';
set_row (_i++,"@0g%c", app);
set_row (_i++,"@0gATTIVO");
set_row (_i++,"@0g%c", app);
}
if ((_sez_da_stamp == '2')&&(_let_da_stamp == 'Z'))
{
@ -774,7 +774,7 @@ void CG1100_application::set_completa()
FLD(LF_PCON, PCN_SOTTOCONTO, "######"));
// set_row (1, "@16g@50s", FLD(LF_PCON,PCN_DESCR) );
// set_row (1, "@16g@50s", FLD(LF_PCON,PCN_DESCR) );
set_row (i, "@16g%.40s", (const char*) desc);
if (sezione != '0' && sezione != '9')
@ -1115,14 +1115,14 @@ const char* CG1100_application::descrizione_numero(char sezione, char lettera, i
dep = format("%1c%1c%04d",sezione, lettera, numr);
else
dep = format("%c%c ",sezione,lettera);
}
else
{
if (numr != 0)
dep = format("%1c%1c%04d%02d",sezione, lettera, numr,numero);
else
dep = format("%c%c %02d",sezione,lettera,numero);
}
}
else
{
if (numr != 0)
dep = format("%1c%1c%04d%02d",sezione, lettera, numr,numero);
else
dep = format("%c%c %02d",sezione,lettera,numero);
}
tabivd.put("CODTAB", dep);
tabivd.read();