public ActionResult CajaDeAhorros( string desde = null, string hasta = null, string tipoComprobante = null, int p = 1, bool exp = false, string f = null) { var rangoFechas = new RangoFechas(desde, hasta, cantMaxMeses: CantMaxMesesDetalleCajaAhorros); var viewModel = new DetalleCajaDeAhorrosViewModel { Desde = rangoFechas.Desde, Hasta = rangoFechas.Hasta, TipoComprobante = tipoComprobante ?? Socio.TipoCuenta, TiposComprobanteSelectList = ListasHelper.CrearTiposCuentaSelectList() }; if (ValidarRangoFechas(rangoFechas)) { CargarItemsCajaDeAhorrosViewModel(viewModel, p, exp); } if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteCajaDeAhorrosPdfFileResult(viewModel.Items)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelCajaDeAhorros(viewModel.Items)); } } else { return(View(viewModel)); } }
public ActionResult ServiciosCuotas( string desde = null, string hasta = null, int p = 1, bool exp = false, string f = null) { var rangoFechas = new RangoFechas(desde, hasta); var viewModel = new ServiciosCuotasViewModel { Desde = rangoFechas.Desde, Hasta = rangoFechas.Hasta, }; if (ValidarRangoFechas(rangoFechas)) { CargarServiciosCuotasViewModel(viewModel, p, exp); } if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteServiciosCuotasPdfFileResult(viewModel.Items, viewModel.CuotasPendientes, viewModel.CuotasImpagas, viewModel.CuotasPagas, viewModel.TotalPagado)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelServiciosCuotas(viewModel.Items, viewModel.CuotasPendientes, viewModel.CuotasImpagas, viewModel.CuotasPagas, viewModel.TotalPagado)); } } else { return(View(viewModel)); } }
public ActionResult CuotasSocietarias( string desde = null, string hasta = null, int p = 1, bool exp = false, string f = null) { var rangoFechas = new RangoFechas(desde, hasta, cantMesesDefault: 12); var viewModel = new DetalleViewModelBase <CuotaSocietaria> { Desde = rangoFechas.Desde, Hasta = rangoFechas.Hasta, }; if (ValidarRangoFechas(rangoFechas)) { CargarItemsCuotasSocietariasViewModel(viewModel, p, exp); } if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteCuotasSocietariasPdfFileResult(viewModel.Items)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelCuotasSocietarias(viewModel.Items)); } } else { return(View(viewModel)); } }
public ActionResult ValoresNegociados( string desde = null, string hasta = null, int p = 1, bool exp = false, string f = null) { var rangoFechas = new RangoFechas(desde, hasta); var viewModel = new DetalleViewModelBase <DetalleValorNegociadoAyuda> { Desde = rangoFechas.Desde, Hasta = rangoFechas.Hasta, }; if (ValidarRangoFechas(rangoFechas)) { CargarItemsValoresNegociadosViewModel(viewModel, p, exp); } if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteValoresNegociadosPdfFileResult(viewModel.Items)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelValoresNegociados(viewModel.Items)); } } else { return(View(viewModel)); } }
public ActionResult AhorroATerminoEnDolares( string desde = null, string hasta = null, int p = 1, bool exp = false, string f = null) { var rangoFechas = new RangoFechas(desde, hasta); var viewModel = new DetalleViewModelBase <AhorroTerminoVigente> { Desde = rangoFechas.Desde, Hasta = rangoFechas.Hasta, }; if (ValidarRangoFechas(rangoFechas)) { CargarItemsAhorroATerminoEnDolaresViewModel(viewModel, p, exp); } if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteAhorrosATerminoEnDolaresPdfFileResult(viewModel.Items)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelAhorroATerminoEnDolares(viewModel.Items)); } } else { return(View(viewModel)); } }
public ActionResult Resumen( int p = 1, bool exp = false, string f = null) { List <SaldoCajaAhorro> saldos = new List <SaldoCajaAhorro>(); try { //saldo = ServicioCliente.ObtenerSaldoCajaDeAhorro(Socio.NroCuenta, Socio.TipoCuentaAbreviado); saldos = ServicioCliente.ObtenerSaldosCajaDeAhorro(Socio.NroCuenta).ToList(); } catch (Exception) { // NOTA: si no pude obtener el saldo asumimos que el socio no posee una Caja de ahorros } if (saldos != null && saldos.Count > 0) { saldos.ForEach(s => s.TipoDesc = String.Format("{0} $ ({1})", Configuracion.Configuracion.CajaAhorrosTitulo, ServiciosTiposCuentaCodigos.ObtenerNombreDesdeCodigo(s.Tipo), s.TipoAMV = "AMV" + s.Tipo)); if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteResumenPdfFileResult(saldos)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelResumen(saldos)); } } } return(View(saldos)); }
public ActionResult DetalleAyudaEconomicaDocumentos( int id, bool exp = false, string f = null) { var items = ServicioCliente.ObtenerDetalleAyudaEconomicaDocumentos(id).ToList(); if (exp) { switch (f) { case Formato.ARCHIVO_FORMATO_PDF: return(ReportesPdfHelper.GenerarReporteDetalleAyudaEconomicaDocumentosPdfFileResult(items)); case Formato.ARCHIVO_FORMATO_EXCEL: default: return(ReportesExcelHelper.GenerarActionResultExcelDetalleAyudaEconomicaDocumentos(items)); } } else { return(View(items)); } }