//------------------------------------------------------------------------------- private CResultAErreur CreateVersionRecursif(CProjet projet) { CResultAErreur res = CResultAErreur.True; if (projet.Projet != null) { res = CreateVersionRecursif(projet.Projet); } if (!res) { return(res); } if (projet.IsNew() && projet.TypeProjet != null && projet.TypeProjet.OptionVersion.Code == timos.data.projet.EOptionTypeProjetVersion.VersionAutomatique) { res = projet.CreateDataVersionInCurrentContext(); } return(res); }