Use ORM for applicants

This commit is contained in:
Yuri Becker
2025-04-21 23:45:33 +02:00
parent 0ae153617b
commit 45f19d80d0
45 changed files with 388 additions and 354 deletions

View File

@@ -1,26 +1,34 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import TeroStyle
Item {
property var employee
property int row
ColumnLayout {
property int row: -1
anchors.fill: parent
spacing: Dimensions.l
onRowChanged: {
employee = employee_model.fetchApplicant(row);
if (row !== -1) {
applicantForm.setValue(applicantModel.applicant(row))
}
}
ColumnLayout {
Label {
text: qsTr("Ausgewählter Mitarbeiter ") + row
}
Label {
text: employee.postcode ?? ""
}
Button {
text: qsTr("Mitarbeiter zeigen")
ApplicantForm {
id: applicantForm
onClicked: contentStack.pop()
Layout.alignment: Qt.AlignTop
Layout.fillHeight: true
Layout.verticalStretchFactor: 1
}
RowLayout {
spacing: Dimensions.l
Button {
text: qsTr("Als Mitarbeiter:in Einstellen")
icon.source: "qrc:/images/InboxArrowDown.svg"
}
}
}