Cambios en los reportes
This commit is contained in:
@@ -2091,6 +2091,8 @@ Partial Class GPS_Rastreo
|
||||
DtDatos.Columns.Add("Evento", GetType(String))
|
||||
DtDatos.Columns.Add("LatLng", GetType(String))
|
||||
|
||||
Dim KMRecorridos = DtPosiciones.SUM("KMRecorridos").ToString
|
||||
|
||||
Try
|
||||
Dim Direcciones As JArray = ConsultarDirecciones(DtPosiciones)
|
||||
For Each row As DataRow In DtPosiciones.Rows
|
||||
@@ -2107,6 +2109,12 @@ Partial Class GPS_Rastreo
|
||||
For Each Dir As JObject In Direcciones
|
||||
DtDatos.Rows(Dir("Indice").ToEntero())("Direccion") = Dir("Direccion").ToString()
|
||||
Next
|
||||
|
||||
|
||||
DtDatos.Columns("Vehiculo").ColumnName = "Vehículo"
|
||||
DtDatos.Columns("TiempoDetenido").ColumnName = "Tiempo Detenido"
|
||||
DtDatos.Columns("Direccion").ColumnName = "Dirección"
|
||||
|
||||
Catch ex As Exception
|
||||
GuardaLog(String.Format("Ocurrio un error al generar el reporte RLDC {0}", ex))
|
||||
End Try
|
||||
@@ -2159,15 +2167,17 @@ Partial Class GPS_Rastreo
|
||||
|
||||
|
||||
If FechaI.Length > 0 And FechaF.Length > 0 Then
|
||||
Dim RangoFechas = worksheet.Cells.GetSubrangeAbsolute(4, celdasConTexto.FirstColumnIndex, 4, celdasConTexto.LastColumnIndex)
|
||||
RangoFechas.Merged = True
|
||||
RangoFechas.Value = $"Fechas: {FechaI} a {FechaF}"
|
||||
RangoFechas.Style.Font.Size = 15 * 20
|
||||
RangoFechas.Style.Font.Name = "Calibri Light"
|
||||
RangoFechas.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||
RangoFechas.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||
|
||||
End If
|
||||
|
||||
Dim RangoFechas = worksheet.Cells.GetSubrangeAbsolute(4, celdasConTexto.FirstColumnIndex, 4, celdasConTexto.LastColumnIndex)
|
||||
RangoFechas.Merged = True
|
||||
RangoFechas.Value = $"Distancia: {KMRecorridos:N2} KM {If(FechaI.Length > 0 And FechaF.Length > 0, $"Fechas: {FechaI} a {FechaF}", "")}"
|
||||
RangoFechas.Style.Font.Size = 15 * 20
|
||||
RangoFechas.Style.Font.Name = "Calibri Light"
|
||||
RangoFechas.Style.HorizontalAlignment = GemBox.Spreadsheet.HorizontalAlignmentStyle.Center
|
||||
RangoFechas.Style.VerticalAlignment = GemBox.Spreadsheet.VerticalAlignmentStyle.Center
|
||||
|
||||
|
||||
For i = celdasConTexto.FirstColumnIndex To celdasConTexto.LastColumnIndex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user