Esempio n. 1
0
        public IList<DocVenta> findbyFechas(string fechaInicio, string fechaFin)
        {
            DocumentoDA documentoDA = new DocumentoDA();
            IList<DocVenta> listaDocVenta = new List<DocVenta>();

            IList<Documento> listaDocumentos = new DocumentoDA().findbyDate(fechaInicio, fechaFin);

            foreach (Documento documento in listaDocumentos)
            {
                if (documento.DocumentoDocVentafk != null)
                {
                    ISet<DocVenta> listDocV = documento.DocumentoDocVentafk;
                    foreach (DocVenta docVenta in listDocV)
                        listaDocVenta.Add(docVenta);
                }

            }

            return listaDocVenta;
        }
Esempio n. 2
0
 public IList<Documento> findDocumentoActivosXTurno(Caja caja, string fechaInicio, string fechaFin, string Estado)
 {
     DocumentoDA documentoDA = new DocumentoDA();
     return documentoDA.findDocumentoXTurno(caja.Id,fechaInicio,fechaFin,Estado);
 }