Patch level : 12.00 1326
Files correlati : ci2.exe ci2200a.msk Commento : Evidenziato il periodo corrente
This commit is contained in:
parent
d5b3500eae
commit
a8616101df
@ -1410,7 +1410,13 @@ bool TRilevamento_cons_msk::on_field_event(TOperable_field& f, TField_event e, l
|
|||||||
case F_ANNO:
|
case F_ANNO:
|
||||||
case F_MESE:
|
case F_MESE:
|
||||||
if (e == fe_modify)
|
if (e == fe_modify)
|
||||||
|
{
|
||||||
|
|
||||||
update_tree();
|
update_tree();
|
||||||
|
reset(F_GIORNO);
|
||||||
|
((TRil_tree *)tfield(F_CALENDARIO).tree())->reset_curr_period();
|
||||||
|
tfield(F_CALENDARIO).force_update();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case F_CDC1:
|
case F_CDC1:
|
||||||
case F_CDC2:
|
case F_CDC2:
|
||||||
@ -1440,13 +1446,21 @@ bool TRilevamento_cons_msk::on_field_event(TOperable_field& f, TField_event e, l
|
|||||||
const TString & dett = get(F_INTERVALLO);
|
const TString & dett = get(F_INTERVALLO);
|
||||||
|
|
||||||
if (dett == "A")
|
if (dett == "A")
|
||||||
_anno = atoi(*((TString *) ((TRil_tree *) tfield(F_CALENDARIO).tree())->curr_node()));
|
{
|
||||||
|
_anno = atoi(*((TString *)((TRil_tree *)tfield(F_CALENDARIO).tree())->curr_node()));
|
||||||
|
set(F_ANNO, _anno);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if (dett == "M")
|
if (dett == "M")
|
||||||
_mese = ((TRil_tree *) tfield(F_CALENDARIO).tree())->pos() + 1;
|
{
|
||||||
|
_mese = ((TRil_tree *)tfield(F_CALENDARIO).tree())->pos() + 1;
|
||||||
|
set(F_MESE, _mese);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_giorno = atoi(*((TString *) ((TRil_tree *) tfield(F_CALENDARIO).tree())->curr_node()));
|
{
|
||||||
|
_giorno = atoi(*((TString *)((TRil_tree *)tfield(F_CALENDARIO).tree())->curr_node()));
|
||||||
set(F_GIORNO, _giorno);
|
set(F_GIORNO, _giorno);
|
||||||
|
}
|
||||||
((TRil_tree *)tfield(F_CALENDARIO).tree())->set_curr_period();
|
((TRil_tree *)tfield(F_CALENDARIO).tree())->set_curr_period();
|
||||||
tfield(F_CALENDARIO).force_update();
|
tfield(F_CALENDARIO).force_update();
|
||||||
riempi_sheet();
|
riempi_sheet();
|
||||||
@ -1469,24 +1483,30 @@ bool TRilevamento_cons_msk::on_field_event(TOperable_field& f, TField_event e, l
|
|||||||
|
|
||||||
if (dett == "A")
|
if (dett == "A")
|
||||||
{
|
{
|
||||||
hide(F_ANNO);
|
disable(F_ANNO);
|
||||||
hide(F_MESE);
|
hide(F_MESE);
|
||||||
hide(F_GIORNO);
|
hide(F_GIORNO);
|
||||||
|
reset(F_ANNO);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (dett == "M")
|
if (dett == "M")
|
||||||
{
|
{
|
||||||
show(F_ANNO);
|
enable(F_ANNO);
|
||||||
hide(F_MESE);
|
disable(F_MESE);
|
||||||
|
show(F_MESE);
|
||||||
hide(F_GIORNO);
|
hide(F_GIORNO);
|
||||||
|
reset(F_MESE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
show(F_ANNO);
|
enable(F_ANNO);
|
||||||
show(F_MESE);
|
show(F_MESE);
|
||||||
|
enable(F_MESE);
|
||||||
show(F_GIORNO);
|
show(F_GIORNO);
|
||||||
|
reset(F_GIORNO);
|
||||||
}
|
}
|
||||||
((TRil_tree *)tfield(F_CALENDARIO).tree())->reset_curr_period();
|
((TRil_tree *)tfield(F_CALENDARIO).tree())->reset_curr_period();
|
||||||
|
tfield(F_CALENDARIO).force_update();
|
||||||
update_tree();
|
update_tree();
|
||||||
riempi_sheet();
|
riempi_sheet();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user