init
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
enum ScheduleItemType {
|
||||
job,
|
||||
routine, // e.g. Team-Besprechung, Material laden
|
||||
lunchBreak, // Mittagspause
|
||||
feierabend, // Feierabend
|
||||
}
|
||||
|
||||
class ScheduleItem {
|
||||
final String id;
|
||||
final String title;
|
||||
final String? customerName;
|
||||
final String? address;
|
||||
final String? taskDescription;
|
||||
final String startTime;
|
||||
final String endTime;
|
||||
final ScheduleItemType type;
|
||||
bool isCompleted;
|
||||
bool isInProgress;
|
||||
|
||||
ScheduleItem({
|
||||
required this.id,
|
||||
required this.title,
|
||||
this.customerName,
|
||||
this.address,
|
||||
this.taskDescription,
|
||||
required this.startTime,
|
||||
required this.endTime,
|
||||
this.type = ScheduleItemType.job,
|
||||
this.isCompleted = false,
|
||||
this.isInProgress = false,
|
||||
});
|
||||
}
|
||||
|
||||
class DaySummary {
|
||||
final String dayName; // Mo, Di, Mi, Do, Fr, Sa, So
|
||||
final String fullDayName; // Monday, Tuesday, Thursday, ...
|
||||
final String dateString; // e.g. 16.05
|
||||
final int ordersCount;
|
||||
final double hoursTotal;
|
||||
final List<ScheduleItem> items;
|
||||
|
||||
const DaySummary({
|
||||
required this.dayName,
|
||||
required this.fullDayName,
|
||||
required this.dateString,
|
||||
required this.ordersCount,
|
||||
required this.hoursTotal,
|
||||
this.items = const [],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user