issue-44 #75

Merged
sebastian merged 4 commits from issue-44 into master 2023-11-18 18:47:34 +01:00
3 changed files with 23 additions and 2 deletions
Showing only changes of commit edcd0f6c77 - Show all commits

View File

@ -17,7 +17,7 @@ public abstract class ScheduleInfo {
@JsonProperty
private LocalDateTime startTime;
@JsonProperty
private LocalDateTime stopTime;
private LocalDateTime finishedTime;
@JsonProperty
private int activeMinutes;
@JsonProperty
@ -29,7 +29,7 @@ public abstract class ScheduleInfo {
this.scheduleID = scheduleID;
this.scheduleType = scheduleType;
this.startTime = startTime;
this.stopTime = stopTime;
this.finishedTime = stopTime;
this.activeMinutes = activeMinutes;
this.task = new TaskShortInfo(task);
this.taskgroupPath = taskgroupPath;

View File

@ -39,6 +39,7 @@ public class Task {
private int workTime;
public Task() {
this.basicTaskSchedules = new ArrayList<>();
}
public Task(Taskgroup taskgroup, TaskFieldInfo taskFieldInfo) {

View File

@ -61,7 +61,27 @@ export class ForgottenTaskStartDialogComponent implements OnInit{
}
ngOnInit() {
this.scheduleService.schedulesDateStartableGet(moment().format("yyyy-MM-DD"), false).subscribe({
next: resp => {
resp.forEach(schedule => {
console.log(schedule.startTime)
console.log(schedule.finishedTime)
this.events.push({
title: this.computeTaskPath(schedule.taskgroupPath, schedule.task),
color: colors['red'],
start: new Date(schedule.startTime),
end: new Date(schedule.finishedTime!),
draggable: false,
resizable: {
beforeStart: false,
afterEnd: false
}
})
})
this.refresh.next()
}
})
}