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)))
|
if (codice == row.get(sf.cid2index(S_CODRIS)))
|
||||||
orecons += real(row.get(sf.cid2index(S_QTAORE)));
|
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);
|
set(F_ORECONS, orecons);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -573,7 +573,7 @@ void TImporta_rilore_msk::importa()
|
|||||||
if (ore().is_key(tpora))
|
if (ore().is_key(tpora))
|
||||||
tpora = (TString &) ore()[tpora];
|
tpora = (TString &) ore()[tpora];
|
||||||
msg_head = data.string();
|
msg_head = data.string();
|
||||||
msg_head << " Addetto - " << codice << " Tipo ora - " << tpora;
|
msg_head << " Addetto - " << codice;
|
||||||
key << codice << data.string(ANSI) << tpora; // cambiare
|
key << codice << data.string(ANSI) << tpora; // cambiare
|
||||||
tab.put("CODTAB", key);
|
tab.put("CODTAB", key);
|
||||||
tab.put("D0", data);
|
tab.put("D0", data);
|
||||||
@ -584,16 +584,20 @@ void TImporta_rilore_msk::importa()
|
|||||||
tab.put("R1", oreril);
|
tab.put("R1", oreril);
|
||||||
err = tab.write_rewrite();
|
err = tab.write_rewrite();
|
||||||
msg = msg_head;
|
msg = msg_head;
|
||||||
msg << " Ore - " << oreril;
|
msg << " Tipo ora - " << tpora << " Ore - " << oreril;
|
||||||
log.log(0, msg);
|
log.log(0, msg);
|
||||||
|
|
||||||
if (err != NOERR)
|
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()));
|
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++)
|
for (int t = 1; t <= 6; t++)
|
||||||
{
|
{
|
||||||
fieldname.format("%02d_%s%1d", i, CODGIU, t);
|
fieldname.format("%02d_%s%1d", i, CODGIU, t);
|
||||||
tpora = recordset.get(fieldname).as_string();
|
tpora = recordset.get(fieldname).as_string();
|
||||||
|
if (atoi(tpora) > 0)
|
||||||
|
{
|
||||||
if (ore().is_key(tpora))
|
if (ore().is_key(tpora))
|
||||||
{
|
{
|
||||||
tpora = (TString &) ore()[tpora];
|
tpora = (TString &) ore()[tpora];
|
||||||
@ -609,11 +613,16 @@ void TImporta_rilore_msk::importa()
|
|||||||
tab.put("R1", oreril);
|
tab.put("R1", oreril);
|
||||||
err = tab.write_rewrite();
|
err = tab.write_rewrite();
|
||||||
msg = msg_head;
|
msg = msg_head;
|
||||||
msg << " Ore - " << oreril;
|
msg << " Tipo ora - " << tpora << " Ore - " << oreril;
|
||||||
log.log(0, msg);
|
log.log(0, msg);
|
||||||
if (err != NOERR)
|
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));
|
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;
|
++data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user