Beispiel #1
0
        //Affichage des caractéristiques de l'objet Projet
        public override string ToString()
        {
            string SujetLib = "Imposé";

            if (SujetLibre == true)
            {
                SujetLib = "Libre";
            }
            string description = "\n Thème : " + Theme + "\n Type de projet : " + TypeProjet +
                                 "\n Sujet : " + SujetLib + "\n Date de début : " + DateDebut.ToString("d") +
                                 "\n Date de fin : " + DateFin.ToString("d") + "\n Nombre d'intervenants : " + NbIntervenants;

            description = description + "\n Intervenants concernés : ";
            foreach (Intervenant item in IntervenantsConcernes)
            {
                int i = IntervenantsConcernes.IndexOf(item);
                description += "\n\t" + item.Prenom + " " + item.Nom + ": ";
                description += RolesIntervenants[i].ToString();
            }

            description = description + "\n Matières concernées : ";
            foreach (Matiere item in MatieresConcernees)
            {
                description = description + item.NomMatiere + ", ";
            }

            description = description + "\n Livrables attendus : ";
            foreach (Livrable item in LivrablesAttendus)
            {
                description = description + item.NomLivrable + ", ";
            }

            return(description);
        }
Beispiel #2
0
        //Transforme un plan sous la forme Element, dElement
        public Element Déconstruire()
        {
            Element  e = new Element();
            dElement d;

            e.ID           = ID;
            e.Element_Type = Acces.type_PLAN.id;
            e.Code         = Code;
            e.Libelle      = Libelle;
            e.Type_Element = (int)TypePlan;
            e.Actif        = Actif;

            string CodeAttribut = "";

            if (!(Pilote is null))
            {
                CodeAttribut = "PILOTE";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, Pilote.ID.ToString());
                e.Liste.Add(d);
            }

            if (Abrege.Length > 0)
            {
                CodeAttribut = "ABREGE";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, Abrege);
                e.Liste.Add(d);
            }

            CodeAttribut = "NIVEAU_6PO";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, ((int)NiveauPlan).ToString());
            e.Liste.Add(d);

            CodeAttribut = "DATE_DEBUT";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, DateDebut.ToString());
            e.Liste.Add(d);

            CodeAttribut = "DATE_FIN";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, DateFin.ToString());
            e.Liste.Add(d);

            if (OptAnalyseGlobale == true)
            {
                CodeAttribut = "ANALYSE_GLOBALE";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, "1");
                e.Liste.Add(d);
            }

            if (OptCommentaires == true)
            {
                CodeAttribut = "COMMENTAIRES";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, "1");
                e.Liste.Add(d);
            }

            if (OptGouvernance == true)
            {
                CodeAttribut = "GOUVERNANCE";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, "1");
                e.Liste.Add(d);
            }

            if (OptPrioriteRegionale == true)
            {
                CodeAttribut = "PRIORITE_REGIONALE";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, "1");
                e.Liste.Add(d);
            }

            // EQUIPE
            if (!(Equipe is null))
            {
                CodeAttribut = "EQUIPE";
                foreach (int k in Equipe)
                {
                    d = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_ACTION.id, CodeAttribut), CodeAttribut, k.ToString());
                    e.Liste.Add(d);
                }
            }

            if (GroupeExterne.Length > 0)
            {
                CodeAttribut = "GROUPE_EXTERNE";
                d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, GroupeExterne);
                e.Liste.Add(d);
            }
            CodeAttribut = "_TYPE";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, _type);
            e.Liste.Add(d);

            CodeAttribut = "_REF1";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, _ref1);
            e.Liste.Add(d);

            CodeAttribut = "_REF2";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, _ref2);
            e.Liste.Add(d);

            CodeAttribut = "_OS";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, _os);
            e.Liste.Add(d);

            CodeAttribut = "_OG";
            d            = new dElement(ID, Acces.Trouver_Attribut_ID(Acces.type_PLAN.id, CodeAttribut), CodeAttribut, _og);
            e.Liste.Add(d);

            return(e);
        }
Beispiel #3
0
 public override string ToString()
 {
     return(Id + "  " + Libelle + ", " + DateDebut.ToString("dd/MM/yy") + " -> " + DateFin.ToString("dd/MM/yy"));
 }
Beispiel #4
0
        public override string ToString()
        {
            string stringListePersonne = string.Empty;

            foreach (var p in ListePersonnes)
            {
                stringListePersonne += p.ToString() + " ";
            }

            return(string.Format("Tache annexe N°{0} : {1} ({2}). Commence le {3:dd/MM/yyyy} termine le {4}. Personnes participantes {5}",
                                 NumTache, LibTache, Activité, DateDébut, (DateFin < DateTime.MaxValue) ? DateFin.ToString("dd/MM/yyyy") : "{Non spécifié}", stringListePersonne));
        }
Beispiel #5
0
 public override string ToString()
 {
     return(string.Format("{0} - Id client : {1}, Id vehicule : {2}, {3}Km  du {4} au {5}",
                          Id, ClientID, VehiculeID, NbKm, DateDebut.ToString("dd/MM/yyyy"), DateFin?.ToString("dd/MM/yyyy")));
 }