Corretti errori CINZIA
git-svn-id: svn://10.65.10.50/trunk@3574 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									f9b938f706
								
							
						
					
					
						commit
						8a0578bf47
					
				| @ -38,6 +38,7 @@ TSaldaconto_app::TSaldaconto_app() | |||||||
| 
 | 
 | ||||||
| bool TSaldaconto_app::create() | bool TSaldaconto_app::create() | ||||||
| {    | {    | ||||||
|  |   open_files(LF_TAB, LF_TABCOM, LF_CLIFO, 0);                       | ||||||
|   open_files(LF_PARTITE, LF_SCADENZE, LF_PAGSCA, 0);   |   open_files(LF_PARTITE, LF_SCADENZE, LF_PAGSCA, 0);   | ||||||
| 
 | 
 | ||||||
|   _msk = new TMask("sc0100a"); |   _msk = new TMask("sc0100a"); | ||||||
|  | |||||||
| @ -947,33 +947,16 @@ bool TGame_mask::edit_fattura(TPartita& p, int nriga) | |||||||
| 
 | 
 | ||||||
| bool TGame_mask::prima_nota(const long nreg) | bool TGame_mask::prima_nota(const long nreg) | ||||||
| {    | {    | ||||||
|   bool ok = TRUE; |   app().partite().destroy();       // Distrugge tutte le partite in memoria
 | ||||||
| 
 | 
 | ||||||
| /* Attualmente tutte le mnodifiche vengono salvata subito
 |   const char* const pn = "cg2 -0"; | ||||||
|   if (_changed) |   TExternal_app prima_nota(pn); | ||||||
|   { |   TString numreg; numreg << "1|" << nreg; | ||||||
|     ok = yesno_box("Registrare le parite modificate?"); |   TMessage msg(pn, MSG_LN, numreg); | ||||||
|     if (ok) |   msg.send();                      // Messaggio di collegamento al movimento nreg
 | ||||||
|     { |   bool ok = prima_nota.run() == 0; // Lancia la prima nota
 | ||||||
|       app().partite().rewrite();  |  | ||||||
|       _changed = FALSE;             // Resetta flag di cambiato
 |  | ||||||
|     }   |  | ||||||
|   } |  | ||||||
| */ |  | ||||||
| 
 | 
 | ||||||
|   if (ok) |   fill_partite();                  // Rilegge partite
 | ||||||
|   { |  | ||||||
|     app().partite().destroy();       // Distrugge tutte le partite in memoria
 |  | ||||||
| 
 |  | ||||||
|     const char* const pn = "cg2 -0"; |  | ||||||
|     TExternal_app prima_nota(pn); |  | ||||||
|     TString numreg; numreg << "1|" << nreg; |  | ||||||
|     TMessage msg(pn, MSG_LN, numreg); |  | ||||||
|     msg.send();                      // Messaggio di collegamento al movimento nreg
 |  | ||||||
|     ok = prima_nota.run() == 0;      // Lancia la prima nota
 |  | ||||||
| 
 |  | ||||||
|     fill_partite();                  // Rilegge partite
 |  | ||||||
|   } |  | ||||||
|    |    | ||||||
|   return ok; |   return ok; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user