Patch level : 10,0 nopatch
Files correlati : ri0.exe Ricompilazione Demo : [ ] Commento : Riclassificazioni git-svn-id: svn://10.65.10.50/branches/R_10_00@20794 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bc18752b84
commit
db8f5ac09a
@ -122,18 +122,19 @@ void TRicl_saldi::main_loop()
|
|||||||
while (mask.run() != K_QUIT)
|
while (mask.run() != K_QUIT)
|
||||||
{
|
{
|
||||||
output_file = mask.get(F_OUTPUT);
|
output_file = mask.get(F_OUTPUT);
|
||||||
|
const TRecordsetExportFormat fmt = TString(output_file.ext()) == "txt" ? fmt_as400 : fmt_unknown;
|
||||||
|
|
||||||
if (mask.get(F_RICL).full())
|
if (mask.get(F_RICL).full())
|
||||||
{
|
{
|
||||||
TSaldi_ricl_recordset recset(mask);
|
TSaldi_ricl_recordset recset(mask);
|
||||||
|
|
||||||
recset.save_as(output_file);
|
recset.save_as(output_file, fmt);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TSaldi_conti_recordset recset(mask);
|
TSaldi_conti_recordset recset(mask);
|
||||||
|
|
||||||
recset.save_as(output_file);
|
recset.save_as(output_file, fmt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user