Beispiel #1
0
        protected List <ViajeDistribucion> GetDistribuciones(IEnumerable <int> vehiculos)
        {
            var periodo  = DAOFactory.PeriodoDAO.FindById(Periodo.Get());
            var empresas = new[] { Empresa.Get() };
            var desde    = periodo.FechaDesde;
            var hasta    = periodo.FechaHoraHasta;
            var estados  = new int[] {
                ViajeDistribucion.Estados.Cerrado,
                ViajeDistribucion.Estados.EnCurso,
                ViajeDistribucion.Estados.Pendiente
            };

            return(DAOFactory.ViajeDistribucionDAO.GetList(empresas,
                                                           new[] { -1 }, // LINEAS
                                                           new[] { -1 }, // TRANSPORTISTAS
                                                           new[] { -1 }, // DEPTOS
                                                           new[] { -1 }, // CENTROS DE COSTO
                                                           new[] { -1 }, // SUB CENTROS DE COSTO
                                                           vehiculos,
                                                           estados,
                                                           desde,
                                                           hasta)
                   .ToList());
        }