Patch level : 1100
Files correlati : tp0.exe Ricompilazione Demo : [ ] Commento : Corretta dichiarazione CONAI che in caso di esportazione Excel saltava la prima riga git-svn-id: svn://10.65.10.50/branches/R_10_00@22447 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6a7eeb9ad3
commit
eb6532d6e7
@ -533,19 +533,11 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
|
||||
const int tipostampa = mask.get_int(F_TIPOSTAMPA);
|
||||
switch (tipostampa)
|
||||
{
|
||||
case 1:
|
||||
break; //se modello 6.1 va bene quello che ha stabilito nel precedente switch
|
||||
case 2:
|
||||
nome_report = "tp0900sc.rep"; //scheda elenco fatture allegata al 6.1
|
||||
break;
|
||||
case 3:
|
||||
nome_report = "tp0900es.rep"; //modello 6.3 quantita' in esenzione
|
||||
break;
|
||||
case 4:
|
||||
nome_report = "tp0900li.rep"; //lista clienti in esenzione
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
case 1: break; //se modello 6.1 va bene quello che ha stabilito nel precedente switch
|
||||
case 2: nome_report = "tp0900sc.rep"; break; //scheda elenco fatture allegata al 6.1
|
||||
case 3: nome_report = "tp0900es.rep"; break; //modello 6.3 quantita' in esenzione
|
||||
case 4: nome_report = "tp0900li.rep"; break; //lista clienti in esenzione
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
@ -638,9 +630,6 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef DBG
|
||||
csv->save_as_text("c:/temp/admin/cazzone.txt");
|
||||
#endif
|
||||
//se richiesto il file in formato excel...
|
||||
if (mask.get_bool(F_EXCEL))
|
||||
{
|
||||
@ -650,15 +639,9 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
|
||||
csv->save_as(path, fmt_html);
|
||||
else
|
||||
csv->save_as(path);
|
||||
|
||||
//accoppa la riga con le intestazioni dei campi
|
||||
csv->destroy(0);
|
||||
|
||||
#ifdef DBG
|
||||
xvt_sys_goto_url(path, "open");
|
||||
#endif
|
||||
xvt_sys_goto_url(path, "open");
|
||||
}
|
||||
|
||||
|
||||
//creazione del report di stampa
|
||||
TDichiarazione_CONAI_report rep;
|
||||
bool ok = rep.load(nome_report);
|
||||
@ -673,6 +656,7 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
|
||||
rep.mask2report(mask);
|
||||
rep.print_or_preview();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void TDichiarazione_CONAI::main_loop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user