0% found this document useful (0 votes)
79 views8 pages

Colegio Nacional de Educacion Profesional Tecnica Conalep 1

This document contains the code for several classes that make up a Visual Basic .NET application for managing employee, supplier, and inventory data. The classes include forms for logging in, navigating between forms, and viewing/editing data in databases tables for employees, suppliers, and inventory items. The code handles events like loading forms, navigating between forms, and saving data changes.

Uploaded by

Diego Go Pelusa
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views8 pages

Colegio Nacional de Educacion Profesional Tecnica Conalep 1

This document contains the code for several classes that make up a Visual Basic .NET application for managing employee, supplier, and inventory data. The classes include forms for logging in, navigating between forms, and viewing/editing data in databases tables for employees, suppliers, and inventory items. The code handles events like loading forms, navigating between forms, and saving data changes.

Uploaded by

Diego Go Pelusa
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

COLEGIO NACIONAL DE EDUCACION PROFESIONAL TECNICA

CONALEP 1

Diego Eduardo Ramírez Alatriste

6102

080260117-9

Elaboración y mantenimiento de sistemas de información

PRACTICA 4:

Interfaces y pantallas

FECHA: 30/02/11
Public Class frmEmpleados
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label2.Click
End Sub
Private Sub frmEmpleados_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load
Dim strConexion As String =
"Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=coppel.mdb"
Dim strSQL As String = "SELECT * FROM Empleados"
Dim dataAdapter As New OleDb.OleDbDataAdapter()
End Sub
Private Sub Entrar_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click)
MsgBox("iniciaste sesion")
txtNombredelempleado.Text = ""
txtNumerodelempleado.Text = ""
Me.Hide()
Form2.Show()
End Sub
Private Sub txtNombredelempleado_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
txtNombredelempleado.TextChanged)
End Sub
Private Sub txtNumerodelempleado_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
txtNumerodelempleado.TextChanged
End Sub
End Class
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Me.Hide()
Altas.Show()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles Button2.Click
Me.Hide()
Form5.Show()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Sistema.Click
Me.Hide()
frmMercancia.Show()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button4.Click
End
End Sub
End Class
Public Class Form5
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Form6.Show()
Me.Hide()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
Form7.Show()
Me.Hide()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
Form8.Show()
Me.Hide()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button4.Click
Form2.Show()
Me.Hide()
End Sub
End Class

Public Class Altas


Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: esta línea de código carga datos en la tabla
'Coppel1DataSet.Empleados' Puede moverla o quitarla según sea
necesario.
Me.EmpleadosTableAdapter.Fill(Me.Coppel1DataSet.Empleados)
'TODO: esta línea de código carga datos en la tabla
'Coppel1DataSet.Mercancia' Puede moverla o quitarla según sea
necesario.
Me.MercanciaTableAdapter.Fill(Me.Coppel1DataSet.Mercancia)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
Me.Hide()
Form2.Show()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
End
End Sub
Private Sub MercanciaDataGridView_CellContentClick_1(ByVal sender
As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles
MercanciaDataGridView.CellContentClick
End Sub
End Class

Public Class frmMercancia


Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: esta línea de código carga datos en la tabla
'Coppel1DataSet.Mercancia' Puede moverla o quitarla según sea
necesario.
Me.MercanciaTableAdapter.Fill(Me.Coppel1DataSet.Mercancia)
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles Button1.Click
Me.Hide()
Form2.Show()
End Sub
End Class

Public Class Form6


Private Sub EmpleadosBindingNavigatorSaveItem_Click(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
EmpleadosBindingNavigatorSaveItem.Click
Me.Validate()
Me.EmpleadosBindingSource.EndEdit()
Me.EmpleadosTableAdapter.Update(Me.Coppel1DataSet.Empleados)
End Sub
Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: esta línea de código carga datos en la tabla
'Coppel1DataSet.Empleados' Puede moverla o quitarla según sea
necesario.
Me.EmpleadosTableAdapter.Fill(Me.Coppel1DataSet.Empleados)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Form5.Show()
Me.Hide()
End Sub
Private Sub EmpleadosBindingNavigator_RefreshItems(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
EmpleadosBindingNavigator.RefreshItems
End Sub
End Class
Public Class Form7
Private Sub ProveedoresBindingNavigatorSaveItem_Click(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
ProveedoresBindingNavigatorSaveItem.Click
Me.Validate()
Me.ProveedoresBindingSource.EndEdit()

Me.ProveedoresTableAdapter.Update(Me.Coppel1DataSet.proveedores)
End Sub
Private Sub Form7_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: esta línea de código carga datos en la tabla
'Coppel1DataSet.proveedores' Puede moverla o quitarla según sea
necesario.
Me.ProveedoresTableAdapter.Fill(Me.Coppel1DataSet.proveedores)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Form5.Show()
Me.Hide()
End Sub
Private Sub ProveedoresBindingNavigator_RefreshItems(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
ProveedoresBindingNavigator.RefreshItems
End Sub
End Class
Public Class Form8
Private Sub BodegaBindingNavigatorSaveItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BodegaBindingNavigatorSaveItem.Click
Me.Validate()
Me.BodegaBindingSource.EndEdit()
Me.BodegaTableAdapter.Update(Me.Coppel1DataSet.Bodega)
End Sub
Private Sub Form8_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: esta línea de código carga datos en la tabla
'Coppel1DataSet.Bodega' Puede moverla o quitarla según sea necesario.
Me.BodegaTableAdapter.Fill(Me.Coppel1DataSet.Bodega)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Form5.Show()
Me.Hide()
End Sub
Private Sub BodegaBindingNavigator_RefreshItems(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BodegaBindingNavigator.RefreshItems
End Sub
End Class

You might also like