-- agregado con opción acumulado o mes seleccionado

This commit is contained in:
2023-08-16 18:14:59 -07:00
parent c5fdbdcdbe
commit 770144a9ae
2 changed files with 8 additions and 2 deletions

View File

@@ -127,6 +127,9 @@
<asp:ListItem Text="1,000,000" Value="1000000"></asp:ListItem>
</asp:DropDownList>
</div>
<div class="col-md-2 ">
<asp:CheckBox ID="ChkAcumulados" Text="Acumulados" runat="server" />
</div>
<label class="col-md-1 truncate" runat="server" id="LblTri">
Trimestre

View File

@@ -1960,8 +1960,11 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
Private Sub CargaDatosSubProyectoH()
FechaIMes = $"01/01/{DdlEjercicio.SelectedValue}"
If ChkAcumulados.Checked Then
FechaIMes = $"01/01/{DdlEjercicio.SelectedValue}"
Else
FechaIMes = $"01/{DdlPeriodo.SelectedValue.ToEntero.ToString("00")}/{DdlEjercicio.SelectedValue}"
End If
FechaFMes = $"01/{DdlPeriodo.SelectedValue.ToEntero.ToString("00")}/{DdlEjercicio.SelectedValue}"
FechaFMes = DateAdd(DateInterval.Day, -1, DateAdd(DateInterval.Month, 1, CDate(FechaFMes))).ToString("dd/MM/yyyy")