Patch level : 10.0

Files correlati     : agalib + cg2.exe
Ricompilazione Demo : [ ]
Commento            :
0001123: protezione programmi
Non è più possibile proteggere l'accesso ai programmi per utente, la richiesta è di poter escludere per un utente in lettura e scrittura delle causali contabili.


git-svn-id: svn://10.65.10.50/trunk@18079 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-01-22 12:00:23 +00:00
parent 188165a10e
commit 4c602acb07
3 changed files with 8 additions and 11 deletions

View File

@ -168,9 +168,9 @@ void TIndwin::update_bar()
TString80 n;
n.format("%d%% - %s %s - %s %s - %s %s", int(prc*100.0+0.5),
TR("Tempo trascorso"), str_ela.get_buffer(),
TR("Stimato"), str_tot.get_buffer(),
TR("Residuo"), str_res.get_buffer()
TR("Trascorso"), str_ela.get_buffer(),
TR("Stimato"), str_tot.get_buffer(),
TR("Residuo"), str_res.get_buffer()
);
RCT b; get_bar_rct(b);
b.top = b.bottom+2; b.bottom = b.top + CHARY;

View File

@ -463,16 +463,12 @@ void TRelation_application::insert_mode()
}
TRelation* r = get_relation();
for (int f = _mask->fields()-1; f >= 0; f--)
{
TMask_field& fld = _mask->fld(f);
if (fld.is_loadable() && fld.shown() && fld.in_key(0))
((TLoadable_field&)fld).autosave(*r);
}
r->zero();
_mask->autosave(*r);
if (!user_can_write(r))
{
warning_box(FR("L'utente %s non puo' inserire in questo archivio"),
(const char*)user());
warning_box(FR("L'utente %s non puo' inserire in questo archivio"), (const char*)user());
return;
}

View File

@ -1003,6 +1003,7 @@ TString& TString::insert(
//
// @xref <mf TString::overwrite>
{
CHECK(s != _str, "Can't autoinsert string");
if (s && *s)
{
const int l = strlen(s);