Esempio n. 1
0
        public static List <Planning> GetPlanningsBack(Int32?_Mois = null, Int32?_Annee = null, Int32?_Plus = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <PlanningResult> _PlanningResults = _DB.GetPlanningsBack(_Mois, _Annee, _Plus).ToList();

            List <Planning> _Plannings = new List <Planning>();

            foreach (PlanningResult _CurrentP in _PlanningResults)
            {
                Planning _NewPlanning = new Planning();
                _NewPlanning.Id          = _CurrentP.Id;
                _NewPlanning.Creneau0809 = (String.IsNullOrEmpty(_CurrentP.Creneau0809) ? null : _CurrentP.Creneau0809.Trim());
                _NewPlanning.Creneau0910 = (String.IsNullOrEmpty(_CurrentP.Creneau0910) ? null : _CurrentP.Creneau0910.Trim());
                _NewPlanning.Creneau1011 = (String.IsNullOrEmpty(_CurrentP.Creneau1011) ? null : _CurrentP.Creneau1011.Trim());
                _NewPlanning.Creneau1112 = (String.IsNullOrEmpty(_CurrentP.Creneau1112) ? null : _CurrentP.Creneau1112.Trim());
                _NewPlanning.Creneau1213 = (String.IsNullOrEmpty(_CurrentP.Creneau1213) ? null : _CurrentP.Creneau1213.Trim());
                _NewPlanning.Creneau1314 = (String.IsNullOrEmpty(_CurrentP.Creneau1314) ? null : _CurrentP.Creneau1314.Trim());
                _NewPlanning.Creneau1415 = (String.IsNullOrEmpty(_CurrentP.Creneau1415) ? null : _CurrentP.Creneau1415.Trim());
                _NewPlanning.Creneau1516 = (String.IsNullOrEmpty(_CurrentP.Creneau1516) ? null : _CurrentP.Creneau1516.Trim());
                _NewPlanning.Creneau1617 = (String.IsNullOrEmpty(_CurrentP.Creneau1617) ? null : _CurrentP.Creneau1617.Trim());
                _NewPlanning.Creneau1718 = (String.IsNullOrEmpty(_CurrentP.Creneau1718) ? null : _CurrentP.Creneau1718.Trim());
                _NewPlanning.Creneau1819 = (String.IsNullOrEmpty(_CurrentP.Creneau1819) ? null : _CurrentP.Creneau1819.Trim());
                _NewPlanning.Creneau1920 = (String.IsNullOrEmpty(_CurrentP.Creneau1920) ? null : _CurrentP.Creneau1920.Trim());
                _NewPlanning.Jour        = _CurrentP.Jour;

                _Plannings.Add(_NewPlanning);
            }

            return(_Plannings);
        }
Esempio n. 2
0
        public static List <Evenement> GetTypologiesEvenements(String _OnlyParentsYN = "N")
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <TypologieEvenementResult> _TypologieEvenementResults = _DB.GetTypologiesEvenements(onlyParentsYN: _OnlyParentsYN).ToList();

            List <Evenement> _Evenements = new List <Evenement>();

            foreach (TypologieEvenementResult _Current in _TypologieEvenementResults)
            {
                Evenement _NewEvenement = new Evenement();
                _NewEvenement.Id         = _Current.Id;
                _NewEvenement.Libelle    = _Current.Libelle.Trim();
                _NewEvenement.FormatedId = _Current.FormatedId.Trim();

                if (_Current.EvenementParentId != null)
                {
                    _NewEvenement.EvenementParent    = new Evenement();
                    _NewEvenement.EvenementParent.Id = _Current.EvenementParentId;
                    //_NewEvenement.EvenementParent.Libelle = _Current.EvenementParentLibelle;
                }

                _NewEvenement.Typologie    = new Typologie();
                _NewEvenement.Typologie.Id = _Current.TypologieId;
                //_NewEvenement.Typologie.Libelle = _Current.TypologieLibelle;
                _Evenements.Add(_NewEvenement);
            }

            return(_Evenements);
        }
Esempio n. 3
0
        public static Int32?AddAllReservations(Int32?_EleveId = null, Int32?_EvenementId = null, String _PaymentId = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            //récupération de l'évènement
            Evenement _Evenement = EvenementsManager.GetEvenements(_Id: _EvenementId)[0];

            //récupération du planning pour créer toutes les réservations
            List <PlanningOnly> _Plannings = EvenementsManager.GetPlanningsOnly(_EvenementId: _EvenementId);

            List <Reservation> _AllReservations = new List <Reservation>();

            foreach (PlanningOnly _Current in _Plannings)
            {
                Reservation _NewReservation = new Reservation();
                _NewReservation.Eleve        = new Eleve();
                _NewReservation.Eleve.Id     = _EleveId;
                _NewReservation.Evenement    = new Evenement();
                _NewReservation.Evenement.Id = _EvenementId;
                _NewReservation.PaymentId    = _PaymentId;
                _NewReservation.Jour         = _Current.Jour;
                _NewReservation.Creneau      = _Current.Creneau;
                _AllReservations.Add(_NewReservation);
            }

            return(AddReservations(_AllReservations));

            //return _DB.AddAllReservations(
            //                                eleveId: _EleveId,
            //                                evenementId:_EvenementId,
            //                                paymentId: (String.IsNullOrEmpty(_PaymentId) ? null : _PaymentId)
            //                             );
        }
Esempio n. 4
0
        public static List <Emplacement> GetModesEmplacements(Int32?ModeId = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <ModeEmplacementResult> _ModeEmplacementResults = _DB.GetModesEmplacements(modeId: ModeId).ToList();

            List <Emplacement> _Emplacements = new List <Emplacement>();

            foreach (ModeEmplacementResult _Current in _ModeEmplacementResults)
            {
                Emplacement _NewEmplacement = new Emplacement();
                _NewEmplacement.Id         = _Current.Id;
                _NewEmplacement.Libelle    = _Current.Libelle.Trim();
                _NewEmplacement.Key        = (String.IsNullOrEmpty(_Current.Key) ? null : _Current.Key.Trim());
                _NewEmplacement.Visuel     = (String.IsNullOrEmpty(_Current.Visuel) ? null : _Current.Visuel.Trim());
                _NewEmplacement.FormatedId = _Current.FormatedId.Trim();

                _NewEmplacement.Mode    = new Mode();
                _NewEmplacement.Mode.Id = _Current.ModeId;
                //_NewEmplacement.Mode.Libelle = _Current.ModeLibelle.Trim();
                _Emplacements.Add(_NewEmplacement);
            }

            return(_Emplacements);
        }
Esempio n. 5
0
        public static Int32?GetId(String _Table = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            ObjectResult <Int32?> _NewIdResult = _DB.GetId(_Table);
            Int32?_NewId = _NewIdResult.FirstOrDefault().Value;

            return(_NewId);
        }
Esempio n. 6
0
        public static Int32?DelProduit(Int32?_Id = null, String _Real = "N")
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.DelProduit(
                       id: _Id,
                       real: _Real
                       ));
        }
Esempio n. 7
0
        public static Int32?AddParticipation(Int32?_EleveId = null, Int32?_EvenementId = null, Double?_Quantite = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.AddParticipation(
                       eleveId: _EleveId,
                       evenementId: _EvenementId,
                       quantite: _Quantite));
        }
Esempio n. 8
0
        public static Int32?UpdProduit(
            Int32?_Id            = null,
            String _Reference    = null,
            String _Libelle      = null,
            String _Descriptif   = null,
            Double?_Poids        = null,
            Double?_Hauteur      = null,
            Double?_Largeur      = null,
            Double?_Longueur     = null,
            Boolean?_Depassement = null,
            String _DtDebut      = null,
            String _DtFin        = null,
            String _Image        = null,
            String _Logo         = null,
            String _Visuel       = null,
            Int32?_CategorieId   = null,
            Double?_Prix         = null,
            Int32?_Stock         = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            DateTime?_DtDebutF = null;
            DateTime?_DtFinF   = null;

            if (!String.IsNullOrEmpty(_DtDebut))
            {
                _DtDebutF = DateTime.Parse(_DtDebut);
            }
            if (!String.IsNullOrEmpty(_DtFin))
            {
                _DtFinF = DateTime.Parse(_DtFin);
            }

            return(_DB.UpdProduit(
                       id: _Id,
                       reference: _Reference,
                       libelle: _Libelle,
                       descriptif: _Descriptif,
                       poids: _Poids,
                       hauteur: _Hauteur,
                       largeur: _Largeur,
                       longueur: _Longueur,
                       depassement: _Depassement,
                       dtDebut: _DtDebutF,
                       dtFin: _DtFinF,
                       image: _Image,
                       logo: _Logo,
                       visuel: _Visuel,
                       categorieId: _CategorieId,
                       prix: _Prix,
                       stock: _Stock
                       ));
        }
Esempio n. 9
0
        public static Int32?UpdPlanning(
            Int32?_Id           = null,
            String _Jour        = null,
            String _Creneau0809 = null,
            String _Creneau0910 = null,
            String _Creneau1011 = null,
            String _Creneau1112 = null,
            String _Creneau1213 = null,
            String _Creneau1314 = null,
            String _Creneau1415 = null,
            String _Creneau1516 = null,
            String _Creneau1617 = null,
            String _Creneau1718 = null,
            String _Creneau1819 = null,
            String _Creneau1920 = null
            )
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            DateTime?_JourF = null;

            if (!String.IsNullOrEmpty(_Jour))
            {
                _JourF = DateTime.Parse(_Jour);
            }

            return(_DB.UpdPlanning(
                       id: _Id,
                       jour: _JourF,
                       creneau0809: _Creneau0809,
                       creneau0910: _Creneau0910,
                       creneau1011: _Creneau1011,
                       creneau1112: _Creneau1112,
                       creneau1213: _Creneau1213,
                       creneau1314: _Creneau1314,
                       creneau1415: _Creneau1415,
                       creneau1516: _Creneau1516,
                       creneau1617: _Creneau1617,
                       creneau1718: _Creneau1718,
                       creneau1819: _Creneau1819,
                       creneau1920: _Creneau1920
                       ));
        }
Esempio n. 10
0
        public static Int32?AddReservation(Int32?_EleveId = null, Int32?_EvenementId = null, String _Jour = null, String _Creneau = null, String _PaymentId = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            DateTime?_JourF = null;

            if (!String.IsNullOrEmpty(_Jour))
            {
                _JourF = DateTime.Parse(_Jour);
            }

            return(_DB.AddReservation(
                       eleveId: _EleveId,
                       evenementId: _EvenementId,
                       jour: _JourF,
                       creneau: _Creneau,
                       paymentId: (String.IsNullOrEmpty(_PaymentId) ? null : _PaymentId)
                       ));
        }
Esempio n. 11
0
        public static List <Statut> GetStatuts()
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <Statuts> _StatutResults = _DB.GetStatuts().ToList();

            List <Statut> _Statuts = new List <Statut>();

            foreach (Statuts _Current in _StatutResults)
            {
                Statut _NewStatut = new Statut();
                _NewStatut.Id      = _Current.Id;
                _NewStatut.Libelle = _Current.Libelle.Trim();

                _Statuts.Add(_NewStatut);
            }

            return(_Statuts);
        }
Esempio n. 12
0
        public static List <PlanningOnly> GetPlanningsOnly(Int32?_EvenementId = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <PlanningOnlyResult> _PlanningOnlyResults = _DB.GetPlanningsOnly(_EvenementId).ToList();

            List <PlanningOnly> _Plannings = new List <PlanningOnly>();

            foreach (PlanningOnlyResult _CurrentP in _PlanningOnlyResults)
            {
                PlanningOnly _NewPlanningOnly = new PlanningOnly();
                _NewPlanningOnly.EvenementId = _CurrentP.EvenementId;
                _NewPlanningOnly.Jour        = _CurrentP.Jour;
                _NewPlanningOnly.Creneau     = _CurrentP.Creneau;

                _Plannings.Add(_NewPlanningOnly);
            }

            return(_Plannings);
        }
Esempio n. 13
0
        public static Int32?ConnectEleve(String _Email = null, String _Password = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            ObjectResult <Int32?> _IdResult = _DB.ConnectEleve(
                email: _Email.Trim(),
                password: _Password.Trim().ToEncryptedTripleDES(Constants.PASSPHRASE).ToEncodedURL()
                );
            Int32?_Id = null;

            try
            {
                _Id = _IdResult.FirstOrDefault().Value; //identifiants ok
            }
            catch (Exception)
            {
                //identifiants ko
            }

            return(_Id);
        }
Esempio n. 14
0
        public static Int32 UpdCommande(Int32?_Id = null, Int32?_StatutId = null, String _StatutLibelle = null, String _ReferenceTransaction = null, String _ReferenceExterne = null, Int32?_EleveId = null, String _TrackingNumber = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            //récupération de l'élève
            Eleve _Eleve = ElevesManager.GetEleves(_Id: _EleveId)[0];

            //envoi du mail de confirmation
            #region "Mail"
            String _EmailModification = String.Empty;
            _EmailModification += "<html>";
            _EmailModification += "<body>";
            _EmailModification += "<img src=\"http://www.cavalier-roi.fr/Content/Images/LogoMail.jpg\" />";
            _EmailModification += "<br /><hr /><br />";
            _EmailModification += "Votre commande #" + _Id.ToString() + " vient de passer au statut : " + _StatutLibelle;
            if ((_StatutId == 6) && (!String.IsNullOrEmpty(_TrackingNumber)))
            {
                _EmailModification += "<br /><br />";
                _EmailModification += "Le numéro de suivi du colis est : " + _TrackingNumber;
            }
            _EmailModification += "<br /><br />";
            _EmailModification += "Vous pouvez retrouver toutes vos commandes dans la partie \"Mon Compte\" du site de l'École du Cavalier Roi : <a href=\"" + WS.Constants.SITE_URL + "/MonCompte\" target=\"_blank\">" + WS.Constants.SITE_URL + "/MonCompte</a>.";
            _EmailModification += "<br /><br />";
            _EmailModification += "Pour plus d'informations, n'hésitez pas à contacter l'École du Cavalier Roi à <a href=\"mailto:" + WS.Constants.COMMANDES_EMAIL + "\" target=\"_blank\">" + WS.Constants.COMMANDES_EMAIL + "</a>.";
            _EmailModification += "<br /><br />";
            _EmailModification += "L'École du Cavalier Roi";
            _EmailModification += "<br /><br />";
            _EmailModification += "</body>";
            _EmailModification += "</html>";
            ICSManager.SendMail(WS.Constants.COMMANDES_EMAIL, WS.Constants.COMMANDES_SENDER, _Eleve.Email, WS.Constants.COMMANDES_CC, WS.Constants.COMMANDES_CCI, "Modification de statut de commande", _EmailModification, true, null, null, WS.Constants.MAILSERVER_HOST, WS.Constants.MAILSERVER_PORT, WS.Constants.COMMANDES_USERNAME, WS.Constants.COMMANDES_PASSWORD, 100000, false);
            #endregion

            return(_DB.UpdCommande(
                       id: (_Id == null ? -1 : _Id),
                       statutId: (_StatutId == null ? -1 : _StatutId),
                       referenceTransaction: (String.IsNullOrEmpty(_ReferenceTransaction) ? null : _ReferenceTransaction.Trim()),
                       referenceExterne: (String.IsNullOrEmpty(_ReferenceExterne) ? null : _ReferenceExterne.Trim()),
                       trackingNumber: (String.IsNullOrEmpty(_TrackingNumber) ? null : _TrackingNumber.Trim())
                       ));
        }
Esempio n. 15
0
        public static List <Frai> GetFrais(Double?_Poids = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <FraiResult> _FraisResults = _DB.GetFrais(
                poids: _Poids
                ).ToList();

            List <Frai> _Frais = new List <Frai>();

            foreach (FraiResult _Current in _FraisResults)
            {
                Frai _NewFrai = new Frai();
                _NewFrai.Id      = _Current.Id;
                _NewFrai.Libelle = _Current.Libelle;
                _NewFrai.Prix    = _Current.Prix;

                _Frais.Add(_NewFrai);
            }

            return(_Frais);
        }
Esempio n. 16
0
        public static Int32?ReinitEleve(String _Email = null, String _Password = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            if (String.IsNullOrEmpty(_Password))
            {
                _Password = Tools.RandomString(8, true);
            }

            //envoi du mail de reinitialisation
            #region "Mail"
            String _EmailReinitialisation = String.Empty;
            _EmailReinitialisation += "<html>";
            _EmailReinitialisation += "<body>";
            _EmailReinitialisation += "<img src=\"http://www.cavalier-roi.fr/Content/Images/LogoMail.jpg\" />";
            _EmailReinitialisation += "<br /><hr /><br />";
            _EmailReinitialisation += "Votre mot de passe a bien été réinitialisé !";
            _EmailReinitialisation += "<br /><br />";
            _EmailReinitialisation += "<u>Email/Identifiant</u> : " + _Email;
            _EmailReinitialisation += "<br />";
            _EmailReinitialisation += "<u>Nouveau mot de passe</u> : " + _Password;
            _EmailReinitialisation += "<br /><br />";
            _EmailReinitialisation += "Pensez à bien le changer à votre prochaine connexion dans la partie \"Mon Compte\" du site de l'École du Cavalier Roi : <a href=\"" + WS.Constants.SITE_URL + "/MonCompte\" target=\"_blank\">" + WS.Constants.SITE_URL + "/MonCompte</a>.";
            _EmailReinitialisation += "<br /><br />";
            _EmailReinitialisation += "Pour plus d'informations, n'hésitez pas à contacter l'École du Cavalier Roi à <a href=\"mailto:" + WS.Constants.INSCRIPTIONS_EMAIL + "\" target=\"_blank\">" + WS.Constants.INSCRIPTIONS_EMAIL + "</a>.";
            _EmailReinitialisation += "<br /><br />";
            _EmailReinitialisation += "L'École du Cavalier Roi";
            _EmailReinitialisation += "<br /><br />";
            _EmailReinitialisation += "</body>";
            _EmailReinitialisation += "</html>";
            ICSManager.SendMail(WS.Constants.INSCRIPTIONS_EMAIL, WS.Constants.INSCRIPTIONS_SENDER, _Email, WS.Constants.INSCRIPTIONS_CC, WS.Constants.INSCRIPTIONS_CCI, "Réinitialisation de mot de passe", _EmailReinitialisation, true, null, null, WS.Constants.MAILSERVER_HOST, WS.Constants.MAILSERVER_PORT, WS.Constants.INSCRIPTIONS_USERNAME, WS.Constants.INSCRIPTIONS_PASSWORD, 100000, false);
            #endregion

            return(_DB.ReinitEleve(
                       email: _Email.Trim(),
                       password: _Password.Trim().ToEncryptedTripleDES(Constants.PASSPHRASE).ToEncodedURL()
                       ));
        }
Esempio n. 17
0
        public static List <Contenu> GetContenus(Int32?_Id = null, String _Titre = null, String _DtMin = null, String _DtMax = null, Int32?_EmplacementId = null, Int32?_ModeId = null, Int32?_EvenementId = null, Int32?_TypologieId = null, Int32?_Top = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <ContenuResult> _ContenuResults = _DB.GetContenus(
                id: (_Id == null ? -1 : _Id),
                titre: (String.IsNullOrEmpty(_Titre) ? null : _Titre),
                dtMin: (String.IsNullOrEmpty(_DtMin) ? null : _DtMin.Replace("/", "-")),
                dtMax: (String.IsNullOrEmpty(_DtMax) ? null : _DtMax.Replace("/", "-")),
                emplacementId: (_EmplacementId == null ? -1 : _EmplacementId),
                modeId: (_ModeId == null ? -1 : _ModeId),
                evenementId: (_EvenementId == null ? -1 : _EvenementId),
                typologieId: (_TypologieId == null ? -1 : _TypologieId),
                top: (_Top == null ? -1 : _Top)
                ).ToList();

            List <Contenu> _Contenus = new List <Contenu>();

            foreach (ContenuResult _CurrentC in _ContenuResults)
            {
                Contenu _NewContenu = new Contenu();
                _NewContenu.Id    = _CurrentC.Id;
                _NewContenu.Titre = _CurrentC.Titre.ToLower().Accents().ToUpper().Trim();

                _NewContenu.DtCreation     = _CurrentC.DtCreation;
                _NewContenu.DtModification = _CurrentC.DtModification;

                _NewContenu.DtDebut = _CurrentC.DtDebut;
                _NewContenu.DtFin   = _CurrentC.DtFin;

                _NewContenu.Texte = _CurrentC.Texte;

                _NewContenu.Lien   = _CurrentC.Lien;
                _NewContenu.Script = _CurrentC.Script;

                _NewContenu.Logo        = _CurrentC.Logo;
                _NewContenu.Horizontale = _CurrentC.Horizontale;
                _NewContenu.Carree      = _CurrentC.Carree;
                _NewContenu.Verticale   = _CurrentC.Verticale;
                _NewContenu.Full        = _CurrentC.Full;

                _NewContenu.Exclusif = _CurrentC.Exclusif;

                _NewContenu.Mode         = new Mode();
                _NewContenu.Mode.Id      = _CurrentC.ModeId;
                _NewContenu.Mode.Libelle = _CurrentC.ModeLibelle;

                if (_CurrentC.EvenementId != null)
                {
                    _NewContenu.Evenement         = new Evenement();
                    _NewContenu.Evenement.Id      = _CurrentC.EvenementId;
                    _NewContenu.Evenement.Libelle = _CurrentC.EvenementLibelle;
                }


                //récupération des publications
                List <PublicationResult> _PublicationsResults = _DB.GetPublications(_CurrentC.Id).ToList();
                foreach (PublicationResult _CurrentP in _PublicationsResults)
                {
                    Publication _NewPublication = new Publication();
                    _NewPublication.Id             = _CurrentP.Id;
                    _NewPublication.Emplacement    = new Emplacement();
                    _NewPublication.Emplacement.Id = _CurrentP.EmplacementId;
                    _NewPublication.Contenu        = new Contenu();
                    _NewPublication.Contenu.Id     = _CurrentP.ContenuId;
                    _NewContenu.Publications.Add(_NewPublication);
                }

                _Contenus.Add(_NewContenu);
            }

            return(_Contenus);
        }
Esempio n. 18
0
        public static Int32?UpdParticipation(Int32?_Id = null, Int32?_Quantite = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.UpdParticipation(_Id, _Quantite));
        }
Esempio n. 19
0
        public static Int32?DelReservation(Int32?_Id = null, String _Real = "N")
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.DelReservation(_Id, _Real));
        }
Esempio n. 20
0
        public static List <Produit> GetProduits(
            Int32?_Id          = null,
            String _Libelle    = null,
            String _Reference  = null,
            Int32?_StockMin    = null,
            Int32?_StockMax    = null,
            Int32?_CommandeId  = null,
            Int32?_CategorieId = null,
            Int32?_Top         = null
            )
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <ProduitResult> _ProduitResults = _DB.GetProduits(
                id: (_Id == null ? -1 : _Id),
                libelle: (String.IsNullOrEmpty(_Libelle) ? null : _Libelle),
                reference: (String.IsNullOrEmpty(_Reference) ? null : _Reference),
                stockMin: (_StockMin == null ? -1 : _StockMin),
                stockMax: (_StockMax == null ? -1 : _StockMax),
                commandeId: (_CommandeId == null ? -1 : _CommandeId),
                categorieId: (_CategorieId == null ? -1 : _CategorieId),
                top: (_Top == null ? -1 : _Top)
                ).ToList();

            List <Produit> _Produits = new List <Produit>();

            foreach (ProduitResult _Current in _ProduitResults)
            {
                Produit _NewProduit = new Produit();
                _NewProduit.Id         = _Current.Id;
                _NewProduit.Reference  = _Current.Reference;
                _NewProduit.Libelle    = _Current.Libelle;
                _NewProduit.Descriptif = _Current.Descriptif;
                _NewProduit.Prix       = _Current.Prix;
                _NewProduit.Stock      = _Current.Stock;

                _NewProduit.Poids       = (_Current.Poids != null ? _Current.Poids : 0);
                _NewProduit.Longueur    = (_Current.Longueur != null ? _Current.Longueur : 0);
                _NewProduit.Largeur     = (_Current.Poids != null ? _Current.Largeur : 0);
                _NewProduit.Hauteur     = (_Current.Hauteur != null ? _Current.Hauteur : 0);
                _NewProduit.Depassement = _Current.Depassement;

                _NewProduit.DtDebut = _Current.DtDebut;
                _NewProduit.DtFin   = _Current.DtFin;

                _NewProduit.Image       = _Current.Image;
                _NewProduit.Logo        = _Current.Logo;
                _NewProduit.Visuel      = _Current.Visuel;
                _NewProduit.NbCommandes = _Current.NbCommandes;

                if (_Current.CategorieId != null)
                {
                    _NewProduit.Categorie         = new Categorie();
                    _NewProduit.Categorie.Id      = Int32.Parse(_Current.CategorieId.ToString());
                    _NewProduit.Categorie.Libelle = _Current.CategorieLibelle;
                }

                _NewProduit.NbCommandes = _NewProduit.NbCommandes;

                _Produits.Add(_NewProduit);
            }

            return(_Produits);
        }
Esempio n. 21
0
        public static Int32?AddCommande(DateTime?_DtCreation = null, DateTime?_DtValidation = null, Int32?_StatutId = null, Int32?_EleveId = null, Double?_Prix = null, Int32?_FraiId = null, String _ReferenceTransaction = null, String _ReferenceExterne = null, Adresse _Adresse = null, List <Ligne> _Lignes = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            //récupération de l'élève
            Eleve _Eleve = ElevesManager.GetEleves(_Id: _EleveId)[0];

            //ajout de l'adresse
            Int32?_NewAdresseId = _DB.AddAdresse(
                destinataire: _Adresse.Destinataire.Trim(),
                ligne1: _Adresse.Ligne1.Trim(),
                ligne2: (String.IsNullOrEmpty(_Adresse.Ligne2) ? null : _Adresse.Ligne2.Trim()),
                codePostal: _Adresse.CodePostal.Trim(),
                ville: _Adresse.Ville.Trim(),
                pays: _Adresse.Pays.Trim(),
                telephone: _Adresse.Telephone.Trim(),
                email: _Adresse.Email.Trim()
                ).FirstOrDefault().Value;

            //ajout de la commande
            Int32?_NewCommandeId = _DB.AddCommande(
                dtCreation: _DtCreation,
                dtValidation: _DtValidation,
                statutId: (_StatutId == null ? -1 : _StatutId),
                eleveId: (_EleveId == null ? -1 : _EleveId),
                prix: (_Prix == null ? -1 : _Prix),
                fraiId: (_FraiId == null ? -1 : _EleveId),
                referenceTransaction: (String.IsNullOrEmpty(_ReferenceTransaction) ? null : _ReferenceTransaction),
                referenceExterne: (String.IsNullOrEmpty(_ReferenceExterne) ? null : _ReferenceExterne.Trim()),
                adresseId: (_NewAdresseId == null ? -1 : _NewAdresseId)
                ).FirstOrDefault().Value;

            //ajout des lignes
            foreach (Ligne _Current in _Lignes)
            {
                Int32?_NewLigneId = _DB.AddLigne(
                    produitId: _Current.Produit.Id,
                    commandeId: _NewCommandeId,
                    quantite: _Current.Quantite,
                    statutId: _StatutId,
                    prix: _Current.Prix,
                    reduction: _Current.Reduction
                    ).FirstOrDefault().Value;
            }

            //envoi du mail de confirmation
            #region "Mail"
            String _EmailConfirmation = String.Empty;
            _EmailConfirmation += "<html>";
            _EmailConfirmation += "<body>";
            _EmailConfirmation += "<img src=\"http://www.cavalier-roi.fr/Content/Images/LogoMail.jpg\" />";
            _EmailConfirmation += "<br /><hr /><br />";
            if (_StatutId == 3)
            {
                _EmailConfirmation += "Votre commande #" + _NewCommandeId.ToString() + " a bien été prise en compte et votre paiement " + _ReferenceTransaction + " a bien été effectué !";
            }
            else if (_StatutId == 2)
            {
                _EmailConfirmation += "Votre commande #" + _NewCommandeId.ToString() + " a bien été prise en compte !";
            }
            _EmailConfirmation += "<br /><br />";
            _EmailConfirmation += "<table cellpadding=\"2\" cellspacing=\"2\" border=\"1\">";
            _EmailConfirmation += "<tr>";
            _EmailConfirmation += "     <th>Numéro de produit</th>";
            _EmailConfirmation += "     <th>Libellé de produit</th>";
            _EmailConfirmation += "     <th>Quantité</th>";
            foreach (Ligne _Current in _Lignes)
            {
                _EmailConfirmation += "<tr>";
                _EmailConfirmation += "     <td>" + (!String.IsNullOrEmpty(_Current.Produit.Reference) ? _Current.Produit.Reference : _Current.Produit.Id.ToString()) + "</td>";
                _EmailConfirmation += "     <td>" + _Current.Produit.Libelle + "</td>";
                _EmailConfirmation += "     <td>" + _Current.Quantite + "</td>";
                _EmailConfirmation += "</tr>";
            }
            _EmailConfirmation += "</table>";
            _EmailConfirmation += "<br /><br />";
            _EmailConfirmation += "Vous pouvez retrouver toutes vos commandes dans la partie \"Mon Compte\" du site de l'École du Cavalier Roi : <a href=\"" + WS.Constants.SITE_URL + "/MonCompte\" target=\"_blank\">" + WS.Constants.SITE_URL + "/MonCompte</a>.";
            _EmailConfirmation += "<br /><br />";
            if (_StatutId == 3)
            {
                _EmailConfirmation += "Merci de contacter au plus vite l'École du Cavalier Roi à <a href=\"mailto:" + WS.Constants.COMMANDES_EMAIL + "\" target=\"_blank\">" + WS.Constants.COMMANDES_EMAIL + "</a> pour régler le paiement.";
            }
            else if (_StatutId == 2)
            {
                _EmailConfirmation += "Vous recevrez votre facture directement par mail ou en la demandant à <a href=\"mailto:" + WS.Constants.COMMANDES_EMAIL + "\" target=\"_blank\">" + WS.Constants.COMMANDES_EMAIL + "</a>";
                _EmailConfirmation += "<br /><br />";
                _EmailConfirmation += "Pour plus d'informations, n'hésitez pas à contacter l'École du Cavalier Roi à <a href=\"mailto:" + WS.Constants.COMMANDES_EMAIL + "\" target=\"_blank\">" + WS.Constants.COMMANDES_EMAIL + "</a>.";
            }
            _EmailConfirmation += "<br /><br />";
            _EmailConfirmation += "L'École du Cavalier Roi";
            _EmailConfirmation += "<br /><br />";
            _EmailConfirmation += "</body>";
            _EmailConfirmation += "</html>";
            ICSManager.SendMail(WS.Constants.COMMANDES_EMAIL, WS.Constants.COMMANDES_SENDER, _Eleve.Email, WS.Constants.COMMANDES_CC, WS.Constants.COMMANDES_CCI, "Confirmation de commande", _EmailConfirmation, true, null, null, WS.Constants.MAILSERVER_HOST, WS.Constants.MAILSERVER_PORT, WS.Constants.COMMANDES_USERNAME, WS.Constants.COMMANDES_PASSWORD, 100000, false);
            #endregion

            return(_NewCommandeId);
        }
Esempio n. 22
0
        public static List <WS.Models.Typologies> GetTypologies(Int32?TypologieId = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.GetTypologies().ToList());
        }
Esempio n. 23
0
        public static Int32 DelCommande(Int32?_Id = null, String _Real = "N")
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.DelCommande(_Id, _Real));
        }
Esempio n. 24
0
        public static Int32?AddEvenement(
            Int32?_Id                   = null,
            String _Libelle             = null,
            String _Descriptif          = null,
            Int32?_Minimum              = null,
            Int32?_Maximum              = null,
            Double?_Prix                = null,
            Double?_Duree               = null,
            String _DtDebut             = null,
            String _DtFin               = null,
            String _DtLimiteInscription = null,
            String _Logo                = null,
            String _Photo               = null,
            String _Bandeau             = null,
            String _Lien                = null,
            Int32?_TypologieId          = null,
            Int32?_EvenementParentId    = null,
            List <Planning> _Plannings  = null
            )
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            DateTime?_DtDebutF = null;

            if (!String.IsNullOrEmpty(_DtDebut))
            {
                _DtDebutF = DateTime.Parse(_DtDebut);
            }
            DateTime?_DtFinF = null;

            if (!String.IsNullOrEmpty(_DtFin))
            {
                _DtFinF = DateTime.Parse(_DtFin);
            }
            DateTime?_DtLimiteInscriptionF = null;

            if (!String.IsNullOrEmpty(_DtLimiteInscription))
            {
                _DtLimiteInscriptionF = DateTime.Parse(_DtLimiteInscription);
            }

            Int32?_ReturnValue = _DB.AddEvenement(
                id: _Id,
                libelle: _Libelle.ToLower().Accents().ToUpper().Trim(),
                descriptif: _Descriptif,
                dtDebut: _DtDebutF,
                dtFin: _DtFinF,
                dtLimiteInscription: _DtLimiteInscriptionF,
                minimum: _Minimum,
                maximum: _Maximum,
                prix: _Prix,
                duree: _Duree,
                logo: _Logo,
                photo: _Photo,
                bandeau: _Bandeau,
                lien: _Lien,
                typologieId: _TypologieId,
                evenementParentId: _EvenementParentId
                );

            //if ((_Plannings != null) && (_Plannings.Count > 0))
            //{
            //    foreach (Planning _Current in _Plannings)
            //    {

            //        DateTime? _JourF = null;
            //        if (!String.IsNullOrEmpty(_Current.Jour)) { _JourF = DateTime.Parse(_Current.Jour); }

            //        _ReturnValue = DB.UpdPlanning(
            //            id: _Current.Id,
            //            jour: _JourF,
            //            creneau0809: _Current.Creneau0809,
            //            creneau0910: _Current.Creneau0910,
            //            creneau1011: _Current.Creneau1011,
            //            creneau1112: _Current.Creneau1112,
            //            creneau1213: _Current.Creneau1213,
            //            creneau1314: _Current.Creneau1314,
            //            creneau1415: _Current.Creneau1415,
            //            creneau1516: _Current.Creneau1516,
            //            creneau1617: _Current.Creneau1617,
            //            creneau1718: _Current.Creneau1718
            //        );
            //    }
            //}

            return(_ReturnValue);
        }
Esempio n. 25
0
        public static List <Evenement> GetEvenements(
            Int32?_Id                = null,
            String _Libelle          = null,
            String _DtMin            = null,
            String _DtMax            = null,
            Int32?_TypologieId       = null,
            Int32?_EvenementParentId = null,
            Int32?_EleveId           = null,
            String _OnlyParentsYN    = "N",
            Int32?_Top               = null
            )
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <EvenementResult> _EvenementResults = _DB.GetEvenements(
                id: (_Id == null ? -1 : _Id),
                libelle: (String.IsNullOrEmpty(_Libelle) ? null : _Libelle),
                dtMin: (String.IsNullOrEmpty(_DtMin) ? null : _DtMin.Replace("/", "-")),
                dtMax: (String.IsNullOrEmpty(_DtMax) ? null : _DtMax.Replace("/", "-")),
                typologieId: (_TypologieId == null ? -1 : _TypologieId),
                evenementParentId: (_EvenementParentId == null ? -1 : _EvenementParentId),
                eleveId: (_EleveId == null ? -1 : _EleveId),
                onlyParentsYN: _OnlyParentsYN,
                top: (_Top == null ? -1 : _Top)
                ).ToList();

            List <Evenement> _Evenements = new List <Evenement>();

            foreach (EvenementResult _CurrentE in _EvenementResults)
            {
                Evenement _NewEvenement = new Evenement();
                _NewEvenement.Id      = _CurrentE.Id;
                _NewEvenement.Libelle = (String.IsNullOrEmpty(_CurrentE.Libelle) ? null : _CurrentE.Libelle.ToLower().Accents().ToUpper().Trim());

                _NewEvenement.Descriptif = (String.IsNullOrEmpty(_CurrentE.Descriptif) ? null : _CurrentE.Descriptif.Trim());

                _NewEvenement.DtDebut = (String.IsNullOrEmpty(_CurrentE.DtDebut) ? null : _CurrentE.DtDebut.Trim());
                _NewEvenement.DtFin   = (String.IsNullOrEmpty(_CurrentE.DtFin) ? null : _CurrentE.DtFin.Trim());

                _NewEvenement.DtLimiteInscription = (String.IsNullOrEmpty(_CurrentE.DtLimiteInscription) ? null : _CurrentE.DtLimiteInscription.Trim());
                _NewEvenement.Minimum             = _CurrentE.Minimum;
                _NewEvenement.Maximum             = _CurrentE.Maximum;
                _NewEvenement.Compte = _CurrentE.Compte;

                _NewEvenement.Prix  = _CurrentE.Prix;
                _NewEvenement.Duree = _CurrentE.Duree;

                _NewEvenement.Logo    = (String.IsNullOrEmpty(_CurrentE.Logo) ? null : _CurrentE.Logo.Trim());
                _NewEvenement.Photo   = (String.IsNullOrEmpty(_CurrentE.Photo) ? null : _CurrentE.Photo.Trim());
                _NewEvenement.Bandeau = (String.IsNullOrEmpty(_CurrentE.Bandeau) ? null : _CurrentE.Bandeau.Trim());
                _NewEvenement.Lien    = (String.IsNullOrEmpty(_CurrentE.Lien) ? null : _CurrentE.Lien.Trim());

                _NewEvenement.Typologie         = new Typologie();
                _NewEvenement.Typologie.Id      = _CurrentE.TypologieId;
                _NewEvenement.Typologie.Libelle = _CurrentE.TypologieLibelle.Trim();

                if (_CurrentE.EvenementParentId != null)
                {
                    _NewEvenement.EvenementParent         = new Evenement();
                    _NewEvenement.EvenementParent.Id      = _CurrentE.EvenementParentId;
                    _NewEvenement.EvenementParent.Libelle = _CurrentE.EvenementParentLibelle.Trim();
                }

                _NewEvenement.VisibledYN = _CurrentE.VisibledYN;


                //récupération des réservations sur l'évènement
                _NewEvenement.Reservations = new List <Reservation>();
                List <ReservationResult> _ReservationResults = _DB.GetReservations(eleveId: null, evenementId: _NewEvenement.Id).ToList();
                foreach (ReservationResult _CurrentR in _ReservationResults)
                {
                    Reservation _NewReservation = new Reservation();
                    _NewReservation.Id      = _CurrentR.Id;
                    _NewReservation.Jour    = _CurrentR.Jour.Trim();
                    _NewReservation.Creneau = _CurrentR.Creneau.Trim();

                    _NewReservation.Eleve        = new Eleve();
                    _NewReservation.Eleve.Id     = Int32.Parse(_CurrentR.EleveId.ToString());
                    _NewReservation.Eleve.Nom    = _CurrentR.Nom.Trim();
                    _NewReservation.Eleve.Prenom = _CurrentR.Prenom.Trim();

                    _NewReservation.Evenement         = new Evenement();
                    _NewReservation.Evenement.Id      = Int32.Parse(_CurrentR.EvenementId.ToString());
                    _NewReservation.Evenement.Libelle = _CurrentR.EvenementLibelle.Trim();


                    _NewEvenement.Reservations.Add(_NewReservation);
                }

                _Evenements.Add(_NewEvenement);
            }

            return(_Evenements);
        }
Esempio n. 26
0
        public static Int32?DelEvenement(Int32?_Id = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.DelEvenement(_Id));
        }
Esempio n. 27
0
        public static Int32?DelContenu(Int32?_Id = null, String _Real = "N")
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.DelContenu(_Id));
        }
Esempio n. 28
0
        public static List <Commande> GetCommmandes(Int32?_Id = null, String _DtMin = null, String _DtMax = null, Int32?_ProduitId = null, String _ProduitReference = null, Int32?_EleveId = null, String _ReferenceTransaction = null, String _ReferenceExterne = null, Int32?_StatutId = null, String _TrackingNumber = null)
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            List <CommandeResult> _CommandeResults = _DB.GetCommandes(
                id: (_Id == null ? -1 : _Id),
                dtMin: (String.IsNullOrEmpty(_DtMin) ? null : _DtMin.Replace("/", "-")),
                dtMax: (String.IsNullOrEmpty(_DtMax) ? null : _DtMax.Replace("/", "-")),
                produitId: (_ProduitId == null ? -1 : _ProduitId),
                produitReference: (String.IsNullOrEmpty(_ProduitReference) ? null : _ProduitReference.Trim()),
                eleveId: (_EleveId == null ? -1 : _EleveId),
                referenceTransaction: (String.IsNullOrEmpty(_ReferenceTransaction) ? null : _ReferenceTransaction.Trim()),
                referenceExterne: (String.IsNullOrEmpty(_ReferenceExterne) ? null : _ReferenceExterne.Trim()),
                statutId: (_StatutId == null ? -1 : _StatutId),
                trackingNumber: (String.IsNullOrEmpty(_TrackingNumber) ? null : _TrackingNumber.Trim())
                ).ToList();

            List <Commande> _Commandes = new List <Commande>();

            foreach (CommandeResult _Current in _CommandeResults)
            {
                if (_Commandes.Any(c => c.Id == _Current.Id) == false)
                {
                    Commande _NewCommande = new Commande();
                    _NewCommande.Id         = Int32.Parse(_Current.Id.ToString());
                    _NewCommande.DtCreation = _Current.DtCreation;

                    _NewCommande.DtModification = _Current.DtModification;
                    _NewCommande.DtValidation   = _Current.DtValidation;

                    _NewCommande.Prix = _Current.Total;
                    _NewCommande.ReferenceTransaction = (String.IsNullOrEmpty(_Current.ReferenceTransaction) ? null : _Current.ReferenceTransaction.Trim());
                    _NewCommande.ReferenceExterne     = (String.IsNullOrEmpty(_Current.ReferenceExterne) ? null : _Current.ReferenceExterne.Trim());
                    _NewCommande.TrackingNumber       = (String.IsNullOrEmpty(_Current.TrackingNumber) ? null : _Current.TrackingNumber.Trim());

                    if (_Current.StatutId != null)
                    {
                        _NewCommande.Statut         = new Statut();
                        _NewCommande.Statut.Id      = Int32.Parse(_Current.StatutId.ToString());
                        _NewCommande.Statut.Libelle = _Current.StatutLibelle;
                    }

                    if (_Current.AdresseId != null)
                    {
                        _NewCommande.Adresse              = new Adresse();
                        _NewCommande.Adresse.Id           = Int32.Parse(_Current.AdresseId.ToString());
                        _NewCommande.Adresse.Destinataire = _Current.Destinataire;
                        _NewCommande.Adresse.Ligne1       = _Current.Ligne1;
                        _NewCommande.Adresse.Ligne2       = _Current.Ligne2;
                        _NewCommande.Adresse.CodePostal   = _Current.CodePostal;
                        _NewCommande.Adresse.Ville        = _Current.Ville;
                        _NewCommande.Adresse.Telephone    = _Current.Telephone;
                        _NewCommande.Adresse.Email        = _Current.Email;
                    }

                    _NewCommande.Lignes = new List <Ligne>();
                    Double _PrixLignes = 0;
                    foreach (CommandeResult _Current2 in _CommandeResults.FindAll(c => c.Id == _Current.Id && c.LigneId != null) as List <CommandeResult> )
                    {
                        _PrixLignes += Double.Parse(_Current2.Prix.ToString());

                        Ligne _NewLigne = new Ligne();
                        _NewLigne.Id        = Int32.Parse(_Current2.LigneId.ToString());
                        _NewLigne.Quantite  = Int16.Parse(_Current2.Quantite.ToString());
                        _NewLigne.Reduction = _Current2.Reduction;
                        _NewLigne.Prix      = Double.Parse(_Current2.Prix.ToString());

                        Produit _NewProduit = new Produit();
                        _NewProduit.Id        = Int32.Parse(_Current2.ProduitId.ToString());
                        _NewProduit.Libelle   = _Current2.ProduitLibelle;
                        _NewProduit.Reference = _Current2.ProduitReference;
                        _NewLigne.Produit     = _NewProduit;

                        _NewCommande.Lignes.Add(_NewLigne);
                    }

                    if (_Current.FraiId != null)
                    {
                        _NewCommande.Frai         = new Frai();
                        _NewCommande.Frai.Id      = Int32.Parse(_Current.FraiId.ToString());
                        _NewCommande.Frai.Libelle = _Current.FraiLibelle;

                        if (_Current.FraiPrix == null)
                        {
                            //envoi "exceptionnel"
                            _NewCommande.Frai.Prix = _Current.Total - _PrixLignes;
                        }
                        else
                        {
                            //envoi "classique"
                            _NewCommande.Frai.Prix = _Current.FraiPrix;
                        }
                    }

                    if (_Current.EleveId != null)
                    {
                        _NewCommande.Eleve        = new Eleve();
                        _NewCommande.Eleve.Id     = Int32.Parse(_Current.EleveId.ToString());
                        _NewCommande.Eleve.Nom    = _Current.Nom;
                        _NewCommande.Eleve.Prenom = _Current.Prenom;
                    }

                    _Commandes.Add(_NewCommande);
                }
            }

            return(_Commandes);
        }
Esempio n. 29
0
        public static Int32?UpdContenu(
            Int32?_Id           = null,
            String _Titre       = null,
            String _Texte       = null,
            String _Lien        = null,
            String _Script      = null,
            String _DtDebut     = null,
            String _DtFin       = null,
            Int32?_ModeId       = null,
            Int32?_EvenementId  = null,
            String _Logo        = null,
            String _Horizontale = null,
            String _Carree      = null,
            String _Verticale   = null,
            String _Full        = null,
            Boolean?_Exclusif   = null,
            List <Publication> _Publications = null
            )
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            DateTime?_DtDebutF = null;

            if (!String.IsNullOrEmpty(_DtDebut))
            {
                _DtDebutF = DateTime.Parse(_DtDebut);
            }
            DateTime?_DtFinF = null;

            if (!String.IsNullOrEmpty(_DtFin))
            {
                _DtFinF = DateTime.Parse(_DtFin);
            }

            Int32?_ReturnValue = _DB.UpdContenu(
                id: _Id,
                titre: _Titre.ToLower().Accents().ToUpper().Trim(),
                texte: _Texte,

                dtDebut: _DtDebutF,
                dtFin: _DtFinF,

                lien: _Lien,
                script: _Script,

                logo: _Logo,
                horizontale: _Horizontale,
                carree: _Carree,
                verticale: _Verticale,
                full: _Full,
                exclusif: _Exclusif,

                modeId: _ModeId,
                evenementId: _EvenementId
                );

            _ReturnValue = _DB.DelPublication(contenuId: _Id, id: null);
            if ((_Publications != null) && (_Publications.Count > 0))
            {
                foreach (Publication _Current in _Publications)
                {
                    _ReturnValue = _DB.AddPublication(contenuId: _Id, emplacementId: _Current.Emplacement.Id);
                }
            }

            return(_ReturnValue);
        }
Esempio n. 30
0
        public static List <WS.Models.Modes> GetModes()
        {
            DBModelsParameters _DB = new WS.Models.DBModelsParameters();

            return(_DB.GetModes().ToList());
        }