Patch level : 10.0
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : Corretta gestione codice note in profili personalizzati in cui puo` mancare git-svn-id: svn://10.65.10.50/branches/R_10_00@21883 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
35a2f39daf
commit
f0f17ff78c
@ -235,20 +235,35 @@ TDocumento_mask::TDocumento_mask(const char* td)
|
||||
hide(204);
|
||||
disable(204);
|
||||
|
||||
/* Metodo poco raccomandabile: da eliminare e dimenticare :-)
|
||||
TBrowse * nb = efield(F_CODNOTE).browse();
|
||||
|
||||
if (nb != NULL) // da eliminare
|
||||
{
|
||||
nb->remove_output_field();
|
||||
nb->add_output_field(TOSTRING(F_CODNOTE), "CODTAB");
|
||||
}
|
||||
TBrowse * nbd = efield(F_CODNOTE).browse();
|
||||
|
||||
if (nbd != NULL) // da eliminare
|
||||
{
|
||||
nbd->remove_output_field();
|
||||
nbd->add_output_field(TOSTRING(F_CODNOTE), "CODTAB");
|
||||
}
|
||||
*/
|
||||
|
||||
// Metodo apparentemente corretto, che non usa funzioni assurde con copia/incolla errati
|
||||
for (int n = 0; n < 2; n++)
|
||||
{
|
||||
const short id = n == 0 ? F_CODNOTE : F_NOTECLI;
|
||||
if (id2pos(id) >= 0) // Alcuni profili NON hanno le note
|
||||
{
|
||||
TBrowse* nb = efield(id).browse();
|
||||
nb->set_output_fields(TOSTRING(F_CODNOTE));
|
||||
nb->set_output_field_names("CODTAB");
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if (cfg.get_bool("GESLISCV") && id2pos(F_CODLIST) > 0)
|
||||
{
|
||||
TBrowse * b = efield(F_CODLIST).browse();
|
||||
|
Loading…
x
Reference in New Issue
Block a user