Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : Turni per controlli: corretto funzionamento del flag maifatto git-svn-id: svn://10.65.10.50/trunk@7174 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									61e9f63a80
								
							
						
					
					
						commit
						1f594aaf70
					
				@ -273,6 +273,7 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
 | 
			
		||||
	}	
 | 
			
		||||
	if (filtrato)
 | 
			
		||||
	{                                        
 | 
			
		||||
		bool fatto = FALSE;
 | 
			
		||||
		TRectype* key = new TRectype(LF_CONTSAN);
 | 
			
		||||
		long codice = recsog.get_long(SOG_CODICE);
 | 
			
		||||
		key->put(CON_CODICE, codice);
 | 
			
		||||
@ -283,21 +284,19 @@ bool TTurniControlli::filter_func_turnicon(const TRelation* rel)
 | 
			
		||||
			TString16 tipocon = riga.get(CON_TIPOCON);
 | 
			
		||||
			if (tipocon == app()._tipo1)
 | 
			
		||||
			{                  
 | 
			
		||||
				if (app()._maifatto)
 | 
			
		||||
				fatto = TRUE;              
 | 
			
		||||
				if (app()._primadel.ok())
 | 
			
		||||
				{ 
 | 
			
		||||
					if (app()._primadel.ok())
 | 
			
		||||
					{ 
 | 
			
		||||
						TDate datacon = riga.get(CON_DATACON);
 | 
			
		||||
						if (datacon >= app()._primadel)
 | 
			
		||||
							filtrato = FALSE;
 | 
			
		||||
					}
 | 
			
		||||
					else
 | 
			
		||||
					TDate datacon = riga.get(CON_DATACON);
 | 
			
		||||
					if (datacon >= app()._primadel)
 | 
			
		||||
						filtrato = FALSE;
 | 
			
		||||
				}
 | 
			
		||||
				else
 | 
			
		||||
					filtrato = FALSE;
 | 
			
		||||
			}				
 | 
			
		||||
	  }
 | 
			
		||||
	  if (!app()._maifatto && !fatto)
 | 
			
		||||
	  	filtrato = FALSE;
 | 
			
		||||
	}	
 | 
			
		||||
	return filtrato;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user