Cambiato il testo alla barra di attesa ricostruzione saldi
git-svn-id: svn://10.65.10.50/trunk@5536 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
04c9c3802d
commit
f8b0707055
@ -1388,10 +1388,15 @@ bool rebuild_balances(const TString16 annoes, bool reset_giac)
|
||||
// azzera tutte giacenze (ciclo sulle giacenze)
|
||||
mag.put("ANNOES",annoes);
|
||||
mag.read(_isgteq);
|
||||
TString information;
|
||||
TIndwin idle(40,"", FALSE);
|
||||
while (!mag.eof() && annoes==mag.get("ANNOES"))
|
||||
{
|
||||
TString currcode(mag.get("CODART"));
|
||||
TArticolo articolo(currcode);
|
||||
information="Azzeramento saldi";
|
||||
information << articolo.codice();
|
||||
idle.set_text(information);
|
||||
if (articolo.lock_and_prompt())
|
||||
{
|
||||
while (!mag.eof() && currcode==mag.get("CODART"))
|
||||
@ -1425,17 +1430,17 @@ bool rebuild_balances(const TString16 annoes, bool reset_giac)
|
||||
filterexpr << LF_MOVMAG << "->ANNOES==" << annoes;
|
||||
TCursor cur(&rel,filterexpr); // cursore filtrato
|
||||
|
||||
TProgind pi(cur.items(),"Ricostruzione movimenti", TRUE, TRUE, 60);
|
||||
TProgind barra_mov(cur.items(),"Ricostruzione saldi", TRUE, TRUE, 60);
|
||||
|
||||
for (int i=0; i<cur.objects(); i++)
|
||||
{
|
||||
pi.addstatus(1);
|
||||
barra_mov.addstatus(1);
|
||||
cur=i;
|
||||
TMov_mag & mov_rec=(TMov_mag &)cur.file().curr();
|
||||
if (!mov_rec.force_update_bal())
|
||||
ok=FALSE;
|
||||
}
|
||||
|
||||
pi.close_modal();
|
||||
barra_mov.close_modal();
|
||||
return ok;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user