Patch level : 10.948

Files correlati     :  ci2.exe
Ricompilazione Demo : [ ]
Commento            :

Nell' importazione ora aggiunto un LOg dei record importati


git-svn-id: svn://10.65.10.50/branches/R_10_00@21740 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2011-03-04 11:20:57 +00:00
parent 08f0a4fa93
commit 32dafcc786

@ -550,6 +550,8 @@ void TImporta_rilore_msk::importa()
TProgind pi(recordset.items(), TR("Importazione ore"), true, true);
TLog_report log(TR("Importazione ore"));
TString msg_head(256);
TString msg(256);
for (bool ok = recordset.move_first(); ok && !pi.iscancelled() ; ok = recordset.move_next())
{
@ -570,7 +572,8 @@ void TImporta_rilore_msk::importa()
tpora = "0000";
if (ore().is_key(tpora))
tpora = (TString &) ore()[tpora];
msg_head = data.string();
msg_head << " Addetto - " << codice << " Tipo ora - " << tpora;
key << codice << data.string(ANSI) << tpora; // cambiare
tab.put("CODTAB", key);
tab.put("D0", data);
@ -580,6 +583,10 @@ void TImporta_rilore_msk::importa()
{
tab.put("R1", oreril);
err = tab.write_rewrite();
msg = msg_head;
msg << " Ore - " << oreril;
log.log(0, msg);
if (err != NOERR)
log.log(2, format(FR("Errore di scrittura %d : Codice %s data %s ore normali"), err, (const char *) codice, (const char *) data.string()));
}
@ -601,6 +608,9 @@ void TImporta_rilore_msk::importa()
tab.put("D0", data);
tab.put("R1", oreril);
err = tab.write_rewrite();
msg = msg_head;
msg << " Ore - " << oreril;
log.log(0, msg);
if (err != NOERR)
log.log(2, format(FR("Errore di scrittura %d : Codice %s data %s ore %s"), err, (const char *) codice, (const char *) data.string(), (const char *) tpora));
}