Fetch applicant from database
This commit is contained in:
@@ -2,26 +2,25 @@ import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
Item
|
||||
{
|
||||
property int selectedEmployee: -1
|
||||
id: emDet
|
||||
ColumnLayout
|
||||
{
|
||||
Label
|
||||
{
|
||||
text: qsTr("Ausgewählter Mitarbeiter " + selectedEmployee)
|
||||
}
|
||||
Item {
|
||||
property var employee
|
||||
property int row
|
||||
|
||||
Button
|
||||
{
|
||||
onRowChanged: {
|
||||
employee = employee_model.fetchApplicant(row);
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
Label {
|
||||
text: qsTr("Ausgewählter Mitarbeiter ") + row
|
||||
}
|
||||
Label {
|
||||
text: employee.postcode ?? ""
|
||||
}
|
||||
Button {
|
||||
text: qsTr("Mitarbeiter zeigen")
|
||||
|
||||
onClicked: contentStack.pop()
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
employee_model.onRowClicked(selectedEmployee)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user