Guten Abend,
ich habe ein eignes Programm geschrieben und bei einigen sachen hatt mein Ex Kollege mir geholfen und somit auch das Problemm das ich euch schildere.
Es geht hier um ein Patientenprotokoll für Rettungsdienst das ist zuerst ein Ausfüllbogen der Funktioniert einmanfrei und wenn mann dieses abgespeichert hat wird alles in der Datenbank gespeichert und danach kann mann sich mit einem Viever sich die eingaben die der RS oder RSA gemacht hatt anschauen.
Nur mein Ex Kollege hat was eingebaut wo ich nicht wollte unzwar wir wenn man den Protokoll Viever im Progarmm aufrucht nur der Button 1 = Patienten Daten und das Panel 2 angezeigt, aber ich möchte ja das mann die Buttons nacheinander anklicken kann und das mann dan die Verschiedene Panels angezeigt bekommt.
1 Bild zeigt den Viever
2 Bild zeigt wenn man das Protokoll ausgewählt hatt
und beim zweiten bild sieht mann das nur das Panel 2 ersichtlich ist, aber wir wollen das ja das wenn man auf die Buttons Klickt die Panels angezeigt bekommen.
Hier nun den code
Spoiler anzeigen
leider habe ich keinen Kontakt mehr zu meinem Ex Kollege aus Gründen die man hammer nennen darf
Ich hoffe um Zahlreiche Hilfe
MFG
EDIT by LaMa5:
- bei langen Quelltexten, Fehlermeldungen etc. bitte den Expander verwenden
--> Expander eingefügt
ich habe ein eignes Programm geschrieben und bei einigen sachen hatt mein Ex Kollege mir geholfen und somit auch das Problemm das ich euch schildere.
Es geht hier um ein Patientenprotokoll für Rettungsdienst das ist zuerst ein Ausfüllbogen der Funktioniert einmanfrei und wenn mann dieses abgespeichert hat wird alles in der Datenbank gespeichert und danach kann mann sich mit einem Viever sich die eingaben die der RS oder RSA gemacht hatt anschauen.
Nur mein Ex Kollege hat was eingebaut wo ich nicht wollte unzwar wir wenn man den Protokoll Viever im Progarmm aufrucht nur der Button 1 = Patienten Daten und das Panel 2 angezeigt, aber ich möchte ja das mann die Buttons nacheinander anklicken kann und das mann dan die Verschiedene Panels angezeigt bekommt.
1 Bild zeigt den Viever
2 Bild zeigt wenn man das Protokoll ausgewählt hatt
und beim zweiten bild sieht mann das nur das Panel 2 ersichtlich ist, aber wir wollen das ja das wenn man auf die Buttons Klickt die Panels angezeigt bekommen.
Hier nun den code
Quellcode
- Public Class RD_DIVI_Viever_PI
- Private db As New MySqlLib("http://meine seite wo die query.php gespeichert ist/query.php", True)
- Private Sub RD_DIVI_Viever_PI_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Dim result As MySqlLib.ResultCollection = db.Query("SELECT `einsatznr` FROM `ils_divi` WHERE `fsid` = '" & Main.FSID.Text & "'")
- If result.Row.Count > 0 Then
- For xy As Integer = 1 To result.Row.Count Step 1
- ComboBox18.Items.Add(result.Row(xy - 1).Column("einsatznr"))
- Next
- Else
- MessageBox.Show("Im aktuellen Funkspiel existieren keine DIVI-Protkolle", "Funkspiel-ILS", MessageBoxButtons.OK, MessageBoxIcon.Information)
- Me.Close()
- End If
- End Sub
- Private Sub ComboBox18_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox18.SelectedIndexChanged
- ComboBox19.Items.Clear()
- If ComboBox18.SelectedIndex > -1 Then
- Dim result As MySqlLib.ResultCollection = db.Query("SELECT `funkruf` FROM `ils_divi` WHERE `fsid` = '" & Main.FSID.Text & "' AND `einsatznr` = '" & ComboBox18.Text & "'")
- If result.Row.Count > 0 Then
- For xy As Integer = 1 To result.Row.Count Step 1
- ComboBox19.Items.Add(result.Row(xy - 1).Column("funkruf"))
- Next
- Else
- MessageBox.Show("Ein unerwarteter Fehler ist aufgetreten. Der DIVI-Viewer wird geschlossen.", "Funkspiel-ILS", MessageBoxButtons.OK, MessageBoxIcon.Error)
- Me.Close()
- End If
- End If
- End Sub
- Private Sub RD_DIVI_Viever_PI_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
- Me.Dispose()
- End Sub
- Private Sub Button26_Click(sender As Object, e As EventArgs) Handles Button26.Click
- Try
- Dim result As MySqlLib.ResultCollection = db.Query("SELECT * FROM `ils_divi` WHERE `fsid` = '" & Main.FSID.Text & "' AND `einsatznr` = '" & ComboBox18.Text & "' AND `funkruf` = '" & ComboBox19.Text & "'")
- Panel2.Visible = True
- Panel3.Visible = False
- Panel4.Visible = False
- Panel5.Visible = False
- Panel6.Visible = False
- Panel7.Visible = False
- Panel8.Visible = False
- Panel9.Visible = False
- Button1.BackColor = Color.Yellow
- Button2.BackColor = SystemColors.Control
- Button3.BackColor = SystemColors.Control
- Button4.BackColor = SystemColors.Control
- Button5.BackColor = SystemColors.Control
- Button6.BackColor = SystemColors.Control
- Button7.BackColor = SystemColors.Control
- Button8.BackColor = SystemColors.Control
- TextBox1.Text = result.Row(0).Column("pat_name")
- TextBox2.Text = result.Row(0).Column("pat_vorname")
- Label21.Text = result.Row(0).Column("pat_gebdat")
- Dim GTag As Date = Label21.Text
- Dim Alter As String = Now.Year - GTag.Year
- If Alter > 0 Then
- If Alter > 1 Then
- Label81.Text = Alter & " Jahre"
- Else
- Label81.Text = Alter & " Jahr"
- End If
- Else
- Alter = Now.Month - GTag.Month
- If Alter > 1 Then
- Label81.Text = Alter & " Monate"
- Else
- Label81.Text = Alter & " Monat"
- End If
- End If
- TextBox4.Text = result.Row(0).Column("pers_rtw_ra")
- TextBox5.Text = result.Row(0).Column("pers_rtw_rs")
- TextBox6.Text = result.Row(0).Column("pers_nef_na")
- TextBox7.Text = result.Row(0).Column("pers_nef_ra")
- TextBox8.Text = result.Row(0).Column("einsatzort")
- TextBox9.Text = result.Row(0).Column("transportziel")
- ComboBox4.Text = result.Row(0).Column("tz_art")
- ComboBox2.Text = result.Row(0).Column("e_zusammenfassung")
- ComboBox3.Text = result.Row(0).Column("grund_fehleinsatz")
- ComboBox5.Text = result.Row(0).Column("ersteintr_rm")
- ComboBox6.Text = result.Row(0).Column("nachforderung")
- TextBox18.Text = result.Row(0).Column("anamnese")
- TextBox10.Text = result.Row(0).Column("m1_gcs_augen")
- TextBox13.Text = result.Row(0).Column("m1_gcs_verbal")
- TextBox15.Text = result.Row(0).Column("m1_gcs_motorik")
- If TextBox10.Text = "4" Then
- TextBox11.Text = "spontan"
- ElseIf TextBox10.Text = "3" Then
- TextBox11.Text = "auf Aufforderung"
- ElseIf TextBox10.Text = "2" Then
- TextBox11.Text = "auf Schmerzreiz"
- ElseIf TextBox10.Text = "1" Then
- TextBox11.Text = "keine Reaktion"
- Else
- TextBox11.Text = ""
- TextBox10.Text = ""
- End If
- If TextBox13.Text = "5" Then
- TextBox12.Text = "orientiert konversationsfähig"
- ElseIf TextBox13.Text = "4" Then
- TextBox12.Text = "desorientiert konversationsfähig"
- ElseIf TextBox13.Text = "3" Then
- TextBox12.Text = "inadäquate Äußerungen"
- ElseIf TextBox13.Text = "2" Then
- TextBox12.Text = "unverständliche Laute"
- ElseIf TextBox13.Text = "1" Then
- TextBox12.Text = "keine Reaktion"
- Else
- TextBox12.Text = ""
- TextBox13.Text = ""
- End If
- If TextBox15.Text = "6" Then
- TextBox14.Text = "auf Aufforderung"
- ElseIf TextBox15.Text = "5" Then
- TextBox14.Text = "auf Schmerzreiz gezielt"
- ElseIf TextBox15.Text = "4" Then
- TextBox14.Text = "normale Beugeabwehr"
- ElseIf TextBox15.Text = "3" Then
- TextBox14.Text = "abnorme Abwehr"
- ElseIf TextBox15.Text = "2" Then
- TextBox14.Text = "Strecksynergismen"
- ElseIf TextBox15.Text = "1" Then
- TextBox14.Text = "keine Reaktion"
- Else
- TextBox14.Text = ""
- TextBox15.Text = ""
- End If
- Dim mees As Integer = 1 * (TextBox10.Text + TextBox13.Text + TextBox15.Text)
- If mees = 15 Then
- Button9.Text = "4"
- ElseIf mees >= 12 Then
- Button9.Text = "3"
- ElseIf mees >= 8 Then
- Button9.Text = "2"
- ElseIf mees < 8 Then
- Button9.Text = "1"
- End If
- ComboBox7.Text = result.Row(0).Column("m1_moni_ekg")
- TextBox19.Text = result.Row(0).Column("m1_hf")
- TextBox16.Text = result.Row(0).Column("m1_rr")
- TextBox39.Text = result.Row(0).Column("m1_o2")
- Dim hilf As Integer = 0
- If ComboBox7.Text = "Sinusrhythmus" Then
- hilf += 4
- ElseIf ComboBox7.Text = "SVES" Then
- hilf += 3
- ElseIf ComboBox7.Text = "VES, monomorph" Then
- hilf += 3
- ElseIf ComboBox7.Text = "VES, polymorph" Then
- hilf += 2
- ElseIf ComboBox7.Text = "Arrhythmia absoluta" Then
- hilf += 2
- ElseIf ComboBox7.Text = "STEMI" Then
- hilf += 2
- ElseIf ComboBox7.Text = "AV-Block" Then
- hilf += 2
- ElseIf ComboBox7.Text = "Vetrikuläre Tachykardie" Then
- hilf += 1
- ElseIf ComboBox7.Text = "Asystolie" Then
- hilf += 1
- ElseIf ComboBox7.Text = "Pulslose elektrische Aktivität" Then
- hilf += 1
- ElseIf ComboBox7.Text = "Kammerflimmern" Then
- hilf += 1
- End If
- If TextBox19.Text >= "60" And TextBox19.Text <= "100" Then
- hilf += 4
- ElseIf TextBox19.Text <= "59" And TextBox19.Text >= "50" Then
- hilf += 3
- ElseIf TextBox19.Text >= "101" And TextBox19.Text <= "130" Then
- hilf += 3
- ElseIf TextBox19.Text >= "40" And TextBox19.Text <= "49" Then
- hilf += 2
- ElseIf TextBox19.Text >= "131" And TextBox19.Text <= "160" Then
- hilf += 2
- ElseIf TextBox19.Text >= "160" Then
- hilf += 1
- ElseIf TextBox19.Text <= "39" Then
- hilf += 1
- End If
- If TextBox16.Text >= "120" And TextBox16.Text <= "140" Then
- hilf += 4
- ElseIf TextBox16.Text >= "100" And TextBox16.Text <= "119" Then
- hilf += 3
- ElseIf TextBox16.Text >= "141" And TextBox16.Text <= "159" Then
- hilf += 3
- ElseIf TextBox16.Text >= "80" And TextBox16.Text <= "99" Then
- hilf += 2
- ElseIf TextBox16.Text >= "160" And TextBox16.Text <= "229" Then
- hilf += 2
- ElseIf TextBox16.Text >= "230" Then
- hilf += 1
- ElseIf TextBox16.Text <= "79" Then
- hilf += 1
- End If
- If TextBox39.Text >= "96" And TextBox39.Text <= "100" Then
- hilf += 4
- ElseIf TextBox39.Text >= "91" And TextBox39.Text <= "95" Then
- hilf += 3
- ElseIf TextBox39.Text >= "86" And TextBox39.Text <= "90" Then
- hilf += 2
- ElseIf TextBox39.Text <= "85" Then
- hilf += 1
- End If
- Button10.Text = hilf
- TextBox24.Text = result.Row(0).Column("m1_af")
- ComboBox8.Text = result.Row(0).Column("m1_atemform")
- ComboBox9.Text = result.Row(0).Column("m1_schmerz")
- hilf = 0
- If TextBox24.Text >= "12" And TextBox24.Text <= "18" Then
- hilf += 4
- ElseIf TextBox24.Text >= "8" And TextBox24.Text <= "11" Then
- hilf += 3
- ElseIf TextBox24.Text >= "19" And TextBox24.Text <= "24" Then
- hilf += 3
- ElseIf TextBox24.Text >= "5" And TextBox24.Text <= "7" Then
- hilf += 2
- ElseIf TextBox24.Text >= "25" And TextBox24.Text <= "30" Then
- hilf += 2
- ElseIf TextBox24.Text >= "31" Then
- hilf += 1
- ElseIf TextBox24.Text <= "4" Then
- hilf += 1
- End If
- If ComboBox9.Text = "keine Schmerzen" Then
- hilf += 4
- ElseIf ComboBox9.Text = "leichte Schmerzen" Then
- hilf += 3
- ElseIf ComboBox9.Text = "starke Schmerzen" Then
- hilf += 2
- ElseIf ComboBox9.Text = "entfällt" Then
- hilf += 0
- End If
- Button11.Text = hilf
- TextBox40.Text = result.Row(0).Column("m1_bz")
- TextBox41.Text = result.Row(0).Column("m1_temp")
- TextBox38.Text = result.Row(0).Column("erstbef_erkrankung")
- Label32.Text = result.Row(0).Column("erstbef_t_sht")
- Label33.Text = result.Row(0).Column("erstbef_t_ges")
- Label34.Text = result.Row(0).Column("erstbef_t_hws")
- Label35.Text = result.Row(0).Column("erstbef_t_thorax")
- Label36.Text = result.Row(0).Column("erstbef_t_abdomen")
- Label37.Text = result.Row(0).Column("erstbef_t_rws")
- Label38.Text = result.Row(0).Column("erstbef_t_becken")
- Label39.Text = result.Row(0).Column("erstbef_t_oex")
- Label40.Text = result.Row(0).Column("erstbef_t_uex")
- Label41.Text = result.Row(0).Column("erstbef_t_weicht")
- ComboBox10.Text = result.Row(0).Column("erstbef_traumaart")
- ComboBox11.Text = result.Row(0).Column("erstbef_unfallmech")
- TextBox33.Text = result.Row(0).Column("massn_hkl")
- TextBox17.Text = result.Row(0).Column("massn_atmung")
- TextBox20.Text = result.Row(0).Column("massn_lagerung")
- TextBox21.Text = result.Row(0).Column("massn_sonst")
- TextBox32.Text = result.Row(0).Column("medis")
- TextBox22.Text = result.Row(0).Column("verlauf")
- TextBox35.Text = result.Row(0).Column("m2_gcs_augen")
- TextBox31.Text = result.Row(0).Column("m2_gcs_verbal")
- TextBox29.Text = result.Row(0).Column("m2_gcs_motorik")
- If TextBox35.Text = "4" Then
- TextBox34.Text = "spontan"
- ElseIf TextBox35.Text = "3" Then
- TextBox34.Text = "auf Aufforderung"
- ElseIf TextBox35.Text = "2" Then
- TextBox34.Text = "auf Schmerzreiz"
- ElseIf TextBox35.Text = "1" Then
- TextBox34.Text = "keine Reaktion"
- Else
- TextBox35.Text = ""
- TextBox34.Text = ""
- End If
- If TextBox31.Text = "5" Then
- TextBox30.Text = "orientiert konversationsfähig"
- ElseIf TextBox31.Text = "4" Then
- TextBox30.Text = "desorientiert konversationsfähig"
- ElseIf TextBox31.Text = "3" Then
- TextBox30.Text = "inadäquate Äußerungen"
- ElseIf TextBox31.Text = "2" Then
- TextBox30.Text = "unverständliche Laute"
- ElseIf TextBox31.Text = "1" Then
- TextBox30.Text = "keine Reaktion"
- Else
- TextBox31.Text = ""
- TextBox30.Text = ""
- End If
- If TextBox29.Text = "6" Then
- TextBox28.Text = "auf Aufforderung"
- ElseIf TextBox29.Text = "5" Then
- TextBox28.Text = "auf Schmerzreiz gezielt"
- ElseIf TextBox29.Text = "4" Then
- TextBox28.Text = "normale Beugeabwehr"
- ElseIf TextBox29.Text = "3" Then
- TextBox28.Text = "abnorme Abwehr"
- ElseIf TextBox29.Text = "2" Then
- TextBox28.Text = "Strecksynergismen"
- ElseIf TextBox29.Text = "1" Then
- TextBox28.Text = "keine Reaktion"
- Else
- TextBox29.Text = ""
- TextBox28.Text = ""
- End If
- ComboBox14.Text = result.Row(0).Column("m2_moni_ekg")
- TextBox27.Text = result.Row(0).Column("m2_hf")
- TextBox26.Text = result.Row(0).Column("m2_rr")
- TextBox25.Text = result.Row(0).Column("m2_o2")
- hilf = 0
- If ComboBox14.Text = "Sinusrhythmus" Then
- hilf += 4
- ElseIf ComboBox14.Text = "SVES" Then
- hilf += 3
- ElseIf ComboBox14.Text = "VES, monomorph" Then
- hilf += 3
- ElseIf ComboBox14.Text = "VES, polymorph" Then
- hilf += 2
- ElseIf ComboBox14.Text = "Arrhythmia absoluta" Then
- hilf += 2
- ElseIf ComboBox14.Text = "STEMI" Then
- hilf += 2
- ElseIf ComboBox14.Text = "AV-Block" Then
- hilf += 2
- ElseIf ComboBox14.Text = "Vetrikuläre Tachykardie" Then
- hilf += 1
- ElseIf ComboBox14.Text = "Asystolie" Then
- hilf += 1
- ElseIf ComboBox14.Text = "Pulslose elektrische Aktivität" Then
- hilf += 1
- ElseIf ComboBox14.Text = "Kammerflimmern" Then
- hilf += 1
- End If
- If TextBox25.Text >= "60" And TextBox25.Text <= "100" Then
- hilf += 4
- ElseIf TextBox25.Text <= "59" And TextBox25.Text >= "50" Then
- hilf += 3
- ElseIf TextBox25.Text >= "101" And TextBox25.Text <= "130" Then
- hilf += 3
- ElseIf TextBox25.Text >= "40" And TextBox25.Text <= "49" Then
- hilf += 2
- ElseIf TextBox25.Text >= "131" And TextBox25.Text <= "160" Then
- hilf += 2
- ElseIf TextBox25.Text >= "160" Then
- hilf += 1
- ElseIf TextBox25.Text <= "39" Then
- hilf += 1
- End If
- If TextBox23.Text >= "120" And TextBox23.Text <= "140" Then
- hilf += 4
- ElseIf TextBox23.Text >= "100" And TextBox23.Text <= "119" Then
- hilf += 3
- ElseIf TextBox23.Text >= "141" And TextBox23.Text <= "159" Then
- hilf += 3
- ElseIf TextBox23.Text >= "80" And TextBox23.Text <= "99" Then
- hilf += 2
- ElseIf TextBox23.Text >= "160" And TextBox23.Text <= "229" Then
- hilf += 2
- ElseIf TextBox23.Text >= "230" Then
- hilf += 1
- ElseIf TextBox23.Text <= "79" Then
- hilf += 1
- End If
- If TextBox22.Text >= "96" And TextBox22.Text <= "100" Then
- hilf += 4
- ElseIf TextBox22.Text >= "91" And TextBox22.Text <= "95" Then
- hilf += 3
- ElseIf TextBox22.Text >= "86" And TextBox22.Text <= "90" Then
- hilf += 2
- ElseIf TextBox22.Text <= "85" Then
- hilf += 1
- End If
- Button23.Text = hilf
- TextBox23.Text = result.Row(0).Column("m2_af")
- ComboBox13.Text = result.Row(0).Column("m2_atemform")
- ComboBox12.Text = result.Row(0).Column("m2_schmerz")
- TextBox3.Text = result.Row(0).Column("m2_bz")
- TextBox36.Text = result.Row(0).Column("m2_temp")
- hilf = 0
- If TextBox21.Text >= "12" And TextBox21.Text <= "18" Then
- hilf += 4
- ElseIf TextBox21.Text >= "8" And TextBox21.Text <= "11" Then
- hilf += 3
- ElseIf TextBox21.Text >= "19" And TextBox21.Text <= "24" Then
- hilf += 3
- ElseIf TextBox21.Text >= "5" And TextBox21.Text <= "7" Then
- hilf += 2
- ElseIf TextBox21.Text >= "25" And TextBox21.Text <= "30" Then
- hilf += 2
- ElseIf TextBox21.Text >= "31" Then
- hilf += 1
- ElseIf TextBox21.Text <= "4" Then
- hilf += 1
- End If
- If ComboBox12.Text = "keine Schmerzen" Then
- hilf += 4
- ElseIf ComboBox12.Text = "leichte Schmerzen" Then
- hilf += 3
- ElseIf ComboBox12.Text = "starke Schmerzen" Then
- hilf += 2
- ElseIf ComboBox12.Text = "entfällt" Then
- hilf += 0
- End If
- Button22.Text = hilf
- ' DELTA-MEES berechnen
- Button25.Text = 1 * ((Button23.Text + Button22.Text + Button24.Text) - (Button9.Text + Button10.Text + Button11.Text))
- ComboBox15.Text = result.Row(0).Column("m2_zustandsverlauf")
- ComboBox16.Text = result.Row(0).Column("notfallkat")
- ComboBox17.Text = result.Row(0).Column("naca-score")
- TextBox37.Text = result.Row(0).Column("pers_einsatzkomm")
- Label4.Text = "Patient erfasst am " & result.Row(0).Column("erstellt_am") & " durch " & result.Row(0).Column("erstellt_durch")
- Catch ex As Exception
- MessageBox.Show("Es ist folgender Fehler aufgetreten:" & vbNewLine & "(" & ex.HResult & ") " & ex.Message, "Funkspiel-ILS", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
- End Try
- End Sub
- Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
- End Sub
- Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
- End Sub
- Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
- End Sub
- Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
- End Sub
- Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
- End Sub
- Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
- End Sub
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- End Sub
- Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
- End Sub
- End Class
leider habe ich keinen Kontakt mehr zu meinem Ex Kollege aus Gründen die man hammer nennen darf
Ich hoffe um Zahlreiche Hilfe
MFG
EDIT by LaMa5:
- bei langen Quelltexten, Fehlermeldungen etc. bitte den Expander verwenden
--> Expander eingefügt
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von „Norman18vk“ ()