Patch level : 10.0 patch 505
Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Acquisizione da contapezzi: -Non sono obbligatori tutti i file, ma almeno uno -Da linea di comando: -non mi deve dire finito -deve chiudere da solo la videata di ricezione git-svn-id: svn://10.65.10.50/trunk@19596 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7931977267
commit
2e7870b0ec
@ -534,13 +534,6 @@ bool TAcquisizione_lavanderie_app::elabora_file(const TString& file, TLog_report
|
||||
{
|
||||
//scandisco il file solo se esiste
|
||||
TFilename strname = file;
|
||||
if (!strname.exist())
|
||||
{
|
||||
TString str;
|
||||
str << "ATTENZIONE: il file " << strname << " non esiste!";
|
||||
warning_box(str);
|
||||
return false;
|
||||
}
|
||||
|
||||
TScanner s(file);
|
||||
while (s.ok())
|
||||
@ -833,17 +826,37 @@ bool TAcquisizione_lavanderie_app::transfer()
|
||||
file.add(*row1);
|
||||
}
|
||||
|
||||
bool esiste = false;
|
||||
|
||||
if (file.find('*') >= 0 || file.find('?') >= 0)
|
||||
{
|
||||
TString_array lista_file;
|
||||
list_files(file, lista_file);
|
||||
|
||||
FOR_EACH_ARRAY_ROW(lista_file, r2, row2)
|
||||
{
|
||||
TFilename strname = *row2;
|
||||
if (strname.exist())
|
||||
{
|
||||
esiste = true;
|
||||
elaborato = elabora_file(*row2, logrep, articoli, nrighe, nrsalt);
|
||||
}
|
||||
else
|
||||
}
|
||||
|
||||
}
|
||||
else if(file.exist())
|
||||
{
|
||||
esiste = true;
|
||||
elaborato = elabora_file(file, logrep, articoli, nrighe, nrsalt);
|
||||
}
|
||||
|
||||
if (!esiste)
|
||||
{
|
||||
TString str;
|
||||
str << "ATTENZIONE: non č stato trovato nessun file da elaborare";
|
||||
warning_box(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(elaborato)
|
||||
@ -874,14 +887,22 @@ bool TAcquisizione_lavanderie_app::transfer()
|
||||
list_files(file, lista_file);
|
||||
|
||||
FOR_EACH_ARRAY_ROW(lista_file, r2, row2)
|
||||
{
|
||||
TFilename strname(*row2);
|
||||
if (strname.exist())
|
||||
sposta_file(*row2);
|
||||
}
|
||||
else
|
||||
}
|
||||
else if (file.exist())
|
||||
sposta_file(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (_auto == "A")
|
||||
_msk->send_key(K_SPACE, DLG_CANCEL);
|
||||
else
|
||||
{
|
||||
TReport_book buc;
|
||||
buc.add(logrep);
|
||||
if (buc.pages() > 0)
|
||||
@ -889,6 +910,7 @@ bool TAcquisizione_lavanderie_app::transfer()
|
||||
else
|
||||
message_box(TR("Generazione terminata"));
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user