Empresas Zona Horaria
This commit is contained in:
@@ -60,8 +60,8 @@ public partial class SAT_SolicitudesIngresoSat : ClsPaginas
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
TxtRpdFechaInicio.Text = string.Format("01/{0:MM/yyyy}", DateTime.Now.AddMonths(-1));
|
||||
TxtRpdFechaFin.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddMonths(-1).LastDayOfMonth());
|
||||
TxtRpdFechaInicio.Text = string.Format("01/{0:MM/yyyy}", NowADS().AddMonths(-1));
|
||||
TxtRpdFechaFin.Text = string.Format("{0:dd/MM/yyyy}", NowADS().AddMonths(-1).LastDayOfMonth());
|
||||
LnkConsultar_Click(null, null);
|
||||
|
||||
//if (UsuarioActual.CveRol == 1)
|
||||
@@ -77,12 +77,12 @@ public partial class SAT_SolicitudesIngresoSat : ClsPaginas
|
||||
{
|
||||
if (TipoDescarga == 1)
|
||||
{
|
||||
GvResumen.ExportToExcel2($"Resumen{DateTime.Now.ToString("yyyyMMddhhmmss")}");
|
||||
GvResumen.ExportToExcel2($"Resumen{NowADS().ToString("yyyyMMddhhmmss")}");
|
||||
}
|
||||
|
||||
if (TipoDescarga == 2)
|
||||
{
|
||||
GvDatos.ExportToExcel2($"PorComprobante{DateTime.Now.ToString("yyyyMMddhhmmss")}");
|
||||
GvDatos.ExportToExcel2($"PorComprobante{NowADS().ToString("yyyyMMddhhmmss")}");
|
||||
}
|
||||
}
|
||||
protected void LnkConsultar_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -50,8 +50,8 @@ public partial class SAT_SolicitudesNominaSat : ClsPaginas
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
TxtRpdFechaInicio.Text = string.Format("01/{0:MM/yyyy}", DateTime.Now.AddMonths(-1));
|
||||
TxtRpdFechaFin.Text = string.Format("{0:dd/MM/yyyy}", DateTime.Now.AddMonths(-1).LastDayOfMonth());
|
||||
TxtRpdFechaInicio.Text = string.Format("01/{0:MM/yyyy}", NowADS().AddMonths(-1));
|
||||
TxtRpdFechaFin.Text = string.Format("{0:dd/MM/yyyy}", NowADS().AddMonths(-1).LastDayOfMonth());
|
||||
//LnkConsultar_Click(null, null);
|
||||
}
|
||||
}
|
||||
@@ -111,8 +111,8 @@ public partial class SAT_SolicitudesNominaSat : ClsPaginas
|
||||
libro.Range(1, 2, 1, 6).Merge().Value = UsuarioActual.Empresa.Empresa;
|
||||
libro.Range(2, 2, 2, 6).Merge().Value = $"Reporte de {DdlReporte.SelectedItem.Text }";
|
||||
libro.Range(3, 2, 3, 6).Merge().Value = $"del {fechaInicio.ToDateTime():dd/MM/yyyy} al {fechaFin.ToDateTime():dd/MM/yyyy}";
|
||||
libro.Range(2, 7, 2, 9).Merge().Value = $"Fecha:{DateTime.Now:dd/MM/yyyy}";
|
||||
libro.Range(3, 7, 3, 9).Merge().Value = $"Hora:{DateTime.Now:HH:mm}";
|
||||
libro.Range(2, 7, 2, 9).Merge().Value = $"Fecha:{NowADS():dd/MM/yyyy}";
|
||||
libro.Range(3, 7, 3, 9).Merge().Value = $"Hora:{NowADS():HH:mm}";
|
||||
|
||||
System.IO.Stream fs = new System.IO.MemoryStream();
|
||||
wb.SaveAs(fs);
|
||||
|
||||
@@ -61,8 +61,8 @@ Partial Class SAT_SolicitudesRecibidasSAT
|
||||
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
TxtRpdFechaInicio.Text = String.Format("01/{0:MM/yyyy}", DateTime.Now.AddMonths(-1))
|
||||
TxtRpdFechaFin.Text = String.Format("{0:dd/MM/yyyy}", DateTime.Now.AddMonths(-1).LastDayOfMonth())
|
||||
TxtRpdFechaInicio.Text = String.Format("01/{0:MM/yyyy}", NowADS().AddMonths(-1))
|
||||
TxtRpdFechaFin.Text = String.Format("{0:dd/MM/yyyy}", NowADS().AddMonths(-1).LastDayOfMonth())
|
||||
End If
|
||||
|
||||
End Sub
|
||||
@@ -70,11 +70,11 @@ Partial Class SAT_SolicitudesRecibidasSAT
|
||||
|
||||
Protected Sub LnkDownloadExcel_Click(sender As Object, e As EventArgs)
|
||||
If TipoDescarga = 1 Then
|
||||
GvResumen.ExportToExcel2($"Resumen{DateTime.Now.ToString("yyyyMMddhhmmss")}")
|
||||
GvResumen.ExportToExcel2($"Resumen{NowADS().ToString("yyyyMMddhhmmss")}")
|
||||
End If
|
||||
|
||||
If TipoDescarga = 2 Then
|
||||
GvDatos.ExportToExcel2($"PorComprobante{DateTime.Now.ToString("yyyyMMddhhmmss")}")
|
||||
GvDatos.ExportToExcel2($"PorComprobante{NowADS().ToString("yyyyMMddhhmmss")}")
|
||||
End If
|
||||
End Sub
|
||||
Protected Sub GvResumen_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
|
||||
|
||||
Reference in New Issue
Block a user