|
|
|
|
@ -38,6 +38,7 @@ class ServiceReport {
|
|
|
|
|
this.currentSituation,
|
|
|
|
|
this.repairLocation,
|
|
|
|
|
this.reason,
|
|
|
|
|
this.serviceType,
|
|
|
|
|
this.startofWorkTime,
|
|
|
|
|
this.endofWorkTime,
|
|
|
|
|
this.workingHours,
|
|
|
|
|
@ -87,6 +88,7 @@ class ServiceReport {
|
|
|
|
|
currentSituation = json['currentSituation'] != null ? Lookup.fromJson(json['currentSituation']) : null;
|
|
|
|
|
repairLocation = json['repairLocation'] != null ? Lookup.fromJson(json['repairLocation']) : null;
|
|
|
|
|
reason = json['reason'] != null ? Lookup.fromJson(json['reason']) : null;
|
|
|
|
|
serviceType = json['serviceType'] != null ? Lookup.fromJson(json['serviceType']) : null;
|
|
|
|
|
startofWorkTime = json['startofWorkTime'];
|
|
|
|
|
endofWorkTime = json['endofWorkTime'];
|
|
|
|
|
workingHours = json['workingHours'];
|
|
|
|
|
@ -148,6 +150,7 @@ class ServiceReport {
|
|
|
|
|
Lookup currentSituation;
|
|
|
|
|
Lookup repairLocation;
|
|
|
|
|
Lookup reason;
|
|
|
|
|
Lookup serviceType;
|
|
|
|
|
String startofWorkTime;
|
|
|
|
|
String endofWorkTime;
|
|
|
|
|
num workingHours;
|
|
|
|
|
@ -188,6 +191,7 @@ class ServiceReport {
|
|
|
|
|
Lookup currentSituation,
|
|
|
|
|
Lookup repairLocation,
|
|
|
|
|
Lookup reason,
|
|
|
|
|
Lookup serviceType,
|
|
|
|
|
String startofWorkTime,
|
|
|
|
|
String endofWorkTime,
|
|
|
|
|
num workingHours,
|
|
|
|
|
@ -226,6 +230,7 @@ class ServiceReport {
|
|
|
|
|
currentSituation: currentSituation ?? this.currentSituation,
|
|
|
|
|
repairLocation: repairLocation ?? this.repairLocation,
|
|
|
|
|
reason: reason ?? this.reason,
|
|
|
|
|
serviceType: serviceType ?? this.serviceType,
|
|
|
|
|
startofWorkTime: startofWorkTime ?? this.startofWorkTime,
|
|
|
|
|
endofWorkTime: endofWorkTime ?? this.endofWorkTime,
|
|
|
|
|
workingHours: workingHours ?? this.workingHours,
|
|
|
|
|
@ -286,6 +291,9 @@ class ServiceReport {
|
|
|
|
|
if (reason != null) {
|
|
|
|
|
map['reason'] = reason.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (serviceType != null) {
|
|
|
|
|
map['serviceType'] = serviceType.toJson();
|
|
|
|
|
}
|
|
|
|
|
map['startofWorkTime'] = timer.startAt.toString();
|
|
|
|
|
map['endofWorkTime'] = timer.endAt.toString();
|
|
|
|
|
map['workingHours'] = workingHours;
|
|
|
|
|
|