Patch level : nopatch
Files correlati : Commento :
This commit is contained in:
parent
28f9fc164e
commit
922307cc05
@ -161,6 +161,7 @@ void TPA_mask::fill()
|
|||||||
const TDate dal = get(F_DATAINI);
|
const TDate dal = get(F_DATAINI);
|
||||||
const TDate al = get(F_DATAEND);
|
const TDate al = get(F_DATAEND);
|
||||||
TString filter_selected = get(F_FATTSEL);
|
TString filter_selected = get(F_FATTSEL);
|
||||||
|
bool provvisorio = get(F_PROVVISORIO);
|
||||||
|
|
||||||
enable(DLG_OK, filter_selected.empty() || filter_selected == "E" || filter_selected == "X");
|
enable(DLG_OK, filter_selected.empty() || filter_selected == "E" || filter_selected == "X");
|
||||||
enable(DLG_SAVEREC, (is_f8() && filter_selected == "X") || filter_selected == "D");
|
enable(DLG_SAVEREC, (is_f8() && filter_selected == "X") || filter_selected == "D");
|
||||||
@ -273,8 +274,7 @@ void TPA_mask::fill()
|
|||||||
|
|
||||||
const bool attach = !rec.get("COLL_GOLEM").is_empty();
|
const bool attach = !rec.get("COLL_GOLEM").is_empty();
|
||||||
row.add(attach ? "X" : " ");
|
row.add(attach ? "X" : " ");
|
||||||
|
row.add((!td.invio_xml()) ? "X" : "");
|
||||||
row.add(!td.invio_xml() ? "X" : "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
docs.force_update();
|
docs.force_update();
|
||||||
|
@ -334,10 +334,8 @@ END
|
|||||||
BOOLEAN S_ONLYGEN
|
BOOLEAN S_ONLYGEN
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 20 8 "Solo generazione"
|
PROMPT 20 8 "Solo generazione"
|
||||||
FLAGS "D"
|
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
TOOLBAR "Documento" 0 0 0 2
|
TOOLBAR "Documento" 0 0 0 2
|
||||||
|
@ -49,9 +49,15 @@ bool TLetint_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
case F_ANNO:
|
case F_ANNO:
|
||||||
if (e == fe_modify || e == fe_init || e == fe_close)
|
if (e == fe_modify || e == fe_init || e == fe_close)
|
||||||
{
|
{
|
||||||
if (!is_registro(atoi(o.get())))
|
const int anno = o.get_int();
|
||||||
|
|
||||||
|
if (e == fe_modify || e == fe_init)
|
||||||
|
show(F_VSPROT, anno < 2021);
|
||||||
|
if (!is_registro(anno))
|
||||||
return error_box(FR("Manca il registro dichiarazioni d'intento per l'anno %d"), atoi(o.get()));
|
return error_box(FR("Manca il registro dichiarazioni d'intento per l'anno %d"), atoi(o.get()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case F_NUMPROT:
|
case F_NUMPROT:
|
||||||
if (e == fe_close && query_mode())
|
if (e == fe_close && query_mode())
|
||||||
{
|
{
|
||||||
@ -68,11 +74,12 @@ bool TLetint_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case F_PROTINTF:
|
case F_PROTINTF:
|
||||||
if (e == fe_close && get_int(F_ANNO) > 2021 && (insert_mode() || edit_mode()))
|
if (e == fe_close && get_int(F_ANNO) > 2020 && (insert_mode() || edit_mode()))
|
||||||
{
|
{
|
||||||
if (!o.get().full())
|
if (!o.get().full())
|
||||||
return error_box(TR("Dal 2022 il protocollo di invio è obbligatorio"));
|
return error_box(TR("Dal 2021 il protocollo di invio è obbligatorio"));
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case F_DATAREG:
|
case F_DATAREG:
|
||||||
if (e == fe_close && insert_mode())
|
if (e == fe_close && insert_mode())
|
||||||
{
|
{
|
||||||
@ -97,10 +104,6 @@ bool TLetint_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
if (e == fe_modify)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case F_TIPOOP:
|
case F_TIPOOP:
|
||||||
// Controlli
|
// Controlli
|
||||||
@ -127,6 +130,9 @@ bool TLetint_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
reset(F_DAL);
|
reset(F_DAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -243,8 +249,8 @@ void TLetint::init_modify_mode(TMask& m) //evita la registrazione di un record m
|
|||||||
xvtil_statbar_set(msg);
|
xvtil_statbar_set(msg);
|
||||||
}
|
}
|
||||||
m.disable(F_UTILIZZATO);
|
m.disable(F_UTILIZZATO);
|
||||||
if (m.get(F_PROTDATA).blank() && m.get(F_PROTINTF).full())
|
//if (m.get(F_PROTDATA).blank() && m.get(F_PROTINTF).full())
|
||||||
m.set(F_PROTDATA, m.get(F_VSDATA));
|
//m.set(F_PROTDATA, m.get(F_VSDATA));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -190,7 +190,6 @@ END
|
|||||||
STRING F_VSPROT 7
|
STRING F_VSPROT 7
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 35 12 "Numero di protocollo"
|
PROMPT 35 12 "Numero di protocollo"
|
||||||
FLAG "H"
|
|
||||||
FIELD VSPROT
|
FIELD VSPROT
|
||||||
END
|
END
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user