Patch level :10.0 460

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
aggiornato il gestore tabelle, spostando la gestione di GMC in ve0400


git-svn-id: svn://10.65.10.50/trunk@19318 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-09-21 14:58:11 +00:00
parent fe29882521
commit ab09d1e972

View File

@ -28,7 +28,6 @@
#define TAB_REGISTRI "REG"
#define TAB_VALUTE "%VAL"
#define TAB_VERSAMENTI "%VER"
#define TAB_GRMERC "GMC"
#define TAB_NOMENCOMB "%NOC"
#define TAB_NOTECLI "%NOT"
#define TAB_PREST "PRS"
@ -63,7 +62,6 @@ protected:
static bool change_decimals_handler(TMask_field& f, KEY k);
static bool codcab_handler(TMask_field& f, KEY k);
static bool codmag_handler(TMask_field& f, KEY k);
static bool codgmc_handler(TMask_field& f, KEY k);
static bool codnoc_handler(TMask_field& f, KEY k);
static bool desnot_handler(TMask_field& f, KEY k);
static bool numivd_handler(TMask_field& f, KEY k);
@ -593,23 +591,6 @@ bool TGeneric_table_app::codmag_handler(TMask_field& f, KEY k)
return TRUE;
}
bool TGeneric_table_app::codgmc_handler(TMask_field& f, KEY k)
{
TMask& m = f.mask();
if (m.query_mode() && k == K_ENTER)
{
const TString& codice = m.get(f.dlg()); //stringa immessa nella maschera
const TString& codtab = cache().get("GMC", codice, "CODTAB"); //stringa cercata nella tabella
if (codtab.empty()) //se non trovi la stringa in tabella (in codice magazzino non esiste->se in insert mode)
{
const int lungh = codice.len();
if (lungh > 0 && lungh < 3)
return f.error_box("Il codice del gruppo merceologico deve avere obbligatoriamente lunghezza 3");
}
}
return TRUE;
}
bool TGeneric_table_app::codnoc_handler(TMask_field& f, KEY k)
{
if (f.to_check(k))
@ -689,9 +670,6 @@ bool TGeneric_table_app::user_create()
if (name == TAB_BANCHE)
mask.set_handler(102, codcab_handler);
if (name == TAB_GRMERC)
mask.set_handler(101, codgmc_handler);
if (name == TAB_NOMENCOMB)
mask.set_handler(NOC_CODICE2, codnoc_handler);