Empresas Zona Horaria
This commit is contained in:
@@ -233,7 +233,7 @@ Partial Class RepCxCDetalle
|
||||
ChkCuentaContableReferencia.Visible = True
|
||||
End If
|
||||
CargaAsignarCobranza()
|
||||
TxtFechaCobranza.Text = Now.ToShortDateString
|
||||
TxtFechaCobranza.Text = NowADS().ToShortDateString
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||
DVCartera.Visible = True
|
||||
@@ -248,7 +248,7 @@ Partial Class RepCxCDetalle
|
||||
Dim CveCliente, CveVendedor, CveUsuario, CveSubProyecto,
|
||||
CveEstatus, CveResponsable, CveAgrupador, CveClienteClasificacion As Integer
|
||||
|
||||
txtFechaF.Text = Now.LastDayOfMonth.ToShortDateString
|
||||
txtFechaF.Text = NowADS().LastDayOfMonth.ToShortDateString
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(105) = "1" Then
|
||||
DdlClientesWS.setEsWebService(True)
|
||||
@@ -293,7 +293,7 @@ Partial Class RepCxCDetalle
|
||||
FechaF = If(Request("FechaF") IsNot Nothing, Request("FechaF").ToString, "-1").ToString
|
||||
FechaVI = If(Request("FechaVI") IsNot Nothing, Request("FechaVI").ToString, "-1").ToString
|
||||
FechaVF = If(Request("FechaVF") IsNot Nothing, Request("FechaVF").ToString, "-1").ToString
|
||||
FechaCorte = IfNull(Request("FechaCorte"), Now.ToDate.ToString).ToString
|
||||
FechaCorte = IfNull(Request("FechaCorte"), NowADS().ToDate.ToString).ToString
|
||||
CveCobranzaEstatus = If(Request("CveCobranzaEstatus") IsNot Nothing, Request("CveCobranzaEstatus").ToString, "-1").ToString.ToEntero
|
||||
CveClienteClasificacion = If(Request("CveClienteClasificacion") IsNot Nothing, Request("CveClienteClasificacion").ToString, "-1").ToString.ToEntero
|
||||
LimiteCredito = If(Request("LimiteCredito") IsNot Nothing, Request("LimiteCredito").ToString, "-1").ToString.ToDecimal
|
||||
@@ -321,7 +321,7 @@ Partial Class RepCxCDetalle
|
||||
txtFechaF.Text = Fecha
|
||||
End If
|
||||
|
||||
txtCorteA.Text = $"31/12/{Now.Year}"
|
||||
txtCorteA.Text = $"31/12/{NowADS().Year}"
|
||||
|
||||
txtFechaI.Text = If(Anio <> -1, String.Format("01/01/{0}", Anio), txtFechaI.Text)
|
||||
txtFechaI.Text = If(Mes <> -1, txtFechaI.Text, txtFechaI.Text)
|
||||
@@ -393,7 +393,7 @@ Partial Class RepCxCDetalle
|
||||
Else
|
||||
Dim TipoCambio As Double
|
||||
LiEspecifico.Visible = True
|
||||
TipoCambio = GlobalTipoCambio(Now)
|
||||
TipoCambio = GlobalTipoCambio(NowADS())
|
||||
TxtEspecifico.Text = TipoCambio.ToString
|
||||
End If
|
||||
End If
|
||||
@@ -1011,7 +1011,7 @@ Partial Class RepCxCDetalle
|
||||
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.ToDateTime.ToShortDateString))
|
||||
params.Add(New ReportParameter("FechaImpresion", NowADS().ToDateTime.ToShortDateString))
|
||||
params.Add(New ReportParameter("AgrupadoPor", $"{Cliente}{Sucursal}{Grupo}{Vendedor}{FechaIn}{FechaFn}{Registro}{Responsable}{TipoDocto}{EstatusCob}{FVI}{FVF}{ClasificacionCli}{CorteA}"))
|
||||
params.Add(New ReportParameter("TituloReporte", TituloReporte))
|
||||
|
||||
@@ -1063,7 +1063,7 @@ Partial Class RepCxCDetalle
|
||||
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
|
||||
@@ -1290,7 +1290,7 @@ Partial Class RepCxCDetalle
|
||||
worksheet.Rows(IndexEndTable + 1).Cells(1).Value = Usuario.Nombre
|
||||
|
||||
worksheet.Rows(IndexEndTable).Cells(3).Value = "Fecha Impresión"
|
||||
worksheet.Rows(IndexEndTable + 1).Cells(3).Value = DateTime.Now.ToString("dd/MM/yyyy")
|
||||
worksheet.Rows(IndexEndTable + 1).Cells(3).Value = NowADS().ToString("dd/MM/yyyy")
|
||||
|
||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", Usuario.Empresa.Ruta))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user