Ejemplo n.º 1
0
 private void insertIdentityRelatedDocuments(String employeeId) {
   IdentityRelatedDocuments identityRelatedDocuments = new IdentityRelatedDocuments();
   identityRelatedDocuments.setEmployeeId(employeeId);
   identityRelatedDocumentsDAO.save(identityRelatedDocuments);
 }
Ejemplo n.º 2
0
  private void updateIdentityRelatedDocuments(
      IdentityRelatedDocuments identityRelatedDocuments,
      IdentityRelatedDocumentsUploadFileDTO identityRelatedDocumentsUploadFileDTO) {

    int mugshot =
        updateFileTable(
            identityRelatedDocuments.getMugshot(),
            identityRelatedDocumentsUploadFileDTO.getMugshotFile());

    int twoIdentityPicture =
        updateFileTable(
            identityRelatedDocuments.getTwoIdentityPicture(),
            identityRelatedDocumentsUploadFileDTO.getTwoIdentityPictureFile());

    int diploma =
        updateFileTable(
            identityRelatedDocuments.getDiploma(),
            identityRelatedDocumentsUploadFileDTO.getDiplomaFile());

    int firstBankBankbook =
        updateFileTable(
            identityRelatedDocuments.getFirstBankBankbook(),
            identityRelatedDocumentsUploadFileDTO.getFirstBankBankbookFile());

    int tbbBankbook =
        updateFileTable(
            identityRelatedDocuments.getTbbBankbook(),
            identityRelatedDocumentsUploadFileDTO.getTbbBankbookFile());

    int residencePermit =
        updateFileTable(
            identityRelatedDocuments.getResidencePermit(),
            identityRelatedDocumentsUploadFileDTO.getResidencePermitFile());

    int surrenders =
        updateFileTable(
            identityRelatedDocuments.getSurrenders(),
            identityRelatedDocumentsUploadFileDTO.getSurrendersFile());

    int resignation =
        updateFileTable(
            identityRelatedDocuments.getResignation(),
            identityRelatedDocumentsUploadFileDTO.getResignationFile());

    int professionalCertification =
        updateFileTable(
            identityRelatedDocuments.getProfessionalCertification(),
            identityRelatedDocumentsUploadFileDTO.getProfessionalCertificationFile());

    int militaryService =
        updateFileTable(
            identityRelatedDocuments.getMilitaryService(),
            identityRelatedDocumentsUploadFileDTO.getMilitaryServiceFile());

    int disabled =
        updateFileTable(
            identityRelatedDocuments.getDisabled(),
            identityRelatedDocumentsUploadFileDTO.getDisabledFile());

    int otherUnionsAdditionalInsurance =
        updateFileTable(
            identityRelatedDocuments.getOtherUnionsAdditionalInsurance(),
            identityRelatedDocumentsUploadFileDTO.getOtherUnionsAdditionalInsuranceFile());

    identityRelatedDocuments.setMugshot(mugshot);
    identityRelatedDocuments.setTwoIdentityPicture(twoIdentityPicture);
    identityRelatedDocuments.setDiploma(diploma);
    identityRelatedDocuments.setFirstBankBankbook(firstBankBankbook);
    identityRelatedDocuments.setTbbBankbook(tbbBankbook);
    identityRelatedDocuments.setResidencePermit(residencePermit);
    identityRelatedDocuments.setSurrenders(surrenders);
    identityRelatedDocuments.setResignation(resignation);
    identityRelatedDocuments.setProfessionalCertification(professionalCertification);
    identityRelatedDocuments.setMilitaryService(militaryService);
    identityRelatedDocuments.setDisabled(disabled);
    identityRelatedDocuments.setOtherUnionsAdditionalInsurance(otherUnionsAdditionalInsurance);
    identityRelatedDocumentsDAO.update(identityRelatedDocuments);
  }