fix readonly fields
All checks were successful
PR Builder / Build-PR (pull_request) Successful in 2m16s
All checks were successful
PR Builder / Build-PR (pull_request) Successful in 2m16s
This commit is contained in:
parent
831f9ec9a5
commit
25448fff44
@ -382,38 +382,38 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
|||||||
emergencyCEmail.setReadOnly(true);
|
emergencyCEmail.setReadOnly(true);
|
||||||
upload.setVisible(true);
|
upload.setVisible(true);
|
||||||
profileImagePreview.setVisible(true);
|
profileImagePreview.setVisible(true);
|
||||||
age.setVisible(true);
|
age.setReadOnly(true);
|
||||||
gender.setVisible(true);
|
gender.setReadOnly(true);
|
||||||
status.setVisible(true);
|
status.setReadOnly(true);
|
||||||
ci.setVisible(true);
|
ci.setReadOnly(true);
|
||||||
issuedIn.setVisible(true);
|
issuedIn.setReadOnly(true);
|
||||||
pTitle1.setVisible(true);
|
pTitle1.setReadOnly(true);
|
||||||
pTitle2.setVisible(true);
|
pTitle2.setReadOnly(true);
|
||||||
pTitle3.setVisible(true);
|
pTitle3.setReadOnly(true);
|
||||||
pStudy1.setVisible(true);
|
pStudy1.setReadOnly(true);
|
||||||
pStudy2.setVisible(true);
|
pStudy2.setReadOnly(true);
|
||||||
pStudy3.setVisible(true);
|
pStudy3.setReadOnly(true);
|
||||||
certification1.setVisible(true);
|
certification1.setReadOnly(true);
|
||||||
certification2.setVisible(true);
|
certification2.setReadOnly(true);
|
||||||
certification3.setVisible(true);
|
certification3.setReadOnly(true);
|
||||||
certification4.setVisible(true);
|
certification4.setReadOnly(true);
|
||||||
recognition.setVisible(true);
|
recognition.setReadOnly(true);
|
||||||
achievements.setVisible(true);
|
achievements.setReadOnly(true);
|
||||||
language.setVisible(true);
|
language.setReadOnly(true);
|
||||||
languageLevel.setVisible(true);
|
languageLevel.setReadOnly(true);
|
||||||
cod.setVisible(true);
|
cod.setReadOnly(true);
|
||||||
leadManager.setVisible(true);
|
leadManager.setReadOnly(true);
|
||||||
project.setVisible(true);
|
project.setReadOnly(true);
|
||||||
dateOfEntry.setVisible(true);
|
dateOfEntry.setReadOnly(true);
|
||||||
dateOfExit.setVisible(true);
|
dateOfExit.setReadOnly(true);
|
||||||
contractType.setVisible(true);
|
contractType.setReadOnly(true);
|
||||||
seniority.setVisible(true);
|
seniority.setReadOnly(true);
|
||||||
salary.setVisible(true);
|
salary.setReadOnly(true);
|
||||||
bankName.setVisible(true);
|
bankName.setReadOnly(true);
|
||||||
accountNumber.setVisible(true);
|
accountNumber.setReadOnly(true);
|
||||||
gpss.setVisible(true);
|
gpss.setReadOnly(true);
|
||||||
sss.setVisible(true);
|
sss.setReadOnly(true);
|
||||||
beneficiaries.setVisible(true);
|
beneficiaries.setReadOnly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setFieldsEditable() {
|
private void setFieldsEditable() {
|
||||||
@ -433,43 +433,44 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
|||||||
emergencyCPhone.setReadOnly(false);
|
emergencyCPhone.setReadOnly(false);
|
||||||
emergencyCEmail.setReadOnly(false);
|
emergencyCEmail.setReadOnly(false);
|
||||||
upload.setVisible(true);
|
upload.setVisible(true);
|
||||||
age.setVisible(false);
|
age.setReadOnly(false);
|
||||||
gender.setVisible(false);
|
gender.setReadOnly(false);
|
||||||
status.setVisible(false);
|
status.setReadOnly(false);
|
||||||
ci.setVisible(false);
|
ci.setReadOnly(false);
|
||||||
issuedIn.setVisible(false);
|
issuedIn.setReadOnly(false);
|
||||||
pTitle1.setVisible(false);
|
pTitle1.setReadOnly(false);
|
||||||
pTitle2.setVisible(false);
|
pTitle2.setReadOnly(false);
|
||||||
pTitle3.setVisible(false);
|
pTitle3.setReadOnly(false);
|
||||||
pStudy1.setVisible(false);
|
pStudy1.setReadOnly(false);
|
||||||
pStudy2.setVisible(false);
|
pStudy2.setReadOnly(false);
|
||||||
pStudy3.setVisible(false);
|
pStudy3.setReadOnly(false);
|
||||||
certification1.setVisible(false);
|
certification1.setReadOnly(false);
|
||||||
certification2.setVisible(false);
|
certification2.setReadOnly(false);
|
||||||
certification3.setVisible(false);
|
certification3.setReadOnly(false);
|
||||||
certification4.setVisible(false);
|
certification4.setReadOnly(false);
|
||||||
recognition.setVisible(false);
|
recognition.setReadOnly(false);
|
||||||
achievements.setVisible(false);
|
achievements.setReadOnly(false);
|
||||||
language.setVisible(false);
|
language.setReadOnly(false);
|
||||||
languageLevel.setVisible(false);
|
languageLevel.setReadOnly(false);
|
||||||
cod.setVisible(false);
|
cod.setReadOnly(false);
|
||||||
leadManager.setVisible(false);
|
leadManager.setReadOnly(false);
|
||||||
project.setVisible(false);
|
project.setReadOnly(false);
|
||||||
dateOfEntry.setVisible(false);
|
dateOfEntry.setReadOnly(false);
|
||||||
dateOfExit.setVisible(false);
|
dateOfExit.setReadOnly(false);
|
||||||
contractType.setVisible(false);
|
contractType.setReadOnly(false);
|
||||||
seniority.setVisible(false);
|
seniority.setReadOnly(false);
|
||||||
salary.setVisible(false);
|
salary.setReadOnly(false);
|
||||||
bankName.setVisible(false);
|
bankName.setReadOnly(false);
|
||||||
accountNumber.setVisible(false);
|
accountNumber.setReadOnly(false);
|
||||||
gpss.setVisible(false);
|
gpss.setReadOnly(false);
|
||||||
sss.setVisible(false);
|
sss.setReadOnly(false);
|
||||||
beneficiaries.setVisible(false);
|
beneficiaries.setReadOnly(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<Component> getFormComponents() {
|
protected List<Component> getFormComponents() {
|
||||||
return List.of(
|
return List.of(
|
||||||
|
username,
|
||||||
infoPer,
|
infoPer,
|
||||||
infoGenr,
|
infoGenr,
|
||||||
upload, profileImagePreview,
|
upload, profileImagePreview,
|
||||||
|
Loading…
Reference in New Issue
Block a user