From 432fc7e10e5d15c2865b6bb02f08d25235a3940c Mon Sep 17 00:00:00 2001 From: Antonio Gonzalez Date: Wed, 25 Mar 2020 13:35:47 -0700 Subject: [PATCH] =?UTF-8?q?faltaba=20un=20metodo=20en=20clsInventarios=20y?= =?UTF-8?q?=20en=20clientes=20se=20agrego=20un=20modal=20para=20el=20pagar?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App_Code/ClsInventarios.vb | 23 ++++++++++++++++++ Ventas/Clientes.aspx | 48 ++++++++++++++++++++++++++++++++++---- Ventas/Clientes.aspx.vb | 41 +++++++++++++++++++++++++------- 3 files changed, 99 insertions(+), 13 deletions(-) diff --git a/App_Code/ClsInventarios.vb b/App_Code/ClsInventarios.vb index 0d59da612..4cacc834a 100644 --- a/App_Code/ClsInventarios.vb +++ b/App_Code/ClsInventarios.vb @@ -4899,6 +4899,29 @@ Public Class ClsInventarios Return Retorno End Function #End Region + + Public Function GetExistenciasMedRin(CvePS As Integer, CveEmpresa As Integer, CveRinTamaño As Integer, CveMedida As Integer) As Boolean + Dim Retorno As Boolean = False + DataAdapter("PA_Inv_ExistenciaMedRinGet") + + With SqlAdapter.SelectCommand.Parameters + .Add("@CvePS", SqlDbType.Int).Value = CvePS + .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa + .Add("@CveRinTamaño", SqlDbType.Int).Value = CveRinTamaño + .Add("@CveMedida", SqlDbType.Int).Value = CveMedida + End With + + Try + SqlAdapter.Fill(Data) + Retorno = True + Catch Ex1 As SqlException + Me.OnError("Ocurrió un error al obtener las existencias.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + Catch ex As Exception + OnError("Ocurrió un error al obtener las existencias.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End Try + + Return Retorno + End Function #Region " IDisposable Support " ' IDisposable Protected Overridable Sub Dispose(ByVal disposing As Boolean) diff --git a/Ventas/Clientes.aspx b/Ventas/Clientes.aspx index b45f97221..5c4cc70ee 100644 --- a/Ventas/Clientes.aspx +++ b/Ventas/Clientes.aspx @@ -840,7 +840,7 @@
- @@ -848,7 +848,7 @@ - +
@@ -1075,8 +1075,8 @@ - - + + @@ -4283,7 +4283,45 @@
- +