Correzione per togliere il radio button in piu', relativo alla
scelta sul piano dei conti. git-svn-id: svn://10.65.10.50/trunk@2969 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a3655d64c6
commit
9721609287
@ -28,7 +28,7 @@ TSelection_ext_mask::TSelection_ext_mask(const char* name) : TSelection_mask(nam
|
||||
"@1|Descrizione@50|Gruppo|Conto|Sottoconto",0,1);
|
||||
|
||||
set_handler(SC_CLIFO, rpcon_handler); // Redefined handler...
|
||||
set_handler(SC_SORTCFPCON,rsortpcon_handler); // Redefined handler...
|
||||
set_handler(SC_SORTCF, rsortpcon_handler); // Redefined handler...
|
||||
set_handler(SC_SELECT, bselectpcon_handler); // Redefined handler...
|
||||
set_handler(SC_RESET, bresetpcon_handler); // Redefined handler...
|
||||
set_handler(SC_PCONCODFR3, ffrompcon_handler); // New handler...
|
||||
@ -476,7 +476,24 @@ bool TSelection_ext_mask::rsortpcon_handler(TMask_field& f, KEY k)
|
||||
if (k == K_SPACE)
|
||||
{
|
||||
TSelection_ext_mask& m = (TSelection_ext_mask&)f.mask();
|
||||
m.set_key(atoi(f.get()));
|
||||
const int ordine = atoi(f.get());
|
||||
TString tipo = m.get(SC_CLIFO);
|
||||
bool g3 = FALSE, g4 = FALSE, g5 = FALSE, g6 = FALSE;
|
||||
if (tipo != "P")
|
||||
{
|
||||
g3 = ordine == 1;
|
||||
g4 = !g3;
|
||||
}
|
||||
else
|
||||
{
|
||||
g5 = ordine == 1;
|
||||
g6 = !g5;
|
||||
}
|
||||
m.show(-3, g3); // Abilita clifo per codice
|
||||
m.show(-4, g4); // Abilita clifo per ragsoc
|
||||
m.show(-5, g5); // Abilita pcon per conto
|
||||
m.show(-6, g6); // Abilita pcon per descrizione
|
||||
m.set_key(ordine);
|
||||
m.reset_sheets();
|
||||
}
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user