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