Ejemplo n.º 1
0
        //////////////////////////////////////
        public static CAdUser GetUser(int nIdSession, string strId)
        {
            IAdUsersServer adUsers = (IAdUsersServer)C2iFactory.GetNewObjetForSession("CAdUsersServeur", typeof(IAdUsersServer), nIdSession);

            if (adUsers != null)
            {
                return(adUsers.GetUser(strId));
            }
            return(null);
        }
Ejemplo n.º 2
0
        //////////////////////////////////////
        public static CAdComputer[] GetComputers(int nIdSession)
        {
            IAdComputersServer adComputers = (IAdComputersServer)C2iFactory.GetNewObjetForSession("CAdComputersServeur", typeof(IAdComputersServer), nIdSession);

            if (adComputers != null)
            {
                return(adComputers.GetComputers());
            }
            return(null);
        }
Ejemplo n.º 3
0
        //////////////////////////////////////
        public static CAdGroup GetGroup(int nIdSession, string strId)
        {
            IAdGroupsServeur adGroups = (IAdGroupsServeur)C2iFactory.GetNewObjetForSession("CAdGroupsServeur", typeof(IAdGroupsServeur), nIdSession);

            if (adGroups != null)
            {
                return(adGroups.GetGroup(strId));
            }
            return(null);
        }
Ejemplo n.º 4
0
        /// ///////////////////////////////////////////////////////////////////
        public static void EnvoieNotifications(IDonneeNotification[] donnees)
        {
            if (donnees.Length == 0)
            {
                return;
            }
            IGestionnaireNotification gestionnaire = (IGestionnaireNotification)C2iFactory.GetNewObjetForSession("CGestionnaireNotification", typeof(IGestionnaireNotification), donnees[0].IdSessionEnvoyeur);

            if (gestionnaire != null)
            {
                gestionnaire.EnvoieNotifications(donnees);
            }
        }
        public static string[] GetNomsImprimantesServeur(int nIdSession)
        {
            IFournisseurNomImprimantesServeur fournisseur = (IFournisseurNomImprimantesServeur)C2iFactory.GetNewObjetForSession("CFournisseurNomImprimantesServeur", typeof(IFournisseurNomImprimantesServeur), nIdSession);

            return(fournisseur.GetNomsImprimantesSurServeur());
        }