From 5ac821b2f319fbbbfa319e88e1b9b0878c210162 Mon Sep 17 00:00:00 2001 From: rrene Date: Mon, 18 Oct 2021 08:06:33 -0700 Subject: [PATCH 1/2] --nombre de columnas --- Inventarios/RepProductosPorCaducar.aspx | 24 +++++++--------------- Inventarios/RepProductosPorCaducar.aspx.cs | 11 +++++++++- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/Inventarios/RepProductosPorCaducar.aspx b/Inventarios/RepProductosPorCaducar.aspx index c8931cf1a..02cc54362 100644 --- a/Inventarios/RepProductosPorCaducar.aspx +++ b/Inventarios/RepProductosPorCaducar.aspx @@ -126,10 +126,7 @@
-
- - - +
@@ -153,10 +150,7 @@
-
- - - +
@@ -180,20 +174,16 @@ - - + + - - - - + + - + - - diff --git a/Inventarios/RepProductosPorCaducar.aspx.cs b/Inventarios/RepProductosPorCaducar.aspx.cs index 8187791ce..e09b90d23 100644 --- a/Inventarios/RepProductosPorCaducar.aspx.cs +++ b/Inventarios/RepProductosPorCaducar.aspx.cs @@ -50,10 +50,19 @@ public partial class Inventarios_RepProductosPorCaducar : ClsPaginas // aqui siempre se visualiza la caducidad, sin importar la condición, porque siempre se valida la caducidad ClsInventarios ObjInventarios = new ClsInventarios(); if (ObjInventarios.GetProductosCaducidad(DdlProveedor.SelectedValue.ToEntero(), FI, TxtFechaFin.Text.ToDate(), DdlSucursal.SelectedValue.ToEntero(), - DdlClasificacion.SelectedValue.ToEntero(), CvePS, 1, Cves_Alamcenes, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Opcion:DdlOpcion.SelectedValue.ToEntero())) + DdlClasificacion.SelectedValue.ToEntero(), CvePS, Cves_Alamcenes, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Opcion: DdlOpcion.SelectedValue.ToEntero())) { GvDatos.DataSource = ObjInventarios.DtResultados; DTDatos = ObjInventarios.DtResultados; + if (DdlOpcion.SelectedValue == "1") + { + GvDatos.Columns[4].HeaderText = "F.Elaboración"; + } + else + { + GvDatos.Columns[4].HeaderText = "F.Caducidad"; + } + } ObjInventarios.Dispose(); GvDatos.DataBind(); From c49c629a219ab8ed6ecd4be67570f1672db106ef Mon Sep 17 00:00:00 2001 From: rrene Date: Thu, 21 Oct 2021 16:50:57 -0700 Subject: [PATCH 2/2] resgaurdo para servec --- RH/Personal.aspx.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RH/Personal.aspx.vb b/RH/Personal.aspx.vb index 5b5a12588..7368f2b2e 100644 --- a/RH/Personal.aspx.vb +++ b/RH/Personal.aspx.vb @@ -1494,7 +1494,7 @@ Partial Class RH_Personal CargaUniformesPersonal() End If - If UsuarioActual.CveEmpresa.Contiene(1, 72, 80) Then + If UsuarioActual.CveEmpresa.Contiene(1, 72, 80, 153, 154) Then LnkSurtir.Visible = True DdlUniforme.Visible = False @@ -5296,7 +5296,7 @@ Partial Class RH_Personal Private Sub CargaUniformesPersonal() - If Not UsuarioActual.CveEmpresa.Contiene(1, 72, 80) Then + If Not UsuarioActual.CveEmpresa.Contiene(1, 72, 80, 153, 154) Then GvUniforme.Visible = True GvUniformesResguardo.Visible = False