Patch level : 10.0

Files correlati     : ci0.exe ci2.exe ci0200a.msk
Ricompilazione Demo : [ ]
Commento            :
Riportate correzioni di Bonazzi in rilevazione ore (cliente CRPA)


git-svn-id: svn://10.65.10.50/branches/R_10_00@22554 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-01-19 16:40:17 +00:00
parent dd9ebf7152
commit 0352ef0f2e
5 changed files with 16 additions and 33 deletions

View File

@ -428,7 +428,7 @@ bool TRisoatt_msk::on_field_event(TOperable_field& f, TField_event e, long jolly
{ {
switch (f.dlg()) switch (f.dlg())
{ {
case DLG_CERCA: case DLG_FINDREC:
if (e == fe_button) if (e == fe_button)
{ {
riempi_sheet(); riempi_sheet();

View File

@ -12,8 +12,6 @@
#define F_SHEET 311 #define F_SHEET 311
#define DLG_RESET 400 #define DLG_RESET 400
#define DLG_COPY 401
#define DLG_CERCA 402
#define S_DEL 101 #define S_DEL 101
#define S_RISOATT 102 #define S_RISOATT 102

View File

@ -2,7 +2,7 @@
TOOLBAR "topbar" 0 0 0 2 TOOLBAR "topbar" 0 0 0 2
BUTTON DLG_CERCA BUTTON DLG_FINDREC
BEGIN BEGIN
PROMP 1 1 "Cerca" PROMP 1 1 "Cerca"
PICTURE TOOL_FINDREC PICTURE TOOL_FINDREC

View File

@ -1,6 +1,5 @@
#include <applicat.h> #include <applicat.h>
#include <automask.h> #include <automask.h>
//#include <colors.h>
#include <defmask.h> #include <defmask.h>
#include <modaut.h> #include <modaut.h>
#include <recset.h> #include <recset.h>
@ -1058,9 +1057,9 @@ void TRilevamento_cons_msk::registra()
const long id = riga.get_long(sheet.cid2index(S_ID)); const long id = riga.get_long(sheet.cid2index(S_ID));
const TString8 codlist = riga.get(sheet.cid2index(S_CODLIST)); const TString8 codlist = riga.get(sheet.cid2index(S_CODLIST));
const real costo(riga.get(sheet.cid2index(S_COSTO))); const real costo(riga.get(sheet.cid2index(S_COSTO)));
const TString16 cup(riga.get(sheet.cid2index(S_CUP))); const TString16 cup = riga.get(sheet.cid2index(S_CUP));
const TString16 cig(riga.get(sheet.cid2index(S_CIG))); const TString16 cig = riga.get(sheet.cid2index(S_CIG));
const bool rimborso = strcmp(riga.get(sheet.cid2index(S_RIMBORSO)), "X") == 0; const bool rimborso = riga.get_char(sheet.cid2index(S_RIMBORSO)) == 'X';
get_row_anal_fields(riga, codcosto, codcms, codfase); get_row_anal_fields(riga, codcosto, codcms, codfase);
const bool found = rilroa.read('C', id) == NOERR; const bool found = rilroa.read('C', id) == NOERR;

View File

@ -808,7 +808,6 @@ int TRilevamento_ore::rewrite_write()
if (!empty()) if (!empty())
{ {
TLocalisamfile rilore(LF_RILORE); TLocalisamfile rilore(LF_RILORE);
update_id(); update_id();
return TRectype::rewrite_write(rilore); return TRectype::rewrite_write(rilore);
} }
@ -820,46 +819,33 @@ int TRilevamento_ore::remove()
if (!empty()) if (!empty())
{ {
TLocalisamfile rilore(LF_RILORE); TLocalisamfile rilore(LF_RILORE);
return TRectype::remove(rilore); return TRectype::remove(rilore);
} }
return _iskeynotfound; return _iskeynotfound;
} }
//Metodi costruttori //Metodi costruttori
TRilevamento_ore::TRilevamento_ore(const TRectype& rec) TRilevamento_ore::TRilevamento_ore(const TRectype& rec) : TRectype(rec)
: TRectype(rec) {}
{
}
TRilevamento_ore::TRilevamento_ore(const TRilevamento_ore& rilore) TRilevamento_ore::TRilevamento_ore(const TRilevamento_ore& rilore) : TRectype(rilore)
: TRectype(rilore) {}
{
}
TRilevamento_ore::TRilevamento_ore(const char tipo, const long id) TRilevamento_ore::TRilevamento_ore(const char tipo, const long id)
: TRectype(LF_RILORE) : TRectype(LF_RILORE)
{ { read(tipo, id); }
read(tipo, id);
}
TRilevamento_ore::TRilevamento_ore(const char tipo, const TDate & giorno, const char tipora, const char* codice, const char* tpora, const char* codcosto, const char* codcms, const char* codfase) TRilevamento_ore::TRilevamento_ore(const char tipo, const TDate & giorno, const char tipora, const char* codice,
const char* tpora, const char* codcosto, const char* codcms, const char* codfase)
: TRectype(LF_RILORE) : TRectype(LF_RILORE)
{ { read(tipo, giorno, tipora, codice, tpora, codcosto, codcms, codfase); }
read(tipo, giorno, tipora, codice, tpora, codcosto, codcms, codfase);
}
TRilevamento_ore::TRilevamento_ore() TRilevamento_ore::TRilevamento_ore() : TRectype(LF_RILORE)
: TRectype(LF_RILORE) { zero(); }
{
zero();
}
const long date2ndoc(const TDate& data) const long date2ndoc(const TDate& data)
{ { return data.month() * 100 + data.day(); }
return data.month() * 100 + data.day();
}
/////////////////////////// ///////////////////////////
//// TDoc_cache //// //// TDoc_cache ////