Spostata la creazione dei file dopo l'aggiornamento dell'archivio
git-svn-id: svn://10.65.10.50/trunk@1291 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ee6fd84c6b
commit
eec8e5df71
@ -575,13 +575,6 @@ void TManutenzione_app::update_dir()
|
||||
if (towrite)
|
||||
d.put(i, _nordir, _sysdirop);
|
||||
d.get(i);
|
||||
TFilename datafile(d.name());
|
||||
|
||||
if (to_create && !fexist(datafile))
|
||||
{
|
||||
TSystemisamfile f(i);
|
||||
f.build(10L);
|
||||
}
|
||||
}
|
||||
prefix().set(pref);
|
||||
|
||||
@ -606,6 +599,7 @@ void TManutenzione_app::convert_dir()
|
||||
|
||||
{
|
||||
const TString pref(prefix().name());
|
||||
const bool is_com = prefix().is_com();
|
||||
TDir d;
|
||||
TTrec r;
|
||||
|
||||
@ -613,7 +607,7 @@ void TManutenzione_app::convert_dir()
|
||||
const int items = (int)d.eod();
|
||||
TString80 s("Aggiornamento archivi ");
|
||||
|
||||
if (prefix().is_com()) s << "comuni";
|
||||
if (is_com) s << "comuni";
|
||||
else s << " della ditta " << atol (pref);
|
||||
|
||||
TProgind p(items ? items : 1, s, TRUE, TRUE, 70);
|
||||
@ -627,7 +621,18 @@ void TManutenzione_app::convert_dir()
|
||||
r.get(i);
|
||||
prefix().set(pref);
|
||||
TSystemisamfile f(i);
|
||||
|
||||
f.update(r);
|
||||
d.get(i, _nolock, _nordir, _sysdirop);
|
||||
bool to_create = (is_com ? d.is_com() : d.is_firm());
|
||||
d.get(i);
|
||||
TFilename datafile(d.name());
|
||||
|
||||
if (to_create && !fexist(datafile))
|
||||
{
|
||||
TSystemisamfile f(i);
|
||||
f.build(10L);
|
||||
}
|
||||
}
|
||||
prefix().set("");
|
||||
const long level = prefix().filelevel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user