Änderung auf Betroffene
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Registrierung BY DANIEL SCHLAPA
|
# Betroffene BY DANIEL SCHLAPA
|
||||||
|
|
||||||
# Bsp. QRCODE: Mustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;;
|
# Bsp. QRCODE: Mustermann;Max;01.01.2024;m;40000;Musterstadt;deutsch;Musterstraße 1;;;;;;
|
||||||
# qrcode = "Mustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;;"
|
# qrcode = "Mustermann;Max;01.01.2024;m;40000;Musterstadt;deutsch;Musterstraße 1;;;;;;"
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import qrcode
|
import qrcode
|
||||||
@@ -24,11 +24,10 @@ else:
|
|||||||
|
|
||||||
def input_code():
|
def input_code():
|
||||||
scancode = input("Scan den QR-Code: ").strip()
|
scancode = input("Scan den QR-Code: ").strip()
|
||||||
arbeitskartencode = input("Scan den Arbeitskartencode: ").strip()
|
|
||||||
|
|
||||||
if ';' in scancode:
|
if ';' in scancode:
|
||||||
kompletter_qrcode = scancode
|
kompletter_qrcode = scancode
|
||||||
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, _, hiorg, _, _, _, _ = kompletter_qrcode.split(";")
|
nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, _, _, _, _, _, _, _ = kompletter_qrcode.split(";")
|
||||||
kompletter_name = nachname + ", " + vorname
|
kompletter_name = nachname + ", " + vorname
|
||||||
|
|
||||||
print("AUSGABE DER DATEN")
|
print("AUSGABE DER DATEN")
|
||||||
@@ -41,15 +40,13 @@ def input_code():
|
|||||||
print("Geburtsdatum: " + geburtsdatum)
|
print("Geburtsdatum: " + geburtsdatum)
|
||||||
print("Geschlecht: " + geschlecht)
|
print("Geschlecht: " + geschlecht)
|
||||||
print("Nationalität: " + nationalitaet)
|
print("Nationalität: " + nationalitaet)
|
||||||
print("Hilfsorganisation: " + hiorg)
|
|
||||||
print("Arbeitskartencode:" + arbeitskartencode)
|
|
||||||
start_datum = time.strftime("%d.%m.%Y")
|
start_datum = time.strftime("%d.%m.%Y")
|
||||||
start_uhrzeit = time.strftime("%H:%M:%S")
|
start_uhrzeit = time.strftime("%H:%M:%S")
|
||||||
print(f"Einsatzbeginn: {start_datum} - {start_uhrzeit}")
|
print(f"Erfasst um: {start_datum} - {start_uhrzeit}")
|
||||||
else:
|
else:
|
||||||
print("Code: " + scancode)
|
print("Code: " + scancode)
|
||||||
|
|
||||||
return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, hiorg, arbeitskartencode
|
return nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse
|
||||||
|
|
||||||
|
|
||||||
def make_qrcode():
|
def make_qrcode():
|
||||||
@@ -63,14 +60,15 @@ def make_qrcode():
|
|||||||
def main():
|
def main():
|
||||||
print("""Menü
|
print("""Menü
|
||||||
----
|
----
|
||||||
[1] - Einregistrieren
|
[1] - Betroffne einregistrieren
|
||||||
[2] - Ausregistrieren
|
[2] - Betroffne ausregistrieren
|
||||||
|
[3] - Betroffne suchen
|
||||||
|
|
||||||
[3] - QR-Code erstellen
|
[4] - QR-Code erstellen
|
||||||
|
|
||||||
[4] - Test
|
[5] - Test
|
||||||
|
|
||||||
[5] - Ende""")
|
[6] - Ende""")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
menu_auswahl = int(input("Menüpunkt: "))
|
menu_auswahl = int(input("Menüpunkt: "))
|
||||||
@@ -80,10 +78,12 @@ def main():
|
|||||||
elif (menu_auswahl == 2):
|
elif (menu_auswahl == 2):
|
||||||
print("SORRY - 2")
|
print("SORRY - 2")
|
||||||
elif (menu_auswahl == 3):
|
elif (menu_auswahl == 3):
|
||||||
make_qrcode()
|
print("SORRY - 3")
|
||||||
elif (menu_auswahl == 4):
|
elif (menu_auswahl == 4):
|
||||||
print("SORRY - 4")
|
make_qrcode()
|
||||||
elif (menu_auswahl == 5):
|
elif (menu_auswahl == 5):
|
||||||
|
print("SORRY - 5")
|
||||||
|
elif (menu_auswahl == 6):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
print("Auswahl ist ungültig!")
|
print("Auswahl ist ungültig!")
|
||||||
BIN
MustermannMax_qrcode.png
Normal file
BIN
MustermannMax_qrcode.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
Reference in New Issue
Block a user