Empresas Zona Horaria
This commit is contained in:
@@ -35,11 +35,11 @@ Partial Class Acumuladores_RepEntradasUsados
|
||||
End Sub
|
||||
|
||||
Protected Sub CargarCombos()
|
||||
Dim fecha As Date = Date.Now.AddMonths(-1)
|
||||
Dim fecha As Date = NowADS().AddMonths(-1)
|
||||
Dim Años As New ListItem
|
||||
Dim i As Integer
|
||||
If Cargado = 0 Then
|
||||
For i = Date.Now.Year.ToEntero To (fecha.Year.ToEntero - 5) Step -1
|
||||
For i = NowADS().Year.ToEntero To (fecha.Year.ToEntero - 5) Step -1
|
||||
Años = New ListItem(i.ToString, i.ToString)
|
||||
DdlAño.Items.Add(Años)
|
||||
Next
|
||||
@@ -85,7 +85,7 @@ Partial Class Acumuladores_RepEntradasUsados
|
||||
Dim params As New List(Of ReportParameter)
|
||||
|
||||
params.Add(New ReportParameter("Direccion", Direccion))
|
||||
params.Add(New ReportParameter("FechaConFormato", Date.Now.ToString))
|
||||
params.Add(New ReportParameter("FechaConFormato", NowADS().ToString))
|
||||
params.Add(New ReportParameter("FechaInicial", txtFechaI.Text))
|
||||
params.Add(New ReportParameter("FechaFinal", txtFechaF.Text))
|
||||
params.Add(New ReportParameter("Sucursal", "Sucursal"))
|
||||
|
||||
@@ -17,7 +17,7 @@ public partial class Acumuladores_RepAcumuladoresVigencia : ClsPaginas
|
||||
{
|
||||
if (Consultado)
|
||||
{
|
||||
GvAcum.ExportToExcelG("RepAcumuladoresVigencia " + DateTime.Now.ToString("dd-MM-yyyy"), "Reporte de Vigencia de Acumuladores", UsuarioActual);
|
||||
GvAcum.ExportToExcelG("RepAcumuladoresVigencia " + NowADS().ToString("dd-MM-yyyy"), "Reporte de Vigencia de Acumuladores", UsuarioActual);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -53,8 +53,8 @@ public partial class Acumuladores_RepAcumuladoresVigencia : ClsPaginas
|
||||
{
|
||||
Consultado = false;
|
||||
CargaCombos();
|
||||
txtFechaI.Text = DateTime.Now.FirstDayOfMonth().AddMonths(-24).ToShortDateString();
|
||||
txtFechaF.Text = DateTime.Now.LastDayOfMonth().AddMonths(-6).ToShortDateString();
|
||||
txtFechaI.Text = NowADS().FirstDayOfMonth().AddMonths(-24).ToShortDateString();
|
||||
txtFechaF.Text = NowADS().LastDayOfMonth().AddMonths(-6).ToShortDateString();
|
||||
UpFiltros.Update();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ Partial Class Acumuladores_RepEntradasUsadosClientes
|
||||
DdlAlmacen.DataBind()
|
||||
DdlAlmacen.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||
|
||||
TxtFechaI.Text = Now.FirstDayOfMonth.ToShortDateString
|
||||
TxtFechaF.text = now.toshortdatestring
|
||||
TxtFechaI.Text = NowADS().FirstDayOfMonth.ToShortDateString
|
||||
TxtFechaF.text = NowADS().toshortdatestring
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
@@ -63,8 +63,8 @@ Partial Class ACumuladores_RepIndicadorDiario
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
|
||||
txtFechaI.Text = Now.FirstDayOfMonth().ToString("dd/MM/yyyy")
|
||||
txtFechaF.Text = Now.ToString("dd/MM/yyyy")
|
||||
txtFechaI.Text = NowADS().FirstDayOfMonth().ToString("dd/MM/yyyy")
|
||||
txtFechaF.Text = NowADS().ToString("dd/MM/yyyy")
|
||||
|
||||
CargaCombos()
|
||||
|
||||
@@ -119,7 +119,7 @@ Partial Class ACumuladores_RepIndicadorDiario
|
||||
If RblTipoCambio.SelectedValue.ToEntero = 3 Then
|
||||
Dim TipoCambio As Double
|
||||
LiEspecifico.Visible = True
|
||||
TipoCambio = GlobalTipoCambio(Now)
|
||||
TipoCambio = GlobalTipoCambio(NowADS())
|
||||
TxtEspecifico.Text = TipoCambio.ToString
|
||||
Else
|
||||
LiEspecifico.Visible = False
|
||||
@@ -162,7 +162,7 @@ Partial Class ACumuladores_RepIndicadorDiario
|
||||
#Region " IMPRIMIR "
|
||||
|
||||
Protected Sub LnkExportar_Click(sender As Object, e As EventArgs) Handles LnkExportar.Click
|
||||
'GvDatos.ExportToExcel("ReporteComprasClasificacion" & Now.ToShortDateString)
|
||||
'GvDatos.ExportToExcel("ReporteComprasClasificacion" & NowADS().ToShortDateString)
|
||||
GenerarPDF("EXCEL")
|
||||
End Sub
|
||||
|
||||
@@ -193,11 +193,11 @@ Partial Class ACumuladores_RepIndicadorDiario
|
||||
params.Add(New ReportParameter("FechaInicio", FechaI))
|
||||
params.Add(New ReportParameter("FechaFin", FechaF))
|
||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||
params.Add(New ReportParameter("FechaImpresion", Now.ToString))
|
||||
params.Add(New ReportParameter("FechaImpresion", NowADS().ToString))
|
||||
params.Add(New ReportParameter("AgrupadoPor", $"<b>Filtros Por:</b> {FechaIn} {FechaFn} {SubProyecto} "))
|
||||
|
||||
params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
|
||||
ImprimirPDF("Empresas/Grales/Formatos/RepIndicadorDiario.rdlc", DtDatos, params, $"RepIndicadorDiario_{Now.ToString("yyyyMMddhhmmss")}", Opcion)
|
||||
ImprimirPDF("Empresas/Grales/Formatos/RepIndicadorDiario.rdlc", DtDatos, params, $"RepIndicadorDiario_{NowADS().ToString("yyyyMMddhhmmss")}", Opcion)
|
||||
Else
|
||||
Alert("No hay datos consultados", TipoMensaje.MsgAdvertencia)
|
||||
End If
|
||||
|
||||
@@ -13,7 +13,7 @@ Partial Class Acumuladores_RepPolizasVirtuales
|
||||
Private Sub CargaCombos()
|
||||
|
||||
CargarCentrosDeCosto(Nothing, DdlSubProyecto, Nothing, LblSubProyecto:=LblSubProyecto)
|
||||
txtFechaI.Text = DateTime.Now.FirstDayOfMonth.ToShortDateString()
|
||||
txtFechaI.Text = NowADS().FirstDayOfMonth.ToShortDateString()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ public partial class Ventas_RepUsados : ClsPaginas
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InicializaValores();
|
||||
}
|
||||
InicializaValores();
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
Reference in New Issue
Block a user