Patch level : 10.0 900
Files correlati : cg3.exe Ricompilazione Demo : [ ] Commento : Bug 0001760: Visualizzazione Mastrini (cg3) Quando si seleziona il conto da visualizzare, se sono presenti 2 conti clienti o fornitori anche se viene selezionato il secondo il programma rimettere il primo. (Dinamica) git-svn-id: svn://10.65.10.50/branches/R_10_00@21527 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bd87d1d1d0
commit
83c0eeef07
@ -2318,6 +2318,7 @@ long TGrid_mask::handler(WINDOW win, EVENT* ep)
|
|||||||
class TQuery_mask : public TAutomask
|
class TQuery_mask : public TAutomask
|
||||||
{
|
{
|
||||||
TGrid_mask* _gm;
|
TGrid_mask* _gm;
|
||||||
|
TString4 _last_tipo;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||||
@ -2337,6 +2338,10 @@ bool TQuery_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
|||||||
if (e == fe_modify)
|
if (e == fe_modify)
|
||||||
{
|
{
|
||||||
const TString& tipo = o.get();
|
const TString& tipo = o.get();
|
||||||
|
|
||||||
|
if (tipo != _last_tipo)
|
||||||
|
{
|
||||||
|
_last_tipo = tipo;
|
||||||
if (tipo.full())
|
if (tipo.full())
|
||||||
{
|
{
|
||||||
TWait_cursor hourglass;
|
TWait_cursor hourglass;
|
||||||
@ -2350,6 +2355,7 @@ bool TQuery_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case F_CLIENTE:
|
case F_CLIENTE:
|
||||||
case F_FORNITORE:
|
case F_FORNITORE:
|
||||||
@ -2445,7 +2451,7 @@ bool TQuery_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
TQuery_mask::TQuery_mask(TGrid_mask* gm) : TAutomask("cg3600a"), _gm(gm)
|
TQuery_mask::TQuery_mask(TGrid_mask* gm) : TAutomask("cg3600a"), _gm(gm), _last_tipo("")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
void TQuery_mask::do_query()
|
void TQuery_mask::do_query()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user