Errori segnalati da Milano
git-svn-id: svn://10.65.10.50/trunk@3190 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									19d8d391c7
								
							
						
					
					
						commit
						ea69934c1e
					
				@ -3119,6 +3119,8 @@ void TMastrini_application::ricerca_clifo()
 | 
				
			|||||||
  TString   descriz,descriz2;
 | 
					  TString   descriz,descriz2;
 | 
				
			||||||
  int     numrivd;
 | 
					  int     numrivd;
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					  indcf = "";
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
  clifo.setkey(1);
 | 
					  clifo.setkey(1);
 | 
				
			||||||
  clifo.zero();
 | 
					  clifo.zero();
 | 
				
			||||||
  clifo.put(CLI_TIPOCF, _tmcf);
 | 
					  clifo.put(CLI_TIPOCF, _tmcf);
 | 
				
			||||||
@ -3255,6 +3257,8 @@ int TMastrini_application::ricerca_clifo(int start)
 | 
				
			|||||||
  int     numrivd;
 | 
					  int     numrivd;
 | 
				
			||||||
  int   r = start;
 | 
					  int   r = start;
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					  indcf = "";
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
  clifo.setkey(1);
 | 
					  clifo.setkey(1);
 | 
				
			||||||
  clifo.zero();
 | 
					  clifo.zero();
 | 
				
			||||||
  clifo.put(CLI_TIPOCF, _tmcf);
 | 
					  clifo.put(CLI_TIPOCF, _tmcf);
 | 
				
			||||||
@ -3368,9 +3372,9 @@ int TMastrini_application::ricerca_clifo(int start)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  set_row (r, "@33gP.I.@37g%-11s",(const char*) paiv);
 | 
					  set_row (r, "@33gP.I.@37g%-11s",(const char*) paiv);
 | 
				
			||||||
  set_row (r, "@49gCF@52g%-16s",(const char*) cofi);
 | 
					  set_row (r, "@49gCF@52g%-16s",(const char*) cofi);
 | 
				
			||||||
  set_row (r, "@69g%-25s",(const char*) indcf);
 | 
					  set_row (r, "@69g%-.25s",(const char*) indcf);
 | 
				
			||||||
  set_row (r, "@95g%-5s",(const char*) capcf);
 | 
					  set_row (r, "@95g%-5s",(const char*) capcf);
 | 
				
			||||||
  set_row (r, "@101g%-24s",(const char*) dencom);
 | 
					  set_row (r, "@101g%-.24s",(const char*) dencom);
 | 
				
			||||||
  set_row (r, "@126g%-5s",(const char*) provcom);
 | 
					  set_row (r, "@126g%-5s",(const char*) provcom);
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
  if (_numcarat == 2)
 | 
					  if (_numcarat == 2)
 | 
				
			||||||
 | 
				
			|||||||
@ -183,7 +183,12 @@ bool TRic_auto::leggi_trasfer()
 | 
				
			|||||||
  _tras_file->open(trasf);
 | 
					  _tras_file->open(trasf);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (_tras_file->exist())   
 | 
					  if (_tras_file->exist())   
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    _tras_file->close();
 | 
				
			||||||
    return TRUE;        
 | 
					    return TRUE;        
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  _tras_file->close();
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  return FALSE;
 | 
					  return FALSE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -200,6 +200,13 @@ bool TRic_archivi::leggi_marker()
 | 
				
			|||||||
    _progdisk   = atoi(buffer.sub(31,33));
 | 
					    _progdisk   = atoi(buffer.sub(31,33));
 | 
				
			||||||
    _numtotdisk = atoi(buffer.sub(29,31));
 | 
					    _numtotdisk = atoi(buffer.sub(29,31));
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    if (_numtotdisk == 0) 
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      message_box("Il numero totale dischi su marker non e' significativo: impossibile proseguire");
 | 
				
			||||||
 | 
					      fclose(i);
 | 
				
			||||||
 | 
					      return FALSE;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					      
 | 
				
			||||||
    if (_progdisk != _numdisk)
 | 
					    if (_progdisk != _numdisk)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      message_box("Il dischetto inserito non rispecchia la giusta sequenza");
 | 
					      message_box("Il dischetto inserito non rispecchia la giusta sequenza");
 | 
				
			||||||
 | 
				
			|||||||
@ -2137,6 +2137,7 @@ bool TRic_ListaMov::preprocess_page(int file,int counter)
 | 
				
			|||||||
  }          
 | 
					  }          
 | 
				
			||||||
  if (file == LF_PARTITE)
 | 
					  if (file == LF_PARTITE)
 | 
				
			||||||
  {  
 | 
					  {  
 | 
				
			||||||
 | 
					    _err.reset();                             
 | 
				
			||||||
    _tipomov    = cur->curr(LF_PARTITE).get_int (PART_TIPOMOV);
 | 
					    _tipomov    = cur->curr(LF_PARTITE).get_int (PART_TIPOMOV);
 | 
				
			||||||
    _tipocf     = cur->curr(LF_PARTITE).get_char(PART_TIPOCF);
 | 
					    _tipocf     = cur->curr(LF_PARTITE).get_char(PART_TIPOCF);
 | 
				
			||||||
    _gruppo     = cur->curr(LF_PARTITE).get_int (PART_GRUPPO);
 | 
					    _gruppo     = cur->curr(LF_PARTITE).get_int (PART_GRUPPO);
 | 
				
			||||||
@ -2291,6 +2292,11 @@ print_action TRic_ListaMov::postprocess_page(int file,int count)
 | 
				
			|||||||
       return REPEAT_PAGE;           
 | 
					       return REPEAT_PAGE;           
 | 
				
			||||||
    }   
 | 
					    }   
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  if (file == LF_PARTITE)
 | 
				
			||||||
 | 
					  {       
 | 
				
			||||||
 | 
					    reset_print();
 | 
				
			||||||
 | 
					    _err.reset();
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  return NEXT_PAGE;
 | 
					  return NEXT_PAGE;
 | 
				
			||||||
}       
 | 
					}       
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -214,14 +214,23 @@ bool TInv_cont::main_loop()
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
      if (i == NULL) return error_box("Impossibile aprire il file '%s'", from);
 | 
					      if (i == NULL) return error_box("Impossibile aprire il file '%s'", from);
 | 
				
			||||||
      
 | 
					      
 | 
				
			||||||
      TProgind w(_dim_tot, "Trasferimento su dischetti in corso... Prego attendere", TRUE, TRUE, 60);
 | 
					      const char* message;
 | 
				
			||||||
 | 
					      if (floppy == "A" || floppy == "B")
 | 
				
			||||||
 | 
					        message = "Trasferimento su dischetti in corso... Prego attendere";
 | 
				
			||||||
 | 
					      else
 | 
				
			||||||
 | 
					        message = "Trasferimento in corso... Prego attendere";
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					      TProgind w(_dim_tot, message, TRUE, TRUE, 60);
 | 
				
			||||||
 | 
					      
 | 
				
			||||||
 | 
					      bool continua = TRUE;
 | 
				
			||||||
      for (int j = 0; j < num_disk; j++)
 | 
					      for (int j = 0; j < num_disk; j++)
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        scrivi_disco(floppy,j+1,work,i,w);
 | 
					        continua = scrivi_disco(floppy,j+1,work,i,w);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      fclose(i);
 | 
					      fclose(i);
 | 
				
			||||||
      
 | 
					      
 | 
				
			||||||
 | 
					      if (!continua) return FALSE;  // Nel caso in cui l'utente decida di annulla re l'operazione
 | 
				
			||||||
 | 
					      
 | 
				
			||||||
      setta_tabella_studio(*msk,FALSE);    //Aggiorna la tabella studio per invio
 | 
					      setta_tabella_studio(*msk,FALSE);    //Aggiorna la tabella studio per invio
 | 
				
			||||||
      setta_tabella_ditta(*msk," ",FALSE); //Aggiorna la tabella ditta per invio
 | 
					      setta_tabella_ditta(*msk," ",FALSE); //Aggiorna la tabella ditta per invio
 | 
				
			||||||
      setta_parametri_record(*msk," ");    //Aggiorna parametri contabili ditta           
 | 
					      setta_parametri_record(*msk," ");    //Aggiorna parametri contabili ditta           
 | 
				
			||||||
@ -282,14 +291,23 @@ bool TInv_cont::main_loop()
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
        if (i == NULL) return error_box("Impossibile aprire il file '%s'", from);
 | 
					        if (i == NULL) return error_box("Impossibile aprire il file '%s'", from);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        TProgind w(_dim_tot, "Trasferimento su dischetti in corso... Prego attendere", TRUE, TRUE, 60);
 | 
					        const char* message;
 | 
				
			||||||
 | 
					        if (floppy == "A" || floppy == "B")
 | 
				
			||||||
 | 
					          message = "Trasferimento su dischetti in corso... Prego attendere";
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					          message = "Trasferimento in corso... Prego attendere";
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					        TProgind w(_dim_tot, message, TRUE, TRUE, 60);
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        bool continua = TRUE;
 | 
				
			||||||
        for (int j = 0; j < num_disk; j++)
 | 
					        for (int j = 0; j < num_disk; j++)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          scrivi_disco(floppy,j+1,work,i,w);
 | 
					          continua = scrivi_disco(floppy,j+1,work,i,w);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        fclose(i);
 | 
					        fclose(i);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 | 
					        if (!continua) return FALSE;    // Nel caso in cui l'utente decida di annullare l'operazione
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
        setta_tabella_studio(*msk,FALSE);    //Aggiorna la tabella studio per invio
 | 
					        setta_tabella_studio(*msk,FALSE);    //Aggiorna la tabella studio per invio
 | 
				
			||||||
        setta_tabella_ditta(*msk," ",FALSE); //Aggiorna la tabella ditta per invio
 | 
					        setta_tabella_ditta(*msk," ",FALSE); //Aggiorna la tabella ditta per invio
 | 
				
			||||||
        setta_parametri_record(*msk," ");    //Aggiorna parametri contabili ditta           
 | 
					        setta_parametri_record(*msk," ");    //Aggiorna parametri contabili ditta           
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,9 @@ FILE* TInv_cont::chiedi_disco(const char* name, int disk, TString& floppy, bool
 | 
				
			|||||||
bool TInv_cont::scrivi_disco(TString& floppy, int disk, const char* work, 
 | 
					bool TInv_cont::scrivi_disco(TString& floppy, int disk, const char* work, 
 | 
				
			||||||
                             FILE* i, TProgind& w) 
 | 
					                             FILE* i, TProgind& w) 
 | 
				
			||||||
{               
 | 
					{               
 | 
				
			||||||
  chiedi_disco(work, disk, floppy, FALSE);                                   
 | 
					  FILE* file = chiedi_disco(work, disk, floppy, FALSE);   
 | 
				
			||||||
 | 
					  if (floppy == "A" || floppy == "B")
 | 
				
			||||||
 | 
					    if (file == NULL) return FALSE;                                 
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (floppy[0] != 'A' && floppy[0] != 'B')
 | 
					  if (floppy[0] != 'A' && floppy[0] != 'B')
 | 
				
			||||||
    if (_dim_disk < _dim_tot)
 | 
					    if (_dim_disk < _dim_tot)
 | 
				
			||||||
 | 
				
			|||||||
@ -1087,6 +1087,9 @@ void TTransfer_file::write_tmp_tabelle(TString& record, bool create)
 | 
				
			|||||||
            field.format("%03c", f);
 | 
					            field.format("%03c", f);
 | 
				
			||||||
          else
 | 
					          else
 | 
				
			||||||
            field.format("%-3c", f);     
 | 
					            field.format("%-3c", f);     
 | 
				
			||||||
 | 
					          
 | 
				
			||||||
 | 
					          int tipomov = atoi(record.sub(208,209));   // Tipo movimento del saldaconto
 | 
				
			||||||
 | 
					          dep->put(CAU_TIPOMOV, tipomov);            // sulla causale
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
        if (fname == "M770")
 | 
					        if (fname == "M770")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user