From 08e7c8f5ec5b1a21b19c95df0b9fdd02f8aa02fb Mon Sep 17 00:00:00 2001 From: Felix Morales Date: Tue, 20 Feb 2024 14:13:43 -0600 Subject: [PATCH] =?UTF-8?q?al=20crear=20el=20reporte=20semanal=20se=20toma?= =?UTF-8?q?ba=20de=20la=20aduana=20y=20patente=20de=20las=20celdas=20A2=20?= =?UTF-8?q?y=20B2=20para=20buscar=20el=20trafico,=20ahora=20se=20toman=20d?= =?UTF-8?q?el=20renglon=20que=20se=20est=C3=A1=20leyendo=20ya=20que=20pued?= =?UTF-8?q?e=20haber=20m=C3=A1s=20de=20una=20aduana=20y=20patente=20en=20e?= =?UTF-8?q?l=20archivo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/Reportes/Newell/Semanal/ReporteSemanalService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Services/Reportes/Newell/Semanal/ReporteSemanalService.cs b/Services/Reportes/Newell/Semanal/ReporteSemanalService.cs index b072d18..4a72fae 100644 --- a/Services/Reportes/Newell/Semanal/ReporteSemanalService.cs +++ b/Services/Reportes/Newell/Semanal/ReporteSemanalService.cs @@ -36,8 +36,8 @@ namespace CORRESPONSALBackend.Services.Reportes.Newell.Semanal{ var start = worksheet.Dimension.Start; var end = worksheet.Dimension.End; int initialRow = start.Row+1; - var aduana = worksheet.Cells[$"A2"].Value.ToString(); - var patente = worksheet.Cells[$"B2"].Value.ToString(); + /* var aduana = worksheet.Cells[$"A2"].Value.ToString(); + var patente = worksheet.Cells[$"B2"].Value.ToString(); */ worksheet.Cells[$"S1"].Value = "Referencia"; worksheet.Cells[$"T1"].Value = "Contenedor"; worksheet.Cells[$"U1"].Value = "Cuenta de Gastos"; @@ -46,6 +46,8 @@ namespace CORRESPONSALBackend.Services.Reportes.Newell.Semanal{ for (int currentRow = initialRow; currentRow <= end.Row; currentRow++)// Recorrer renglon por renglon { if(!string.IsNullOrWhiteSpace(worksheet.Cells[$"C{currentRow}"].Value?.ToString()) && !string.IsNullOrEmpty(worksheet.Cells[$"C{currentRow}"].Value?.ToString())){ + var aduana = worksheet.Cells[$"A{currentRow}"].Value.ToString(); + var patente = worksheet.Cells[$"B{currentRow}"].Value.ToString(); var pedimento = worksheet.Cells[$"C{currentRow}"].Value.ToString(); var dto = await _traficosRepository.GetByPedimento(int.Parse(pedimento), int.Parse(aduana), int.Parse(patente)); worksheet.Cells[$"S{currentRow}"].Value = dto.GC;