Patch level : 10.990
Files correlati : c2.exe Ricompilazione Demo : [ ] Commento : evidenziati i consuntivi maggiori della disponibilità git-svn-id: svn://10.65.10.50/branches/R_10_00@22087 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4660aff05a
commit
0171a1ccab
@ -763,6 +763,10 @@ void TRilevamento_cons_msk::update_disp()
|
||||
if (codice == row.get(sf.cid2index(S_CODRIS)))
|
||||
orecons += real(row.get(sf.cid2index(S_QTAORE)));
|
||||
}
|
||||
if (orecons > get_int(F_OREDIS))
|
||||
field(F_ORECONS).set_prompt("$[r]Cons. ");
|
||||
else
|
||||
field(F_ORECONS).set_prompt("Cons. ");
|
||||
set(F_ORECONS, orecons);
|
||||
}
|
||||
|
||||
|
@ -573,7 +573,7 @@ void TImporta_rilore_msk::importa()
|
||||
if (ore().is_key(tpora))
|
||||
tpora = (TString &) ore()[tpora];
|
||||
msg_head = data.string();
|
||||
msg_head << " Addetto - " << codice << " Tipo ora - " << tpora;
|
||||
msg_head << " Addetto - " << codice;
|
||||
key << codice << data.string(ANSI) << tpora; // cambiare
|
||||
tab.put("CODTAB", key);
|
||||
tab.put("D0", data);
|
||||
@ -584,43 +584,52 @@ void TImporta_rilore_msk::importa()
|
||||
tab.put("R1", oreril);
|
||||
err = tab.write_rewrite();
|
||||
msg = msg_head;
|
||||
msg << " Ore - " << oreril;
|
||||
msg << " Tipo ora - " << tpora << " 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()));
|
||||
}
|
||||
|
||||
else
|
||||
for (int t = 1; t <= 6; t++)
|
||||
{
|
||||
fieldname.format("%02d_%s%1d", i, CODGIU, t);
|
||||
tpora = recordset.get(fieldname).as_string();
|
||||
if (ore().is_key(tpora))
|
||||
if (atoi(tpora) > 0)
|
||||
{
|
||||
tpora = (TString &) ore()[tpora];
|
||||
fieldname.format("%02d_%s%1d", i, OREGIU, t);
|
||||
oreril = recordset.get(fieldname).as_real() / CENTO;
|
||||
|
||||
if (tpora.full() && oreril > ZERO)
|
||||
if (ore().is_key(tpora))
|
||||
{
|
||||
key = "R";
|
||||
key << codice << data.string(ANSI) << tpora;
|
||||
tab.put("CODTAB", key);
|
||||
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));
|
||||
tpora = (TString &) ore()[tpora];
|
||||
fieldname.format("%02d_%s%1d", i, OREGIU, t);
|
||||
oreril = recordset.get(fieldname).as_real() / CENTO;
|
||||
|
||||
if (tpora.full() && oreril > ZERO)
|
||||
{
|
||||
key = "R";
|
||||
key << codice << data.string(ANSI) << tpora;
|
||||
tab.put("CODTAB", key);
|
||||
tab.put("D0", data);
|
||||
tab.put("R1", oreril);
|
||||
err = tab.write_rewrite();
|
||||
msg = msg_head;
|
||||
msg << " Tipo ora - " << tpora << " Ore - " << oreril;
|
||||
log.log(0, msg);
|
||||
if (err != NOERR)
|
||||
log.log(2, format(FR("Errore di scrittura %d : Codice %s data %s tipo ora %s"), err, (const char *) codice, (const char *) data.string(), (const char *) tpora));
|
||||
}
|
||||
else
|
||||
log.log(0, format(FR("Tipo ora %s con ore a zero Codice %s data %s "), (const char *) tpora, (const char *) codice, (const char *) data.string()));
|
||||
}
|
||||
else
|
||||
log.log(0, format(FR("Tipo ora %s non definito: Codice %s data %s"), (const char *) tpora, (const char *) codice, (const char *) data.string()));
|
||||
}
|
||||
}
|
||||
++data;
|
||||
}
|
||||
}
|
||||
else
|
||||
log.log(2, format(FR("Ma tricola % s assente"), (const char *) matricola));
|
||||
log.log(2, format(FR("Matricola % s assente"), (const char *) matricola));
|
||||
}
|
||||
log.print_or_preview();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user