예제 #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);
 }
예제 #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;
 }
예제 #3
0
 private void insertDefaultTransferFormalData(TransferFormalInfoDTO transferFormalInfoDTO) {
   String employeeId = transferFormalInfoDTO.getEmployeeId();
   insertEmployee(transferFormalInfoDTO);
   insertRegistrationInformation(employeeId);
   insertInsurance(employeeId);
   insertIdentityRelatedDocuments(employeeId);
 }
예제 #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);
 }