Exemplo n.º 1
0
//.........................................***********DETAILS************...............................................
        public ActionResult Details(int id, DateTime datedebut, int choixchantier)
        {
            if (SessionManager.SessionUser != null)
            {
                JournalDesTravaux s = _serviceJDT.GetOne(id);
                TempData["choixchantier"] = choixchantier;
                TempData["datedebut"]     = datedebut;
                return(View(new JDTListe()
                {
                    Id = s.Id,
                    PersonnelId = s.PersonnelId,
                    PosteId = s.PosteId,
                    DateChantier = s.DateChantier,
                    HeuresProd = s.HeuresProd,
                    VoitPerso = s.VoitPerso,
                    ZoneDepl = s.ZoneDepl,
                    ChefChantierId = s.ChefChantierId,
                    Login = s.Login,
                    NumSemaine = s.NumSemaine,
                    EstValide = s.EstValide
                }));
            }
            else
            {
                return(RedirectToAction("../../Home/Index"));
            }
        }
Exemplo n.º 2
0
 public JournalDesTravaux GetOne(int id)
 {
     return(_service.GetOne(id));
 }
Exemplo n.º 3
0
 public JournalDesTravaux GetOne(int id)
 {
     return(_globalService.GetOne(id)?.ToClientJDT());
 }