|
@@ -344,12 +344,10 @@ export class RegesterComponent implements OnInit {
|
|
password_confirmation: new FormControl(null, [Validators.minLength(6)]),
|
|
password_confirmation: new FormControl(null, [Validators.minLength(6)]),
|
|
phone: new FormControl(null,Validators.required),
|
|
phone: new FormControl(null,Validators.required),
|
|
gender: new FormControl(null, Validators.required),
|
|
gender: new FormControl(null, Validators.required),
|
|
- //birthday: new FormControl(null, Validators.required),
|
|
|
|
adminstration_id: new FormControl(null, Validators.required),
|
|
adminstration_id: new FormControl(null, Validators.required),
|
|
department_id: new FormControl(null, Validators.required),
|
|
department_id: new FormControl(null, Validators.required),
|
|
nationality_id: new FormControl(null, Validators.required),
|
|
nationality_id: new FormControl(null, Validators.required),
|
|
date_of_employment_gre: new FormControl(null, Validators.required),
|
|
date_of_employment_gre: new FormControl(null, Validators.required),
|
|
- //date_of_employment_hij: new FormControl(null,Validators.required),
|
|
|
|
job_title_id: new FormControl(null),
|
|
job_title_id: new FormControl(null),
|
|
specialization_id: new FormControl(null),
|
|
specialization_id: new FormControl(null),
|
|
functional_number: new FormControl(null, Validators.required),
|
|
functional_number: new FormControl(null, Validators.required),
|
|
@@ -375,7 +373,6 @@ export class RegesterComponent implements OnInit {
|
|
position: responce['user'].position,
|
|
position: responce['user'].position,
|
|
phone: responce['user'].phone,
|
|
phone: responce['user'].phone,
|
|
gender: responce['user'].gender,
|
|
gender: responce['user'].gender,
|
|
- //birthday: responce['user'].birthday,
|
|
|
|
adminstration_id: responce['user'].adminstration_id,
|
|
adminstration_id: responce['user'].adminstration_id,
|
|
department_id: responce['user'].department_id,
|
|
department_id: responce['user'].department_id,
|
|
nationality_id: responce['user'].nationality_id,
|
|
nationality_id: responce['user'].nationality_id,
|
|
@@ -386,7 +383,6 @@ export class RegesterComponent implements OnInit {
|
|
staff_id: responce['user'].staff_id,
|
|
staff_id: responce['user'].staff_id,
|
|
functional_number: responce['user'].functional_number,
|
|
functional_number: responce['user'].functional_number,
|
|
status: responce['user'].status,
|
|
status: responce['user'].status,
|
|
- //date_of_employment_hij: this.bindingDateSplit, //responce['user'].date_of_employment_hij//
|
|
|
|
});
|
|
});
|
|
console.log(this.bindingDateSplit);
|
|
console.log(this.bindingDateSplit);
|
|
|
|
|
|
@@ -493,7 +489,6 @@ export class RegesterComponent implements OnInit {
|
|
password: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
|
password: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
|
password_confirmation: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
|
password_confirmation: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
|
gender: new FormControl(null, Validators.required),
|
|
gender: new FormControl(null, Validators.required),
|
|
- //birthday: new FormControl(null, Validators.required),
|
|
|
|
nationality_id: new FormControl(null, Validators.required),
|
|
nationality_id: new FormControl(null, Validators.required),
|
|
phone: new FormControl(null, Validators.required),
|
|
phone: new FormControl(null, Validators.required),
|
|
});
|
|
});
|
|
@@ -509,12 +504,10 @@ export class RegesterComponent implements OnInit {
|
|
password_confirmation: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
|
password_confirmation: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
|
phone: new FormControl(null, Validators.required),
|
|
phone: new FormControl(null, Validators.required),
|
|
gender: new FormControl(null, Validators.required),
|
|
gender: new FormControl(null, Validators.required),
|
|
- //birthday: new FormControl(null, Validators.required),
|
|
|
|
adminstration_id: new FormControl(null, Validators.required),
|
|
adminstration_id: new FormControl(null, Validators.required),
|
|
department_id: new FormControl(null, Validators.required),
|
|
department_id: new FormControl(null, Validators.required),
|
|
nationality_id: new FormControl(null, Validators.required),
|
|
nationality_id: new FormControl(null, Validators.required),
|
|
date_of_employment_gre: new FormControl(null, Validators.required),
|
|
date_of_employment_gre: new FormControl(null, Validators.required),
|
|
- //date_of_employment_hij: new FormControl(null,Validators.required),
|
|
|
|
job_title_id: new FormControl(null),
|
|
job_title_id: new FormControl(null),
|
|
specialization_id: new FormControl(null),
|
|
specialization_id: new FormControl(null),
|
|
functional_number: new FormControl(null, Validators.required),
|
|
functional_number: new FormControl(null, Validators.required),
|
|
@@ -578,6 +571,8 @@ export class RegesterComponent implements OnInit {
|
|
onSubmittedForm() {
|
|
onSubmittedForm() {
|
|
|
|
|
|
this.changesSave = true;
|
|
this.changesSave = true;
|
|
|
|
+ this.saveDisabled = true;
|
|
|
|
+
|
|
const userDataRegester = this.regesterForm.value;
|
|
const userDataRegester = this.regesterForm.value;
|
|
let joinJobDate;
|
|
let joinJobDate;
|
|
|
|
|