Personal solicitud vacaiones correcion días feriados
This commit is contained in:
@@ -7847,7 +7847,7 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
Dim DiasAgregados As Integer = 0
|
Dim DiasAgregados As Integer = 0
|
||||||
Dim FechaFin As Date = fechaInicio
|
Dim FechaFin As Date = fechaInicio
|
||||||
|
Dim Contador As Integer = 0
|
||||||
For x = 2 To diasVacaciones
|
For x = 2 To diasVacaciones
|
||||||
Dim day_of_week = CType(FechaFin.DayOfWeek, Integer) + 1
|
Dim day_of_week = CType(FechaFin.DayOfWeek, Integer) + 1
|
||||||
If day_of_week = diaDescanso Then
|
If day_of_week = diaDescanso Then
|
||||||
@@ -7856,12 +7856,13 @@ Partial Class RH_Personal
|
|||||||
Else
|
Else
|
||||||
FechaFin = FechaFin.AddDays(1)
|
FechaFin = FechaFin.AddDays(1)
|
||||||
day_of_week = CType(FechaFin.DayOfWeek, Integer) + 1
|
day_of_week = CType(FechaFin.DayOfWeek, Integer) + 1
|
||||||
If day_of_week = diaDescanso Then
|
If (diasVacaciones = Contador + 2) AndAlso day_of_week = diaDescanso Then
|
||||||
|
FechaFin = FechaFin.AddDays(1)
|
||||||
DiasAgregados = DiasAgregados + 1
|
DiasAgregados = DiasAgregados + 1
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
Contador = Contador + 1
|
||||||
Next
|
Next
|
||||||
|
|
||||||
TxtFechaFinVac.Text = FechaFin.ToString
|
TxtFechaFinVac.Text = FechaFin.ToString
|
||||||
|
|||||||
Reference in New Issue
Block a user