Patch level :10.0
Files correlati : Ricompilazione Demo : [ ] Commento : omogeneizzato il file 125 con le sue dichiarazioni git-svn-id: svn://10.65.10.50/branches/R_10_00@20719 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
af983b47de
commit
d582d8c919
@ -237,7 +237,7 @@ void TDef_risoatt_msk::azzera_tutto(TSheet_field& sheet)
|
||||
//vaoler pari a zero, e poi ricarica lo sheet
|
||||
void TDef_risoatt_msk::registra()
|
||||
{
|
||||
TLocalisamfile file(LF_RILORE);
|
||||
TLocalisamfile file(LF_CIRILORE);
|
||||
TSheet_field& sheet = sfield(F_SHEET);
|
||||
|
||||
FOR_EACH_SHEET_ROW(sheet, r, row)
|
||||
|
@ -425,7 +425,7 @@ void TRilevamento_prev_msk::azzera_tutto(TSheet_field& sheet)
|
||||
//vaoler pari a zero, e poi ricarica lo sheet
|
||||
void TRilevamento_prev_msk::registra()
|
||||
{
|
||||
TLocalisamfile file(LF_RILORE);
|
||||
TLocalisamfile file(LF_CIRILORE);
|
||||
TSheet_field& sheet = sfield(F_SHEET);
|
||||
|
||||
FOR_EACH_SHEET_ROW(sheet, r, row)
|
||||
|
84
ci/cilib.cpp
84
ci/cilib.cpp
@ -3,7 +3,7 @@
|
||||
#include <image.h>
|
||||
|
||||
#include "cilib.h"
|
||||
#include "rilore.h"
|
||||
#include "cirilore.h"
|
||||
#include "cimsk.h"
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
@ -646,14 +646,14 @@ bool TRilevamento_ore::read(const char tipo, const char tipora, const char *codi
|
||||
{
|
||||
int err = _iskeynotfound;
|
||||
|
||||
TLocalisamfile rilore(LF_RILORE);
|
||||
TLocalisamfile rilore(LF_CIRILORE);
|
||||
|
||||
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(CIRILORE_TIPO, tipo);
|
||||
put(CIRILORE_TIPORA, tipora);
|
||||
put(CIRILORE_CODICE, codice);
|
||||
put(CIRILORE_ANNO, anno);
|
||||
put(CIRILORE_MESE, mese);
|
||||
put(CIRILORE_TPORA, tpora);
|
||||
|
||||
err = TRectype::read(rilore);
|
||||
|
||||
@ -668,12 +668,12 @@ bool TRilevamento_ore::read(const char tipo, const char* codcosto, const char* c
|
||||
{
|
||||
int err = _iskeynotfound;
|
||||
|
||||
TLocalisamfile rilore(LF_RILORE);
|
||||
TLocalisamfile rilore(LF_CIRILORE);
|
||||
|
||||
put(RILORE_TIPO, tipo);
|
||||
put(RILORE_CODCOSTO, codcosto);
|
||||
put(RILORE_CODCMS, codcms);
|
||||
put(RILORE_CODFASE, codfase);
|
||||
put(CIRILORE_TIPO, tipo);
|
||||
put(CIRILORE_CODCOSTO, codcosto);
|
||||
put(CIRILORE_CODCMS, codcms);
|
||||
put(CIRILORE_CODFASE, codfase);
|
||||
|
||||
err = TRectype::read(rilore);
|
||||
|
||||
@ -686,157 +686,157 @@ bool TRilevamento_ore::read(const char tipo, const char* codcosto, const char* c
|
||||
//TIPO: indica se si tratta di una riga di <D>efault, <P>reventivo o <C>onsuntivo
|
||||
const char TRilevamento_ore::tipo() const
|
||||
{
|
||||
return get(RILORE_TIPO)[0];
|
||||
return get(CIRILORE_TIPO)[0];
|
||||
}
|
||||
|
||||
//TIPORA: indica se si tratta din una <R>isorsa o di una <A>ttrezzatura
|
||||
const char TRilevamento_ore::tipora() const
|
||||
{
|
||||
return get(RILORE_TIPORA)[0];
|
||||
return get(CIRILORE_TIPORA)[0];
|
||||
}
|
||||
|
||||
//CODICE: restiruisce il codice della risorsa o dell'attrezzatura
|
||||
const TString& TRilevamento_ore::codice() const
|
||||
{
|
||||
return get(RILORE_CODICE);
|
||||
return get(CIRILORE_CODICE);
|
||||
}
|
||||
|
||||
//ANNO: restituisce l'anno a cui fa riferimento la riga
|
||||
const int TRilevamento_ore::anno() const
|
||||
{
|
||||
return get_int(RILORE_ANNO);
|
||||
return get_int(CIRILORE_ANNO);
|
||||
}
|
||||
|
||||
//MESE: restituisce il mese a cui fa riferimento la riga
|
||||
const TString& TRilevamento_ore::mese() const
|
||||
{
|
||||
return get(RILORE_MESE);
|
||||
return get(CIRILORE_MESE);
|
||||
}
|
||||
|
||||
//TPORA: restituisce il tipo ora
|
||||
const TString& TRilevamento_ore::tpora() const
|
||||
{
|
||||
return get(RILORE_TPORA);
|
||||
return get(CIRILORE_TPORA);
|
||||
}
|
||||
|
||||
//CODCOSTO: restituisce il codice del centro di costo
|
||||
const TString& TRilevamento_ore::codcosto() const
|
||||
{
|
||||
return get(RILORE_CODCOSTO);
|
||||
return get(CIRILORE_CODCOSTO);
|
||||
}
|
||||
|
||||
//CODCMS: restituisce il codice commessa
|
||||
const TString& TRilevamento_ore::codcms() const
|
||||
{
|
||||
return get(RILORE_CODCMS);
|
||||
return get(CIRILORE_CODCMS);
|
||||
}
|
||||
|
||||
//CODFASE: restituisce il codice della fase
|
||||
const TString& TRilevamento_ore::codfase() const
|
||||
{
|
||||
return get(RILORE_CODFASE);
|
||||
return get(CIRILORE_CODFASE);
|
||||
}
|
||||
|
||||
//DADATA: restituisce la data di inizio validità della riga
|
||||
const TDate TRilevamento_ore::dadata() const
|
||||
{
|
||||
return get_date(RILORE_DADATA);
|
||||
return get_date(CIRILORE_DADATA);
|
||||
}
|
||||
|
||||
//ADATA: restituisce la fata di fine validità della riga
|
||||
const TDate TRilevamento_ore::adata()const
|
||||
{
|
||||
return get_date(RILORE_ADATA);
|
||||
return get_date(CIRILORE_ADATA);
|
||||
}
|
||||
|
||||
//QTAORE: restituisce il numero di ore
|
||||
const int TRilevamento_ore::qtaore() const
|
||||
{
|
||||
return get_int(RILORE_QTAORE);
|
||||
return get_int(CIRILORE_QTAORE);
|
||||
}
|
||||
|
||||
//COSTO: restitusce il costo unitario
|
||||
const real TRilevamento_ore::costo() const
|
||||
{
|
||||
return get_real(RILORE_COSTO);
|
||||
return get_real(CIRILORE_COSTO);
|
||||
}
|
||||
|
||||
//SET_TIPO: setta <D>efault, <P>reventivo o <C>onsuntivo
|
||||
void TRilevamento_ore::set_tipo(const char tipo)
|
||||
{
|
||||
put(RILORE_TIPO, tipo);
|
||||
put(CIRILORE_TIPO, tipo);
|
||||
}
|
||||
|
||||
//SET_TIPORA: setta <R>isorsa o <A>ttrezzatura
|
||||
void TRilevamento_ore::set_tipora(const char tipora)
|
||||
{
|
||||
put(RILORE_TIPORA, tipora);
|
||||
put(CIRILORE_TIPORA, tipora);
|
||||
}
|
||||
|
||||
//SET_CODICE: setta il codice
|
||||
void TRilevamento_ore::set_codice(const char* codice)
|
||||
{
|
||||
put(RILORE_CODICE, codice);
|
||||
put(CIRILORE_CODICE, codice);
|
||||
}
|
||||
|
||||
//SET_ANNO: setta l'anno di riferimento
|
||||
void TRilevamento_ore::set_anno(const int anno)
|
||||
{
|
||||
put(RILORE_ANNO, anno);
|
||||
put(CIRILORE_ANNO, anno);
|
||||
}
|
||||
|
||||
//SET_MESE: setta il mese di riferimento
|
||||
void TRilevamento_ore::set_mese(const char* mese)
|
||||
{
|
||||
put(RILORE_MESE, mese);
|
||||
put(CIRILORE_MESE, mese);
|
||||
}
|
||||
|
||||
//SET_TPORA: setta il tipo ora
|
||||
void TRilevamento_ore::set_tpora(const char* tpora)
|
||||
{
|
||||
put(RILORE_TPORA, tpora);
|
||||
put(CIRILORE_TPORA, tpora);
|
||||
}
|
||||
|
||||
//SET_CODCOSTO: setta il codice del centro di costo
|
||||
void TRilevamento_ore::set_codcosto(const char* codcosto)
|
||||
{
|
||||
put(RILORE_CODCOSTO, codcosto);
|
||||
put(CIRILORE_CODCOSTO, codcosto);
|
||||
}
|
||||
|
||||
//SET_CODCMS: setta il codice commessa
|
||||
void TRilevamento_ore::set_codcms(const char* codcms)
|
||||
{
|
||||
put(RILORE_CODCMS, codcms);
|
||||
put(CIRILORE_CODCMS, codcms);
|
||||
}
|
||||
|
||||
//SET_CODFASE: setta il codice della fase
|
||||
void TRilevamento_ore::set_codfase(const char* codfase)
|
||||
{
|
||||
put(RILORE_CODFASE, codfase);
|
||||
put(CIRILORE_CODFASE, codfase);
|
||||
}
|
||||
|
||||
//SET_DADATA: setta la data di inizio validità della riga
|
||||
void TRilevamento_ore::set_dadata(const TDate& dadata)
|
||||
{
|
||||
put(RILORE_DADATA, dadata);
|
||||
put(CIRILORE_DADATA, dadata);
|
||||
}
|
||||
|
||||
//SET_ADATA: setta la data di fine validità della riga
|
||||
void TRilevamento_ore::set_adata(const TDate& adata)
|
||||
{
|
||||
put(RILORE_ADATA, adata);
|
||||
put(CIRILORE_ADATA, adata);
|
||||
}
|
||||
|
||||
//SET_QTAORE: setta il numero di ore rilevato
|
||||
void TRilevamento_ore::set_qtaore(const int qtaore)
|
||||
{
|
||||
put(RILORE_QTAORE, qtaore);
|
||||
put(CIRILORE_QTAORE, qtaore);
|
||||
}
|
||||
|
||||
//SET_COSTO: metodo che setta il costo unitario (da listino)
|
||||
void TRilevamento_ore::set_costo(const real& costo)
|
||||
{
|
||||
put(RILORE_COSTO, costo);
|
||||
put(CIRILORE_COSTO, costo);
|
||||
}
|
||||
|
||||
//Metodi costruttori
|
||||
@ -851,19 +851,19 @@ 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)
|
||||
: TRectype(LF_RILORE)
|
||||
: TRectype(LF_CIRILORE)
|
||||
{
|
||||
read(tipo, tipora, codice, anno, mese, tpora);
|
||||
}
|
||||
|
||||
TRilevamento_ore::TRilevamento_ore(const char tipo, const char* codcosto, const char* codcms, const char* codfase)
|
||||
: TRectype(LF_RILORE)
|
||||
: TRectype(LF_CIRILORE)
|
||||
{
|
||||
read(tipo, codcosto, codcms, codfase);
|
||||
}
|
||||
|
||||
TRilevamento_ore::TRilevamento_ore()
|
||||
: TRectype(LF_RILORE)
|
||||
: TRectype(LF_CIRILORE)
|
||||
{
|
||||
zero();
|
||||
}
|
||||
|
18
ci/cirilore.h
Executable file
18
ci/cirilore.h
Executable file
@ -0,0 +1,18 @@
|
||||
#ifndef __CIRILORE_H
|
||||
#define __CIRILORE_H
|
||||
|
||||
#define CIRILORE_TIPO "TIPO"
|
||||
#define CIRILORE_TIPORA "TIPORA"
|
||||
#define CIRILORE_CODICE "CODICE"
|
||||
#define CIRILORE_ANNO "ANNO"
|
||||
#define CIRILORE_MESE "MESE"
|
||||
#define CIRILORE_TPORA "TPORA"
|
||||
#define CIRILORE_CODCOSTO "CODCOSTO"
|
||||
#define CIRILORE_CODCMS "CODCMS"
|
||||
#define CIRILORE_CODFASE "CODFASE"
|
||||
#define CIRILORE_DADATA "DADATA"
|
||||
#define CIRILORE_ADATA "ADATA"
|
||||
#define CIRILORE_QTAORE "QTAORE"
|
||||
#define CIRILORE_COSTO "COSTO"
|
||||
|
||||
#endif
|
@ -1,3 +1,3 @@
|
||||
125
|
||||
0
|
||||
$rilore|0|0|102|0|Rilevamento Ore|||
|
||||
$cirilore|0|0|102|0|Rilevamento Ore|||
|
||||
|
18
ci/rilore.h
18
ci/rilore.h
@ -1,18 +0,0 @@
|
||||
#ifndef __RILORE_H
|
||||
#define __RILORE_H
|
||||
|
||||
#define RILORE_TIPO "TIPO"
|
||||
#define RILORE_TIPORA "TIPORA"
|
||||
#define RILORE_CODICE "CODICE"
|
||||
#define RILORE_ANNO "ANNO"
|
||||
#define RILORE_MESE "MESE"
|
||||
#define RILORE_TPORA "TPORA"
|
||||
#define RILORE_CODCOSTO "CODCOSTO"
|
||||
#define RILORE_CODCMS "CODCMS"
|
||||
#define RILORE_CODFASE "CODFASE"
|
||||
#define RILORE_DADATA "DADATA"
|
||||
#define RILORE_ADATA "ADATA"
|
||||
#define RILORE_QTAORE "QTAORE"
|
||||
#define RILORE_COSTO "COSTO"
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user