Patch level : 12.0 1036

Files correlati     : fp0.exe fp0100a.msk
Commento :
Corretto campo mancante nello sheet note dei parametri
This commit is contained in:
Alessandro Bonazzi 2021-03-04 19:23:39 +01:00
parent f2daafed47
commit 54c98a85b9
2 changed files with 6 additions and 21 deletions

View File

@ -20,7 +20,6 @@ protected:
void tipi_import() const;
static TMask& get_tmp_msk(const char* title);
virtual bool on_key(KEY key);
void delete_row_npf(TOperable_field& o) const;
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
public:
@ -126,18 +125,6 @@ bool TParametri_mask::on_key(const KEY key)
return true;
}
void TParametri_mask::delete_row_npf(TOperable_field& o) const
{
TSheet_field& sf = sfield(F_NPFSHEET);
TMask& msk = o.mask();
const TString& tipodoc_msk = msk.get(S_DOCPF);
for(int i=0; i < sf.items(); i++)
if (tipodoc_msk == sf.row(i).get(0))
sf.destroy(i);
}
bool TParametri_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
switch (o.dlg())
@ -220,13 +207,6 @@ bool TParametri_mask::on_field_event(TOperable_field& o, TField_event e, long jo
set(F_ESPORTADOC, "");
}
}
case DLG_DELREC:
{
if (e == fe_button)
{
delete_row_npf(o);
}
}
break;
case F_STARTFATTEL:
if (e == fe_init)

View File

@ -252,6 +252,11 @@ BEGIN
PROMPT 1 1 ""
END
BUTTON DLG_DELREC 2 2
BEGIN
PROMPT 1 1 ""
END
ENDPAGE
ENDMASK
@ -295,7 +300,7 @@ END
BUTTON DLG_DELREC 2 2
BEGIN
PROMPT 1 1 "ELIMINA NOTA"
PROMPT 1 1 ""
END
ENDPAGE