Employee/Applicant GUI and DB

This commit is contained in:
2025-02-14 12:05:45 +01:00
parent 80bd2c9be2
commit 5ff4749247
10 changed files with 199 additions and 52 deletions

View File

@@ -8,6 +8,9 @@ ColumnLayout
{
id: colPar
anchors.fill: parent
Layout.fillWidth: true
Layout.fillHeight: true
implicitWidth: parent.width
Label
{
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
@@ -29,7 +32,7 @@ ColumnLayout
{
Layout.fillWidth: true
id: radio
Layout.columnSpan: 2
//Layout.columnSpan: 2
RadioButton
{
checked: true
@@ -40,15 +43,30 @@ ColumnLayout
text: qsTr("Mitarbeiter")
}
}
// ScrollView
// {
// Layout.fillHeight: true
// Layout.fillWidth: true
// implicitWidth: parent.width
// ColumnLayout
// {
// anchors.fill: parent
// //implicitWidth: parent.width
// //width: parent.width
// //height: parent.height
RowLayout
{
Layout.fillWidth: true
//implicitWidth: parent.width
spacing: 50
Frame
{
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
//implicitWidth: parent.width
ApplicantPersonalData
{
id: personalData
@@ -64,7 +82,7 @@ ColumnLayout
ColumnLayout
{
Layout.alignment: Qt.AlignTop
width: parent.width
implicitWidth: parent.width
ApplicantBankData
{
@@ -84,9 +102,14 @@ ColumnLayout
}
}
RowLayout
Item
{
Layout.fillHeight: true
}
RowLayout
{
Layout.fillWidth: true
Layout.alignment: Qt.AlignRight
Button
{
@@ -105,7 +128,7 @@ ColumnLayout
{
// Ein Bewerber
new_applicant = JsLib.parseForm(personalData)
employee_model.addEmployee(new_applicant, false)
employee_model.addEmployee(new_applicant, true)
// appLoader.source = "EmployeeTable.qml"
// console.log(JSON.stringify (new_applicant))
}
@@ -114,7 +137,7 @@ ColumnLayout
// Ein Mitarbeiter
// console.log(personalData, bankAccount, nationalInsurance, applicantVarious)
new_applicant = JsLib.parseForm(personalData, bankAccount, nationalInsurance, applicantVarious)
employee_model.addEmployee(new_applicant, true)
employee_model.addEmployee(new_applicant, false)
// var new_contact = JsLib.addApplicant(addContactLayout)
// contact_model.addContact(new_contact)
// console.log(JSON.stringify (new_applicant))
@@ -122,10 +145,9 @@ ColumnLayout
}
}
}
Item
{
Layout.fillHeight: true
}
// }
// } // ScrollView
function checkFields()
{
if(radio.children[1].checked)