diff --git a/ci/ci2300.cpp b/ci/ci2300.cpp index 4162eaa79..f2e8cb396 100755 --- a/ci/ci2300.cpp +++ b/ci/ci2300.cpp @@ -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)); }