Empresas Zona Horaria

This commit is contained in:
rakcsle
2023-10-09 11:54:42 -07:00
parent 2df7c3976c
commit f43b7759a8
649 changed files with 11445 additions and 11105 deletions

View File

@@ -42,7 +42,7 @@ Partial Class RH_CatPersonal
HplAddVenta.Visible = False
End If
LnkAddPersonalSimplificado.Visible = Not HplAddVenta.Visible
TxtFechaIngreso.Text = String.Format("{0:dd/MM/yyyy}", DateTime.Now)
TxtFechaIngreso.Text = String.Format("{0:dd/MM/yyyy}", NowADS())
ViewState("Orden") = ""
CargaEscolaridad()
CargaEstadoCivil()
@@ -688,7 +688,7 @@ Partial Class RH_CatPersonal
'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("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
ImprimirPDF("Empresas\Grales\Formatos\RepPersonal.rdlc", DTDatos, params, "ReporteTareas", Formato:=Formato)
@@ -733,7 +733,7 @@ Partial Class RH_CatPersonal
Response.Clear()
Response.AddHeader("content-disposition", $"attachment;filename=personalizado_{Now.ToString("yyyyMMddhhmmss")}.xls")
Response.AddHeader("content-disposition", $"attachment;filename=personalizado_{NowADS().ToString("yyyyMMddhhmmss")}.xls")
Response.AddHeader("Content-Length", memoryStream.Length.ToString())
Response.ContentType = "application/octet-stream"
memoryStream.WriteTo(Response.OutputStream)
@@ -1162,8 +1162,8 @@ Partial Class RH_CatPersonal
' libro.Range(1, 2, 2, 6).Style.Font.SetFontSize(16)
' libro.Range(2, 2, 2, 6).Style.Font.SetFontSize(14)
' libro.Range(1, 2, 2, 6).Style.Alignment.Horizontal = ClosedXML.Excel.XLAlignmentHorizontalValues.Center
' libro.Range(2, 7, 2, 9).Merge().Value = $"Fecha:{DateTime.Now}"
' libro.Range(3, 7, 3, 9).Merge().Value = $"Hora:{DateTime.Now}"
' libro.Range(2, 7, 2, 9).Merge().Value = $"Fecha:{NowADS()}"
' libro.Range(3, 7, 3, 9).Merge().Value = $"Hora:{NowADS()}"
' End If
'End Using
End Sub