Added Houseno inte ApplicantPersonalData
This commit is contained in:
@@ -5,7 +5,7 @@ import QtQuick.Layouts
|
|||||||
GridLayout
|
GridLayout
|
||||||
{
|
{
|
||||||
id: personalData
|
id: personalData
|
||||||
columns: 2
|
columns: 4
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -20,6 +20,7 @@ GridLayout
|
|||||||
model: [qsTr("Herr"), qsTr("Frau")]
|
model: [qsTr("Herr"), qsTr("Frau")]
|
||||||
onCurrentTextChanged: briefAnrede.text = title.currentText === "Herr"? "Sehr geehrter " +
|
onCurrentTextChanged: briefAnrede.text = title.currentText === "Herr"? "Sehr geehrter " +
|
||||||
title.currentText: "Sehr geehrte " + title.currentText
|
title.currentText: "Sehr geehrte " + title.currentText
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -33,7 +34,7 @@ GridLayout
|
|||||||
placeholderText: "Pflichtfeld"
|
placeholderText: "Pflichtfeld"
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
onTextChanged: checkFields()
|
onTextChanged: checkFields()
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -47,7 +48,7 @@ GridLayout
|
|||||||
placeholderText: "Pflichtfeld"
|
placeholderText: "Pflichtfeld"
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
onTextChanged: checkFields()
|
onTextChanged: checkFields()
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -60,14 +61,26 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
|
||||||
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Nr.")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "houseno"
|
||||||
|
id: houseno
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderTextColor: "red"
|
||||||
|
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("PLZ")
|
text: qsTr("PLZ")
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
RowLayout
|
|
||||||
{
|
|
||||||
ComboBox
|
ComboBox
|
||||||
{
|
{
|
||||||
id: postcode
|
id: postcode
|
||||||
@@ -86,6 +99,7 @@ GridLayout
|
|||||||
{
|
{
|
||||||
regularExpression: /([0-9]{1,5})/
|
regularExpression: /([0-9]{1,5})/
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -109,7 +123,7 @@ GridLayout
|
|||||||
currentIndex: -1
|
currentIndex: -1
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Telefonnummer")
|
text: qsTr("Telefonnummer")
|
||||||
@@ -120,6 +134,7 @@ GridLayout
|
|||||||
id: phonenumber
|
id: phonenumber
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -131,6 +146,7 @@ GridLayout
|
|||||||
id: cellphone
|
id: cellphone
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -142,6 +158,7 @@ GridLayout
|
|||||||
id: email
|
id: email
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -156,6 +173,7 @@ GridLayout
|
|||||||
editable: false
|
editable: false
|
||||||
model: [qsTr("ledig"), qsTr("verheiratet"), qsTr("verwitwet"), qsTr("geschieden")]
|
model: [qsTr("ledig"), qsTr("verheiratet"), qsTr("verwitwet"), qsTr("geschieden")]
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -169,6 +187,7 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -182,6 +201,7 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -195,6 +215,7 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -208,6 +229,7 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -219,12 +241,13 @@ GridLayout
|
|||||||
id: briefAnrede
|
id: briefAnrede
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 4
|
||||||
}
|
}
|
||||||
function checkPersonalField()
|
function checkPersonalField()
|
||||||
{
|
{
|
||||||
|
|||||||
17410
doc/db_schemer_v1.1-pyqcrm-202501231021.sql
Normal file
17410
doc/db_schemer_v1.1-pyqcrm-202501231021.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -14,9 +14,11 @@ class AddressDAO:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def __importPlz(self):
|
def __importPlz(self):
|
||||||
with open("import json filepath here", "r") as plz:
|
with open("pfad zur datei", "r") as plz:
|
||||||
postcodes = json.load(plz)
|
postcodes = json.load(plz)
|
||||||
|
irgendwas = ""
|
||||||
try:
|
try:
|
||||||
for i in postcodes:
|
for i in postcodes:
|
||||||
test =i["plz_name"].split(",")
|
test =i["plz_name"].split(",")
|
||||||
@@ -26,7 +28,8 @@ class AddressDAO:
|
|||||||
town = town.strip()
|
town = town.strip()
|
||||||
if town:
|
if town:
|
||||||
print(f"PROCESSING {i['name']} {town}")
|
print(f"PROCESSING {i['name']} {town}")
|
||||||
self.__cur.callproc("addZipCodes", (i["name"], town,))
|
self.__cur.callproc("addZipCodes", (i["name"], town, irgendwas,))
|
||||||
|
#self.__cur.callproc("addZipCodes", ("56271", "Kleinmaischeid", irgendwas,))
|
||||||
except mariadb.OperationalError as e:
|
except mariadb.OperationalError as e:
|
||||||
print(f"Database Error: {e}")
|
print(f"Database Error: {e}")
|
||||||
finally:
|
finally:
|
||||||
@@ -34,7 +37,7 @@ class AddressDAO:
|
|||||||
print("FINISHED")#
|
print("FINISHED")#
|
||||||
|
|
||||||
def __importCountry(self):
|
def __importCountry(self):
|
||||||
with open("/home/dstoppek/Downloads/staaten.json", "r") as country:
|
with open("pfad zur datei", "r") as country:
|
||||||
countries = json.load(country)
|
countries = json.load(country)
|
||||||
old = ""
|
old = ""
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user