Beispiel #1
0
 private void insertEmployee(TransferFormalInfoDTO transferFormalInfoDTO) {
   Employee employee = new Employee();
   employee.setEmployeeId(transferFormalInfoDTO.getEmployeeId());
   employee.setMemberId(transferFormalInfoDTO.getMemberId());
   employee.setDepartment(transferFormalInfoDTO.getDepartment());
   employee.setJobTitle(transferFormalInfoDTO.getJobTitle());
   employee.setInaugurationDate(transferFormalInfoDTO.getInaugurationDate());
   employeeDAO.save(employee);
 }
Beispiel #2
0
 public TransferFormalInfoDTO getTransferFormalInfoByMemberId(int memberId) {
   TransferFormalInfoDTO transferFormalInfoDTO = employeeDAO.findByMemberId(memberId);
   if (transferFormalInfoDTO.getEmployeeId() != null) {
     transferFormalInfoDTO.setIsTransferFormal("Y");
   } else {
     transferFormalInfoDTO.setIsTransferFormal("N");
   }
   return transferFormalInfoDTO;
 }
Beispiel #3
0
 private void insertDefaultTransferFormalData(TransferFormalInfoDTO transferFormalInfoDTO) {
   String employeeId = transferFormalInfoDTO.getEmployeeId();
   insertEmployee(transferFormalInfoDTO);
   insertRegistrationInformation(employeeId);
   insertInsurance(employeeId);
   insertIdentityRelatedDocuments(employeeId);
 }
Beispiel #4
0
 public TransferFormalDTO insertEmployeeTransferFormalData(
     TransferFormalInfoDTO transferFormalInfoDTO) throws Exception {
   String employeeId = transferFormalInfoDTO.getEmployeeId();
   boolean bl = IsEmployeeId(employeeId);
   if (!bl) insertDefaultTransferFormalData(transferFormalInfoDTO); // insert
   // table 給id
   return getTransferFormalData(employeeId);
 }