From dd92fbf37e1cfac1d372d8f412a81f3d6c9735fb Mon Sep 17 00:00:00 2001 From: luca Date: Tue, 11 May 2010 12:39:48 +0000 Subject: [PATCH] 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 --- ps/ps1001300.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ps/ps1001300.cpp b/ps/ps1001300.cpp index 7494d9c8d..a77b28d07 100755 --- a/ps/ps1001300.cpp +++ b/ps/ps1001300.cpp @@ -270,7 +270,6 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e, case F_DATAFINECMS: _dirty = true; break; - //sheet case F_RIGHE: switch (e) { @@ -279,6 +278,8 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e, default: break; } break; + + //sheet case S_CHECK: 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); const TDate datacomp = o.get(); 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; } break; @@ -312,7 +313,7 @@ bool TVariazione_budget_mask::on_field_event(TOperable_field& o, TField_event e, TDate datainicms, datafinecms; sistema_date_cms(datainicms, 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; }