Ejemplo n.º 1
0
        public ActionResult DMAT([Bind(Prefix = "id")] int DroneID = 0, int FlightID = 0)
        {
            //if (!exLogic.User.hasAccess("FLIGHT.MAP")) return RedirectToAction("NoAccess", "Home");
            var Monitor = new TrafficMamager(DroneID, FlightID);

            return(View(Monitor));
        }
Ejemplo n.º 2
0
        public ActionResult Export([Bind(Prefix = "id")] int DroneID = 0, int FlightID = 0, int Interval = 5)
        {
            var           Monitor = new TrafficMamager(DroneID, FlightID);
            StringBuilder CSV     = Monitor.Export(Interval);

            byte[] dest     = Encoding.ASCII.GetBytes(CSV.ToString());
            String FileName = $"Export-{FlightID}-{DateTime.Now.ToString("yymmddHHMMss")}.csv";

            return(File(dest, "application/vnd.ms-excel", FileName));
        }