Exemplo n.º 1
0
 /// /////////////////////////////////////////////////////////////////////////////////
 private static void OnModifSurDonnees(IDonneeNotification donnee)
 {
     if (donnee is CDonneeNotificationModificationContexteDonnee)
     {
         CDonneeNotificationModificationContexteDonnee donneeContexte = (CDonneeNotificationModificationContexteDonnee)donnee;
         foreach (CDonneeNotificationModificationContexteDonnee.CInfoEnregistrementModifie info in donneeContexte.ListeModifications)
         {
             if (info.NomTable == CEvenement.c_nomTable)
             {
                 m_bEvenementsChanged = true;
                 lock (typeof(CLockerCacheEvenements))
                 {
                     m_tableTypeToEvenements.Clear();
                 }
                 break;
             }
         }
     }
     if (donnee is CDonneeNotificationAjoutEnregistrement)
     {
         CDonneeNotificationAjoutEnregistrement donneeAjout = (CDonneeNotificationAjoutEnregistrement)donnee;
         if (donneeAjout.NomTable == CEvenement.c_nomTable)
         {
             m_bEvenementsChanged = true;
             lock (typeof(CLockerCacheEvenements))
             {
                 m_tableTypeToEvenements.Clear();
             }
         }
     }
 }
 //-----------------------------------------------------------------------------
 private static void m_recepteurAjout_OnReceiveNotification(IDonneeNotification donnee)
 {
     lock (typeof(CFournisseurConstantesEntitesNommees))
     {
         CDonneeNotificationAjoutEnregistrement ajout = donnee as CDonneeNotificationAjoutEnregistrement;
         if (ajout.NomTable == CNommageEntite.c_nomTable)
         {
             m_listeExpression = null;
         }
     }
 }
Exemplo n.º 3
0
 //-----------------------------------------------------------------------------------
 static void m_recepteurAjouts_OnReceiveNotification(IDonneeNotification donnee)
 {
     if (m_tableIdUserEtTypeToFiltre.Count > 0)
     {
         if (donnee is CDonneeNotificationAjoutEnregistrement)
         {
             CDonneeNotificationAjoutEnregistrement dataAjout = (CDonneeNotificationAjoutEnregistrement)donnee;
             if (dataAjout.NomTable == CProfilUtilisateur.c_nomTable ||
                 dataAjout.NomTable == CProfilUtilisateur_Restriction.c_nomTable ||
                 dataAjout.NomTable == CRelationUtilisateur_Profil.c_nomTable ||
                 dataAjout.NomTable == CRelationUtilisateur_Profil_EO.c_nomTable ||
                 dataAjout.NomTable == CProfilUtilisateur_Inclusion.c_nomTable)
             {
                 m_tableIdUserEtTypeToFiltre.Clear();
             }
         }
     }
 }
 ////////////////////////////////////////////////////////////////////////////
 protected static void OnReceiveNotificationAjout(IDonneeNotification donnee)
 {
     try
     {
         if (!(donnee is CDonneeNotificationAjoutEnregistrement))
         {
             return;
         }
         //Marque tous les éléments comme étant à relire depuis la base de données
         CDonneeNotificationAjoutEnregistrement donneeAjout = (CDonneeNotificationAjoutEnregistrement)donnee;
         if (donneeAjout.NomTable == CTypeActiviteActeur.c_nomTable)
         {
             lock (typeof(CLockerArbres))
             {
                 m_arbreVocabulaire = null;
             }
         }
     }
     catch
     {
     }
 }