From 67e487f971f64bb733a40137af5678876d8e55e6 Mon Sep 17 00:00:00 2001 From: rrene Date: Thu, 27 Mar 2025 11:13:24 -0700 Subject: [PATCH] -- liga ps, directa liga a ps --- Inventarios/Kardex.aspx.vb | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/Inventarios/Kardex.aspx.vb b/Inventarios/Kardex.aspx.vb index 6e4303c84..5b031227a 100644 --- a/Inventarios/Kardex.aspx.vb +++ b/Inventarios/Kardex.aspx.vb @@ -312,38 +312,28 @@ Partial Class Inventarios_Kardex GvM.DataSource = DtTemp GvM.DataBind() UpAcciones.Update() - End If If UsuarioActual.CveEmpresa <> 119 Then - - Dim drPs As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS).FiltroPrimero("", "") + Dim drPs As DataRow = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CvePS:=CvePS).FiltroPrimero("", "") If drPs IsNot Nothing Then Dim NumeroParte As String = drPs("NumeroParte").ToString - Dim Codigo As String = drPs("Codigo").ToString - Dim PS As String = drPs("PS").ToString - + Dim PS As String = drPs("PSCodigo").ToString + LblNumeroParte.Visible = True If NumeroParte.Trim.Length > 0 Then If UsuarioActual.TienePermisoPagina(13) Then - LblNumeroParte.Text = $" Producto: {Codigo} - {NumeroParte} - {PS}" + LblNumeroParte.Text = $" Producto: {NumeroParte} - {PS}" Else LblNumeroParte.Text = $" Producto: {NumeroParte}" End If - LblNumeroParte.Visible = True + End If End If - - - End If - - - Else Alert("Seleccione un producto.", TipoMensaje.MsgAdvertencia) End If - UpNumeroParte.Update() End Sub