From 1734194597ad7ec44af0c253a63c705b2e426001 Mon Sep 17 00:00:00 2001 From: luca Date: Tue, 9 Dec 2008 11:32:12 +0000 Subject: [PATCH] Patch level :10.0 cd Files correlati : Ricompilazione Demo : [ ] Commento :controllo delle personalizzazioni VE in custom di studio e di ditta git-svn-id: svn://10.65.10.50/trunk@17830 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- setup/wizard.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/setup/wizard.cpp b/setup/wizard.cpp index 713d3e9f3..5e1e93007 100755 --- a/setup/wizard.cpp +++ b/setup/wizard.cpp @@ -370,19 +370,20 @@ bool CampoWizardPage3::ForwardValidate() //a) custom di studio if (!CheckCustomDir(strStudy + "custom", strPrgPath)) return ErrorBox("Sono presenti personalizzazioni relative ai documenti di vendita.\n" - "Richiedere l'intervento dell'assistenza tecnica.\nL'aggiornamento verrą terminato."); + "Richiedere l'intervento dell'assistenza tecnica.\nImpossibile proseguire l'aggiornamento."); //b) custom di ditta - wxArrayString asDirsList; - const size_t uFirmDirs = wxDir::GetAllFiles(strStudy, &asDirsList, "", wxDIR_DIRS); - for (size_t i = 0; i < uFirmDirs; i++) - { - const wxString strDir = asDirsList[i].Lower(); - if (strDir.Len() == 6 && strDir.EndsWith("a") && atol(strDir) > 0) + wxDir dirStudy(strStudy); + wxString strDir; + //deve farsi un giro sulle sole directory che abbiano nome lungo 6 caratteri (sono le ditte) + for (bool ok = dirStudy.GetFirst(&strDir, wxT("??????"), wxDIR_DIRS); ok; ok = dirStudy.GetNext(&strDir)) + { + strDir.MakeLower(); + if (strDir.EndsWith("a") && atol(strDir) > 0) { - if (!CheckCustomDir(strDir + "custom", strPrgPath)) + if (!CheckCustomDir(strStudy + strDir + "/custom", strPrgPath)) { wxString strMsg = "Sono presenti personalizzazioni relative ai documenti di vendita nella ditta "; - strMsg << strDir << ".\nRichiedere l'intervento dell'assistenza tecnica."; + strMsg << strDir << ".\nRichiedere l'intervento dell'assistenza tecnica.\nImpossibile proseguire l'aggiornamento."; return ErrorBox(strMsg); } }