From 64f91d7775d7ae34b68cf63367c187a176b28765 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 13 Mar 2009 11:36:54 +0000 Subject: [PATCH] Patch level : 10.0 258 Files correlati : ve0.EXE Ricompilazione Demo : [ ] Commento : Bug : 0001176 Se si ricerca per numerazione tramite la lente della ricerca per descrizione viene visualizzato errore di ve0.exe -0; funziona solo se si richiama prima la ricerca per codice, inoltre sempre la ricerca della numerazione per descrizione non visualizza l'imbuto a sinistra. Stessa cosa per la ricerca tipo documento. git-svn-id: svn://10.65.10.50/trunk@18519 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve0100.cpp | 13 ++++++++++++- ve/ve0100a.uml | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ve/ve0100.cpp b/ve/ve0100.cpp index 92c043710..fab348177 100755 --- a/ve/ve0100.cpp +++ b/ve/ve0100.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -486,7 +487,17 @@ bool TMotore_application::user_create( ) LF_TAB, LF_TABCOM, LF_CLIFO, LF_CFVEN, LF_INDSP, LF_OCCAS, LF_PCON, LF_MOV, LF_STOMAG, LF_MOVMAG, LF_RMOVMAG, LF_MAG, LF_SVRIEP, LF_AGENTI, LF_PERCPROV, LF_ATTIV, LF_CAUSALI, 0); - _config_ditta = new TConfig(CONFIG_DITTA); + TISAM_recordset num("USE %NUM"); + + for (bool ok = num.move_first(); ok; ok = num.move_next()) + const TCodice_numerazione & n = cached_numerazione(num.get("CODTAB").as_string()); + + TISAM_recordset tip("USE %TIP"); + + for (bool ok = tip.move_first(); ok; ok = tip.move_next()) + const TTipo_documento & n = cached_tipodoc(tip.get("CODTAB").as_string()); + + _config_ditta = new TConfig(CONFIG_DITTA); // Metto in relazione testata e righe _rel = new TRelation( LF_DOC ); diff --git a/ve/ve0100a.uml b/ve/ve0100a.uml index fdba26d1e..a7df82026 100755 --- a/ve/ve0100a.uml +++ b/ve/ve0100a.uml @@ -67,7 +67,7 @@ BEGIN HELP "Descrizione numerazione" USE %NUM KEY 2 INPUT S0 F_DESNUM - DISPLAY "Descrizione@50" S0 + DISPLAY "Descrizione@60" S0 DISPLAY "Codice" CODTAB COPY OUTPUT F_CODNUM END @@ -93,7 +93,7 @@ BEGIN HELP "Descrizione tipo documento" USE %TIP KEY 2 INPUT S0 F_DESTIPODOC - DISPLAY "Descrizione@50" S0 + DISPLAY "Descrizione@60" S0 DISPLAY "Codice" CODTAB COPY OUTPUT F_TIPODOC END