From 3c83178c1a9527d84ae4af221b192f72c3ff24f9 Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 8 Jan 2025 07:25:42 -0700 Subject: [PATCH 1/9] - historial ancho grid --- OC/OC.aspx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OC/OC.aspx b/OC/OC.aspx index a69daf7e9..5e29f5c62 100644 --- a/OC/OC.aspx +++ b/OC/OC.aspx @@ -1948,12 +1948,12 @@
- + - + From a29ca40990c0b96b11929f0997ab5e20f597234a Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 8 Jan 2025 07:26:08 -0700 Subject: [PATCH 2/9] -- filtro de OC --- Ventas/PopUpBuscarFolio.aspx | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Ventas/PopUpBuscarFolio.aspx b/Ventas/PopUpBuscarFolio.aspx index 8e2f47994..146d13d7a 100644 --- a/Ventas/PopUpBuscarFolio.aspx +++ b/Ventas/PopUpBuscarFolio.aspx @@ -75,7 +75,7 @@ <%----%> - Vendedor: + Vendedor: @@ -165,7 +165,7 @@ - + Pedido: @@ -174,18 +174,13 @@ - - - - - - - - - + - - + +
+
+
+ From 9b9ba096fa96e94da44ac3028677e96a54eca4ab Mon Sep 17 00:00:00 2001 From: rakcsle Date: Wed, 8 Jan 2025 11:09:37 -0700 Subject: [PATCH 3/9] Liga a Kardex en Gvs OC GVPS, Compras GvInv GvInvMovtos, Ventas GvInv --- Compras/Compras.aspx | 10 ++++++- Compras/Compras.aspx.vb | 29 ++++++++++++++++++++ Empresas/189/Formatos/RepComprasDetalle.rdlc | 2 +- OC/OC.aspx | 1 + OC/OC.aspx.vb | 22 +++++++++++++++ Ventas/Ventas.aspx | 2 ++ Ventas/Ventas.aspx.vb | 20 ++++++++++++++ 7 files changed, 84 insertions(+), 2 deletions(-) diff --git a/Compras/Compras.aspx b/Compras/Compras.aspx index 660c5a22c..fff9c865e 100644 --- a/Compras/Compras.aspx +++ b/Compras/Compras.aspx @@ -1342,7 +1342,14 @@
<%--3--%> - + <%----%> + + Producto + + + + + <%--4--%> <%--5--%> @@ -1439,6 +1446,7 @@ Producto + diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb index 48d4a0c62..c5402f87d 100644 --- a/Compras/Compras.aspx.vb +++ b/Compras/Compras.aspx.vb @@ -1228,6 +1228,19 @@ Partial Class Compras_Compras End Set End Property + Private Property TienePermisoKardex As Boolean + Get + If ViewState("TienePermisoKardex") Is Nothing Then + ViewState("TienePermisoKardex") = False + End If + + Return Boolean.Parse(ViewState("TienePermisoKardex").ToString) + End Get + Set(value As Boolean) + ViewState("TienePermisoKardex") = value + End Set + End Property + Private Property CveCompraDRMC As Integer Get If ViewState("CveCompraDRMC") Is Nothing Then @@ -1246,6 +1259,7 @@ Partial Class Compras_Compras 'ImgBtnBuscarOC.Attributes.Add("data-toggle", "tooltip") 'ImgBtnBuscarOC.Attributes.Add("data-placement", "top") EsGrupoDiaz = If(UsuarioActual.Empresa.Funcionalidad(382) = "1", True, False) + TienePermisoKardex = If(UsuarioActual.TienePermisoPagina(224), True, False) CargaDatosAgregarPS() TieneAnticiposXML = False @@ -11252,6 +11266,14 @@ Partial Class Compras_Compras Protected Sub GVINV_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvInv.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then + + + If TienePermisoKardex Then + e.Row.FCLiteral("LtlPS").Visible = False + e.Row.FCHyperLink("HlPS").Visible = True + e.Row.FCHyperLink("HLPS").NavigateUrl = $"../Inventarios/Kardex.aspx?CvePS={e.Row.DataKey("CvePS")}" + End If + Dim AplicaLote As Boolean = e.Row.DBCampo("AplicaLote").ToBool Dim AplicaCaducidad As Boolean = e.Row.DBCampo("AplicaCaducidad").ToBool @@ -19619,6 +19641,13 @@ Partial Class Compras_Compras e.Row.Font.Bold = True End If Else + + If TienePermisoKardex Then + e.Row.FCLiteral("LtlPS").Visible = False + e.Row.FCHyperLink("HlPS").Visible = True + e.Row.FCHyperLink("HLPS").NavigateUrl = $"../Inventarios/Kardex.aspx?CvePS={e.Row.DataKey("CvePS")}" + End If + e.Row.Cells(3).HorizontalAlign = HorizontalAlign.Left End If End If diff --git a/Empresas/189/Formatos/RepComprasDetalle.rdlc b/Empresas/189/Formatos/RepComprasDetalle.rdlc index ea6b05964..e3229b8a4 100644 --- a/Empresas/189/Formatos/RepComprasDetalle.rdlc +++ b/Empresas/189/Formatos/RepComprasDetalle.rdlc @@ -1247,7 +1247,7 @@ - Parameters!FechaImpresion.Value + =Parameters!FechaImpresion.Value @@ -1902,7 +1903,7 @@ - =IIF(LEN(Parameters!SubProyectoEntrega.Value) > 0,"Lugar de Entrega: " + Parameters!SubProyectoEntrega.Value,"") + =IIF(LEN(Parameters!SubProyectoEntrega.Value) > 0 or LEN(Parameters!ProveedorLugar.Value) > 0,"Lugar de Entrega: " + Parameters!SubProyectoEntrega.Value,"") + + =Parameters!ProveedorLugar.Value + +