internal static List <OrdenDeCompraGeneral> Todos(DateTime inicio, DateTime termino, string estado)
        {
            DateTime Termino = termino;
            DateTime temp    = termino;

            while (temp.Day == termino.Day)
            {
                Termino = temp;
                temp    = temp.AddMinutes(1);
            }

            List <OrdenDeCompraGeneral> retorno = new List <OrdenDeCompraGeneral>();

            if (estado.Equals("TODOS"))
            {
                retorno = new RentaMaq.DAL.Context().ordenesDeCompra.Where(s => s.Fecha >= inicio && s.Fecha <= Termino).ToList();
            }
            else if (estado.Equals("PENDIENTES"))
            {
                retorno = OrdenDeCompraGeneral.obtenerPendientes().Where(s => s.Fecha >= inicio && s.Fecha <= Termino).ToList();
            }
            else
            {
                retorno = new RentaMaq.DAL.Context().ordenesDeCompra.Where(s => s.Fecha >= inicio && s.Fecha <= Termino && s.estado == estado).ToList();
            }

            foreach (OrdenDeCompraGeneral OC in retorno)
            {
                OC.ProveedorID = OrdenDeCompraGeneral.obtenerProveedor(OC.OrdenDeCompraGeneralID);
            }

            return(retorno);
        }