From be817e2acc6e8d678e4ce854fa44d4f8be841722 Mon Sep 17 00:00:00 2001 From: luca83 Date: Thu, 20 Aug 2009 14:36:47 +0000 Subject: [PATCH] Patch level : 10.0 patch 418 Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Corretta la posizione del settaggio a false di nuovo_cliente Corretta la gestione del tasto annulla nel yesnocancel_box git-svn-id: svn://10.65.10.50/trunk@19214 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2600.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lv/lv2600.cpp b/lv/lv2600.cpp index 57cb3b651..2188e6426 100755 --- a/lv/lv2600.cpp +++ b/lv/lv2600.cpp @@ -291,6 +291,8 @@ void TAcquisizione_lavanderie_app::elabora_file(const TString& file, TLog_report bool found = false; TDocumento& doc = ca.doc(datadoc,codcf); + + int cazzone = doc.rows(); //se sto elaborando un nuovo file, ma i documenti che sto importando esistono già, chiedi cosa devo fare if (doc.rows() > 0 && nuovo_cliente) @@ -303,9 +305,13 @@ void TAcquisizione_lavanderie_app::elabora_file(const TString& file, TLog_report { case K_YES: sovrascrivi = true; break; case K_NO: sovrascrivi = false; break; - default: return; - } - nuovo_cliente = false; + default: //in questo modo viene chiesto una sola volta per cliente + { + nuovo_cliente = false; + continue; + } + break; + } } else { @@ -318,6 +324,8 @@ void TAcquisizione_lavanderie_app::elabora_file(const TString& file, TLog_report } } + nuovo_cliente = false; + //se voglio sovrascrivere i file, e non l'ho mai cancellato, allora svuotalo effettivamente const TString8 numdoc = doc.get(DOC_NDOC); if (sovrascrivi && !deleted_docs.is_key(numdoc))