|
|
|
|
@ -30,6 +30,7 @@ class GasRefillModel {
|
|
|
|
|
this.department,
|
|
|
|
|
this.assignedEmployee,
|
|
|
|
|
this.status,
|
|
|
|
|
this.comment,
|
|
|
|
|
this.gazRefillDetails,
|
|
|
|
|
this.localEngineerSignature,
|
|
|
|
|
this.localNurseSignature,
|
|
|
|
|
@ -45,6 +46,7 @@ class GasRefillModel {
|
|
|
|
|
startTime = json['startTime'];
|
|
|
|
|
endDate = json['endDate'];
|
|
|
|
|
endTime = json['endTime'];
|
|
|
|
|
comment = json['comment'];
|
|
|
|
|
workingHours = json['workingHours'];
|
|
|
|
|
try {
|
|
|
|
|
final sd = DateTime.tryParse(startDate ?? "");
|
|
|
|
|
@ -95,6 +97,7 @@ class GasRefillModel {
|
|
|
|
|
Department department;
|
|
|
|
|
AssignedEmployee assignedEmployee;
|
|
|
|
|
Lookup status;
|
|
|
|
|
String comment;
|
|
|
|
|
List<GasRefillDetails> gazRefillDetails;
|
|
|
|
|
Uint8List localNurseSignature;
|
|
|
|
|
Uint8List localEngineerSignature;
|
|
|
|
|
@ -118,6 +121,7 @@ class GasRefillModel {
|
|
|
|
|
Department department,
|
|
|
|
|
AssignedEmployee assignedEmployee,
|
|
|
|
|
Lookup status,
|
|
|
|
|
String comment,
|
|
|
|
|
List<GasRefillDetails> gazRefillDetails,
|
|
|
|
|
TimerModel timer,
|
|
|
|
|
}) =>
|
|
|
|
|
@ -139,6 +143,7 @@ class GasRefillModel {
|
|
|
|
|
department: department ?? this.department,
|
|
|
|
|
assignedEmployee: assignedEmployee ?? this.assignedEmployee,
|
|
|
|
|
status: status ?? this.status,
|
|
|
|
|
comment: comment ?? this.comment,
|
|
|
|
|
gazRefillDetails: gazRefillDetails ?? this.gazRefillDetails,
|
|
|
|
|
timer: timer ?? this.timer,
|
|
|
|
|
);
|
|
|
|
|
@ -156,6 +161,7 @@ class GasRefillModel {
|
|
|
|
|
map['engSignature'] = engSignature;
|
|
|
|
|
map['nurseSignature'] = nurseSignature;
|
|
|
|
|
map['workingHours'] = workingHours;
|
|
|
|
|
map['comment'] = comment;
|
|
|
|
|
if (site != null) {
|
|
|
|
|
map['site'] = site.toJson(addBuildings: false);
|
|
|
|
|
}
|
|
|
|
|
@ -210,6 +216,7 @@ class GasRefillModel {
|
|
|
|
|
startDate = model.startDate;
|
|
|
|
|
endDate = model.endDate;
|
|
|
|
|
expectedDate = model.expectedDate;
|
|
|
|
|
comment = model.comment;
|
|
|
|
|
assignedEmployee = model.assignedEmployee;
|
|
|
|
|
localEngineerSignature = model.localEngineerSignature;
|
|
|
|
|
localNurseSignature = model.localNurseSignature;
|
|
|
|
|
|