Compare commits
6 Commits
338733a0fb
...
74b00c0b94
| Author | SHA256 | Date | |
|---|---|---|---|
| 74b00c0b94 | |||
| 716915f333 | |||
| 538399b59a | |||
| 8e9fe46b96 | |||
| ba08715c9a | |||
| 104aba8347 |
@@ -3,13 +3,7 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import "../js/qmldict.js" as JsLib
|
import "../js/qmldict.js" as JsLib
|
||||||
|
|
||||||
// ScrollView
|
|
||||||
// {
|
|
||||||
// anchors.fill: parent
|
|
||||||
// ScrollBar.vertical: ScrollBar
|
|
||||||
// {
|
|
||||||
// policy: ScrollBar.AlwaysOn
|
|
||||||
// }
|
|
||||||
ColumnLayout
|
ColumnLayout
|
||||||
{
|
{
|
||||||
id: colPar
|
id: colPar
|
||||||
@@ -20,7 +14,6 @@ import "../js/qmldict.js" as JsLib
|
|||||||
id: headline
|
id: headline
|
||||||
text: qsTr("Mitarbeiter / Bewerber hinzufügen")
|
text: qsTr("Mitarbeiter / Bewerber hinzufügen")
|
||||||
font.pixelSize: 35
|
font.pixelSize: 35
|
||||||
|
|
||||||
}
|
}
|
||||||
ButtonGroup
|
ButtonGroup
|
||||||
{
|
{
|
||||||
@@ -30,7 +23,6 @@ import "../js/qmldict.js" as JsLib
|
|||||||
checkFields()
|
checkFields()
|
||||||
personalData.requiredField()
|
personalData.requiredField()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
@@ -46,7 +38,6 @@ import "../js/qmldict.js" as JsLib
|
|||||||
RadioButton
|
RadioButton
|
||||||
{
|
{
|
||||||
text: qsTr("Mitarbeiter")
|
text: qsTr("Mitarbeiter")
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout
|
RowLayout
|
||||||
@@ -74,28 +65,6 @@ import "../js/qmldict.js" as JsLib
|
|||||||
{
|
{
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
width: parent.width
|
width: parent.width
|
||||||
// CheckBox
|
|
||||||
// {
|
|
||||||
// id: checkcontactdata
|
|
||||||
// Layout.fillWidth: true
|
|
||||||
// text: qsTr("Kontaktdaten")
|
|
||||||
// checked: false
|
|
||||||
// }
|
|
||||||
|
|
||||||
// ApplicantContactData
|
|
||||||
// {
|
|
||||||
// visible: checkcontactdata.checked
|
|
||||||
// }
|
|
||||||
|
|
||||||
CheckBox
|
|
||||||
{
|
|
||||||
id: miniJobber
|
|
||||||
Layout.fillWidth: true
|
|
||||||
text: qsTr("Minijob")
|
|
||||||
checked: false
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ApplicantBankData
|
ApplicantBankData
|
||||||
{
|
{
|
||||||
@@ -109,17 +78,12 @@ import "../js/qmldict.js" as JsLib
|
|||||||
|
|
||||||
ApplicantVarious
|
ApplicantVarious
|
||||||
{
|
{
|
||||||
// Layout.margins:
|
id: applicantVarious
|
||||||
// {
|
|
||||||
// top: 30
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
@@ -136,19 +100,22 @@ import "../js/qmldict.js" as JsLib
|
|||||||
enabled: false
|
enabled: false
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
var new_applicant
|
||||||
if (radio.children[0].checked)
|
if (radio.children[0].checked)
|
||||||
{
|
{
|
||||||
var new_applicant = JsLib.addApplicant(personalData)
|
new_applicant = JsLib.parseForm(personalData)
|
||||||
// business_model.addApplicant(new_business, 0)
|
// business_model.addApplicant(new_business, 0)
|
||||||
// appLoader.source = "EmployeeTable.qml"
|
// appLoader.source = "EmployeeTable.qml"
|
||||||
console.log(JSON.stringify (new_applicant))
|
console.log(JSON.stringify (new_applicant))
|
||||||
}
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// new_applicant = JsLib.addApplicant(customerView)
|
// console.log(personalData, bankAccount, nationalInsurance, applicantVarious)
|
||||||
|
new_applicant = JsLib.parseForm(personalData, bankAccount, nationalInsurance, applicantVarious)
|
||||||
// var new_contact = JsLib.addApplicant(addContactLayout)
|
// var new_contact = JsLib.addApplicant(addContactLayout)
|
||||||
// contact_model.addContact(new_contact)
|
// contact_model.addContact(new_contact)
|
||||||
// }
|
console.log(JSON.stringify (new_applicant))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -160,7 +127,7 @@ import "../js/qmldict.js" as JsLib
|
|||||||
{
|
{
|
||||||
if(radio.children[1].checked)
|
if(radio.children[1].checked)
|
||||||
{
|
{
|
||||||
if(!personalData.checkPersonalField() || !bankAccount.checkBankField() )
|
if(!personalData.checkPersonalField())
|
||||||
saveBtn.enabled = false
|
saveBtn.enabled = false
|
||||||
else
|
else
|
||||||
saveBtn.enabled = true
|
saveBtn.enabled = true
|
||||||
@@ -171,5 +138,5 @@ import "../js/qmldict.js" as JsLib
|
|||||||
saveBtn.enabled = true
|
saveBtn.enabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//}
|
|
||||||
|
|
||||||
|
|||||||
@@ -71,14 +71,14 @@ ColumnLayout
|
|||||||
{
|
{
|
||||||
if (!checkAddContact.checked)
|
if (!checkAddContact.checked)
|
||||||
{
|
{
|
||||||
new_business = JsLib.addBusiness(customerView)
|
new_business = JsLib.parseForm(customerView)
|
||||||
business_model.addBusiness(new_business, 0)
|
business_model.addBusiness(new_business, 0)
|
||||||
appLoader.source = "CustomerTable.qml"
|
appLoader.source = "CustomerTable.qml"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
new_business = JsLib.addBusiness(customerView)
|
new_business = JsLib.parseForm(customerView)
|
||||||
var new_contact = JsLib.addBusiness(addContactFrame.contactGrid)
|
var new_contact = JsLib.parseForm(addContactFrame.contactGrid)
|
||||||
contact_model.addContact(new_contact)
|
contact_model.addContact(new_contact)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,14 +72,14 @@ ColumnLayout
|
|||||||
{
|
{
|
||||||
if (!checkAddObject.checked)
|
if (!checkAddObject.checked)
|
||||||
{
|
{
|
||||||
new_object = JsLib.addObject(objectView)
|
new_object = JsLib.parseForm(objectView)
|
||||||
object_model.addObject(new_object, 0)
|
object_model.addObject(new_object, 0)
|
||||||
appLoader.source = "ObjectTable.qml"
|
appLoader.source = "ObjectTable.qml"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
new_object = JsLib.addObject(objectView)
|
new_object = JsLib.parseForm(objectView)
|
||||||
var new_objecto = JsLib.addObject(addObjectLayout)
|
var new_objecto = JsLib.parseForm(addObjectLayout)
|
||||||
objecto_model.addObject(new_objecto)
|
objecto_model.addObject(new_objecto)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,23 @@ GridLayout
|
|||||||
{
|
{
|
||||||
id: bankAccount
|
id: bankAccount
|
||||||
columns: 2
|
columns: 2
|
||||||
|
property alias jobstatus: title
|
||||||
|
property alias longest: longest
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: longest
|
||||||
|
text: qsTr("Beschäftigungsverhältnis")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
|
||||||
|
ComboBox
|
||||||
|
{
|
||||||
|
property string name: "jobstatus"
|
||||||
|
id: title
|
||||||
|
Layout.fillWidth: true
|
||||||
|
editable: false
|
||||||
|
model: [qsTr("Vollzeit"), qsTr("Teilzeit"), qsTr("Minijob"), qsTr("Ausgeschieden")]
|
||||||
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("IBAN")
|
text: qsTr("IBAN")
|
||||||
@@ -13,28 +30,22 @@ GridLayout
|
|||||||
}
|
}
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "iban"
|
||||||
id: iban
|
id: iban
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
|
||||||
placeholderTextColor: "red"
|
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Bank")
|
text: qsTr("Bank")
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
|
||||||
}
|
}
|
||||||
TextField
|
ComboBox
|
||||||
{
|
{
|
||||||
|
property string name: "bank"
|
||||||
id: bankname
|
id: bankname
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
model: ["",qsTr("Sparkasse"),qsTr("Volksbank")]
|
||||||
placeholderTextColor: "red"
|
editable: true
|
||||||
}
|
}
|
||||||
function checkBankField()
|
|
||||||
{
|
|
||||||
return (iban.text.trim() && bankname.text.trim())
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,122 +10,200 @@ GridLayout
|
|||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Staatsangehörigkeit Deutsch")
|
Layout.preferredWidth: bankAccount.longest.width
|
||||||
|
text: qsTr("Herkunftsland")
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
ButtonGroup
|
ComboBox
|
||||||
{
|
{
|
||||||
buttons: radio.children
|
property string name: "country"
|
||||||
onClicked:
|
id: nation
|
||||||
{
|
|
||||||
checkFields()
|
|
||||||
personalData.requiredField()
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
id: radio
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignLeft
|
editable: true
|
||||||
RadioButton
|
model: [qsTr("Deutschland"), qsTr("Syrien")]
|
||||||
{
|
|
||||||
|
|
||||||
text: qsTr("Ja")
|
|
||||||
checked: true
|
|
||||||
}
|
|
||||||
|
|
||||||
RadioButton
|
|
||||||
{
|
|
||||||
text: qsTr("Nein")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Sozialversicherungs-Nr")
|
text: qsTr("Sozialversicherungs-Nr")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "socialno"
|
||||||
id: socialnumber
|
id: socialnumber
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
|
||||||
placeholderTextColor: "red"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Steuer-ID")
|
text: qsTr("Steuer-ID")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "taxno"
|
||||||
id: taxnumber
|
id: taxnumber
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
|
||||||
placeholderTextColor: "red"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Krankenkasse")
|
text: qsTr("Krankenkasse")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "medicalinsurance"
|
||||||
id: medicalinsurance
|
id: medicalinsurance
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
}
|
||||||
placeholderTextColor: "red"
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Knappschaft")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
visible: bankAccount.jobstatus.currentText === "Minijob" ? 1:0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "knappschaft"
|
||||||
|
id: knappschaft
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: bankAccount.jobstatus.currentText === "Minijob" ? 1:0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Ausweistyp")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
|
||||||
|
ComboBox
|
||||||
|
{
|
||||||
|
property string name: "idtype"
|
||||||
|
id: idtype
|
||||||
|
Layout.fillWidth: true
|
||||||
|
editable: true
|
||||||
|
model: [qsTr("Personalausweis"), qsTr("Reisepass")]
|
||||||
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Ausweis Nr.")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "passno"
|
||||||
|
id: passno
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Ausweis gültig bis")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "passduration"
|
||||||
|
id: passduration
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Ausstellungsort")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "exhibitionlocation"
|
||||||
|
id: exhibitionlocation
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: test
|
||||||
|
text: qsTr("Ausgestellt am")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "exhibitdate"
|
||||||
|
id: exhibitdate
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
CheckBox
|
CheckBox
|
||||||
{
|
{
|
||||||
Layout.columnSpan: 2
|
Layout.preferredWidth: bankAccount.longest.width
|
||||||
text: qsTr("Arbeitserlaubnis")
|
property string name: "worklicense"
|
||||||
visible: radio.children[1].checked
|
id: worklicense
|
||||||
|
text: qsTr("Arbeitserlaubnis <font color='red'><b>?</b></font>")
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
|
}
|
||||||
|
Item
|
||||||
|
{
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Staatsangehörigkeit")
|
text: qsTr("Aufenthaltstitel Nr.")
|
||||||
visible: radio.children[1].checked
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
id: nationality
|
property string name: "residenceno"
|
||||||
visible: radio.children[1].checked
|
id: residenceno
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
|
||||||
placeholderTextColor: "red"
|
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Pass gültig bis")
|
text: qsTr("Ausgestellt von")
|
||||||
visible: radio.children[1].checked
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
id: pass
|
property string name: "residenceissuedloc"
|
||||||
visible: radio.children[1].checked
|
id: residenceissuedloc
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
|
||||||
placeholderTextColor: "red"
|
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Aufenthaltstitel gültig bis")
|
text: qsTr("Ausgestellt am")
|
||||||
visible: radio.children[1].checked
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
id: aufenthalt
|
property string name: "residenceissued"
|
||||||
visible: radio.children[1].checked
|
id: residenceissued
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: "Pflichtfeld"
|
|
||||||
placeholderTextColor: "red"
|
|
||||||
}
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Gültig bis")
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "residenceexpire"
|
||||||
|
id: residenceexpire
|
||||||
|
visible: nation.currentText === "Deutschland"? false:true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ GridLayout
|
|||||||
id: street
|
id: street
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
@@ -90,6 +91,11 @@ GridLayout
|
|||||||
id: houseno
|
id: houseno
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
{
|
||||||
|
regularExpression: /([0-9a-zA-Z\-]{1,6})/
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
@@ -107,8 +113,8 @@ GridLayout
|
|||||||
id: postcode
|
id: postcode
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
editable: true
|
editable: true
|
||||||
onCurrentTextChanged: checkFields()
|
|
||||||
onEditTextChanged: checkFields()
|
onEditTextChanged: checkFields()
|
||||||
|
onCurrentTextChanged: checkFields()
|
||||||
onActivated: currentValue
|
onActivated: currentValue
|
||||||
model: address_model
|
model: address_model
|
||||||
textRole: "display"
|
textRole: "display"
|
||||||
@@ -118,7 +124,7 @@ GridLayout
|
|||||||
onCurrentIndexChanged: city.currentIndex = postcode.currentIndex
|
onCurrentIndexChanged: city.currentIndex = postcode.currentIndex
|
||||||
validator: RegularExpressionValidator
|
validator: RegularExpressionValidator
|
||||||
{
|
{
|
||||||
regularExpression: /([0-9]{1,5})/
|
regularExpression: /([^$][0-9]{1,4})/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,6 +150,61 @@ GridLayout
|
|||||||
currentIndex: -1
|
currentIndex: -1
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Geburtsname")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "birthname"
|
||||||
|
id: birthname
|
||||||
|
Layout.fillWidth: true
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
Layout.columnSpan: 3
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Geburtsdatum")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "birthday"
|
||||||
|
id: birthday
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderText: "Pflichtfeld"
|
||||||
|
placeholderTextColor: "red"
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
Layout.columnSpan: 3
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
|
||||||
|
{
|
||||||
|
regularExpression: /((^|)(0[1-9]{1}|[1-2]{1}[0-9]{1}|3[0-1]))\.((^|)(0[1-9]{1}|1[0-2]{1}))\.((^|)(196[0-9]{1}|19[7-9]{1}[0-9]{1}|20[0-9]{2}))/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Geburtsort")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "placeofbirth"
|
||||||
|
id: placeofbirth
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderText: "Pflichtfeld"
|
||||||
|
placeholderTextColor: "red"
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
Layout.columnSpan: 3
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -157,6 +218,11 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
{
|
||||||
|
regularExpression: /([+0-9]{1})([0-9]{1,17})/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -170,6 +236,11 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
{
|
||||||
|
regularExpression: /([+0-9]{1})([0-9]{1,17})/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -183,6 +254,11 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
{
|
||||||
|
regularExpression: /([\+!#$%&‘\*\–\/\=?\^_`\.{|}\~0-9A-Za-z]{1,185})@([0-9A-Za-z\.]{1,64})\.([a-zA-z]{2,5})/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -201,6 +277,22 @@ GridLayout
|
|||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Stundenlohn")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
property string name: "salary"
|
||||||
|
id: salary
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
placeholderTextColor: "red"
|
||||||
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
}
|
||||||
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Jobbeschreibung")
|
text: qsTr("Jobbeschreibung")
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
@@ -214,6 +306,7 @@ GridLayout
|
|||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -229,6 +322,11 @@ GridLayout
|
|||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
{
|
||||||
|
regularExpression: /((^|)(0[1-9]{1}|[1-2]{1}[0-9]{1}|3[0-1]))\.((^|)(0[1-9]{1}|1[0-2]{1}))\.((^|)(196[0-9]{1}|19[7-9]{1}[0-9]{1}|20[0-9]{2}))/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -244,21 +342,39 @@ GridLayout
|
|||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
|
validator: RegularExpressionValidator
|
||||||
|
{
|
||||||
|
regularExpression: /((^|)(0[1-9]{1}|[1-2]{1}[0-9]{1}|3[0-1]))\.((^|)(0[1-9]{1}|1[0-2]{1}))\.((^|)(196[0-9]{1}|19[7-9]{1}[0-9]{1}|20[0-9]{2}))/
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Arbeitszeiten")
|
text: qsTr("Arbeitszeiten Tage")
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
}
|
}
|
||||||
TextField
|
ComboBox
|
||||||
{
|
{
|
||||||
property string name: "timework"
|
property string name: "workdays"
|
||||||
id: timetowork
|
id: workdays
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: radio.children[1].checked
|
visible: radio.children[1].checked
|
||||||
placeholderTextColor: "red"
|
model: ["1","2","3","4","5","6","7"]
|
||||||
Layout.columnSpan: 3
|
}
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: qsTr("Stunden")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
}
|
||||||
|
ComboBox
|
||||||
|
{
|
||||||
|
property string name: "workhours"
|
||||||
|
id: workhours
|
||||||
|
Layout.fillWidth: true
|
||||||
|
visible: radio.children[1].checked
|
||||||
|
model: ["1","2","3","4","5","6","7","8"]
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
@@ -272,6 +388,7 @@ GridLayout
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderTextColor: "red"
|
placeholderTextColor: "red"
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
|
onTextChanged: checkFields()
|
||||||
}
|
}
|
||||||
|
|
||||||
Item
|
Item
|
||||||
@@ -287,8 +404,12 @@ GridLayout
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
console.log("Mitarbeiter")
|
return (firstname.text.trim() && lastname.text.trim() && street.text.trim() && houseno.text.trim()
|
||||||
return (firstname.text.trim() && lastname.text.trim())
|
&& (postcode.editText.trim() || postcode.currentText.trim())
|
||||||
|
&& (city.editText.trim() || city.currentText.trim())
|
||||||
|
&& birthday.text.trim() && phonenumber.text.trim()
|
||||||
|
&& cellphone.text.trim() && email.text.trim() && jobdescription.text.trim()
|
||||||
|
&& workstart.text.trim() && workend.text.trim() && briefAnrede.text.trim())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function requiredField()
|
function requiredField()
|
||||||
@@ -301,7 +422,7 @@ GridLayout
|
|||||||
jobdescription.placeholderText = pf
|
jobdescription.placeholderText = pf
|
||||||
workstart.placeholderText = pf
|
workstart.placeholderText = pf
|
||||||
workend.placeholderText = pf
|
workend.placeholderText = pf
|
||||||
timetowork.placeholderText = pf
|
|
||||||
briefAnrede.placeholderText = pf
|
briefAnrede.placeholderText = pf
|
||||||
|
houseno.placeholderText = pf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,26 +4,32 @@ import QtQuick.Layouts
|
|||||||
|
|
||||||
GridLayout
|
GridLayout
|
||||||
{
|
{
|
||||||
|
id: applicantVarious
|
||||||
columns: 2
|
columns: 2
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
Layout.preferredWidth: bankAccount.longest.width
|
||||||
text: qsTr("Grad der Behinderung")
|
text: qsTr("Grad der Behinderung")
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "behinderung"
|
||||||
id: behinderung
|
id: behinderung
|
||||||
placeholderText: "0,0"
|
placeholderText: "0,0"
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Disponent")
|
text: qsTr("Disponent")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "disponent"
|
||||||
id: disponent
|
id: disponent
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
@@ -31,10 +37,12 @@ GridLayout
|
|||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Kostenstelle")
|
text: qsTr("Kostenstelle")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "kostenstelle"
|
||||||
id: kostenstelle
|
id: kostenstelle
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
@@ -42,10 +50,12 @@ GridLayout
|
|||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: qsTr("Fremdlohn-Nr.")
|
text: qsTr("Fremdlohn-Nr.")
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
|
property string name: "fremdlohn"
|
||||||
id: fremdLohnNummer
|
id: fremdLohnNummer
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
function firstConf(tabs)
|
function firstConf(tabs)
|
||||||
{
|
{
|
||||||
let pyqcrm_conf = {};
|
let pyqcrm_conf = {};
|
||||||
|
|
||||||
pyqcrm_conf[tabs.name] = {}
|
pyqcrm_conf[tabs.name] = {}
|
||||||
for (var i = 0; i < tabs.children.length; i++)
|
for (var i = 0; i < tabs.children.length; i++)
|
||||||
{
|
{
|
||||||
@@ -17,96 +16,42 @@ function firstConf(tabs)
|
|||||||
pyqcrm_conf[tabs.name] [tabs.children[i].name] = tabs.children[i].text
|
pyqcrm_conf[tabs.name] [tabs.children[i].name] = tabs.children[i].text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return pyqcrm_conf
|
return pyqcrm_conf
|
||||||
}
|
}
|
||||||
|
|
||||||
function addBusiness(form)
|
|
||||||
|
function parseForm(...form)
|
||||||
{
|
{
|
||||||
let business_form = {};
|
let data_form = {};
|
||||||
for (var i = 0; i < form.children.length; i++)
|
for (var i = 0; i < form.length; i++)
|
||||||
{
|
{
|
||||||
if (form.children[i].toString().startsWith("Combo"))
|
for (var j = 0; j < form[i].children.length; j++)
|
||||||
{
|
{
|
||||||
if(form.children[i].editText)
|
if (form[i].children[j].toString().startsWith("Combo"))
|
||||||
{
|
{
|
||||||
business_form[form.children[i].name] = form.children[i].editText
|
if(form[i].children[j].editText)
|
||||||
|
{
|
||||||
|
data_form[form[i].children[j].name] = form[i].children[j].editText
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
business_form[form.children[i].name] = form.children[i].currentText
|
data_form[form[i].children[j].name] = form[i].children[j].currentText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (form.children[i].toString().startsWith("TextField"))
|
else if (form[i].children[j].toString().startsWith("TextField"))
|
||||||
{
|
{
|
||||||
business_form[form.children[i].name] = form.children[i].text.trim()
|
data_form[form[i].children[j].name] = form[i].children[j].text.trim()
|
||||||
}
|
}
|
||||||
else if (form.children[i].toString().startsWith("Scroll"))
|
else if (form[i].children[j].toString().startsWith("Scroll"))
|
||||||
{
|
{
|
||||||
business_form[form.children[i].contentChildren[0].name] = form.children[i].contentChildren[0].text.trim()
|
data_form[form[i].children[j].contentChildren[0].name] = form[i].children[j].contentChildren[0].text.trim()
|
||||||
|
}
|
||||||
|
else if (form[i].children[j].toString().startsWith("CheckBox"))
|
||||||
|
{
|
||||||
|
data_form[form[i].children[j].name] = form[i].children[j].checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return business_form
|
}
|
||||||
|
return data_form
|
||||||
}
|
}
|
||||||
|
|
||||||
function addObject(form)
|
|
||||||
{
|
|
||||||
let object_form = {};
|
|
||||||
for (var i = 0; i < form.children.length; i++)
|
|
||||||
{
|
|
||||||
if (form.children[i].toString().startsWith("Combo"))
|
|
||||||
{
|
|
||||||
if(form.children[i].editText)
|
|
||||||
{
|
|
||||||
object_form[form.children[i].name] = form.children[i].editText
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
object_form[form.children[i].name] = form.children[i].currentText
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (form.children[i].toString().startsWith("TextField"))
|
|
||||||
{
|
|
||||||
object_form[form.children[i].name] = form.children[i].text.trim()
|
|
||||||
}
|
|
||||||
else if (form.children[i].toString().startsWith("Scroll"))
|
|
||||||
{
|
|
||||||
object_form[form.children[i].contentChildren[0].name] = form.children[i].contentChildren[0].text.trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return object_form
|
|
||||||
}
|
|
||||||
function addApplicant(form)
|
|
||||||
{
|
|
||||||
let applicant_form = {};
|
|
||||||
for (var i = 0; i < form.children.length; i++)
|
|
||||||
{
|
|
||||||
if (form.children[i].name === "Oschkar")
|
|
||||||
{
|
|
||||||
if(form.children[i].children[0].editText)
|
|
||||||
{
|
|
||||||
applicant_form[form.children[i].children[0].name] = form.children[i].children[0].editText
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
applicant_form[form.children[i].children[0].name] = form.children[i].children[0].currentText
|
|
||||||
}
|
|
||||||
if(form.children[i].children[2].editText)
|
|
||||||
{
|
|
||||||
applicant_form[form.children[i].children[2].name] = form.children[i].children[2].editText
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
applicant_form[form.children[i].children[2].name] = form.children[i].children[2].currentText
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (form.children[i].toString().startsWith("TextField"))
|
|
||||||
{
|
|
||||||
applicant_form[form.children[i].name] = form.children[i].text.trim()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return applicant_form
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user