Exemplo n.º 1
0
        public IEnumerable <dto.ProformaGrilla> ObtenerProformasGrilla(dto.ProformaGrillaRequest r)
        {
            var Entidad      = Mapper.Map <dto.ProformaGrillaRequest, datoDto.ProformaGrillaRequest>(r);
            var DetalleQuery = new dom.Proforma().ObtenerProformasGrilla(Entidad);
            var Resultado    = Mapper.Map <IEnumerable <datoDto.ProformaGrilla>, IEnumerable <dto.ProformaGrilla> >(DetalleQuery);

            return(Resultado);
        }
Exemplo n.º 2
0
        public bool CerrarProforma(dto.ProformaCerrarRequest r)
        {
            var proforma = new dom.Proforma().BuscarPorId(r.Id);

            proforma.Estado = Ayuda.EstadosProforma.cerrado;
            new dom.Proforma().Modificar(proforma);
            return(true);
        }
Exemplo n.º 3
0
        public List <dto.ReporteMesDetalladoResponse> ObtenerReporteMesDetalladoProforma(dto.ReporteMesDetalladoRequest r)
        {
            var Entidad      = Mapper.Map <dto.ReporteMesDetalladoRequest, datoDto.ReporteMesDetalladoRequest>(r);
            var DetalleQuery = new dom.Proforma().ObtenerReporteMesDetalladoProforma(Entidad);
            var Resultado    = Mapper.Map <IEnumerable <datoDto.ReporteMesDetalladoResponse>, IEnumerable <dto.ReporteMesDetalladoResponse> >(DetalleQuery);

            return(Resultado.ToList());
        }
Exemplo n.º 4
0
        public ent.Proforma ObtenerProformaById(dto.ProformaByIdRequest request)
        {
            var comprobante = new dom.Proforma().BuscarPorId(request.IdProforma);

            comprobante.Proformadetalle = new dom.ProformaDetalle().Buscar(c => c.ComprobanteId == request.IdProforma);
            var Resultado = Mapper.Map <dato.Proforma, ent.Proforma>(comprobante);

            Resultado.EstadoNombre = new dom.TablaDato().BuscarPrimero(c => c.Relacion == "comprobanteestado" && c.Value == Resultado.Estado.ToString()).Nombre;
            return(Resultado);
        }