Patch level : 10.0 336
Files correlati : ve0 Ricompilazione Demo : [ ] Commento : Migliorata validazione date (Bolle Lavanderie) git-svn-id: svn://10.65.10.50/trunk@19012 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
eb59d4d7c9
commit
1e2d64d930
@ -217,6 +217,13 @@ void TMask::read_mask(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Faccio una prima passata in questa occasione: tuttavia il ciclo
|
||||||
|
// verra' ripetuto nella load checks, nel caso ci siano campi aggiunti dinamicamente
|
||||||
|
FOR_EACH_MASK_FIELD((*this), i, f) if (f->is_edit())
|
||||||
|
((TEdit_field*)f)->test_drivers();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMask::add_field(TMask_field* f)
|
void TMask::add_field(TMask_field* f)
|
||||||
|
@ -3629,7 +3629,7 @@ bool TEdit_field::on_hit()
|
|||||||
if (vf == AUTOEXIT_FUNC || vf == NUMCALC_FUNC || vf == STRCALC_FUNC || vf == 21)
|
if (vf == AUTOEXIT_FUNC || vf == NUMCALC_FUNC || vf == STRCALC_FUNC || vf == 21)
|
||||||
{
|
{
|
||||||
const bool ok = validate(K_TAB); // Check validation expression
|
const bool ok = validate(K_TAB); // Check validation expression
|
||||||
if (!ok) return FALSE;
|
if (!ok) return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,16 +27,8 @@ HIDDEN int get_int_val_param(int i)
|
|||||||
|
|
||||||
HIDDEN const TString& get_fld_val_param(const TMask_field& f, int i)
|
HIDDEN const TString& get_fld_val_param(const TMask_field& f, int i)
|
||||||
{
|
{
|
||||||
const short id = f.atodlg(get_val_param(i));
|
const TString & id = get_val_param(i);
|
||||||
if (id == THIS_FIELD)
|
return f.evaluate_field(id);
|
||||||
return f.get();
|
|
||||||
|
|
||||||
const TMask& m = f.mask();
|
|
||||||
const int pos = id > 0 ? m.id2pos(id) : -1;
|
|
||||||
if (pos >= 0)
|
|
||||||
return m.fld(pos).get();
|
|
||||||
|
|
||||||
return EMPTY_STRING;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HIDDEN bool _expr_val(TMask_field& f, KEY)
|
HIDDEN bool _expr_val(TMask_field& f, KEY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user