//Affiche JDE avec ajax (table)
        public IActionResult AfficherJDE(string matricule)
        {
            FonctionFreq cmpt = new FonctionFreq();
            int          nb   = cmpt.CompterAgent(matricule);

            if (nb != 0)
            {
                ViewBag.Message = matricule;
                return(View());
            }
            else
            {
                return(RedirectToAction("Erreur", "Activite"));
            }
        }
Esempio n. 2
0
        public IActionResult AfficherJDE(string matricule)
        {
            FonctionFreq fFreq = new FonctionFreq();
            int          nb    = fFreq.CompterAgent(matricule);

            if (nb != 0)
            {
                ViewBag.Message = matricule;
                return(View());
            }
            else
            {
                return(RedirectToAction("Fin", "Frequentation"));
            }
        }
 //Affiche agent avec ajax (recherche)
 public IActionResult AfficherAgent(string agent)
 {
     if (agent != null)
     {
         FonctionFreq cmpt = new FonctionFreq();
         int          nb   = cmpt.CompterAgent(agent);
         if (nb != 0)
         {
             ViewBag.Message = agent;
             return(View());
         }
         else
         {
             return(RedirectToAction("Erreur", "Activite"));
         }
     }
     else
     {
         return(RedirectToAction("Fin", "Frequentation"));
     }
 }
Esempio n. 4
0
 public IActionResult AfficherAgent(string agent)
 {
     if (agent != null)
     {
         FonctionFreq fFreq = new FonctionFreq();
         int          nbA   = fFreq.CompterAgent(agent);
         if (nbA != 0)
         {
             ViewBag.Message = agent;
             return(View());
         }
         else
         {
             return(RedirectToAction("Agent", "Trash"));
         }
     }
     else
     {
         return(RedirectToAction("Fin", "Frequentation"));
     }
 }