Exemplo n.º 1
0
 //----------------------------------------------
 public void ChercheObjet(object objetCherche, CResultatRequeteRechercheObjet resultat)
 {
     if (objetCherche is CDefinitionProprieteDynamique)
     {
         CContexteDonnee contexte = CContexteDonneeSysteme.GetInstance();
         CListeObjetDonneeGenerique <CFormulaire> lstFormulaires = new CListeObjetDonneeGenerique <CFormulaire>(contexte);
         foreach (CFormulaire form in lstFormulaires)
         {
             C2iWnd wnd = form.Formulaire;
             try
             {
                 if (wnd != null)
                 {
                     resultat.PushChemin(new CNoeudRechercheObjet_ObjetDonnee(form));
                     wnd.ChercheObjet(objetCherche, resultat);
                     resultat.PopChemin();
                 }
             }
             catch
             {
                 System.Console.WriteLine("Erreur recherche formulaire " + form.Libelle);
             }
         }
     }
 }
Exemplo n.º 2
0
 public virtual void ChercheObjet(object objetCherche, CResultatRequeteRechercheObjet resultat)
 {
     if (DoesUse(objetCherche))
     {
         resultat.AddResultat(new CNoeudRechercheObjet_Wnd(this));
     }
     resultat.PushChemin(new CNoeudRechercheObjet_Wnd(this));
     foreach (C2iWnd child in Childs)
     {
         child.ChercheObjet(objetCherche, resultat);
     }
     resultat.PopChemin();
 }
Exemplo n.º 3
0
        //---------------------------------------------------------------------
        /// <summary>
        /// Recherche un objet dans le process in DB
        /// </summary>
        /// <param name="objetCherche"></param>
        /// <param name="resultat"></param>
        public void RechercheObjet(object objetCherche, CResultatRequeteRechercheObjet resultat)
        {
            CProcess process = Process;

            if (process != null)
            {
                resultat.PushChemin(new CNoeudRechercheObjet_ObjetDonnee(this));
                try
                {
                    process.ChercheObjet(objetCherche, resultat);
                }
                finally
                {
                    resultat.PopChemin();
                }
            }
        }