Exemplo n.º 1
0
        public ActionResult _ODSAssignament(int MonitorID)
        {
            var dataMonitor = FacadeMonitor.Get(MonitorID);
            var dataODS     = FacadeOrder.Get(dataMonitor.OrderID);
            var dataModule  = FacadeModuleService.GetAllBYModule(dataODS.FK_ModuleID.Value);
            var dataTecnico = FacadeEmployee.GetID(dataODS.FK_EmployeeID.Value);

            ViewBag.dataODS     = dataODS;
            ViewBag.dataMonitor = dataMonitor;
            ViewBag.dataTecnico = dataTecnico;
            ViewBag.monitorID   = MonitorID;
            ViewBag.dataModule  = dataModule;
            return(PartialView());
        }
Exemplo n.º 2
0
        public ActionResult _DetailDistance(int orderID)
        {
            string refMan        = "8011161600000025";
            var    dataMonitor   = FacadeMonitor.GetByOrderID(orderID);
            var    dataODS       = FacadeOrder.Get(orderID);
            var    dataModule    = FacadeModuleService.GetAllBYModule(dataODS.FK_ModuleID.Value);
            var    dataSparePart = FacadeSparePart.GetByRefManID(orderID, refMan);

            if (dataSparePart == null)
            {
                ViewBag.Kilometres = 0;
            }
            else
            {
                ViewBag.Kilometres = dataSparePart.Quantity;
            }
            ViewBag.dataODS     = dataODS;
            ViewBag.dataMonitor = dataMonitor;
            ViewBag.dataModule  = dataModule;


            return(PartialView());
        }