Patch level : 10.0
Files correlati : ve6.exe Ricompilazione Demo : [ ] Commento : Aggiunta archiviazione file acquisiti da terminalinio git-svn-id: svn://10.65.10.50/branches/R_10_00@22528 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
48936dc516
commit
569e16e752
@ -4,6 +4,7 @@
|
||||
#include <filetext.h>
|
||||
#include <modaut.h>
|
||||
#include <reprint.h>
|
||||
#include <utility.h>
|
||||
|
||||
#include "../cg/cglib01.h"
|
||||
#include "../mg/mglib.h"
|
||||
@ -488,8 +489,17 @@ void TPenna_app::check_doc() //definizione della me
|
||||
else
|
||||
error_box("Non posso leggere il report ve6500.rep");
|
||||
}
|
||||
xvt_fsys_removefile(nomefile);
|
||||
|
||||
TFilename bck = nomefile.path();
|
||||
bck.add("elaborati");
|
||||
if (bck.exist())
|
||||
{
|
||||
TString256 strname;
|
||||
strname.format("%06d_%06d_%s", TDate(TODAY).date2ansi(), daytime(), (const char*)nomefile.name());
|
||||
bck.add(strname);
|
||||
fcopy(nomefile, bck);
|
||||
}
|
||||
nomefile.fremove();
|
||||
}
|
||||
}
|
||||
|
||||
@ -500,7 +510,7 @@ void TPenna_app::load_doc() //definizione della me
|
||||
|
||||
if(m.run()==K_ENTER)
|
||||
{
|
||||
TConfig ini(_ini_name, "Transaction"); //apre il file su cui scrivere
|
||||
TConfig ini(_ini_name, "Transaction"); //apre il file su cui scrivere
|
||||
//chiamo il nome del file F_FILE che abbiamo scelto con la maschera; get
|
||||
//legge una stringa
|
||||
ini.set("Result", "SUCCESS"); //comunica al chiamante il successo della transazione
|
||||
@ -560,11 +570,9 @@ void TPenna_app::load_doc() //definizione della me
|
||||
codice = val;
|
||||
else
|
||||
if (name == RDOC_QTA && tipo==1)
|
||||
{
|
||||
|
||||
{
|
||||
TArticolo_giacenza & art = cached_article_balances(codice);
|
||||
real quantita(val);
|
||||
|
||||
real quantita = val;
|
||||
const real giacenza=art.disponibilita(annoes,codmag,"",TRUE);
|
||||
quantita = giacenza - quantita;
|
||||
val = quantita.string();
|
||||
@ -577,7 +585,18 @@ void TPenna_app::load_doc() //definizione della me
|
||||
break;
|
||||
}
|
||||
articoli.close();
|
||||
xvt_fsys_removefile(nomefile);
|
||||
|
||||
TFilename bck = nomefile.path();
|
||||
bck.add("elaborati");
|
||||
if (bck.exist())
|
||||
{
|
||||
TString256 strname;
|
||||
strname.format("%06d_%06d_%s", TDate(TODAY).date2ansi(), daytime(), (const char*)nomefile.name());
|
||||
bck.add(strname);
|
||||
fcopy(nomefile, bck);
|
||||
}
|
||||
|
||||
nomefile.fremove();
|
||||
}
|
||||
|
||||
}
|
||||
@ -586,7 +605,7 @@ void TPenna_app::main_loop() //definizione della me
|
||||
{
|
||||
if (!has_module(POAUT, CHK_DONGLE))
|
||||
{
|
||||
error_box("Modulo penna ottica non attivato");
|
||||
error_box(TR("Modulo penna ottica non attivato"));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -597,9 +616,9 @@ void TPenna_app::main_loop() //definizione della me
|
||||
|
||||
if(! load_ini(chk_doc))
|
||||
{
|
||||
error_box("Impossibile aprire il file '%s'",(const char*)_ini_name); //mostra un messaggio di errore se non riesce ad aprire
|
||||
//il file richiesto; nota la conversione dei tipi che
|
||||
//é da eseguire quando devo passare una TString ad un %s
|
||||
cantread_box(_ini_name); //mostra un messaggio di errore se non riesce ad aprire
|
||||
//il file richiesto; nota la conversione dei tipi che
|
||||
//é da eseguire quando devo passare una TString ad un %s
|
||||
return;
|
||||
}
|
||||
if (chk_doc)
|
||||
@ -613,6 +632,6 @@ void TPenna_app::main_loop() //definizione della me
|
||||
int ve6500(int argc, char** argv)
|
||||
{
|
||||
TPenna_app app;
|
||||
app.run(argc,argv,"Terminali portatili");
|
||||
app.run(argc,argv, TR("Terminali portatili"));
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user