From 37e3dd63bd2357e03fdb8089fffe0330afdcda04 Mon Sep 17 00:00:00 2001 From: rakcsle Date: Thu, 9 Jan 2025 09:10:12 -0700 Subject: [PATCH] =?UTF-8?q?Kardex=20correci=C3=B3n=20numero=20de=20parte?= =?UTF-8?q?=20cuando=20se=20llega=20desde=20=20link,=20=20OC=20mostrar=20l?= =?UTF-8?q?iga=20de=20impreison=20al=20actualizar=20oc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inventarios/Kardex.aspx | 25 ++++++++++++++++++++----- Inventarios/Kardex.aspx.vb | 19 +++++++++++++++++++ OC/OC.aspx.vb | 8 +++++++- 3 files changed, 46 insertions(+), 6 deletions(-) diff --git a/Inventarios/Kardex.aspx b/Inventarios/Kardex.aspx index e57cb50bc..33d5bf72d 100644 --- a/Inventarios/Kardex.aspx +++ b/Inventarios/Kardex.aspx @@ -172,7 +172,8 @@
Producto:
- +
@@ -416,12 +417,26 @@ - -
- " style="display: inline-block; margin-right: -20px; width: 150px;" /> - " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> +
+
+ + + + + + +
+
+
+ " style="display: inline-block; margin-right: -20px; width: 150px;" /> + " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"> +
+
+ + + 0 Then Dim DtTemp = CargarKardex(CvePS) @@ -286,6 +288,20 @@ Partial Class Inventarios_Kardex GvM.DataBind() UpAcciones.Update() End If + + + + + If CvePS > 0 Then + Dim NumeroParte As String = GlobalDTPS(UsuarioActual.CveEmpresa, ddlProducto2.SelectedValue.ToEntero).FiltroPrimeroValor("NumeroParte") + If NumeroParte.Trim.Length > 0 Then + LblNumeroParte.Text = $" Número de Parte: {NumeroParte}" + LblNumeroParte.Visible = True + End If + End If + + UpNumeroParte.Update() + Else Alert("Seleccione un producto.", TipoMensaje.MsgAdvertencia) End If @@ -809,11 +825,14 @@ Partial Class Inventarios_Kardex Protected Sub ddlProducto2_selectedindexchange(sender As Object, e As EventArgs) + LnkKPIVerComportamiento.Visible = False If ddlProducto2.SelectedValue.ToEntero > 0 And UsuarioActual.CveRol = 1 Then LnkKPIVerComportamiento.Visible = True End If UpAcciones.Update() + + End Sub End Class diff --git a/OC/OC.aspx.vb b/OC/OC.aspx.vb index 4485b59c0..4b1cda15a 100644 --- a/OC/OC.aspx.vb +++ b/OC/OC.aspx.vb @@ -3527,9 +3527,14 @@ Partial Class OC_OC 'Alert(String.Format("La {0} se guardó correctamente", TipoLargo), TipoMensaje.MsgInformacion) 'Edicion + Dim ImprimirOC As String = "" + Dim Msg As New StringBuilder + ImprimirOC = String.Format("
Imprimir Orden de Compra ", Encripta(String.Format("OP=OC&CVEOC={0}", CveOrdenCompra))) + + Dim Liga1 As String = $"document.location.href=""/OC/OC.aspx?Tipo={TipoOC}""" Dim Liga2 As String = $"document.location.href=""/OC/RepOC.aspx""" - Alert(String.Format("La {0} se guardó correctamente", TipoLargo), TipoMensaje.MsgDosBotones, Liga1, TextoConfirmacion:="Seguir Registrando", TextoSegundoBoton:="Ir al Reporte", JSBtn2:=Liga2) + Alert(String.Format("La {0} se guardó correctamente. {1}", TipoLargo, ImprimirOC), TipoMensaje.MsgDosBotones, Liga1, TextoConfirmacion:="Seguir Registrando", TextoSegundoBoton:="Ir al Reporte", JSBtn2:=Liga2) Else Dim ImprimirOC As String = "" @@ -3562,6 +3567,7 @@ Partial Class OC_OC If Conta IsNot Nothing Then Conta.RollBack() Alert(MsgError, TipoMensaje.MsgError) End If + End If