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 <filetext.h>
|
||||||
#include <modaut.h>
|
#include <modaut.h>
|
||||||
#include <reprint.h>
|
#include <reprint.h>
|
||||||
|
#include <utility.h>
|
||||||
|
|
||||||
#include "../cg/cglib01.h"
|
#include "../cg/cglib01.h"
|
||||||
#include "../mg/mglib.h"
|
#include "../mg/mglib.h"
|
||||||
@ -488,8 +489,17 @@ void TPenna_app::check_doc() //definizione della me
|
|||||||
else
|
else
|
||||||
error_box("Non posso leggere il report ve6500.rep");
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -561,10 +571,8 @@ void TPenna_app::load_doc() //definizione della me
|
|||||||
else
|
else
|
||||||
if (name == RDOC_QTA && tipo==1)
|
if (name == RDOC_QTA && tipo==1)
|
||||||
{
|
{
|
||||||
|
|
||||||
TArticolo_giacenza & art = cached_article_balances(codice);
|
TArticolo_giacenza & art = cached_article_balances(codice);
|
||||||
real quantita(val);
|
real quantita = val;
|
||||||
|
|
||||||
const real giacenza=art.disponibilita(annoes,codmag,"",TRUE);
|
const real giacenza=art.disponibilita(annoes,codmag,"",TRUE);
|
||||||
quantita = giacenza - quantita;
|
quantita = giacenza - quantita;
|
||||||
val = quantita.string();
|
val = quantita.string();
|
||||||
@ -577,7 +585,18 @@ void TPenna_app::load_doc() //definizione della me
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
articoli.close();
|
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))
|
if (!has_module(POAUT, CHK_DONGLE))
|
||||||
{
|
{
|
||||||
error_box("Modulo penna ottica non attivato");
|
error_box(TR("Modulo penna ottica non attivato"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -597,7 +616,7 @@ void TPenna_app::main_loop() //definizione della me
|
|||||||
|
|
||||||
if(! load_ini(chk_doc))
|
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
|
cantread_box(_ini_name); //mostra un messaggio di errore se non riesce ad aprire
|
||||||
//il file richiesto; nota la conversione dei tipi che
|
//il file richiesto; nota la conversione dei tipi che
|
||||||
//é da eseguire quando devo passare una TString ad un %s
|
//é da eseguire quando devo passare una TString ad un %s
|
||||||
return;
|
return;
|
||||||
@ -613,6 +632,6 @@ void TPenna_app::main_loop() //definizione della me
|
|||||||
int ve6500(int argc, char** argv)
|
int ve6500(int argc, char** argv)
|
||||||
{
|
{
|
||||||
TPenna_app app;
|
TPenna_app app;
|
||||||
app.run(argc,argv,"Terminali portatili");
|
app.run(argc,argv, TR("Terminali portatili"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user