| | |
| | | * @return boolean |
| | | */ |
| | | private Boolean cellNullCheck (Cell cell) { |
| | | return cell != null && cell.getStringCellValue() != null && cell.getCellType() != Cell.CELL_TYPE_BLANK; |
| | | if (cell != null && cell.getStringCellValue() != null) { |
| | | cell.setCellValue(cell.getStringCellValue().trim());//셀 값 공백 제거 |
| | | } |
| | | return cell != null && cell.getStringCellValue() != null && !cell.getStringCellValue().equals("") && cell.getCellType() != Cell.CELL_TYPE_BLANK; |
| | | } |
| | | |
| | | private void telTypeCheck (Cell cell, int rowIndex) { |
| | |
| | | |
| | | case 4: |
| | | // 연락처 |
| | | this.telTypeCheck(cell, rowIndex); // 텍스트 형식 체크 |
| | | |
| | | if (cellNullCheck(cell)) { |
| | | this.telTypeCheck(cell, rowIndex); // 텍스트 형식 체크 |
| | | this.setCompanyFormTel(cell, companyFieldForm, rowIndex); |
| | | } |
| | | break; |
| | |
| | | } |
| | | |
| | | private void setCompanyFormName(Cell cell, CompanyFieldForm companyFieldForm, int rowIndex) { |
| | | if (cell == null) { |
| | | if (!cellNullCheck(cell)) { |
| | | throw new OwlRuntimeException( |
| | | this.messageAccessor.getMessage(MsgConstants.EXCEL_IMPORT_COMPANY_NAME_IS_NULL, rowIndex)); |
| | | } |