Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
controllo sulle date non ignorante!


git-svn-id: svn://10.65.10.50/trunk@20438 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2010-05-11 12:39:48 +00:00
parent 92c162a579
commit dd92fbf37e

View File

@ -270,7 +270,6 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e,
case F_DATAFINECMS: case F_DATAFINECMS:
_dirty = true; _dirty = true;
break; break;
//sheet
case F_RIGHE: case F_RIGHE:
switch (e) switch (e)
{ {
@ -279,6 +278,8 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e,
default: break; default: break;
} }
break; break;
//sheet
case S_CHECK: case S_CHECK:
if (e == fe_modify) if (e == fe_modify)
{ {
@ -299,7 +300,7 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e,
sistema_date_cms(datainicms, datafinecms); sistema_date_cms(datainicms, datafinecms);
const TDate datacomp = o.get(); const TDate datacomp = o.get();
if (datacomp < datainicms || (datafinecms.ok() && datacomp > datafinecms)) if (datacomp < datainicms || (datafinecms.ok() && datacomp > datafinecms))
return error_box("La data competenza deve rientrare nella durata della commessa!"); return o.error_box("La data competenza deve rientrare nella durata della commessa!");
_dirty = true; _dirty = true;
} }
break; break;
@ -312,7 +313,7 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e,
TDate datainicms, datafinecms; TDate datainicms, datafinecms;
sistema_date_cms(datainicms, datafinecms); sistema_date_cms(datainicms, datafinecms);
if (datafinecms.ok() && datafcomp > datafinecms) if (datafinecms.ok() && datafcomp > datafinecms)
return error_box("La data fine competenza non può superare la data fine commessa!"); return o.error_box("La data fine competenza non può superare la data fine commessa!");
} }
_dirty = true; _dirty = true;
} }