Files correlati : ve6.exe Ricompilazione Demo : [ ] Commento : Riportata la versione 3.1 patch 979 git-svn-id: svn://10.65.10.50/trunk@15623 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
#include <tabapp.h>
 | 
						|
 | 
						|
#include "tc0.h"
 | 
						|
#include "tcts.h"
 | 
						|
 | 
						|
class TTeamSystem_multirel_app : public TMultirel_application
 | 
						|
{
 | 
						|
 | 
						|
protected:
 | 
						|
	virtual void set_descr(TMask & m, const TString & desc);
 | 
						|
	virtual void get_mask_name(TString& tabname) const;
 | 
						|
	//magico metodo per impedire la navigazione su tabelle diverse da quella corrente del cursore
 | 
						|
	virtual bool has_filtered_cursor() const { return true; }
 | 
						|
  virtual bool user_create();
 | 
						|
 | 
						|
public:
 | 
						|
  
 | 
						|
  TTeamSystem_multirel_app() {}
 | 
						|
  virtual ~TTeamSystem_multirel_app() {}
 | 
						|
};
 | 
						|
 | 
						|
void TTeamSystem_multirel_app::set_descr(TMask & m, const TString & desc)
 | 
						|
{
 | 
						|
	m.set(F_DESC, desc);
 | 
						|
}
 | 
						|
 | 
						|
void TTeamSystem_multirel_app::get_mask_name(TString& tabname) const
 | 
						|
{
 | 
						|
	TMultirel_application::get_mask_name(tabname);
 | 
						|
	tabname.overwrite("ts", 2);
 | 
						|
}
 | 
						|
 | 
						|
bool TTeamSystem_multirel_app::user_create()
 | 
						|
{
 | 
						|
	bool ok = TMultirel_application::user_create();
 | 
						|
 | 
						|
	if (ok)
 | 
						|
	{
 | 
						|
		TConfig config(CONFIG_DITTA);
 | 
						|
		const bool use_pcn = config.get_bool("TSUSECMTAB");
 | 
						|
		TMask & m = *get_mask();
 | 
						|
 | 
						|
		m.show(-10, use_pcn);
 | 
						|
		m.show(-20, !use_pcn);
 | 
						|
		set_search_field(F_CODTAB);
 | 
						|
	}
 | 
						|
	return ok;
 | 
						|
}
 | 
						|
int tc0500(int argc, char* argv[])
 | 
						|
{
 | 
						|
  TTeamSystem_multirel_app a;
 | 
						|
  a.run(argc, argv, TR("Tabella"));
 | 
						|
  return 0;
 | 
						|
}
 |