SlideShare una empresa de Scribd logo
1 de 6
COLEGIO DE EDUCACIÓN PROFESIONAL TÉCNICA DEL ESTADO
DE TLAXCALA
PLANTEL CONALEP ZACUALPAN 101
Docente: Ing. Agustín Hernández Delgado.
Módulo: Elaboración y Mantenimiento de Sistemas de
Información.
Alumno:
Sánchez Zempoalteca Alejandro.
Especialidad. Informática.
Grado: 6to Semestre Grupo: 603-Info-V.
Menú
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form1.Show()
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form3.Show()
End Sub
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
End
End Sub
End Class
Altas
Public Class Form1
Private Sub Alta_alumnosBindingNavigatorSaveItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Alta_alumnosBindingNavigatorSaveItem.Click
Me.Validate()
Me.Alta_alumnosBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.SICOHEDataSet)
End Sub
Private Sub Form1_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
'SICOHEDataSet.alta_alumnos' Puede moverla o quitarla según sea necesario.
Me.Alta_alumnosTableAdapter.Fill(Me.SICOHEDataSet.alta_alumnos)
IdTextBox.Enabled = False
IdTextBox.Visible = False
EspecialidadTextBox.Enabled = False
EspecialidadTextBox.Visible = False
MatriculaTextBox.Enabled = False
MatriculaTextBox.Visible = False
NombreTextBox.Enabled = False
NombreTextBox.Visible = False
Ap_patTextBox.Enabled = False
Ap_patTextBox.Visible = False
Ap_matTextBox.Enabled = False
Ap_matTextBox.Visible = False
GrupoTextBox.Enabled = False
GrupoTextBox.Visible = False
TurnoTextBox.Enabled = False
TurnoTextBox.Visible = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Dim mitabla As DataTable = SICOHEDataSet.alta_alumnos
Dim cfilas As DataRowCollection = mitabla.Rows
Dim nuevafila As DataRow
Dim i As Integer
Dim c1 As String
Dim c2 As String
Dim res As Boolean
Dim n As Integer
Dim bandera As Boolean
n = Alta_alumnosBindingSource.Count
Alta_alumnosBindingSource.MoveFirst()
bandera = True
res = False
c1 = (RTrim(TextBox1.Text))
c2 = (RTrim(MatriculaTextBox.Text))
Do
If (Trim(MatriculaTextBox.Text) = Trim(TextBox1.Text)) Then
bandera = False Else
Alta_alumnosBindingSource.MoveNext() i = i + 1
End If
Loop While (bandera = True And i <= n)
If (bandera = False) Then
MsgBox("ERROR, MATRICULA YA REGISTRADA n PRESIONA LA TECLA ENTER PARA
CONTINUAR")
Else
MsgBox("INTRODUCE")
nuevafila = mitabla.NewRow
cfilas.Add(nuevafila)
Alta_alumnosBindingSource.MoveLast()
IdTextBox.Enabled = False
IdTextBox.Visible = False
EspecialidadTextBox.Enabled = True
EspecialidadTextBox.Visible = True
MatriculaTextBox.Enabled = False
MatriculaTextBox.Visible = True
NombreTextBox.Enabled = True
NombreTextBox.Visible = True
Ap_matTextBox.Enabled = True
Ap_matTextBox.Visible = True
Ap_patTextBox.Enabled = True
Ap_patTextBox.Visible = True
GrupoTextBox.Enabled = True
GrupoTextBox.Visible = True
TurnoTextBox.Enabled = True
TurnoTextBox.Visible = True
nuevafila(1) = UCase(TextBox1.Text)
nuevafila(2) = Val(NombreTextBox.Text)
nuevafila(3) = Val(Ap_patTextBox.Text)
nuevafila(4) = Val(Ap_matTextBox.Text)
nuevafila(5) = Val(EspecialidadTextBox.Text)
nuevafila(6) = Val(GrupoTextBox.Text)
nuevafila(7) = Val(TurnoTextBox.Text)
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
End
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If (SICOHEDataSet.HasChanges) Then Me.Validate()
Me.Alta_alumnosBindingSource.EndEdit()
Me.Alta_alumnosTableAdapter.Update(Me.SICOHEDataSet)
MsgBox("DATOS GRABADOS")
End If
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
My.Forms.Form2.Visible = True
Me.Visible = False
End Sub
End Class
Documento de altas
Documento de altas

Más contenido relacionado

Similar a Documento de altas

Sistema de ventas
Sistema de ventasSistema de ventas
Sistema de ventas
DAYANA RETO
 
Sistemadeventas 100707084319-phpapp01
Sistemadeventas 100707084319-phpapp01Sistemadeventas 100707084319-phpapp01
Sistemadeventas 100707084319-phpapp01
mafv1976
 
Practica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarPractica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabar
Elizita Aguila Peralta
 

Similar a Documento de altas (20)

Sistema de ventas
Sistema de ventasSistema de ventas
Sistema de ventas
 
Sistemadeventas 100707084319-phpapp01
Sistemadeventas 100707084319-phpapp01Sistemadeventas 100707084319-phpapp01
Sistemadeventas 100707084319-phpapp01
 
Grabar y eliminar
Grabar y eliminarGrabar y eliminar
Grabar y eliminar
 
Practica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarPractica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabar
 
Correction s+ rie_vb
Correction s+ rie_vbCorrection s+ rie_vb
Correction s+ rie_vb
 
SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)
 
VB net lab.pdf
VB net lab.pdfVB net lab.pdf
VB net lab.pdf
 
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.154.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
 
Burger doll order form
Burger doll order formBurger doll order form
Burger doll order form
 
Practica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabarPractica porfe agustin eliminar y grabar
Practica porfe agustin eliminar y grabar
 
Arreglos
ArreglosArreglos
Arreglos
 
Docimp
DocimpDocimp
Docimp
 
Practica agustin eliminar
Practica agustin eliminarPractica agustin eliminar
Practica agustin eliminar
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
Ejercicio sql server vs visual .net
Ejercicio sql server vs visual .netEjercicio sql server vs visual .net
Ejercicio sql server vs visual .net
 
Código para Grabar datos
Código para Grabar datosCódigo para Grabar datos
Código para Grabar datos
 
.net progrmming part4
.net progrmming part4.net progrmming part4
.net progrmming part4
 
UtilityCostCalcCode
UtilityCostCalcCodeUtilityCostCalcCode
UtilityCostCalcCode
 
Updated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxUpdated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptx
 

Último

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Último (20)

Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 

Documento de altas

  • 1. COLEGIO DE EDUCACIÓN PROFESIONAL TÉCNICA DEL ESTADO DE TLAXCALA PLANTEL CONALEP ZACUALPAN 101 Docente: Ing. Agustín Hernández Delgado. Módulo: Elaboración y Mantenimiento de Sistemas de Información. Alumno: Sánchez Zempoalteca Alejandro. Especialidad. Informática. Grado: 6to Semestre Grupo: 603-Info-V.
  • 2. Menú Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form1.Show() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Form3.Show() End Sub Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click End End Sub End Class Altas Public Class Form1 Private Sub Alta_alumnosBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Alta_alumnosBindingNavigatorSaveItem.Click Me.Validate() Me.Alta_alumnosBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.SICOHEDataSet) End Sub Private Sub Form1_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 'SICOHEDataSet.alta_alumnos' Puede moverla o quitarla según sea necesario. Me.Alta_alumnosTableAdapter.Fill(Me.SICOHEDataSet.alta_alumnos) IdTextBox.Enabled = False IdTextBox.Visible = False EspecialidadTextBox.Enabled = False EspecialidadTextBox.Visible = False MatriculaTextBox.Enabled = False MatriculaTextBox.Visible = False NombreTextBox.Enabled = False NombreTextBox.Visible = False Ap_patTextBox.Enabled = False Ap_patTextBox.Visible = False Ap_matTextBox.Enabled = False Ap_matTextBox.Visible = False GrupoTextBox.Enabled = False GrupoTextBox.Visible = False TurnoTextBox.Enabled = False TurnoTextBox.Visible = False End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim mitabla As DataTable = SICOHEDataSet.alta_alumnos
  • 3. Dim cfilas As DataRowCollection = mitabla.Rows Dim nuevafila As DataRow Dim i As Integer Dim c1 As String Dim c2 As String Dim res As Boolean Dim n As Integer Dim bandera As Boolean n = Alta_alumnosBindingSource.Count Alta_alumnosBindingSource.MoveFirst() bandera = True res = False c1 = (RTrim(TextBox1.Text)) c2 = (RTrim(MatriculaTextBox.Text)) Do If (Trim(MatriculaTextBox.Text) = Trim(TextBox1.Text)) Then bandera = False Else Alta_alumnosBindingSource.MoveNext() i = i + 1 End If Loop While (bandera = True And i <= n) If (bandera = False) Then MsgBox("ERROR, MATRICULA YA REGISTRADA n PRESIONA LA TECLA ENTER PARA CONTINUAR") Else MsgBox("INTRODUCE") nuevafila = mitabla.NewRow cfilas.Add(nuevafila) Alta_alumnosBindingSource.MoveLast() IdTextBox.Enabled = False IdTextBox.Visible = False EspecialidadTextBox.Enabled = True EspecialidadTextBox.Visible = True MatriculaTextBox.Enabled = False MatriculaTextBox.Visible = True NombreTextBox.Enabled = True NombreTextBox.Visible = True Ap_matTextBox.Enabled = True Ap_matTextBox.Visible = True Ap_patTextBox.Enabled = True Ap_patTextBox.Visible = True GrupoTextBox.Enabled = True GrupoTextBox.Visible = True TurnoTextBox.Enabled = True TurnoTextBox.Visible = True nuevafila(1) = UCase(TextBox1.Text) nuevafila(2) = Val(NombreTextBox.Text) nuevafila(3) = Val(Ap_patTextBox.Text) nuevafila(4) = Val(Ap_matTextBox.Text) nuevafila(5) = Val(EspecialidadTextBox.Text) nuevafila(6) = Val(GrupoTextBox.Text) nuevafila(7) = Val(TurnoTextBox.Text) End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub
  • 4. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (SICOHEDataSet.HasChanges) Then Me.Validate() Me.Alta_alumnosBindingSource.EndEdit() Me.Alta_alumnosTableAdapter.Update(Me.SICOHEDataSet) MsgBox("DATOS GRABADOS") End If End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click My.Forms.Form2.Visible = True Me.Visible = False End Sub End Class