Patch level : 10.0 patch 808

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

Rilevazione ore


git-svn-id: svn://10.65.10.50/branches/R_10_00@20891 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2010-09-22 07:30:40 +00:00
parent d185523a1b
commit f62223c725
3 changed files with 16 additions and 8 deletions

View File

@ -150,7 +150,13 @@ void TDef_risoatt_msk::put_row_anal_fields(TToken_string & row, const TString &
//compilati sulla maschera
void TDef_risoatt_msk::riempi_sheet()
{
//leggo dalla maschera i campi chiave di ricerca
TSheet_field& sheet = sfield(F_SHEET);
if (sheet.items() > 0 && sheet.dirty() && yesno_box("Vuoi salvare le modifiche"))
registra();
sheet.destroy();
//leggo dalla maschera i campi chiave di ricerca
const int anno = get_int(F_ANNO);
const TString4 risoatt = get(F_RISOATT) == "T" ? "" : get(F_RISOATT);
const int mese = get_int(F_MESE);
@ -223,8 +229,6 @@ void TDef_risoatt_msk::riempi_sheet()
TISAM_recordset def(query);
TSheet_field& sheet = sfield(F_SHEET);
sheet.destroy();
//riempio lo sheet con i dati che soddisfano il filtro preparato prima
for(bool ok = def.move_first(); ok; ok = def.move_next())
@ -372,7 +376,6 @@ void TDef_risoatt_msk::registra()
int err = rilroa.rewrite_write();
}
}
riempi_sheet();
}
//ON_FIELD_EVENT: metodo che gestisce gli eventi sui vari campi della maschera

View File

@ -349,6 +349,12 @@ void TRilevamento_prev_msk::carica_default()
//compilati sulla maschera
void TRilevamento_prev_msk::riempi_sheet()
{
TSheet_field& sheet = sfield(F_SHEET);
if (sheet.items() > 0 && sheet.dirty() && yesno_box("Vuoi salvare le modifiche"))
registra();
sheet.destroy();
//leggo dalla maschera i campi chiave di ricerca
const TDate da = get_date(F_DADATA);
const TDate a = get_date(F_ADATA);
@ -420,9 +426,6 @@ void TRilevamento_prev_msk::riempi_sheet()
TISAM_recordset def(query);
TSheet_field& sheet = sfield(F_SHEET);
sheet.destroy();
//riempio lo sheet con i dati che soddisfano il filtro preparato prima
for(bool ok = def.move_first(); ok; ok = def.move_next())
{
@ -581,7 +584,6 @@ void TRilevamento_prev_msk::registra()
int err = rilroa.rewrite_write();
}
}
riempi_sheet();
}
//ON_FIELD_EVENT: metodo che gestisce gli eventi sui vari campi della maschera

View File

@ -302,6 +302,9 @@ void TRilevamento_cons_msk::riempi_calendario(const TString & query, const int a
void TRilevamento_cons_msk::riempi_risoatt(int giorno)
{
TSheet_field& sheet = sfield(F_SHEET);
if (sheet.items() > 0 && sheet.dirty() && yesno_box("Vuoi salvare le modifiche"))
registra();
sheet.destroy();
//leggo dalla maschera i campi chiave di ricerca