| package vn.azteam.tpf.service.dto; | package vn.azteam.tpf.service.dto; | ||||
| import vn.azteam.tpf.domain.TBCode; | |||||
| import java.io.Serializable; | import java.io.Serializable; | ||||
| import java.util.List; | import java.util.List; | ||||
| private TBCodeDetailsDTO tbCodeDetailsDTO; | private TBCodeDetailsDTO tbCodeDetailsDTO; | ||||
| private String tbCodeValue; | |||||
| private String tbCodeDescription; | |||||
| private TBCropDTO tbCropDTO; | private TBCropDTO tbCropDTO; | ||||
| // Use for web only | // Use for web only | ||||
| private ActivityTimelineDTO activityTimeline; | private ActivityTimelineDTO activityTimeline; | ||||
| public void setDescription(String description) { | public void setDescription(String description) { | ||||
| this.description = description; | this.description = description; | ||||
| } | } | ||||
| public String getTbCodeValue() { | |||||
| return tbCodeValue; | |||||
| } | |||||
| public void setTbCodeValue(String tbCodeValue) { | |||||
| this.tbCodeValue = tbCodeValue; | |||||
| } | |||||
| public String getTbCodeDescription() { | |||||
| return tbCodeDescription; | |||||
| } | |||||
| public void setTbCodeDescription(String tbCodeDescription) { | |||||
| this.tbCodeDescription = tbCodeDescription; | |||||
| } | |||||
| } | } |
| TBCodeDetailsAndActivityDTO tbCodeDetailsAndActivityDTO = this.getCodeDetailDTOResponseEntity(tbCropMapper.toDto(tbCodeDetailsOptional.get().getTbCode().getTbCrop()), Pageable.unpaged(), true); | TBCodeDetailsAndActivityDTO tbCodeDetailsAndActivityDTO = this.getCodeDetailDTOResponseEntity(tbCropMapper.toDto(tbCodeDetailsOptional.get().getTbCode().getTbCrop()), Pageable.unpaged(), true); | ||||
| tbCodeDetailsAndActivityDTO.setTbCodeDetailsDTO(tBCodeDetailsMapper.toDto(tbCodeDetails)); | tbCodeDetailsAndActivityDTO.setTbCodeDetailsDTO(tBCodeDetailsMapper.toDto(tbCodeDetails)); | ||||
| tbCodeDetailsAndActivityDTO.setDescription(tbCode.getDescription()); | tbCodeDetailsAndActivityDTO.setDescription(tbCode.getDescription()); | ||||
| tbCodeDetailsAndActivityDTO.setTbCodeValue(tbCode.getCode()); | |||||
| tbCodeDetailsAndActivityDTO.setTbCodeDescription(tbCode.getDescription()); | |||||
| return tbCodeDetailsAndActivityDTO; | return tbCodeDetailsAndActivityDTO; | ||||
| } else { | } else { | ||||
| throw new BadRequestAlertException("Scan code not found", "tb code details with code:", code); | throw new BadRequestAlertException("Scan code not found", "tb code details with code:", code); |