Added importCountry

This commit is contained in:
2025-01-22 16:52:49 +01:00
parent 180f8e5ae9
commit c2edfab9a2
14 changed files with 17805 additions and 482 deletions

View File

@@ -24,6 +24,12 @@ import QtQuick.Layouts
ButtonGroup
{
buttons: radio.children
onClicked:
{
checkFields()
personalData.requiredField()
}
}
Row
@@ -39,6 +45,7 @@ import QtQuick.Layouts
RadioButton
{
text: qsTr("Mitarbeiter")
}
}
RowLayout
@@ -87,23 +94,16 @@ import QtQuick.Layouts
checked: false
}
CheckBox
{
id: checkbankdata
Layout.fillWidth: true
text: qsTr("Bankdaten")
checked: false
}
ApplicantBankData
{
id: checkbankData
visible: checkbankdata.checked
id: bankAccount
}
ApplicantNationalInsurance
{
id: nationalInsurance
}
ApplicantVarious
@@ -117,10 +117,7 @@ import QtQuick.Layouts
}
}
Item
{
Layout.fillHeight: true
}
RowLayout
{
@@ -153,6 +150,24 @@ import QtQuick.Layouts
// }
}
}
Item
{
Layout.fillHeight: true
}
function checkFields()
{
if(radio.children[1].checked)
{
if(!personalData.checkPersonalField() || !bankAccount.checkBankField() )
saveBtn.enabled = false
else
saveBtn.enabled = true
}
else if (!personalData.checkPersonalField())
saveBtn.enabled = false
else
saveBtn.enabled = true
}
}
//}