SlideShare une entreprise Scribd logo
1  sur  6
2014
Equipo-CODRED
15/05/2014
Conalep zacualpan 101
Elaboración y mantenimiento de sistemas de información
606
Anayenzi Perez Mena
Profesor:Ing.Agustin Hernández Delgado
Anayenzi Perez Mena-- 606
○Botón Consultar○
REM consultas
Dim mitabla As DataTable =
CODREP_________________________________DataSet.ALTAS
Dim cfilas As DataRowCollection = mitabla.Rows
Dim nuevafila As DataRow
Dim i As Integer
Dim n As String
n = ALTASBindingSource.Count()
Dim bandera As Boolean
bandera = True
Dim tamaño As Integer
tamaño = ALTASBindingSource.Count()
i = 1
If (tamaño = 0) Then
Else
Do
If (Trim(MATRICULATextBox.Text) = Trim(TextBox1.Text)) Then
bandera = False
Else
ALTASBindingSource.MoveNext()
i = i + 1
End If
Loop While (bandera = True And i <= tamaño)
End If
If (bandera = False) Then
MATRICULATextBox.Visible = False
NOMBRETextBox.Visible = False
APELLIDOTextBox.Visible = False
Anayenzi Perez Mena-- 606
ESPECIALIDADTextBox.Visible = False
GRUPOTextBox.Visible = False
TURNOTextBox.Visible = False
MATRICULATextBox.Enabled = False
NOMBRETextBox.Enabled = False
APELLIDOTextBox.Enabled = False
ESPECIALIDADTextBox.Enabled = False
GRUPOTextBox.Enabled = False
TURNOTextBox.Enabled = False
MsgBox("Ya existe")
TextBox1.Text = ""
TextBox1.Focus()
Else
MsgBox("Introduce datos")
nuevafila = mitabla.NewRow
cfilas.Add(nuevafila)
ALTASBindingSource.MoveLast()
MATRICULATextBox.Enabled = True
MATRICULATextBox.Visible = True
ID_ALTATextBox.Enabled = True
ID_ALTATextBox.Visible = True
NOMBRETextBox.Enabled = True
NOMBRETextBox.Visible = True
APELLIDOTextBox.Enabled = True
APELLIDOTextBox.Visible = True
ESPECIALIDADTextBox.Enabled = True
ESPECIALIDADTextBox.Visible = True
GRUPOTextBox.Enabled = True
GRUPOTextBox.Visible = True
GRUPOTextBox.Enabled = True
GRUPOTextBox.Visible = True
TURNOTextBox.Enabled = True
TURNOTextBox.Visible = True
nuevafila(1) = UCase(MATRICULATextBox.Text)
nuevafila(2) = UCase(ID_ALTATextBox.Text)
nuevafila(3) = UCase(TextBox1.Text)
nuevafila(4) = UCase(NOMBRETextBox.Text)
nuevafila(5) = UCase(APELLIDOTextBox.Text)
nuevafila(6) = UCase(ESPECIALIDADTextBox.Text)
nuevafila(7) = UCase(GRUPOTextBox.Text)
nuevafila(8) = UCase(TURNOTextBox.Text)
End If
End Sub
Anayenzi Perez Mena-- 606
○Botón eliminar○
Dim response As MsgBoxResult
Dim MSG As String
Dim TITULO As String
Dim ESTILO As MsgBoxStyle
Dim registroactual As DataRowView
ESTILO = MsgBoxStyle.YesNo
TITULO = "Borrando..."
MSG = " ¿Desea Borrar Los Datos.?"
Dim c1 As String
Dim c2 As String
Dim res As Boolean
Dim bandera As Boolean
bandera = True
Dim SI As Integer
SI = SI
Dim tam As Integer
tam = ALTASBindingSource.Count()
ALTASBindingSource.MoveFirst()
res = False
c1 = RTrim(TextBox1.Text)
c2 = RTrim(MATRICULATextBox.Text)
If (tam = 0) Then
MsgBox("tabla vacia")
Else
ALTASBindingSource.MoveFirst()
c1 = UCase(Trim(MATRICULATextBox.Text))
Do
Anayenzi Perez Mena-- 606
res = c1 Like c2
If (res = True) Then
bandera = False
Else
ALTASBindingSource.MoveNext()
c1 = UCase(Trim(MATRICULATextBox.Text))
SI += 1
End If
Loop While (bandera = True And SI <= tam)
End If
If (bandera = True) Then
MATRICULATextBox.Enabled = False
MATRICULATextBox.Visible = False
NOMBRETextBox.Enabled = False
NOMBRETextBox.Visible = False
APELLIDOTextBox.Enabled = False
APELLIDOTextBox.Visible = False
TURNOTextBox.Enabled = False
TURNOTextBox.Visible = False
GRUPOTextBox.Enabled = False
GRUPOTextBox.Visible = False
ESPECIALIDADTextBox.Enabled = False
ESPECIALIDADTextBox.Visible = False
TextBox1.Text = ""
TextBox1.Focus()
MsgBox("Alumno No Encontrado")
Else
MATRICULATextBox.Enabled = False
MATRICULATextBox.Visible = True
NOMBRETextBox.Enabled = False
NOMBRETextBox.Visible = True
APELLIDOTextBox.Enabled = False
APELLIDOTextBox.Visible = True
TURNOTextBox.Enabled = False
TURNOTextBox.Visible = True
GRUPOTextBox.Enabled = False
GRUPOTextBox.Visible = True
ESPECIALIDADTextBox.Enabled = False
ESPECIALIDADTextBox.Visible = True
TextBox1.Text = ""
TextBox1.Focus()
response = MsgBox(MSG, ESTILO, TITULO)
If (response = MsgBoxResult.Yes) Then
registroactual = ALTASBindingSource.Current
registroactual.Row.Delete()
Me.ALTASTableAdapter.Update(Me.CODREP_________________________________DataSet.ALTAS)
MsgBox("Se Borro EL Registro De la Tabla..")
MATRICULATextBox.Enabled = False
MATRICULATextBox.Visible = False
NOMBRETextBox.Enabled = False
Anayenzi Perez Mena-- 606
NOMBRETextBox.Visible = False
APELLIDOTextBox.Enabled = False
APELLIDOTextBox.Visible = False
TURNOTextBox.Enabled = False
TURNOTextBox.Visible = False
GRUPOTextBox.Enabled = False
GRUPOTextBox.Visible = False
ESPECIALIDADTextBox.Enabled = False
ESPECIALIDADTextBox.Visible = False
TextBox1.Text = ""
TextBox1.Focus()
Else
MATRICULATextBox.Enabled = False
MATRICULATextBox.Visible = False
NOMBRETextBox.Enabled = False
NOMBRETextBox.Visible = False
APELLIDOTextBox.Enabled = False
APELLIDOTextBox.Visible = False
TURNOTextBox.Enabled = False
TURNOTextBox.Visible = False
GRUPOTextBox.Enabled = False
GRUPOTextBox.Visible = False
ESPECIALIDADTextBox.Enabled = False
ESPECIALIDADTextBox.Visible = False
TextBox1.Text = ""
TextBox1.Focus()
MsgBox("NO SE HA BORRADO EL REGISTRO DE LA TABLA...")
End If
End If
End Sub
○Grabando Ahora○
If (CODREP_________________________________DataSet.HasChanges) Then
Me.Validate()
Me.ALTASBindingSource.EndEdit()
Me.ALTASTableAdapter.Update(Me.BaseCODREPDataSet.ALTAS)
MsgBox("Datos Grabando ahora")
TextBox1.Text = ""
TextBox1.Focus()
MATRICULATextBox.Enabled = False
NOMBRETextBox.Enabled = False
APELLIDOTextBox.Enabled = False
ESPECIALIDADTextBox.Enabled = False
GRUPOTextBox.Enabled = False
End If
End Sub

Contenu connexe

Dernier

Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...
Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...
Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service 🕶
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service  🕶CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service  🕶
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service 🕶anilsa9823
 
Part 1 of the Holy Quran- Alif Laam Meem
Part 1 of the Holy Quran- Alif Laam MeemPart 1 of the Holy Quran- Alif Laam Meem
Part 1 of the Holy Quran- Alif Laam MeemAbdullahMohammed282920
 
St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024Chris Lyne
 
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCRElite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCRDelhi Call girls
 
Codex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca SapientiaCodex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca Sapientiajfrenchau
 
The King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptx
The King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptxThe King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptx
The King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptxOH TEIK BIN
 
Study of the Psalms Chapter 1 verse 2 - wanderean
Study of the Psalms Chapter 1 verse 2 - wandereanStudy of the Psalms Chapter 1 verse 2 - wanderean
Study of the Psalms Chapter 1 verse 2 - wandereanmaricelcanoynuay
 
NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024NoHo FUMC
 
CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service 👔
CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service  👔CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service  👔
CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service 👔anilsa9823
 
Surah Yasin and Daily Spiritual Practices
Surah Yasin and Daily Spiritual PracticesSurah Yasin and Daily Spiritual Practices
Surah Yasin and Daily Spiritual Practicesaijazuddin14
 
Flores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understandFlores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understandvillamilcecil909
 
MEIDUNIDADE COM JESUS PALESTRA ESPIRITA1.pptx
MEIDUNIDADE COM JESUS  PALESTRA ESPIRITA1.pptxMEIDUNIDADE COM JESUS  PALESTRA ESPIRITA1.pptx
MEIDUNIDADE COM JESUS PALESTRA ESPIRITA1.pptxMneasEntidades
 
Genesis 1:7 || Meditate the Scripture daily verse by verse
Genesis 1:7  ||  Meditate the Scripture daily verse by verseGenesis 1:7  ||  Meditate the Scripture daily verse by verse
Genesis 1:7 || Meditate the Scripture daily verse by versemaricelcanoynuay
 
Deerfoot Church of Christ Bulletin 4 28 24
Deerfoot Church of Christ Bulletin 4 28 24Deerfoot Church of Christ Bulletin 4 28 24
Deerfoot Church of Christ Bulletin 4 28 24deerfootcoc
 
Lesson 3 - Heaven - the Christian's Destiny.pptx
Lesson 3 - Heaven - the Christian's Destiny.pptxLesson 3 - Heaven - the Christian's Destiny.pptx
Lesson 3 - Heaven - the Christian's Destiny.pptxCelso Napoleon
 
call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️
call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️
call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️soniya singh
 

Dernier (20)

Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...
Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...
Lucknow 💋 Call Girls Lucknow - Book 8923113531 Call Girls Available 24 Hours ...
 
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service 🕶
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service  🕶CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service  🕶
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best Female service 🕶
 
English - The Story of Ahikar, Grand Vizier of Assyria.pdf
English - The Story of Ahikar, Grand Vizier of Assyria.pdfEnglish - The Story of Ahikar, Grand Vizier of Assyria.pdf
English - The Story of Ahikar, Grand Vizier of Assyria.pdf
 
Call Girls In Nehru Place 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Nehru Place 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Nehru Place 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Nehru Place 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Part 1 of the Holy Quran- Alif Laam Meem
Part 1 of the Holy Quran- Alif Laam MeemPart 1 of the Holy Quran- Alif Laam Meem
Part 1 of the Holy Quran- Alif Laam Meem
 
St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024
 
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCRElite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
 
Codex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca SapientiaCodex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca Sapientia
 
English - The Forgotten Books of Eden.pdf
English - The Forgotten Books of Eden.pdfEnglish - The Forgotten Books of Eden.pdf
English - The Forgotten Books of Eden.pdf
 
The King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptx
The King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptxThe King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptx
The King Great Goodness Part 2 ~ Mahasilava Jataka (Eng. & Chi.).pptx
 
Study of the Psalms Chapter 1 verse 2 - wanderean
Study of the Psalms Chapter 1 verse 2 - wandereanStudy of the Psalms Chapter 1 verse 2 - wanderean
Study of the Psalms Chapter 1 verse 2 - wanderean
 
NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024
 
CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service 👔
CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service  👔CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service  👔
CALL ON ➥8923113531 🔝Call Girls Singar Nagar Lucknow best Night Fun service 👔
 
Surah Yasin and Daily Spiritual Practices
Surah Yasin and Daily Spiritual PracticesSurah Yasin and Daily Spiritual Practices
Surah Yasin and Daily Spiritual Practices
 
Flores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understandFlores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understand
 
MEIDUNIDADE COM JESUS PALESTRA ESPIRITA1.pptx
MEIDUNIDADE COM JESUS  PALESTRA ESPIRITA1.pptxMEIDUNIDADE COM JESUS  PALESTRA ESPIRITA1.pptx
MEIDUNIDADE COM JESUS PALESTRA ESPIRITA1.pptx
 
Genesis 1:7 || Meditate the Scripture daily verse by verse
Genesis 1:7  ||  Meditate the Scripture daily verse by verseGenesis 1:7  ||  Meditate the Scripture daily verse by verse
Genesis 1:7 || Meditate the Scripture daily verse by verse
 
Deerfoot Church of Christ Bulletin 4 28 24
Deerfoot Church of Christ Bulletin 4 28 24Deerfoot Church of Christ Bulletin 4 28 24
Deerfoot Church of Christ Bulletin 4 28 24
 
Lesson 3 - Heaven - the Christian's Destiny.pptx
Lesson 3 - Heaven - the Christian's Destiny.pptxLesson 3 - Heaven - the Christian's Destiny.pptx
Lesson 3 - Heaven - the Christian's Destiny.pptx
 
call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️
call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️
call girls in rohini sector 22 Delhi 8264348440 ✅ call girls ❤️
 

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Botón elimanr grabar etc

  • 1. 2014 Equipo-CODRED 15/05/2014 Conalep zacualpan 101 Elaboración y mantenimiento de sistemas de información 606 Anayenzi Perez Mena Profesor:Ing.Agustin Hernández Delgado
  • 2. Anayenzi Perez Mena-- 606 ○Botón Consultar○ REM consultas Dim mitabla As DataTable = CODREP_________________________________DataSet.ALTAS Dim cfilas As DataRowCollection = mitabla.Rows Dim nuevafila As DataRow Dim i As Integer Dim n As String n = ALTASBindingSource.Count() Dim bandera As Boolean bandera = True Dim tamaño As Integer tamaño = ALTASBindingSource.Count() i = 1 If (tamaño = 0) Then Else Do If (Trim(MATRICULATextBox.Text) = Trim(TextBox1.Text)) Then bandera = False Else ALTASBindingSource.MoveNext() i = i + 1 End If Loop While (bandera = True And i <= tamaño) End If If (bandera = False) Then MATRICULATextBox.Visible = False NOMBRETextBox.Visible = False APELLIDOTextBox.Visible = False
  • 3. Anayenzi Perez Mena-- 606 ESPECIALIDADTextBox.Visible = False GRUPOTextBox.Visible = False TURNOTextBox.Visible = False MATRICULATextBox.Enabled = False NOMBRETextBox.Enabled = False APELLIDOTextBox.Enabled = False ESPECIALIDADTextBox.Enabled = False GRUPOTextBox.Enabled = False TURNOTextBox.Enabled = False MsgBox("Ya existe") TextBox1.Text = "" TextBox1.Focus() Else MsgBox("Introduce datos") nuevafila = mitabla.NewRow cfilas.Add(nuevafila) ALTASBindingSource.MoveLast() MATRICULATextBox.Enabled = True MATRICULATextBox.Visible = True ID_ALTATextBox.Enabled = True ID_ALTATextBox.Visible = True NOMBRETextBox.Enabled = True NOMBRETextBox.Visible = True APELLIDOTextBox.Enabled = True APELLIDOTextBox.Visible = True ESPECIALIDADTextBox.Enabled = True ESPECIALIDADTextBox.Visible = True GRUPOTextBox.Enabled = True GRUPOTextBox.Visible = True GRUPOTextBox.Enabled = True GRUPOTextBox.Visible = True TURNOTextBox.Enabled = True TURNOTextBox.Visible = True nuevafila(1) = UCase(MATRICULATextBox.Text) nuevafila(2) = UCase(ID_ALTATextBox.Text) nuevafila(3) = UCase(TextBox1.Text) nuevafila(4) = UCase(NOMBRETextBox.Text) nuevafila(5) = UCase(APELLIDOTextBox.Text) nuevafila(6) = UCase(ESPECIALIDADTextBox.Text) nuevafila(7) = UCase(GRUPOTextBox.Text) nuevafila(8) = UCase(TURNOTextBox.Text) End If End Sub
  • 4. Anayenzi Perez Mena-- 606 ○Botón eliminar○ Dim response As MsgBoxResult Dim MSG As String Dim TITULO As String Dim ESTILO As MsgBoxStyle Dim registroactual As DataRowView ESTILO = MsgBoxStyle.YesNo TITULO = "Borrando..." MSG = " ¿Desea Borrar Los Datos.?" Dim c1 As String Dim c2 As String Dim res As Boolean Dim bandera As Boolean bandera = True Dim SI As Integer SI = SI Dim tam As Integer tam = ALTASBindingSource.Count() ALTASBindingSource.MoveFirst() res = False c1 = RTrim(TextBox1.Text) c2 = RTrim(MATRICULATextBox.Text) If (tam = 0) Then MsgBox("tabla vacia") Else ALTASBindingSource.MoveFirst() c1 = UCase(Trim(MATRICULATextBox.Text)) Do
  • 5. Anayenzi Perez Mena-- 606 res = c1 Like c2 If (res = True) Then bandera = False Else ALTASBindingSource.MoveNext() c1 = UCase(Trim(MATRICULATextBox.Text)) SI += 1 End If Loop While (bandera = True And SI <= tam) End If If (bandera = True) Then MATRICULATextBox.Enabled = False MATRICULATextBox.Visible = False NOMBRETextBox.Enabled = False NOMBRETextBox.Visible = False APELLIDOTextBox.Enabled = False APELLIDOTextBox.Visible = False TURNOTextBox.Enabled = False TURNOTextBox.Visible = False GRUPOTextBox.Enabled = False GRUPOTextBox.Visible = False ESPECIALIDADTextBox.Enabled = False ESPECIALIDADTextBox.Visible = False TextBox1.Text = "" TextBox1.Focus() MsgBox("Alumno No Encontrado") Else MATRICULATextBox.Enabled = False MATRICULATextBox.Visible = True NOMBRETextBox.Enabled = False NOMBRETextBox.Visible = True APELLIDOTextBox.Enabled = False APELLIDOTextBox.Visible = True TURNOTextBox.Enabled = False TURNOTextBox.Visible = True GRUPOTextBox.Enabled = False GRUPOTextBox.Visible = True ESPECIALIDADTextBox.Enabled = False ESPECIALIDADTextBox.Visible = True TextBox1.Text = "" TextBox1.Focus() response = MsgBox(MSG, ESTILO, TITULO) If (response = MsgBoxResult.Yes) Then registroactual = ALTASBindingSource.Current registroactual.Row.Delete() Me.ALTASTableAdapter.Update(Me.CODREP_________________________________DataSet.ALTAS) MsgBox("Se Borro EL Registro De la Tabla..") MATRICULATextBox.Enabled = False MATRICULATextBox.Visible = False NOMBRETextBox.Enabled = False
  • 6. Anayenzi Perez Mena-- 606 NOMBRETextBox.Visible = False APELLIDOTextBox.Enabled = False APELLIDOTextBox.Visible = False TURNOTextBox.Enabled = False TURNOTextBox.Visible = False GRUPOTextBox.Enabled = False GRUPOTextBox.Visible = False ESPECIALIDADTextBox.Enabled = False ESPECIALIDADTextBox.Visible = False TextBox1.Text = "" TextBox1.Focus() Else MATRICULATextBox.Enabled = False MATRICULATextBox.Visible = False NOMBRETextBox.Enabled = False NOMBRETextBox.Visible = False APELLIDOTextBox.Enabled = False APELLIDOTextBox.Visible = False TURNOTextBox.Enabled = False TURNOTextBox.Visible = False GRUPOTextBox.Enabled = False GRUPOTextBox.Visible = False ESPECIALIDADTextBox.Enabled = False ESPECIALIDADTextBox.Visible = False TextBox1.Text = "" TextBox1.Focus() MsgBox("NO SE HA BORRADO EL REGISTRO DE LA TABLA...") End If End If End Sub ○Grabando Ahora○ If (CODREP_________________________________DataSet.HasChanges) Then Me.Validate() Me.ALTASBindingSource.EndEdit() Me.ALTASTableAdapter.Update(Me.BaseCODREPDataSet.ALTAS) MsgBox("Datos Grabando ahora") TextBox1.Text = "" TextBox1.Focus() MATRICULATextBox.Enabled = False NOMBRETextBox.Enabled = False APELLIDOTextBox.Enabled = False ESPECIALIDADTextBox.Enabled = False GRUPOTextBox.Enabled = False End If End Sub