From a5d8bb294466bdf52f0ccb434958acdc4a67584b Mon Sep 17 00:00:00 2001 From: luca83 Date: Mon, 8 Sep 2008 08:18:07 +0000 Subject: [PATCH] Patch level : 10.0 Files correlati : Ricompilazione Demo : [ ] Commento : Correzioni errori sulla visualizzazione dei campi negli sheet git-svn-id: svn://10.65.10.50/trunk@17178 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv0500.cpp | 4 ---- lv/lv2100.cpp | 10 ++++++---- lv/lv2200.cpp | 5 ++++- lv/lv2200a.uml | 2 ++ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lv/lv0500.cpp b/lv/lv0500.cpp index 83eb3f972..25c1e9aa8 100755 --- a/lv/lv0500.cpp +++ b/lv/lv0500.cpp @@ -1,9 +1,6 @@ #include #include -//#include #include -#include -#include #include #include "lvlib.h" @@ -35,7 +32,6 @@ void TPass_plan_contr_mask::proponi_orario() TSheet_field& sheet = sfield(F_PASPLAN); TToken_string& rigamodificata = sheet.row(sheet.items()-1); rigamodificata.add("00:00",sheet.cid2index(F_S_ORA)); - //sheet.force_update(); return; } diff --git a/lv/lv2100.cpp b/lv/lv2100.cpp index b4f8e0592..3aceb0850 100755 --- a/lv/lv2100.cpp +++ b/lv/lv2100.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -268,11 +269,12 @@ void TGenera_planning_app::elabora_passaggio(const TDate& dadata, const TDate& a if (dadatacont > adata || (adatacont.ok() && adatacont < dadata)) return; // Inutile proseguire - //cache sulla tabella frequenze consegne - TString8 keycoditi; - keycoditi << coditi; + //cache sulla tabella itinerari + TString4 keycoditi; + keycoditi.format("%03d", coditi); const TRectype& iti = cache().get("&ITI",keycoditi); - //dati recuperati dalla tabella frequenze consegne: + + //dati recuperati dalla tabella itinerari: const TString8 codaut = iti.get("S1"); //codice autista const TString8 codmez = iti.get("S2"); //codice mezzo diff --git a/lv/lv2200.cpp b/lv/lv2200.cpp index b7a3ce31e..c844572e1 100755 --- a/lv/lv2200.cpp +++ b/lv/lv2200.cpp @@ -82,7 +82,10 @@ void TGestione_planning_mask::fill_sheet() { const TFieldref* fr = f->field(); //leggo il valore dalla relation if (fr != NULL) - row.add(fr->read(rel),sheet.cid2index(f->dlg())); //metto il valore letto nella posizione corretta nella TToken_string + { + const int pos = sheet.cid2index(f->dlg()); + row.add(fr->read(rel),pos); //metto il valore letto nella posizione corretta nella TToken_string + } } sheet.check_row(sheet.items()-1); //fa fare alla maschera la decodifica dei codici e aggiorna la TToken_string } diff --git a/lv/lv2200a.uml b/lv/lv2200a.uml index 7dff58a74..7ea6d9cb6 100755 --- a/lv/lv2200a.uml +++ b/lv/lv2200a.uml @@ -86,6 +86,7 @@ BEGIN ITEM "Ragione sociale@50" ITEM "Autista" ITEM "Mezzo" + ITEM "Anno\ndoc." ITEM "Tipo\ndoc." ITEM "Numero\ndoc." ITEM "Consegna\nstandard" @@ -137,6 +138,7 @@ BEGIN MESSAGE EMPTY ENABLE,F_S_CODCONT MESSAGE DISABLE,F_S_CODCONT FIELD CODRIGA + CHECKTYPE REQUIRED END NUMBER F_S_ORDFER 3