Example #1
0
        public ActionResult Reporte4R()
        {
            string name    = TempData["username"].ToString();
            string nameRol = TempData["rol"].ToString();
            int    codUser = Int32.Parse(TempData["codUser"].ToString());

            ViewBag.name         = name;
            ViewBag.rol          = nameRol;
            TempData["username"] = name;
            TempData["rol"]      = nameRol;
            TempData["codUser"]  = codUser;

            DAOUsuario dataU  = DAOUsuario.getInstance();
            string     today  = DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss tt");
            string     accion = "Reporte 4R";

            dataU.insertarAccion(codUser, 2, today, accion);

            DAOEnvio     data   = DAOEnvio.getInstance();
            List <Envio> envios = data.obtenerReporte4R();

            return(View(envios));
        }