|
|
|
|
@ -39,6 +39,7 @@ class SearchWorkOrder {
|
|
|
|
|
this.nurseSignature,
|
|
|
|
|
this.woParentDto,
|
|
|
|
|
this.timer,
|
|
|
|
|
this.mrNumber,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
SearchWorkOrder.fromJson(dynamic json) {
|
|
|
|
|
@ -51,6 +52,7 @@ class SearchWorkOrder {
|
|
|
|
|
assetType = json['assetType'] != null ? Lookup.fromJson(json['assetType']) : null;
|
|
|
|
|
assignedEmployee = json['assignedEmployee'] != null ? AssignedEmployee.fromJson(json['assignedEmployee']) : null;
|
|
|
|
|
visitDate = json['visitDate'];
|
|
|
|
|
mrNumber = json['mrNumber'];
|
|
|
|
|
if (json['assistantEmployees'] != null) {
|
|
|
|
|
assistantEmployees = [];
|
|
|
|
|
json['assistantEmployees'].forEach((v) {
|
|
|
|
|
@ -145,6 +147,7 @@ class SearchWorkOrder {
|
|
|
|
|
engSignature = wo.engSignature ?? engSignature;
|
|
|
|
|
nurseSignature = wo.nurseSignature ?? nurseSignature;
|
|
|
|
|
woParentDto = wo.woParentDto ?? woParentDto;
|
|
|
|
|
mrNumber = wo.mrNumber ?? mrNumber;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
num id;
|
|
|
|
|
@ -180,6 +183,7 @@ class SearchWorkOrder {
|
|
|
|
|
String nurseSignature;
|
|
|
|
|
WoParentDto woParentDto;
|
|
|
|
|
TimerModel timer;
|
|
|
|
|
String mrNumber;
|
|
|
|
|
|
|
|
|
|
SearchWorkOrder copyWith({
|
|
|
|
|
num id,
|
|
|
|
|
@ -215,6 +219,7 @@ class SearchWorkOrder {
|
|
|
|
|
String nurseSignature,
|
|
|
|
|
WoParentDto woParentDto,
|
|
|
|
|
TimerModel timer,
|
|
|
|
|
String mrNumber,
|
|
|
|
|
}) =>
|
|
|
|
|
SearchWorkOrder(
|
|
|
|
|
id: id ?? this.id,
|
|
|
|
|
@ -250,6 +255,7 @@ class SearchWorkOrder {
|
|
|
|
|
nurseSignature: nurseSignature ?? this.nurseSignature,
|
|
|
|
|
woParentDto: woParentDto ?? this.woParentDto,
|
|
|
|
|
timer: timer ?? this.timer,
|
|
|
|
|
mrNumber: mrNumber ?? this.mrNumber,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
@ -319,6 +325,9 @@ class SearchWorkOrder {
|
|
|
|
|
if (woParentDto != null) {
|
|
|
|
|
map['woParentDto'] = woParentDto.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (mrNumber != null) {
|
|
|
|
|
map['mrNumber'] = mrNumber;
|
|
|
|
|
}
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|