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:
		
							parent
							
								
									92c162a579
								
							
						
					
					
						commit
						dd92fbf37e
					
				| @ -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; | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user