Patch level : 10.0 patch ???
Files correlati : tracciati record ci0 cilib Ricompilazione Demo : [ ] Commento : Aggiunta una chiave al file rilore Segnalazione Robby - Devo poter inserire la stessa risorsa con lo stesso tipo ora su piu' cantieri git-svn-id: svn://10.65.10.50/branches/R_10_00@20769 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2b90198db0
commit
d0a7cbd061
@ -386,7 +386,7 @@ void TDef_risoatt_msk::registra()
|
|||||||
|
|
||||||
get_row_anal_fields(riga, codcosto, codcms, codfase);
|
get_row_anal_fields(riga, codcosto, codcms, codfase);
|
||||||
|
|
||||||
TRilevamento_ore rilroa('D', tipora, codice, anno, mese, tpora);
|
TRilevamento_ore rilroa('D', tipora, codice, anno, mese, tpora, codcosto, codcms, codfase);
|
||||||
if(!rilroa.empty() && qtaore == 0)
|
if(!rilroa.empty() && qtaore == 0)
|
||||||
rilroa.remove(file);
|
rilroa.remove(file);
|
||||||
else
|
else
|
||||||
|
33
ci/cilib.cpp
33
ci/cilib.cpp
@ -647,6 +647,7 @@ bool TRilevamento_ore::read(const char tipo, const char tipora, const char *codi
|
|||||||
int err = _iskeynotfound;
|
int err = _iskeynotfound;
|
||||||
|
|
||||||
TLocalisamfile rilore(LF_RILORE);
|
TLocalisamfile rilore(LF_RILORE);
|
||||||
|
rilore.setkey(2);
|
||||||
|
|
||||||
put(RILORE_TIPO, tipo);
|
put(RILORE_TIPO, tipo);
|
||||||
put(RILORE_TIPORA, tipora);
|
put(RILORE_TIPORA, tipora);
|
||||||
@ -663,12 +664,38 @@ bool TRilevamento_ore::read(const char tipo, const char tipora, const char *codi
|
|||||||
return err == NOERR;
|
return err == NOERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//READ: cerca una riga rilevamento ore in base alla chiave secodaria
|
||||||
|
bool TRilevamento_ore::read(const char tipo, const char tipora, const char *codice, const int anno, const char *mese, const char *tpora, const char* codcosto, const char* codcms, const char* codfase)
|
||||||
|
{
|
||||||
|
int err = _iskeynotfound;
|
||||||
|
|
||||||
|
TLocalisamfile rilore(LF_RILORE);
|
||||||
|
|
||||||
|
put(RILORE_TIPO, tipo);
|
||||||
|
put(RILORE_TIPORA, tipora);
|
||||||
|
put(RILORE_CODICE, codice);
|
||||||
|
put(RILORE_ANNO, anno);
|
||||||
|
put(RILORE_MESE, mese);
|
||||||
|
put(RILORE_TPORA, tpora);
|
||||||
|
put(RILORE_CODCOSTO, codcosto);
|
||||||
|
put(RILORE_CODCMS, codcms);
|
||||||
|
put(RILORE_CODFASE, codfase);
|
||||||
|
|
||||||
|
err = TRectype::read(rilore);
|
||||||
|
|
||||||
|
if (err != NOERR)
|
||||||
|
zero();
|
||||||
|
|
||||||
|
return err == NOERR;
|
||||||
|
}
|
||||||
|
|
||||||
//READ: cerca una riga rilevamento ore in base alla chiave secondaria
|
//READ: cerca una riga rilevamento ore in base alla chiave secondaria
|
||||||
bool TRilevamento_ore::read(const char tipo, const char* codcosto, const char* codcms, const char* codfase)
|
bool TRilevamento_ore::read(const char tipo, const char* codcosto, const char* codcms, const char* codfase)
|
||||||
{
|
{
|
||||||
int err = _iskeynotfound;
|
int err = _iskeynotfound;
|
||||||
|
|
||||||
TLocalisamfile rilore(LF_RILORE);
|
TLocalisamfile rilore(LF_RILORE);
|
||||||
|
rilore.setkey(3);
|
||||||
|
|
||||||
put(RILORE_TIPO, tipo);
|
put(RILORE_TIPO, tipo);
|
||||||
put(RILORE_CODCOSTO, codcosto);
|
put(RILORE_CODCOSTO, codcosto);
|
||||||
@ -850,6 +877,12 @@ TRilevamento_ore::TRilevamento_ore(const TRilevamento_ore& rilore)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TRilevamento_ore::TRilevamento_ore(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora, const char* codcosto, const char* codcms, const char* codfase)
|
||||||
|
: TRectype(LF_RILORE)
|
||||||
|
{
|
||||||
|
read(tipo, tipora, codice, anno, mese, tpora, codcosto, codcms, codfase);
|
||||||
|
}
|
||||||
|
|
||||||
TRilevamento_ore::TRilevamento_ore(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora)
|
TRilevamento_ore::TRilevamento_ore(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora)
|
||||||
: TRectype(LF_RILORE)
|
: TRectype(LF_RILORE)
|
||||||
{
|
{
|
||||||
|
@ -220,6 +220,7 @@ public:
|
|||||||
class TRilevamento_ore : public TRectype
|
class TRilevamento_ore : public TRectype
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
bool read(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora, const char* codcosto, const char* codcms, const char* codfase);
|
||||||
bool read(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora);
|
bool read(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora);
|
||||||
bool read(const char tipo, const char* codcosto, const char* codcms, const char* codfase);
|
bool read(const char tipo, const char* codcosto, const char* codcms, const char* codfase);
|
||||||
|
|
||||||
@ -256,6 +257,7 @@ public:
|
|||||||
|
|
||||||
TRilevamento_ore(const TRectype& rec);
|
TRilevamento_ore(const TRectype& rec);
|
||||||
TRilevamento_ore(const TRilevamento_ore& rilore);
|
TRilevamento_ore(const TRilevamento_ore& rilore);
|
||||||
|
TRilevamento_ore(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora, const char* codcosto, const char* codcms, const char* codfase);
|
||||||
TRilevamento_ore(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora);
|
TRilevamento_ore(const char tipo, const char tipora, const char* codice, const int anno, const char* mese, const char* tpora);
|
||||||
TRilevamento_ore(const char tipo, const char* codcosto, const char* codcms, const char* codfase);
|
TRilevamento_ore(const char tipo, const char* codcosto, const char* codcms, const char* codfase);
|
||||||
TRilevamento_ore();
|
TRilevamento_ore();
|
||||||
|
@ -13,6 +13,7 @@ DADATA|5|8|0|Data Inizio
|
|||||||
ADATA|5|8|0|Data Fine
|
ADATA|5|8|0|Data Fine
|
||||||
QTAORE|2|4|0|Quantita' ora
|
QTAORE|2|4|0|Quantita' ora
|
||||||
COSTO|4|10|2|Costo Unitario
|
COSTO|4|10|2|Costo Unitario
|
||||||
2
|
3
|
||||||
TIPO+TIPORA+CODICE+ANNO+MESE+TPORA|
|
TIPO+TIPORA+CODICE+ANNO+MESE+TPORA+CODCOSTO+CODCMS+CODFASE|
|
||||||
TIPO+CODCOSTO+CODCMS+CODFASE|
|
TIPO+TIPORA+CODICE+ANNO+MESE+TPORA|X
|
||||||
|
TIPO+CODCOSTO+CODCMS+CODFASE|X
|
||||||
|
Loading…
x
Reference in New Issue
Block a user