Cambios en rep ventas
This commit is contained in:
@@ -428,6 +428,7 @@ Partial Class Ventas_RepVentas
|
|||||||
Dim FechaIRef As DateTime = FechaI.ToDateTime()
|
Dim FechaIRef As DateTime = FechaI.ToDateTime()
|
||||||
Dim FechaFRef As DateTime = FechaF.ToDateTime()
|
Dim FechaFRef As DateTime = FechaF.ToDateTime()
|
||||||
|
|
||||||
|
If e.Row.DBCampo("Mes").ToEntero() > 0 Then
|
||||||
Dim Anio As Integer = FechaFRef.Year
|
Dim Anio As Integer = FechaFRef.Year
|
||||||
Dim Mes As Integer = e.Row.DBCampo("Mes").ToEntero()
|
Dim Mes As Integer = e.Row.DBCampo("Mes").ToEntero()
|
||||||
Dim lastDayOfMonth = DateTime.DaysInMonth(Anio, Mes)
|
Dim lastDayOfMonth = DateTime.DaysInMonth(Anio, Mes)
|
||||||
@@ -443,12 +444,19 @@ Partial Class Ventas_RepVentas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
FechaFinal = New DateTime(Anio, Mes, Dia).ToString("dd/MM/yyyy")
|
FechaFinal = New DateTime(Anio, Mes, Dia).ToString("dd/MM/yyyy")
|
||||||
|
End If
|
||||||
|
|
||||||
Case 3 ' AÑO/MES
|
Case 3 ' AÑO/MES
|
||||||
Dim FechaIRef As DateTime = FechaI.ToDateTime()
|
Dim FechaIRef As DateTime = FechaI.ToDateTime()
|
||||||
Dim FechaFRef As DateTime = FechaF.ToDateTime()
|
Dim FechaFRef As DateTime = FechaF.ToDateTime()
|
||||||
|
|
||||||
Dim Anio As Integer = e.Row.DBCampo("Anio").ToEntero()
|
Dim separator As Char = "/".ToCharArray().FirstOrDefault()
|
||||||
Dim Mes As Integer = e.Row.DBCampo("Mes").ToEntero()
|
Dim AnioMes = e.Row.DBCampo("AnioMes").Split(separator)
|
||||||
|
|
||||||
|
Dim Anio As Integer = AnioMes(0).ToEntero()
|
||||||
|
Dim Mes As Integer = AnioMes(1).ToEntero()
|
||||||
|
|
||||||
|
If Anio > 0 AndAlso Mes > 0 Then
|
||||||
Dim lastDayOfMonth = DateTime.DaysInMonth(Anio, Mes)
|
Dim lastDayOfMonth = DateTime.DaysInMonth(Anio, Mes)
|
||||||
|
|
||||||
Dim Dia As Integer = FechaFRef.Day
|
Dim Dia As Integer = FechaFRef.Day
|
||||||
@@ -462,6 +470,8 @@ Partial Class Ventas_RepVentas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
FechaFinal = New DateTime(Anio, Mes, Dia).ToString("dd/MM/yyyy")
|
FechaFinal = New DateTime(Anio, Mes, Dia).ToString("dd/MM/yyyy")
|
||||||
|
End If
|
||||||
|
|
||||||
Case 4 ' FECHA
|
Case 4 ' FECHA
|
||||||
FechaInicial = e.Row.DBCampo("Fecha").ToDateTime().ToString("dd/MM/yyyy")
|
FechaInicial = e.Row.DBCampo("Fecha").ToDateTime().ToString("dd/MM/yyyy")
|
||||||
FechaFinal = e.Row.DBCampo("Fecha").ToDateTime().ToString("dd/MM/yyyy")
|
FechaFinal = e.Row.DBCampo("Fecha").ToDateTime().ToString("dd/MM/yyyy")
|
||||||
|
|||||||
Reference in New Issue
Block a user