Patch level :2.0 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento :corretto errore di riporto git-svn-id: svn://10.65.10.50/trunk@11103 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d1c020e04c
commit
93e9cda13d
@ -239,7 +239,7 @@ void TGenerazioneEffetti_app::build_num_sheet()
|
||||
|
||||
bool found = FALSE;
|
||||
for (int i = _tipi_doc.last(); !found && i >= 0; i--)
|
||||
found |= z.find(((TToken_string &)_tipi_doc[i]).get(0)) >= 0;
|
||||
found |= (z.find(((TToken_string &)_tipi_doc[i]).get(0)) >= 0);
|
||||
|
||||
if (found)
|
||||
_num_sheet->enable_row(pos);
|
||||
@ -262,30 +262,6 @@ void TGenerazioneEffetti_app::build_num_sheet()
|
||||
}
|
||||
delete cont;
|
||||
|
||||
|
||||
long pos = 0l;
|
||||
|
||||
for (num.first();num.good();num.next(),pos++) // scorre tutte le numerazioni possibili
|
||||
{
|
||||
TToken_string t,z;
|
||||
t.add(" ");
|
||||
t.add(num.get("CODTAB"));
|
||||
t.add(num.get("S0"));
|
||||
_num_sheet->add(t);
|
||||
s2 = num.get("S2"); // reperisce i tipi documento validi per questa numerazione
|
||||
|
||||
for (int x = 0; x <= s2.len(); x += 4)
|
||||
z.add(s2.mid(x,4));
|
||||
|
||||
bool found = FALSE;
|
||||
for (int i = _tipi_doc.last(); !found && i >= 0; i--)
|
||||
found |= (z.find(((TToken_string &)_tipi_doc[i]).get(0)) >= 0);
|
||||
if (found)
|
||||
_num_sheet->enable_row(pos);
|
||||
else
|
||||
_num_sheet->disable_row(pos);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user