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:
guy 2011-10-07 08:26:58 +00:00
parent 6a7eeb9ad3
commit eb6532d6e7

View File

@ -533,19 +533,11 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
const int tipostampa = mask.get_int(F_TIPOSTAMPA); const int tipostampa = mask.get_int(F_TIPOSTAMPA);
switch (tipostampa) switch (tipostampa)
{ {
case 1: case 1: break; //se modello 6.1 va bene quello che ha stabilito nel precedente switch
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 2: case 3: nome_report = "tp0900es.rep"; break; //modello 6.3 quantita' in esenzione
nome_report = "tp0900sc.rep"; //scheda elenco fatture allegata al 6.1 case 4: nome_report = "tp0900li.rep"; break; //lista clienti in esenzione
break; default: 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;
} }
@ -638,9 +630,6 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
break; break;
} }
#ifdef DBG
csv->save_as_text("c:/temp/admin/cazzone.txt");
#endif
//se richiesto il file in formato excel... //se richiesto il file in formato excel...
if (mask.get_bool(F_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); csv->save_as(path, fmt_html);
else else
csv->save_as(path); csv->save_as(path);
xvt_sys_goto_url(path, "open");
//accoppa la riga con le intestazioni dei campi
csv->destroy(0);
#ifdef DBG
xvt_sys_goto_url(path, "open");
#endif
} }
//creazione del report di stampa //creazione del report di stampa
TDichiarazione_CONAI_report rep; TDichiarazione_CONAI_report rep;
bool ok = rep.load(nome_report); bool ok = rep.load(nome_report);
@ -673,6 +656,7 @@ void TDichiarazione_CONAI::elabora(const TMask& mask) const
rep.mask2report(mask); rep.mask2report(mask);
rep.print_or_preview(); rep.print_or_preview();
} }
} }
void TDichiarazione_CONAI::main_loop() void TDichiarazione_CONAI::main_loop()