Files correlati : Ricompilazione Demo : [ ] Commento : spostato il gestore/stampatore tabella bnp in cg9; rimosso eeaut da ef0a00.cpp git-svn-id: svn://10.65.10.50/trunk@19433 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			69 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
| #include <tabapp.h>
 | |
| 
 | |
| //////////////////////////////////////////////////////
 | |
| // Classe per la gestione della Tabella di Effetti  //
 | |
| //////////////////////////////////////////////////////
 | |
| class TEff_table_app : public TTable_application
 | |
| {
 | |
| protected: 
 | |
|   virtual bool user_create() ;
 | |
|   virtual void init_query_insert_mode(TMask& m) ;             
 | |
|   virtual void init_insert_mode(TMask& m) ;
 | |
|   virtual void init_modify_mode(TMask& m) ;
 | |
|   virtual void init_query_mode (TMask&);   
 | |
| 
 | |
| public:
 | |
|   // @cmember Disabilita la verifica del modulo : essendo una anagrafica, va sempre abilitata
 | |
|   virtual bool check_autorization() const { return false; }
 | |
|   
 | |
|   TEff_table_app() { }
 | |
|   virtual ~TEff_table_app() { }
 | |
| };
 | |
| 
 | |
| HIDDEN inline TEff_table_app& app() { return (TEff_table_app&) main_app(); }
 | |
| 
 | |
| void TEff_table_app::init_query_insert_mode(TMask& m) 
 | |
| {       
 | |
|   if (get_tabname() == "")
 | |
|   {
 | |
|   }  
 | |
| }        
 | |
| 
 | |
| void TEff_table_app::init_insert_mode(TMask& m) 
 | |
| {       
 | |
|   if (get_tabname() == "")
 | |
|   {
 | |
|   }
 | |
| }
 | |
| 
 | |
| void TEff_table_app::init_modify_mode(TMask& m) 
 | |
| {       
 | |
|   if (get_tabname() == "")
 | |
|   {
 | |
|   }
 | |
| }
 | |
| 
 | |
| void TEff_table_app::init_query_mode(TMask& m)
 | |
| {
 | |
|   TTable_application::init_query_mode(m);
 | |
|   if (get_tabname() == "")
 | |
|   {
 | |
|   }
 | |
| }
 | |
| 
 | |
| bool TEff_table_app::user_create()
 | |
| {
 | |
|   TTable_application::user_create();
 | |
|   const TString& name = get_tabname();
 | |
|   if (name.empty()) 
 | |
|     return error_box(TR("Specificare la tabella sulla linea di comando."));
 | |
|   return true;
 | |
| }
 | |
| 
 | |
| int ef0700(int argc, char* argv[])
 | |
| {
 | |
|   TEff_table_app a ;
 | |
|   a.run(argc, argv, TR("Gestione tabelle Effetti"));
 | |
|   return 0;
 | |
| }
 |