retro 3 Comp: Bug de numero de parte en Kardex, tambien poner liga al PS desde el numero de parte, siempre y cuando tengas permiso para PS
This commit is contained in:
@@ -287,21 +287,34 @@ Partial Class Inventarios_Kardex
|
|||||||
GvM.DataSource = DtTemp
|
GvM.DataSource = DtTemp
|
||||||
GvM.DataBind()
|
GvM.DataBind()
|
||||||
UpAcciones.Update()
|
UpAcciones.Update()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim NumeroParte As String = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS).FiltroPrimeroValor("NumeroParte")
|
If UsuarioActual.CveEmpresa <> 119 Then
|
||||||
If NumeroParte.Trim.Length > 0 Then
|
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoPagina(13) Then
|
Dim drPs As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS).FiltroPrimero("", "")
|
||||||
LblNumeroParte.Text = $" Número de Parte: <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{NumeroParte}</a>"
|
|
||||||
Else
|
If drPs IsNot Nothing Then
|
||||||
LblNumeroParte.Text = $" Número de Parte: {NumeroParte}"
|
Dim NumeroParte As String = drPs("NumeroParte").ToString
|
||||||
|
Dim Codigo As String = drPs("Codigo").ToString
|
||||||
|
Dim PS As String = drPs("PS").ToString
|
||||||
|
|
||||||
|
If NumeroParte.Trim.Length > 0 Then
|
||||||
|
If UsuarioActual.TienePermisoPagina(13) Then
|
||||||
|
LblNumeroParte.Text = $" Número de Parte: <a href='../Ventas/ProductosServicios.aspx?CvePS={CvePS}' class='Texto' target='_blank' >{NumeroParte} - {Codigo} - {PS}</a>"
|
||||||
|
Else
|
||||||
|
LblNumeroParte.Text = $" Número de Parte: {NumeroParte}"
|
||||||
|
End If
|
||||||
|
LblNumeroParte.Visible = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
LblNumeroParte.Visible = True
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Alert("Seleccione un producto.", TipoMensaje.MsgAdvertencia)
|
Alert("Seleccione un producto.", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user