Empresas Zona Horaria
This commit is contained in:
@@ -71,8 +71,8 @@ Partial Class AC_RepVariacionHaciendaPublica
|
||||
If Not Page.IsPostBack Then
|
||||
If UsuarioActual.Empresa.UsaAC Then
|
||||
|
||||
TxtFechaDel.Text = DateSerial(Year(Now), Month(Now), 1).ToShortDateString
|
||||
TxtFechaAl.Text = Date.Now.ToShortDateString
|
||||
TxtFechaDel.Text = DateSerial(Year(NowADS()), Month(NowADS()), 1).ToShortDateString
|
||||
TxtFechaAl.Text = NowADS().ToShortDateString
|
||||
|
||||
CargaDatos()
|
||||
|
||||
@@ -88,8 +88,8 @@ Partial Class AC_RepVariacionHaciendaPublica
|
||||
Private Sub CargaDatos()
|
||||
Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
|
||||
|
||||
Dim FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", Date.Now, TxtFechaDel.Text.ToDate)
|
||||
Dim FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", Date.Now, TxtFechaAl.Text.ToDate)
|
||||
Dim FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", NowADS(), TxtFechaDel.Text.ToDate)
|
||||
Dim FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", NowADS(), TxtFechaAl.Text.ToDate)
|
||||
|
||||
FechaDel = TxtFechaDel.Text
|
||||
FechaAl = TxtFechaAl.Text
|
||||
@@ -366,7 +366,7 @@ Partial Class AC_RepVariacionHaciendaPublica
|
||||
'End Sub
|
||||
|
||||
Protected Sub ImgExcel_Click(sender As Object, e As EventArgs) Handles ImgExcel.Click
|
||||
'GvDatos.ExportToExcel("123456" & Now.ToShortDateString)
|
||||
'GvDatos.ExportToExcel("123456" & NowADS().ToShortDateString)
|
||||
If Not IsNothing(DtDatos) Then
|
||||
ImprimirReporte("Excel") 'Descarga reporte en Excel
|
||||
Else
|
||||
|
||||
Reference in New Issue
Block a user