Exemple #1
0
        public ActionResult ListarNotasdeDetalle(int nvNumero)
        {
            try
            {
                NotadeVentaCabeceraModels        NVC  = new NotadeVentaCabeceraModels();
                List <NotadeVentaCabeceraModels> NVCL = new List <NotadeVentaCabeceraModels>();
                NotaDeVentaDetalleModels         NVD  = new NotaDeVentaDetalleModels();
                List <NotaDeVentaDetalleModels>  NVDL = new List <NotaDeVentaDetalleModels>();

                NVC.NVNumero = nvNumero;
                NVD.NVNumero = nvNumero;

                var listaNVD = ReporteDAO.ListarNotaDetalle(NVD);

                if (listaNVD != null)
                {
                    NVDL = listaNVD;
                }

                ViewBag.NVDL = NVDL;

                return(View());
            }
            catch (Exception ex)
            {
                return(View(ex.Message));
            }
        }