Patch level : 2.0 568
Files correlati : sc2.exe Ricompilazione Demo : [ ] Commento : Corretta stampa estratto conto: non stampava correttamente le partite aperte nel caso ne esistessero due consecutive con lo stesso numero, anche se appartenenti ad anni diversi. git-svn-id: svn://10.65.10.50/trunk@11420 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									c65c101060
								
							
						
					
					
						commit
						6ae0365e41
					
				| @ -932,12 +932,21 @@ bool TGame_mask::prima_nota(const long nreg) | |||||||
| {    | {    | ||||||
|   app().partite().destroy();       // Distrugge tutte le partite in memoria
 |   app().partite().destroy();       // Distrugge tutte le partite in memoria
 | ||||||
| 
 | 
 | ||||||
|  |   // Nuovo modo elegante
 | ||||||
|  |   TRectype pn(LF_MOV); | ||||||
|  |   pn.put(MOV_NUMREG, nreg); | ||||||
|  |   bool ok = pn.edit(); | ||||||
|  | 
 | ||||||
|  |   if (!ok) | ||||||
|  |   { | ||||||
|  |     // Vecchio modo, brutto ed obsoleto
 | ||||||
|     const char* const pn = "cg2 -0"; |     const char* const pn = "cg2 -0"; | ||||||
|     TExternal_app prima_nota(pn); |     TExternal_app prima_nota(pn); | ||||||
|     TString numreg; numreg << "1|" << nreg; |     TString numreg; numreg << "1|" << nreg; | ||||||
|   TMessage msg(pn, MSG_LN, numreg); |     TMessage msg(pn, MSG_LN, numreg); // Messaggio di collegamento al movimento nreg
 | ||||||
|   msg.send();                      // Messaggio di collegamento al movimento nreg
 |     msg.send();                  | ||||||
|   bool ok = prima_nota.run() == 0; // Lancia la prima nota
 |     ok = prima_nota.run() == 0;       // Lancia la prima nota
 | ||||||
|  |   } | ||||||
|    |    | ||||||
|   fill_partite();                  // Rilegge partite
 |   fill_partite();                  // Rilegge partite
 | ||||||
|    |    | ||||||
|  | |||||||
| @ -1609,12 +1609,16 @@ int TStampaEC_application::print_ec(TEC_Game_list* games) | |||||||
|   update_numec(clf, +1);     // Incrementa contatore
 |   update_numec(clf, +1);     // Incrementa contatore
 | ||||||
|    |    | ||||||
|   TString16 last_game; |   TString16 last_game; | ||||||
|  |   int last_year = 0; | ||||||
|  | 
 | ||||||
|   for (cur = 0; cur.pos() < items; ++cur) |   for (cur = 0; cur.pos() < items; ++cur) | ||||||
|   {           |   {           | ||||||
|  |     const int curr_year = curr.get_int(PART_ANNO); | ||||||
|     const TString& curr_game = curr.get(PART_NUMPART); |     const TString& curr_game = curr.get(PART_NUMPART); | ||||||
|     if (curr_game == last_game) |     if (curr_year == last_year && curr_game == last_game) | ||||||
|       continue; |       continue; | ||||||
|     last_game = curr_game;   |     last_game = curr_game;   | ||||||
|  |     last_year = curr_year; | ||||||
|    |    | ||||||
|     // Non fregare i clienti agli altri agenti!   
 |     // Non fregare i clienti agli altri agenti!   
 | ||||||
|     if (games != NULL && !games->has_game(curr)) |     if (games != NULL && !games->has_game(curr)) | ||||||
|  | |||||||
| @ -892,9 +892,8 @@ bool TForm_EC_editor::ask_profile() | |||||||
|       if (fcode != 0 &&  |       if (fcode != 0 &&  | ||||||
|          yesno_box(FR("Confermare la cancellazione del profilo %04ld%c"), fcode,flng)) |          yesno_box(FR("Confermare la cancellazione del profilo %04ld%c"), fcode,flng)) | ||||||
|       {  |       {  | ||||||
|         TProgind pi(50,TR("Cancellazione in corso..."),FALSE,FALSE); |         TIndwin pi(100,TR("Cancellazione in corso..."),FALSE,FALSE); | ||||||
|         remove_form(frm,rfr,fform,cod); |         remove_form(frm,rfr,fform,cod); | ||||||
|         pi.cancel(); |  | ||||||
|         mask().set(F_BASE,BASE_EC_PROFILE); |         mask().set(F_BASE,BASE_EC_PROFILE); | ||||||
|         mask().set(F_CODE,""); |         mask().set(F_CODE,""); | ||||||
|         mask().set(F_CODEL,""); |         mask().set(F_CODEL,""); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user