Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : tolto controllo inutile stringa.ok() git-svn-id: svn://10.65.10.50/trunk@9232 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									e855b65516
								
							
						
					
					
						commit
						561dd5e9b1
					
				@ -317,17 +317,17 @@ bool TStampaDonBen::set_print(int m)
 | 
				
			|||||||
  	const TString16 catqua = _msk->get(F_CAT4);
 | 
					  	const TString16 catqua = _msk->get(F_CAT4);
 | 
				
			||||||
  	const TString16 catqui = _msk->get(F_CAT5);
 | 
					  	const TString16 catqui = _msk->get(F_CAT5);
 | 
				
			||||||
  	const TString16 catses = _msk->get(F_CAT6);
 | 
					  	const TString16 catses = _msk->get(F_CAT6);
 | 
				
			||||||
	  if (catpri.not_empty() && catpri.ok())
 | 
						  if (catpri.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catpri);
 | 
					  		_categorie.add((const char*) catpri);
 | 
				
			||||||
  	if (catsec.not_empty() && catsec.ok())
 | 
					  	if (catsec.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catsec);
 | 
					  		_categorie.add((const char*) catsec);
 | 
				
			||||||
  	if (catter.not_empty() && catter.ok())
 | 
					  	if (catter.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catter);
 | 
					  		_categorie.add((const char*) catter);
 | 
				
			||||||
  	if (catqua.not_empty() && catqua.ok())
 | 
					  	if (catqua.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqua);
 | 
					  		_categorie.add((const char*) catqua);
 | 
				
			||||||
  	if (catqui.not_empty() && catqui.ok())
 | 
					  	if (catqui.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqui);
 | 
					  		_categorie.add((const char*) catqui);
 | 
				
			||||||
  	if (catses.not_empty() && catses.ok())
 | 
					  	if (catses.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catses);
 | 
					  		_categorie.add((const char*) catses);
 | 
				
			||||||
		_numini = _msk->get_int(F_NUMINI);  		
 | 
							_numini = _msk->get_int(F_NUMINI);  		
 | 
				
			||||||
		_numfin = _msk->get_int(F_NUMFIN);		
 | 
							_numfin = _msk->get_int(F_NUMFIN);		
 | 
				
			||||||
 | 
				
			|||||||
@ -187,17 +187,17 @@ bool TAttribuzioneBenemerenze::set_print(int)
 | 
				
			|||||||
	  const TString16 catqua = _msk->get(F_CAT4);
 | 
						  const TString16 catqua = _msk->get(F_CAT4);
 | 
				
			||||||
	  const TString16 catqui = _msk->get(F_CAT5);
 | 
						  const TString16 catqui = _msk->get(F_CAT5);
 | 
				
			||||||
	  const TString16 catses = _msk->get(F_CAT6);
 | 
						  const TString16 catses = _msk->get(F_CAT6);
 | 
				
			||||||
	  if (catpri.not_empty() && catpri.ok())
 | 
						  if (catpri.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catpri);
 | 
						  	_catdon.add((const char*) catpri);
 | 
				
			||||||
	  if (catsec.not_empty() && catsec.ok())
 | 
						  if (catsec.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catsec);
 | 
						  	_catdon.add((const char*) catsec);
 | 
				
			||||||
	  if (catter.not_empty() && catter.ok())
 | 
						  if (catter.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catter);
 | 
						  	_catdon.add((const char*) catter);
 | 
				
			||||||
	  if (catqua.not_empty() && catqua.ok())
 | 
						  if (catqua.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catqua);
 | 
						  	_catdon.add((const char*) catqua);
 | 
				
			||||||
	  if (catqui.not_empty() && catqui.ok())
 | 
						  if (catqui.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catqui);
 | 
						  	_catdon.add((const char*) catqui);
 | 
				
			||||||
	  if (catses.not_empty() && catses.ok())
 | 
						  if (catses.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catses);
 | 
						  	_catdon.add((const char*) catses);
 | 
				
			||||||
		_tabben.destroy();
 | 
							_tabben.destroy();
 | 
				
			||||||
		TTable ben("BNZ");
 | 
							TTable ben("BNZ");
 | 
				
			||||||
 | 
				
			|||||||
@ -319,17 +319,17 @@ bool TControlloBenemerenze::set_print(int m)
 | 
				
			|||||||
	  const TString16 catqua = _msk->get(F_CAT4);
 | 
						  const TString16 catqua = _msk->get(F_CAT4);
 | 
				
			||||||
	  const TString16 catqui = _msk->get(F_CAT5);
 | 
						  const TString16 catqui = _msk->get(F_CAT5);
 | 
				
			||||||
	  const TString16 catses = _msk->get(F_CAT6);
 | 
						  const TString16 catses = _msk->get(F_CAT6);
 | 
				
			||||||
	  if (catpri.not_empty() && catpri.ok())
 | 
						  if (catpri.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catpri);
 | 
						  	_catdon.add((const char*) catpri);
 | 
				
			||||||
	  if (catsec.not_empty() && catsec.ok())
 | 
						  if (catsec.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catsec);
 | 
						  	_catdon.add((const char*) catsec);
 | 
				
			||||||
	  if (catter.not_empty() && catter.ok())
 | 
						  if (catter.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catter);
 | 
						  	_catdon.add((const char*) catter);
 | 
				
			||||||
	  if (catqua.not_empty() && catqua.ok())
 | 
						  if (catqua.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catqua);
 | 
						  	_catdon.add((const char*) catqua);
 | 
				
			||||||
	  if (catqui.not_empty() && catqui.ok())
 | 
						  if (catqui.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catqui);
 | 
						  	_catdon.add((const char*) catqui);
 | 
				
			||||||
	  if (catses.not_empty() && catses.ok())
 | 
						  if (catses.not_empty())
 | 
				
			||||||
	  	_catdon.add((const char*) catses);
 | 
						  	_catdon.add((const char*) catses);
 | 
				
			||||||
		current_cursor()->set_filterfunction (filter_func_ctrlben);
 | 
							current_cursor()->set_filterfunction (filter_func_ctrlben);
 | 
				
			||||||
		reset_print();
 | 
							reset_print();
 | 
				
			||||||
 | 
				
			|||||||
@ -524,17 +524,17 @@ bool TStatSogxCom::riepilogo()
 | 
				
			|||||||
  	const TString16 catqua = _msk->get(F_CAT4);
 | 
					  	const TString16 catqua = _msk->get(F_CAT4);
 | 
				
			||||||
  	const TString16 catqui = _msk->get(F_CAT5);
 | 
					  	const TString16 catqui = _msk->get(F_CAT5);
 | 
				
			||||||
  	const TString16 catses = _msk->get(F_CAT6);
 | 
					  	const TString16 catses = _msk->get(F_CAT6);
 | 
				
			||||||
	  if (catpri.not_empty() && catpri.ok())
 | 
						  if (catpri.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catpri);
 | 
					  		_categorie.add((const char*) catpri);
 | 
				
			||||||
  	if (catsec.not_empty() && catsec.ok())
 | 
					  	if (catsec.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catsec);
 | 
					  		_categorie.add((const char*) catsec);
 | 
				
			||||||
  	if (catter.not_empty() && catter.ok())
 | 
					  	if (catter.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catter);
 | 
					  		_categorie.add((const char*) catter);
 | 
				
			||||||
  	if (catqua.not_empty() && catqua.ok())
 | 
					  	if (catqua.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqua);
 | 
					  		_categorie.add((const char*) catqua);
 | 
				
			||||||
  	if (catqui.not_empty() && catqui.ok())
 | 
					  	if (catqui.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqui);
 | 
					  		_categorie.add((const char*) catqui);
 | 
				
			||||||
  	if (catses.not_empty() && catses.ok())
 | 
					  	if (catses.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catses);
 | 
					  		_categorie.add((const char*) catses);
 | 
				
			||||||
		_cur->set_filterfunction(filter_func_statxcom);
 | 
							_cur->set_filterfunction(filter_func_statxcom);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
				
			|||||||
@ -666,17 +666,17 @@ bool TStampaScadenze::set_print(int m)
 | 
				
			|||||||
  	const TString16 catqua = _msk->get(F_CAT4);
 | 
					  	const TString16 catqua = _msk->get(F_CAT4);
 | 
				
			||||||
  	const TString16 catqui = _msk->get(F_CAT5);
 | 
					  	const TString16 catqui = _msk->get(F_CAT5);
 | 
				
			||||||
  	const TString16 catses = _msk->get(F_CAT6);
 | 
					  	const TString16 catses = _msk->get(F_CAT6);
 | 
				
			||||||
  	if (catpri.not_empty() && catpri.ok())
 | 
					  	if (catpri.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catpri);
 | 
					  		_categorie.add((const char*) catpri);
 | 
				
			||||||
  	if (catsec.not_empty() && catsec.ok())
 | 
					  	if (catsec.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catsec);
 | 
					  		_categorie.add((const char*) catsec);
 | 
				
			||||||
  	if (catter.not_empty() && catter.ok())
 | 
					  	if (catter.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catter);
 | 
					  		_categorie.add((const char*) catter);
 | 
				
			||||||
  	if (catqua.not_empty() && catqua.ok())
 | 
					  	if (catqua.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqua);
 | 
					  		_categorie.add((const char*) catqua);
 | 
				
			||||||
  	if (catqui.not_empty() && catqui.ok())
 | 
					  	if (catqui.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqui);
 | 
					  		_categorie.add((const char*) catqui);
 | 
				
			||||||
  	if (catses.not_empty() && catses.ok())
 | 
					  	if (catses.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catses);
 | 
					  		_categorie.add((const char*) catses);
 | 
				
			||||||
		// filtro per idoneo e non escluso                                     
 | 
							// filtro per idoneo e non escluso                                     
 | 
				
			||||||
		//if (_usomodo)
 | 
							//if (_usomodo)
 | 
				
			||||||
 | 
				
			|||||||
@ -361,17 +361,17 @@ bool TStampaUrgenze::set_print(int)
 | 
				
			|||||||
  	const TString16 catqua = _msk->get(F_CAT4);
 | 
					  	const TString16 catqua = _msk->get(F_CAT4);
 | 
				
			||||||
  	const TString16 catqui = _msk->get(F_CAT5);
 | 
					  	const TString16 catqui = _msk->get(F_CAT5);
 | 
				
			||||||
  	const TString16 catses = _msk->get(F_CAT6);
 | 
					  	const TString16 catses = _msk->get(F_CAT6);
 | 
				
			||||||
  	if (catpri.not_empty() && catpri.ok())
 | 
					  	if (catpri.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catpri);
 | 
					  		_categorie.add((const char*) catpri);
 | 
				
			||||||
  	if (catsec.not_empty() && catsec.ok())
 | 
					  	if (catsec.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catsec);
 | 
					  		_categorie.add((const char*) catsec);
 | 
				
			||||||
  	if (catter.not_empty() && catter.ok())
 | 
					  	if (catter.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catter);
 | 
					  		_categorie.add((const char*) catter);
 | 
				
			||||||
  	if (catqua.not_empty() && catqua.ok())
 | 
					  	if (catqua.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqua);
 | 
					  		_categorie.add((const char*) catqua);
 | 
				
			||||||
  	if (catqui.not_empty() && catqui.ok())
 | 
					  	if (catqui.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catqui);
 | 
					  		_categorie.add((const char*) catqui);
 | 
				
			||||||
  	if (catses.not_empty() && catses.ok())
 | 
					  	if (catses.not_empty())
 | 
				
			||||||
  		_categorie.add((const char*) catses);
 | 
					  		_categorie.add((const char*) catses);
 | 
				
			||||||
		// filtro per tipizzazione
 | 
							// filtro per tipizzazione
 | 
				
			||||||
		TString filtro;
 | 
							TString filtro;
 | 
				
			||||||
@ -381,15 +381,15 @@ bool TStampaUrgenze::set_print(int)
 | 
				
			|||||||
  	const TString16 kell 				= _msk->get(F_KELL);
 | 
					  	const TString16 kell 				= _msk->get(F_KELL);
 | 
				
			||||||
  	const TString16 fenotiporh	=	_msk->get(F_FENOTIPORH);
 | 
					  	const TString16 fenotiporh	=	_msk->get(F_FENOTIPORH);
 | 
				
			||||||
  	const TString16 du					=	_msk->get(F_DU);
 | 
					  	const TString16 du					=	_msk->get(F_DU);
 | 
				
			||||||
		if ((gruppoab0.ok()) && (gruppoab0.not_empty()))
 | 
							if (gruppoab0.not_empty())
 | 
				
			||||||
    	filtro << " && (" << SOG_GRUPPOAB0 << " == \"" << gruppoab0 << "\")";
 | 
					    	filtro << " && (" << SOG_GRUPPOAB0 << " == \"" << gruppoab0 << "\")";
 | 
				
			||||||
		if ((rhantid.ok()) && (rhantid.not_empty()))
 | 
							if (rhantid.not_empty())
 | 
				
			||||||
    	filtro << " && (" << SOG_RHANTID << " == \"" << rhantid << "\")";
 | 
					    	filtro << " && (" << SOG_RHANTID << " == \"" << rhantid << "\")";
 | 
				
			||||||
		if ((kell.ok()) && (kell.not_empty()))
 | 
							if (kell.not_empty())
 | 
				
			||||||
    	filtro << " && (" << SOG_KELL << " == \"" << kell << "\")";
 | 
					    	filtro << " && (" << SOG_KELL << " == \"" << kell << "\")";
 | 
				
			||||||
		if ((fenotiporh.ok()) && (fenotiporh.not_empty()))
 | 
							if (fenotiporh.not_empty())
 | 
				
			||||||
    	filtro << " && (" << SOG_FENOTIPORH << " == \"" << fenotiporh << "\")";
 | 
					    	filtro << " && (" << SOG_FENOTIPORH << " == \"" << fenotiporh << "\")";
 | 
				
			||||||
		if ((du.ok()) && (du.not_empty()))
 | 
							if (du.not_empty())
 | 
				
			||||||
    	filtro << " && (" << SOG_DU << " == \"" << du << "\")";
 | 
					    	filtro << " && (" << SOG_DU << " == \"" << du << "\")";
 | 
				
			||||||
		_giorni  = _msk->get_long(F_GIORNI);
 | 
							_giorni  = _msk->get_long(F_GIORNI);
 | 
				
			||||||
		_tipodon = _msk->get(F_TIPODON);
 | 
							_tipodon = _msk->get(F_TIPODON);
 | 
				
			||||||
 | 
				
			|||||||
@ -192,7 +192,7 @@ void TStampaIncompleti::header_sezione(const TString16 codsez, const TString16 c
 | 
				
			|||||||
	intestazione << codsot;
 | 
						intestazione << codsot;
 | 
				
			||||||
	intestazione << " ";
 | 
						intestazione << " ";
 | 
				
			||||||
	intestazione << densez;
 | 
						intestazione << densez;
 | 
				
			||||||
	if ((densot.ok())&& (densot.not_empty()))
 | 
						if (densot.not_empty())
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		intestazione << "/";
 | 
							intestazione << "/";
 | 
				
			||||||
		intestazione << densot;
 | 
							intestazione << densot;
 | 
				
			||||||
 | 
				
			|||||||
@ -127,7 +127,7 @@ void TStampaNonDom::header_sezione(const TString16 codsez, const TString16 codso
 | 
				
			|||||||
	intestazione << codsot;
 | 
						intestazione << codsot;
 | 
				
			||||||
	intestazione << ' ';
 | 
						intestazione << ' ';
 | 
				
			||||||
	intestazione << densez;
 | 
						intestazione << densez;
 | 
				
			||||||
	if ((densot.ok())&& (densot.not_empty()))
 | 
						if (densot.not_empty())
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		intestazione << '/';
 | 
							intestazione << '/';
 | 
				
			||||||
		intestazione << densot;
 | 
							intestazione << densot;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user