maskfld.cpp corretto messaggio PUSH
relapp.cpp corretto commento errato git-svn-id: svn://10.65.10.50/trunk@3552 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3ac9ee15f7
commit
d879223237
@ -859,7 +859,7 @@ bool TOperable_field::do_message(int num)
|
||||
case 10:
|
||||
mask().field(fld).check_type(CHECK_NORMAL); continue;
|
||||
case 11:
|
||||
key = K_SPACE; break;
|
||||
mask().field(fld).on_hit(); continue;
|
||||
case 12:
|
||||
mask().field(fld).check_type(CHECK_REQUIRED); continue;
|
||||
case 13:
|
||||
@ -1374,8 +1374,10 @@ void TEditable_field::set(const char* data)
|
||||
{
|
||||
_str = reformat(data);
|
||||
const TString& val = raw2win(_str);
|
||||
set_window_data(val);
|
||||
// if (mask().is_running()) // Guy: Secondo me perde tempo solamente!
|
||||
set_window_data(val);
|
||||
|
||||
const TMask& m = mask();
|
||||
if (m.is_running() || m.is_sheetmask())
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
|
@ -245,11 +245,11 @@ int TRelation_application::set_mode(int mode)
|
||||
//
|
||||
// @rdesc Ritorna se e' riuscito a creare una nuova autonumerazione:
|
||||
//
|
||||
// @flag TRUE | Il campo chiave non e' vuoto
|
||||
// @flag FALSE | Non e' riuscii ad autonumerare il campo chiave
|
||||
// @flag TRUE | La chiave non e' vuota
|
||||
// @flag FALSE | Non e' riuscito ad autonumerare il documento
|
||||
bool TRelation_application::autonum(
|
||||
TMask* m, // @parm Maschera a cui applicare l'autonumerazione
|
||||
bool rec) // @parm Indica se registrare il record corrente
|
||||
bool rec) // @parm Indica se registrare la chaive anche sul record corrente
|
||||
{
|
||||
TToken_string k(get_next_key());
|
||||
|
||||
@ -263,8 +263,10 @@ bool TRelation_application::autonum(
|
||||
CHECKD (id > 0, "Identificatore di autonumerazione errato: ", id);
|
||||
const char* val = k.get();
|
||||
TMask_field& f = m->field(id);
|
||||
if (rec || f.empty()) f.set(val);
|
||||
if (rec) ((TEditable_field&)f).autosave(*get_relation());
|
||||
if (rec || f.empty())
|
||||
f.set(val);
|
||||
if (rec)
|
||||
((TEditable_field&)f).autosave(*get_relation());
|
||||
if (_renum_message.empty() || f.in_key(1))
|
||||
_renum_message.format("Il documento e' stato registrato con :\n %s = %s", (const char *) f.prompt(), (const char *) f.get());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user