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
|
//scandisco il file solo se esiste
|
||||||
TFilename strname = file;
|
TFilename strname = file;
|
||||||
if (!strname.exist())
|
|
||||||
{
|
|
||||||
TString str;
|
|
||||||
str << "ATTENZIONE: il file " << strname << " non esiste!";
|
|
||||||
warning_box(str);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
TScanner s(file);
|
TScanner s(file);
|
||||||
while (s.ok())
|
while (s.ok())
|
||||||
@ -833,16 +826,36 @@ bool TAcquisizione_lavanderie_app::transfer()
|
|||||||
file.add(*row1);
|
file.add(*row1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool esiste = false;
|
||||||
|
|
||||||
if (file.find('*') >= 0 || file.find('?') >= 0)
|
if (file.find('*') >= 0 || file.find('?') >= 0)
|
||||||
{
|
{
|
||||||
TString_array lista_file;
|
TString_array lista_file;
|
||||||
list_files(file, lista_file);
|
list_files(file, lista_file);
|
||||||
|
|
||||||
FOR_EACH_ARRAY_ROW(lista_file, r2, row2)
|
FOR_EACH_ARRAY_ROW(lista_file, r2, row2)
|
||||||
elaborato = elabora_file(*row2, logrep, articoli, nrighe, nrsalt);
|
{
|
||||||
|
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);
|
elaborato = elabora_file(file, logrep, articoli, nrighe, nrsalt);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!esiste)
|
||||||
|
{
|
||||||
|
TString str;
|
||||||
|
str << "ATTENZIONE: non č stato trovato nessun file da elaborare";
|
||||||
|
warning_box(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -874,20 +887,29 @@ bool TAcquisizione_lavanderie_app::transfer()
|
|||||||
list_files(file, lista_file);
|
list_files(file, lista_file);
|
||||||
|
|
||||||
FOR_EACH_ARRAY_ROW(lista_file, r2, row2)
|
FOR_EACH_ARRAY_ROW(lista_file, r2, row2)
|
||||||
sposta_file(*row2);
|
{
|
||||||
|
TFilename strname(*row2);
|
||||||
|
if (strname.exist())
|
||||||
|
sposta_file(*row2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (file.exist())
|
||||||
sposta_file(file);
|
sposta_file(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TReport_book buc;
|
if (_auto == "A")
|
||||||
buc.add(logrep);
|
_msk->send_key(K_SPACE, DLG_CANCEL);
|
||||||
if (buc.pages() > 0)
|
|
||||||
buc.preview();
|
|
||||||
else
|
else
|
||||||
message_box(TR("Generazione terminata"));
|
{
|
||||||
|
TReport_book buc;
|
||||||
|
buc.add(logrep);
|
||||||
|
if (buc.pages() > 0)
|
||||||
|
buc.preview();
|
||||||
|
else
|
||||||
|
message_box(TR("Generazione terminata"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user