Files correlati : Ricompilazione Demo : [ ] Commento : aggiunto il controllo sul dninst git-svn-id: svn://10.65.10.50/trunk@19985 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			33 lines
		
	
	
		
			707 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			707 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
| #include <applicat.h>
 | |
| #include <dongle.h>
 | |
| #include <utility.h>
 | |
| 
 | |
| #include "velib07.h"
 | |
| #include "../ba/ba8500.h"
 | |
| 
 | |
| ///////////////////////////////////////////////////////////
 | |
| // TGeneral_sell
 | |
| ///////////////////////////////////////////////////////////
 | |
| 
 | |
| class TGeneral_sell : public TKlarkKent_app
 | |
| {
 | |
| protected:
 | |
|   virtual bool create();
 | |
| };
 | |
| 
 | |
| bool TGeneral_sell::create()
 | |
| {
 | |
|   //controlla se la chiave ha l'autorizzazione a questo programma
 | |
|   Tdninst dninst;
 | |
|   if (!dninst.can_I_run(true))
 | |
|     return error_box(TR("Programma non autorizzato!"));
 | |
|   return TKlarkKent_app::create();
 | |
| }
 | |
| 
 | |
| int ve3900(int argc, char* argv[])
 | |
| {     
 | |
|   TGeneral_sell app;
 | |
|   app.run(argc, argv, TR("Stampe Acquisti/Vendite"));
 | |
|   return 0;
 | |
| }
 |