Patch level :AGA 2.0 362

Files correlati     :ef0.exe
Ricompilazione Demo : [ ]
Commento            :corretti errori compilazione versione AGA 32bit


git-svn-id: svn://10.65.10.50/trunk@10681 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2002-12-17 12:06:01 +00:00
parent 2d90905b1e
commit 5c61f8b554
2 changed files with 15 additions and 13 deletions

View File

@ -68,7 +68,7 @@ void TVariazione_effetti::enable_controeuro()
TConfig ini(CONFIG_DITTA, "ve"); TConfig ini(CONFIG_DITTA, "ve");
ce = ini.get_bool("CONTROEURO"); ce = ini.get_bool("CONTROEURO");
} }
_msk->enable(F_CONTROEURO, ce); _msk->enable(F_CONTROEURO, ce != 0);
} }
// quando si va in query mode resetta i due campi della maschera // quando si va in query mode resetta i due campi della maschera

View File

@ -676,10 +676,12 @@ bool TVariazione_distinte::data_handler(TMask_field& f, KEY k)
if (f.to_check(k) && k == K_TAB) if (f.to_check(k) && k == K_TAB)
{ {
// Carica prima tutte le ri.ba e poi toglie quelle che non servono in base alla selzione // Carica prima tutte le ri.ba e poi toglie quelle che non servono in base alla selzione
app().begin_wait();
int tipopag = app()._msk->get_int(F_TIPOPAG); int tipopag = app()._msk->get_int(F_TIPOPAG);
carica_riba(tipopag, FALSE); if (tipopag != 0)
app().end_wait(); {
TWait_cursor hourglass;
carica_riba(tipopag, FALSE);
}
TMask& m = f.mask(); TMask& m = f.mask();
bool deleted = FALSE; bool deleted = FALSE;
@ -726,15 +728,14 @@ HIDDEN int confronta_data(const TObject** o1, const TObject** o2)
// Handler per gestire l'ordinamento per data degli effetti presenti // Handler per gestire l'ordinamento per data degli effetti presenti
// nello sheet, nella maschera di scelta delle riba (ef0300c) // nello sheet, nella maschera di scelta delle riba (ef0300c)
void TVariazione_distinte::ord_data() void TVariazione_distinte::ord_data()
{ {
TWait_cursor hourglass;
TMask* m = app()._m2; TMask* m = app()._m2;
TSheet_field& sf = (TSheet_field&)m->field(F_SHEET); TSheet_field& sf = (TSheet_field&)m->field(F_SHEET);
// scarico tutte le righe dello sheet in un array // scarico tutte le righe dello sheet in un array
TArray& effetti = sf.rows_array(); TArray& effetti = sf.rows_array();
app().begin_wait();
// faccio l'ordinamento degli elementi dell'array // faccio l'ordinamento degli elementi dell'array
effetti.sort(confronta_data); effetti.sort(confronta_data);
app().end_wait();
sf.force_update(); sf.force_update();
} }
@ -772,13 +773,12 @@ HIDDEN int confronta_fatt(const TObject** o1, const TObject** o2)
// effetti presenti nello sheet, nella maschera di scelta delle riba // effetti presenti nello sheet, nella maschera di scelta delle riba
void TVariazione_distinte::ord_fatt() void TVariazione_distinte::ord_fatt()
{ {
TWait_cursor hourglass;
TMask* m = app()._m2; TMask* m = app()._m2;
TSheet_field& sf = (TSheet_field&)m->field(F_SHEET); TSheet_field& sf = (TSheet_field&)m->field(F_SHEET);
// scarico le righe dello sheet in un array // scarico le righe dello sheet in un array
TArray& effetti = sf.rows_array(); TArray& effetti = sf.rows_array();
app().begin_wait();
effetti.sort(confronta_fatt);// ordino gli elementi dell'array effetti.sort(confronta_fatt);// ordino gli elementi dell'array
app().end_wait();
sf.force_update(); sf.force_update();
} }
@ -867,10 +867,12 @@ void TVariazione_distinte::aggiungi()
{ {
TMask* m = app()._msk; TMask* m = app()._msk;
TMask* m2 = app()._m2; TMask* m2 = app()._m2;
int tipopag = m->get_int(F_TIPOPAG); int tipopag = m->get_int(F_TIPOPAG);
app().begin_wait(); if (tipopag != 0)
carica_riba(tipopag); {
app().end_wait(); TWait_cursor hourglass;
carica_riba(tipopag);
}
m2->reset(F_TOTIMPDIST); m2->reset(F_TOTIMPDIST);
m2->reset(F_IMPSEL); m2->reset(F_IMPSEL);
const TString16 codval = m->get(F_CODVAL); const TString16 codval = m->get(F_CODVAL);