Professional Documents
Culture Documents
Guias Desarrollo Epicor
Guias Desarrollo Epicor
Imports System.Data.SqlClient
dim Conexion01 As New SqlConnection
If Conexion01.State = ConnectionState.Closed Then Conexion01.Open()
Dim SQLInv = "Select GrossWeight as Peso, UserDecimal1 as Largo from
pilot.erp.Part with(nolock) where Partnum = '" & PartNum.text & "'"
Dim dtInv as DataTable = new DataTable
Dim daInv as SQLDataAdapter = New SqlDataAdapter()
Dim cmdInv as New SQLCommand(SQLInv, Conexion01)
daInv.SelectCommand = cmdInv
daInv.Fill(dtInv)
if dtInv.rows.count = 0
'fRevInventario = "Datos incorrectos en la revision de inventario,
favor de varificar. "
if Conexion01.State <> ConnectionState.Closed then Conexion01.Close()
exit function
end if
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++
Obtener informaci�n mediante ingreso de usuario
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Proceso para utilizar un Procedimiento almacenado con retorno de Variable
Try
If Conexion01.State = ConnectionState.Closed Then Conexion01.Open()
Dim Msj = fRevInventario(JobNum, Conexion01)
if Msj <> "OK" then
msgbox(Msj, MsgBoxStyle.Critical, "ARTABAN INTERNACIONAL")
btnAsignar.Enabled = True
exit sub
end if