0% found this document useful (0 votes)
46 views10 pages

Manual Del Sistema

This document describes the development and maintenance of a database system for an educational institution. It includes: 1. The technological platform used, including the Windows XP operating system, Access 2007 database, and Intel Pentium 4 CPU. 2. Screenshots and code for several screens in a GUI for the database system, including screens for viewing, searching, modifying, and adding data for video games and administrators. 3. Code samples showing how data is retrieved from the Access database and displayed on screens, and how new data is inserted into tables when records are added.

Uploaded by

fudoyusey
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)
46 views10 pages

Manual Del Sistema

This document describes the development and maintenance of a database system for an educational institution. It includes: 1. The technological platform used, including the Windows XP operating system, Access 2007 database, and Intel Pentium 4 CPU. 2. Screenshots and code for several screens in a GUI for the database system, including screens for viewing, searching, modifying, and adding data for video games and administrators. 3. Code samples showing how data is retrieved from the Access database and displayed on screens, and how new data is inserted into tables when records are added.

Uploaded by

fudoyusey
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/ 10

COLEGIO NACIONAL DE EDUCACIÓN PROFESIONAL TÉCNICA

ELABORACION Y MANTENIMIENTODE UN SISTEMA

PRACTICA 6

JOSE ALEJANDRO MORENO LOPEZ


Manual del sistema

1.1. Plataforma tecnológica


1.1.1.Sistema operativo
Windows XP
Profesional
Versión 2002
Service Pack 3
1.1.2.Base de datos
La base de datos se creara y actualizara en acces 2007
1.1.3.Equipo de procesamiento
Intel(R) Pentium(R) 4 CPU
2.00 GHz 1.99 GHz, 1.25 GB de RAM

Conclusión.

Pantalla 1.

Código.
Public Class Form1

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


System.EventArgs) Handles Button1.Click
ad1.Show()
Me.Hide()
End Sub

End Class
Pantalla 2.

Codigo.
Public Class ad1

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


System.EventArgs) Handles Button1.Click
Form1.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button2.Click
ad2.Show()
Me.Hide()
End Sub
End Class.

Pantalla 3.
Codigo.
Public Class ad2

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


System.EventArgs) Handles Button4.Click
Form1.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button1.Click
adconsulta1.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button2.Click
adconsulta2.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button3.Click
admodificar1.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button6.Click
agregarad.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button5.Click
agregarvi.Show()
Me.Hide()
End Sub
End Class

Pantalla consulta videojuegos.


Codigo.
Public Class adconsulta1

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


System.EventArgs) Handles Button1.Click
ad2.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button3.Click
cn.Open()
Dim mostrardatos As String = "Select*from Videojuegos"
Dim dataAdapter As New OleDb.OleDbDataAdapter(mostrardatos, cn)
dataAdapter.Fill(dt)
For fila = 0 To dt.Rows.Count - 1
Actualiza()
Next
dataAdapter.Dispose()
cn.Close()
refrescar()
End Sub
Public Sub Actualiza()
lb1.Items.Add(dt.Rows(fila)("Id"))
lb2.Items.Add(dt.Rows(fila)("Nombre"))
lb3.Items.Add(dt.Rows(fila)("Clasificacion"))
lb4.Items.Add(dt.Rows(fila)("Tipo"))
lb5.Items.Add(dt.Rows(fila)("Provedor"))
lb6.Items.Add(dt.Rows(fila)("Costo"))
End Sub

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


System.EventArgs) Handles Button5.Click
lb1.Items.Clear()
lb2.Items.Clear()
lb3.Items.Clear()
lb4.Items.Clear()
lb5.Items.Clear()
lb6.Items.Clear()
End Sub

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


System.EventArgs) Handles Button2.Click
cn.Open()
dt.Reset()
Dim ConsultarDatos As String = "Select *From Videojuegos where
Id=" & (CInt(txt6.Text))
Dim dataAdapter As New OleDb.OleDbDataAdapter(ConsultarDatos, cn)
dataAdapter.Fill(dt)
fila = 0
act()
MsgBox("Se encontro el registro correctamente",
MsgBoxStyle.Information, "Mensaje XD")
dataAdapter.Dispose()
cn.Close()
End Sub
Public Sub act()
txt6.Text = CInt(dt.Rows(fila)("Id"))
txt1.Text = CInt(dt.Rows(fila)("Id"))
txt2.Text = CStr(dt.Rows(fila)("Nombre"))
txt3.Text = CStr(dt.Rows(fila)("Clasificacion"))
txt4.Text = CStr(dt.Rows(fila)("Tipo"))
txt5.Text = CStr(dt.Rows(fila)("Provedor"))
txt7.Text = CInt(dt.Rows(fila)("Costo"))
End Sub
Public Sub refrescar()
dt.Reset()
fila = 0
Dim refrescardatos As String = "Select*from Videojuegos"
Dim Adapter As New OleDb.OleDbDataAdapter(refrescardatos, cn)
Adapter.Fill(dt)
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
Dim BorrarDatos As String = "Delete * from Videojuegos where Id="
& CInt(txt6.Text)
Dim dataAdapter As New OleDb.OleDbDataAdapter(BorrarDatos, cn)
dataAdapter.Fill(dt)
refrescar()
Actualiza()
dataAdapter.Dispose()
cn.Close()
End Sub

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


System.EventArgs) Handles Button6.Click
txt6.Text = ""
txt1.Text = ""
txt2.Text = ""
txt3.Text = ""
txt4.Text = ""
txt5.Text = ""
txt7.Text = ""
End Sub

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


As System.EventArgs) Handles MyBase.Load

End Sub
End Class

Pantalla consulta administrador.


Codigo.
Public Class adconsulta2

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


System.EventArgs) Handles Button1.Click
ad2.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button2.Click
cn.Open()
Dim mostrardatos As String = "Select*from Admin"
Dim dataAdapter As New OleDb.OleDbDataAdapter(mostrardatos, cn)
dataAdapter.Fill(dt)
For fila = 0 To dt.Rows.Count - 1
Actualiza()
Next
dataAdapter.Dispose()
cn.Close()
refrescar()
End Sub
Public Sub Actualiza()
lb1.Items.Add(dt.Rows(fila)("Id"))
lb2.Items.Add(dt.Rows(fila)("Nombre"))
lb3.Items.Add(dt.Rows(fila)("Apeido"))
lb4.Items.Add(dt.Rows(fila)("Puesto"))
lb5.Items.Add(dt.Rows(fila)("Contraseña"))
End Sub

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


System.EventArgs) Handles Button3.Click
lb1.Items.Clear()
lb2.Items.Clear()
lb3.Items.Clear()
lb4.Items.Clear()
lb5.Items.Clear()
refrescar()
End Sub

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


System.EventArgs) Handles Button4.Click
cn.Open()
dt.Reset()
Dim ConsultarDatos As String = "Select *From Admin where Id=" &
(CInt(txt6.Text))
Dim dataAdapter As New OleDb.OleDbDataAdapter(ConsultarDatos, cn)
dataAdapter.Fill(dt)
fila = 0
act()
MsgBox("Se encontro el registro correctamente",
MsgBoxStyle.Information, "Mensaje XD")
dataAdapter.Dispose()
cn.Close()
End Sub
Public Sub act()
txt6.Text = CInt(dt.Rows(fila)("Id"))
txt1.Text = CInt(dt.Rows(fila)("Id"))
txt2.Text = CStr(dt.Rows(fila)("Nombre"))
txt3.Text = CStr(dt.Rows(fila)("Apeido"))
txt4.Text = CStr(dt.Rows(fila)("Puesto"))
txt5.Text = CInt(dt.Rows(fila)("Contraseña"))
End Sub
Public Sub refrescar()
dt.Reset()
fila = 0
Dim refrescardatos As String = "Select*from Admin"
Dim Adapter As New OleDb.OleDbDataAdapter(refrescardatos, cn)
Adapter.Fill(dt)
End Sub

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


System.EventArgs) Handles Button5.Click
Dim BorrarDatos As String = "Delete * from Admin where Id=" &
CInt(txt6.Text)
Dim dataAdapter As New OleDb.OleDbDataAdapter(BorrarDatos, cn)
dataAdapter.Fill(dt)
refrescar()
Actualiza()
dataAdapter.Dispose()
cn.Close()
End Sub

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


System.EventArgs) Handles Button6.Click
txt6.Text = ""
txt1.Text = ""
txt2.Text = ""
txt3.Text = ""
txt4.Text = ""
txt5.Text = ""
refrescar()
End Sub

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


As System.EventArgs) Handles MyBase.Load

End Sub
End Class

Pantalla agregar administrador.


Código.
Public Class agregarad

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


System.EventArgs) Handles Button1.Click
ad2.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles Button2.Click
cn.Open()
Dim GuardarDatos As String = "Insert Into
Admin(Id,Nombre,Apeido,Puesto,Contraseña)" & "Values ('" & txt1.Text &
"','" & txt2.Text & "', '" & txt3.Text & "','" & txt4.Text & "','" &
txt5.Text & "')"
Dim dataAdapter As New OleDb.OleDbDataAdapter(GuardarDatos, cn)
dataAdapter.Fill(dt)
MsgBox("Se Agrego con exito")
dataAdapter.Dispose()
cn.Close()
End Sub

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


System.EventArgs) Handles MyBase.Load

End Sub
End Class

Pantalla agregar videojuegos.

Codigo.
Public Class agregarvi

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


System.EventArgs) Handles Button2.Click
cn.Open()
Dim GuardarDatos As String = "Insert Into
Videojuegos(Id,Nombre,Clasificacion,Tipo,Provedor,Costo)" & "Values ('" &
txt1.Text & "','" & txt2.Text & "', '" & txt3.Text & "','" & txt4.Text &
"','" & txt5.Text & "','" & txt6.Text & "')"
Dim dataAdapter As New OleDb.OleDbDataAdapter(GuardarDatos, cn)
dataAdapter.Fill(dt)
MsgBox("Se Agrego con exito")
dataAdapter.Dispose()
cn.Close()
End Sub

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


System.EventArgs) Handles Button1.Click
ad2.Show()
Me.Hide()
End Sub

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


System.EventArgs) Handles MyBase.Load

End Sub
End Class

Modulo.
Module Module1
Public fila As Integer = 0
Public a As Integer = 0
Public dt As New DataTable
Public cn As New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Moreno\p1\Juegos2.mdb")
End Module

You might also like