Corretta tabella cambi (allargate descrizioni)
git-svn-id: svn://10.65.10.50/trunk@3507 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bd896cae79
commit
882a0ec715
@ -1,3 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <relapp.h>
|
||||
#include <stdtypes.h>
|
||||
#include <modaut.h>
|
||||
@ -24,6 +26,8 @@ class TSet_users : public TRelation_application
|
||||
void put_in_record(const TMask& m);
|
||||
virtual int write(const TMask& m);
|
||||
virtual int rewrite(const TMask& m);
|
||||
virtual bool remove();
|
||||
|
||||
void enable_aut(TMask& m);
|
||||
static bool user_handler(TMask_field& f, KEY key);
|
||||
static bool password_handler(TMask_field& f, KEY key);
|
||||
@ -163,19 +167,31 @@ void TSet_users::put_in_record(const TMask& m)
|
||||
}
|
||||
|
||||
int TSet_users::write(const TMask& m)
|
||||
|
||||
{
|
||||
put_in_record(m);
|
||||
return TRelation_application::write(m);
|
||||
}
|
||||
|
||||
int TSet_users::rewrite(const TMask& m)
|
||||
|
||||
{
|
||||
put_in_record(m);
|
||||
return TRelation_application::rewrite(m);
|
||||
}
|
||||
|
||||
bool TSet_users::remove()
|
||||
{
|
||||
const bool ok = TRelation_application::remove();
|
||||
if (ok)
|
||||
{
|
||||
const TString16 u = get_relation()->curr().get("USERNAME");
|
||||
TFilename file = firm2dir(-1); // Directory dati
|
||||
file.add("config"); // Directory configurazioni
|
||||
file.add(u); // Nome utente
|
||||
file.ext("ini"); // Estensione
|
||||
::remove(file);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
bool TSet_users::user_destroy()
|
||||
{
|
||||
|
@ -43,8 +43,8 @@ BEGIN
|
||||
INPUT CODTAB[4,11] FLD_TABCAM_D0
|
||||
DISPLAY "Valuta" CODTAB[1,3]
|
||||
DISPLAY "Data@10" D0
|
||||
DISPLAY "Descrizione@25" -50->S0
|
||||
DISPLAY "Cambio@15" R10
|
||||
DISPLAY "Cambio@15R" R10
|
||||
DISPLAY "Descrizione@50" -50->S0
|
||||
OUTPUT FLD_TABCAM_CODVAL CODTAB[1,3]
|
||||
OUTPUT FLD_TABCAM_D0 D0
|
||||
OUTPUT 200 D0
|
||||
|
Loading…
x
Reference in New Issue
Block a user