コード例 #1
0
        //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"));
            }
        }
コード例 #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"));
            }
        }
コード例 #3
0
 //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"));
     }
 }
コード例 #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"));
     }
 }