Page 89

89

End Sub Private Sub txtclave_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtclave.KeyDown If (e.KeyCode = Keys.Enter) Then Conectar() End If End Sub Private Sub FrmLogin_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing End Sub Private Sub FrmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub End Class

M贸dulo FRMConsola Imports System.IO.Ports Public Class FrmConsola Private objIns As New cInserta Private objSql As New cSql Dim codigo_vehiculoE As Integer = 0 Dim codigo_clienteE As Integer = 0 Dim codigo_vehiculoS As Integer = 0 Dim codigo_clienteS As Integer = 0 Private Sub txtPlacaE_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtPlacaE.KeyDown If (e.KeyCode = Keys.Enter) Then PasarTarjeta(txtPlacaE, txtModeloE, txtSubtipoE, txtTipoE, txtClienteE, codigo_clienteE, codigo_vehiculoE) End If End Sub Sub PasarTarjeta(ByRef txtPlaca As TextBox, ByRef txtModelo As TextBox, ByRef txtSubtipo As TextBox, ByRef txtTipo As TextBox, ByRef txtCliente As TextBox, ByRef codigo_cliente As Integer, ByRef codigo_vehiculo As Integer) Dim dt As DataTable = Nothing dt = objSql.consulta_cadena("SELECT * FROM VCON_TIPOSUBVEHCLI WHERE VEH_PLACA='" & txtPlaca.Text & "'", "VCON_TIPOSUBVEHCLI") If dt.Rows.Count > 0 Then If (Trim(dt.Rows(0).Item("CLI_ESTADO").ToString) = "A") Then codigo_cliente = Trim(dt.Rows(0).Item("CLI_COD").ToString)

Desarrollo de un software para el control automatizado del ingreso y salida de vehículos  

Disertación de Grado – ESIS – Nº 1 – 2013 – PUCE SD

Desarrollo de un software para el control automatizado del ingreso y salida de vehículos  

Disertación de Grado – ESIS – Nº 1 – 2013 – PUCE SD

Advertisement