Patch level : 2003 580
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : GF20092 Quando clicco per posizionarmi sull'ultimo record si posiziona sempre sull'ultimo documento inserito indipendentemente dalla numerazione e tipologia documento preselezionata per la ricerca. git-svn-id: svn://10.65.10.50/trunk@11442 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e182c7e38b
commit
cbc4457689
@ -299,6 +299,7 @@ bool TMotore_application::user_create( )
|
||||
set_search_field(F_NDOC);
|
||||
_link_pos =_sel_color->add_color_def("LINKED", "Righe collegate a documento", COLOR_YELLOW, COLOR_BLACK);
|
||||
|
||||
_msk->set_handler( F_ANNO, TDocumento_mask::anno_handler );
|
||||
_msk->set_handler( F_CODNUM, TDocumento_mask::num_handler );
|
||||
_msk->set_handler( F_TIPODOC, TDocumento_mask::tip_handler );
|
||||
_msk->set_handler( F_NUMDOCRIF, TDocumento_mask::numdocrif_search_handler );
|
||||
|
@ -817,6 +817,7 @@ public:
|
||||
|
||||
TSheet_field& sheet() const { return *_sheet; }
|
||||
TCodgiac_livelli& livelli() const { return *_livelli_giac; }
|
||||
static bool anno_handler( TMask_field& f, KEY key);
|
||||
static bool num_handler( TMask_field& f, KEY key );
|
||||
static bool tip_handler( TMask_field& f, KEY key );
|
||||
static bool numdocrif_search_handler( TMask_field& f, KEY key );
|
||||
|
@ -2219,12 +2219,19 @@ void TDocumento_mask::user_set_handler(int fieldid, int index)
|
||||
}
|
||||
}
|
||||
|
||||
bool TDocumento_mask::num_handler( TMask_field& f, KEY key )
|
||||
bool TDocumento_mask::anno_handler( TMask_field& f, KEY key)
|
||||
{
|
||||
if (key == K_TAB && f.to_check(key, TRUE))
|
||||
app().update_navigation_bar();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TDocumento_mask::num_handler( TMask_field& f, KEY key)
|
||||
{
|
||||
if (key == K_TAB && f.to_check(key, TRUE))
|
||||
{
|
||||
// Ottengo la maschera
|
||||
TMask& m = f.mask( );
|
||||
TMask& m = f.mask();
|
||||
|
||||
TTable & tabnum = ((TTable &) ((TEdit_field &)f).browse()->cursor()->file());
|
||||
if ( tabnum.good())
|
||||
@ -2258,6 +2265,8 @@ bool TDocumento_mask::num_handler( TMask_field& f, KEY key )
|
||||
m.set( F_DESNUM, "" );
|
||||
m.set( F_TIPODOC, "" );
|
||||
}
|
||||
|
||||
app().update_navigation_bar();
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user