use of com.axelor.apps.crm.db.Event in project axelor-open-suite by axelor.
the class TrainingRegisterController method EventToDateUpdate.
@Transactional
public void EventToDateUpdate(ActionRequest request, ActionResponse response) {
TrainingRegister trainingRegister = request.getContext().asType(TrainingRegister.class);
if (trainingRegister.getEventList() != null) {
for (Event event : trainingRegister.getEventList()) {
event.setEndDateTime(trainingRegister.getToDate());
eventRepository.save(event);
}
}
}
Aggregations