Brandon rojas
Upcoming SlideShare
Loading in...5
×
 

Brandon rojas

on

  • 114 views

 

Statistics

Views

Total Views
114
Views on SlideShare
60
Embed Views
54

Actions

Likes
0
Downloads
2
Comments
0

2 Embeds 54

http://606equipouno.blogspot.mx 49
http://606equipouno.blogspot.com 5

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Brandon rojas Brandon rojas Document Transcript

    • Colegio de Educación Profesional Técnica Del Estado de Tlaxcala. Plantel CONALEP Zacualpan 101 Módulo de Elaboración y Mantenimientos de Sistemas de Información. Presenta: Brandon Rojas Chaparro P.T.B. en Informática Grupo: 606
    • Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Public Class Form1 Private Sub DatosBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Validate() Me.DatosBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.SipretDataSet) End Sub Private Sub DatosBindingNavigatorSaveItem_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DatosBindingNavigatorSaveItem.Click Me.Validate() Me.DatosBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.SipretDataSet) 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 'SipretDataSet.Datos' Puede moverla o quitarla según sea necesario. Me.DatosTableAdapter.Fill(Me.SipretDataSet.Datos) End Sub BOTON SALIR Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End End Sub BOTON BUSCAR Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim mitabla As DataTable = SipretDataSet.Datos Dim cfila As DataRowCollection = mitabla.Rows Dim nuevafila As DataRow Dim bandera As Boolean bandera = True Dim i, n As Integer Dim resu As Boolean Dim c1 As String Dim c2 As String n = DatosBindingSource.Count() i = 1 DatosBindingSource.MoveFirst() c1 = UCase(RTrim(TextBox1.Text)) c2 = UCase(RTrim(PrefichaTextBox.Text)) Do resu = c1 Like c2 If (resu = True) Then bandera = False Else DatosBindingSource.MoveNext() c2 = UCase(RTrim(PrefichaTextBox.Text)) i = i + 1 End If Loop While (bandera = True And i <= n)
    • If (bandera = False) Then Else MsgBox("introduce") nuevafila = mitabla.NewRow() cfila.Add(nuevafila) DatosBindingSource.MoveLast() NombreTextBox.Visible = True NombreTextBox.Enabled = True Apellido_PaternoTextBox.Visible = True Apellido_PaternoTextBox.Enabled = True Apellido_MaternoTextBox.Visible = True Apellido_MaternoTextBox.Enabled = True MatriculaTextBox.Visible = True MatriculaTextBox.Enabled = True Codigo_PostalTextBox.Visible = True Codigo_PostalTextBox.Enabled = True CorreoTextBox.Visible = True CorreoTextBox.Enabled = True NombreTextBox.Visible = True Apellido_MaternoTextBox.Visible = True Apellido_PaternoTextBox.Visible = True MatriculaTextBox.Visible = True Codigo_PostalTextBox.Visible = True CorreoTextBox.Visible = True nuevafila(1) = UCase(NombreTextBox.Text) nuevafila(2) = UCase(Apellido_MaternoTextBox.Text) nuevafila(3) = UCase(Apellido_PaternoTextBox.Text) nuevafila(4) = UCase(MatriculaTextBox.Text) nuevafila(5) = UCase(Codigo_PostalTextBox.Text) nuevafila(6) = UCase(CorreoTextBox.Text) End If End Sub SE MUESTRA LA PANTALLA DE LA DEPURACION
    • CODIGO PARA GUARDAR: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If (SipretDataSet.HasChanges) Then Me.Validate() Me.DatosBindingSource.EndEdit() Me.DatosTableAdapter.Update(Me.SipretDataSet.Datos) End If End Sub