예제 #1
0
        //*********************************************************
        //******  RECHERCHE d'interaction par ID_materiel *********
        //*********************************************************
        /// <summary>
        /// RECHERCHE d'interaction par ID_materiel
        /// </summary>
        /// <param name="adresse">ID_materiel</param>
        /// <returns>liste interactions</returns>
        public Interactions Recherche_parMATERIEL(string materiel)
        {
            // Recupération des infos selon l'ID du materiel
            Interactions liste = new Interactions();

            liste.Clear();

            //****    Recherche Collection   ***
            foreach (Interaction i in this)
            {
                if (i.IDMateriel == materiel)
                {
                    liste.Add(i);
                    break;
                }
            }
            return(liste);
        }
예제 #2
0
        //*********************************************************
        //*******  RECHERCHE d'interaction par Id_Binome **********
        //*********************************************************
        /// <summary>
        /// RECHERCHE d'interaction par Id_Binome
        /// </summary>
        /// <param name="code">Id_Binome</param>
        /// <returns></returns>
        public Interactions Recherche_parIdBinome(string Binome)
        {
            // Recupération des infos selon un ID
            Interactions liste = new Interactions();

            liste.Clear();

            //****    Recherche Collection   ***
            foreach (Interaction i in this)
            {
                if (i.IdBinome == Binome)
                {
                    liste.Add(i);
                    break;
                }
            }
            return(liste);
        }
예제 #3
0
        //*********************************************************
        //*********  RECHERCHE d'interaction par Id_pro ***********
        //*********************************************************
        /// <summary>
        /// RECHERCHE d'interaction par Id_pro
        /// </summary>
        /// <param name="libelle">Id_pro</param>
        /// <returns>liste interactions</returns>
        public Interactions Recherche_parIdPro(string professionnel)
        {
            // Recupération des infos selon le LIBELLE
            Interactions liste = new Interactions();

            liste.Clear();

            //****    Recherche Collection   ***
            foreach (Interaction i in this)
            {
                if (i.IdPro == professionnel)
                {
                    liste.Add(i);
                    break;
                }
            }
            return(liste);
        }