|
|
|
|
@ -44,6 +44,7 @@ class RecurrentWoData {
|
|
|
|
|
String? scheduleDate;
|
|
|
|
|
Status? status;
|
|
|
|
|
Site? site;
|
|
|
|
|
PlanRecurrent? planRecurrent;
|
|
|
|
|
Lookup? building;
|
|
|
|
|
Lookup? floor;
|
|
|
|
|
Lookup? department;
|
|
|
|
|
@ -64,6 +65,7 @@ class RecurrentWoData {
|
|
|
|
|
this.scheduleDate,
|
|
|
|
|
this.status,
|
|
|
|
|
this.site,
|
|
|
|
|
this.planRecurrent,
|
|
|
|
|
this.building,
|
|
|
|
|
this.recurrentWoTimerModel,
|
|
|
|
|
this.floor,
|
|
|
|
|
@ -72,7 +74,7 @@ class RecurrentWoData {
|
|
|
|
|
this.planRecurrentMedicalTaskRooms,
|
|
|
|
|
this.planRecurrentTaskTimers,
|
|
|
|
|
this.timerModelList,
|
|
|
|
|
this.recurrentWoTimePicker,
|
|
|
|
|
this.recurrentWoTimePicker,
|
|
|
|
|
this.comment,
|
|
|
|
|
this.totalWorkingHours});
|
|
|
|
|
|
|
|
|
|
@ -83,6 +85,7 @@ class RecurrentWoData {
|
|
|
|
|
engineer = json['engineer'] != null ? new Engineer.fromJson(json['engineer']) : null;
|
|
|
|
|
scheduleDate = json['scheduleDate'];
|
|
|
|
|
status = json['status'] != null ? Status.fromJson(json['status']) : null;
|
|
|
|
|
planRecurrent = json['status'] != null ? PlanRecurrent.fromJson(json['planRecurrent']) : null;
|
|
|
|
|
site = json['site'] != null ? Site.fromJson(json['site']) : null;
|
|
|
|
|
building = json["building"] == null ? null : Lookup.fromJson(json["building"]);
|
|
|
|
|
floor = json["floor"] == null ? null : Lookup.fromJson(json["floor"]);
|
|
|
|
|
@ -354,3 +357,124 @@ class PlanRecurrentTaskTimers {
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class PlanRecurrent {
|
|
|
|
|
int? taskTypeId;
|
|
|
|
|
Lookup? taskType;
|
|
|
|
|
String? planNo;
|
|
|
|
|
String? planName;
|
|
|
|
|
int? planSequence;
|
|
|
|
|
int? frequencyId;
|
|
|
|
|
String? frequency;
|
|
|
|
|
bool? autoConverstion;
|
|
|
|
|
String? comment;
|
|
|
|
|
String? scheduleDateFrom1;
|
|
|
|
|
String? scheduleDateFrom2;
|
|
|
|
|
Site? site;
|
|
|
|
|
Lookup? building;
|
|
|
|
|
Lookup? floor;
|
|
|
|
|
Lookup? department;
|
|
|
|
|
Lookup? room;
|
|
|
|
|
|
|
|
|
|
// List<Null>? planRecurrentMedicalRooms;
|
|
|
|
|
bool? friday;
|
|
|
|
|
bool? saturday;
|
|
|
|
|
bool? sunday;
|
|
|
|
|
bool? monday;
|
|
|
|
|
bool? tuesday;
|
|
|
|
|
bool? wednesday;
|
|
|
|
|
bool? thursday;
|
|
|
|
|
|
|
|
|
|
PlanRecurrent(
|
|
|
|
|
{this.taskTypeId,
|
|
|
|
|
this.taskType,
|
|
|
|
|
this.planNo,
|
|
|
|
|
this.planName,
|
|
|
|
|
this.planSequence,
|
|
|
|
|
this.frequencyId,
|
|
|
|
|
this.frequency,
|
|
|
|
|
this.autoConverstion,
|
|
|
|
|
this.comment,
|
|
|
|
|
this.scheduleDateFrom1,
|
|
|
|
|
this.scheduleDateFrom2,
|
|
|
|
|
this.site,
|
|
|
|
|
this.building,
|
|
|
|
|
this.floor,
|
|
|
|
|
this.department,
|
|
|
|
|
this.room,
|
|
|
|
|
// this.planRecurrentMedicalRooms,
|
|
|
|
|
this.friday,
|
|
|
|
|
this.saturday,
|
|
|
|
|
this.sunday,
|
|
|
|
|
this.monday,
|
|
|
|
|
this.tuesday,
|
|
|
|
|
this.wednesday,
|
|
|
|
|
this.thursday});
|
|
|
|
|
|
|
|
|
|
PlanRecurrent.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
taskTypeId = json['taskTypeId'];
|
|
|
|
|
taskType = json['taskType'] != null ? new Lookup.fromJson(json['taskType']) : null;
|
|
|
|
|
planNo = json['planNo'];
|
|
|
|
|
planName = json['planName'];
|
|
|
|
|
planSequence = json['planSequence'];
|
|
|
|
|
frequencyId = json['frequencyId'];
|
|
|
|
|
frequency = json['frequency'];
|
|
|
|
|
autoConverstion = json['autoConverstion'];
|
|
|
|
|
comment = json['comment'];
|
|
|
|
|
scheduleDateFrom1 = json['scheduleDateFrom1'];
|
|
|
|
|
scheduleDateFrom2 = json['scheduleDateFrom2'];
|
|
|
|
|
site = json['site'] != null ? Site.fromJson(json['site']) : null;
|
|
|
|
|
building = json["building"] == null ? null : Lookup.fromJson(json["building"]);
|
|
|
|
|
floor = json["floor"] == null ? null : Lookup.fromJson(json["floor"]);
|
|
|
|
|
department = json["department"] == null ? null : Lookup.fromJson(json["department"]);
|
|
|
|
|
room = json["room"] == null ? null : Lookup.fromJson(json["room"]);
|
|
|
|
|
// if (json['planRecurrentMedicalRooms'] != null) {
|
|
|
|
|
// planRecurrentMedicalRooms = <Null>[];
|
|
|
|
|
// json['planRecurrentMedicalRooms'].forEach((v) {
|
|
|
|
|
// planRecurrentMedicalRooms!.add(new Null.fromJson(v));
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
friday = json['friday'];
|
|
|
|
|
saturday = json['saturday'];
|
|
|
|
|
sunday = json['sunday'];
|
|
|
|
|
monday = json['monday'];
|
|
|
|
|
tuesday = json['tuesday'];
|
|
|
|
|
wednesday = json['wednesday'];
|
|
|
|
|
thursday = json['thursday'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['taskTypeId'] = this.taskTypeId;
|
|
|
|
|
if (this.taskType != null) {
|
|
|
|
|
data['lookUp'] = this.taskType!.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['planNo'] = this.planNo;
|
|
|
|
|
data['planName'] = this.planName;
|
|
|
|
|
data['planSequence'] = this.planSequence;
|
|
|
|
|
data['frequencyId'] = this.frequencyId;
|
|
|
|
|
data['frequency'] = this.frequency;
|
|
|
|
|
data['autoConverstion'] = this.autoConverstion;
|
|
|
|
|
data['comment'] = this.comment;
|
|
|
|
|
data['scheduleDateFrom1'] = this.scheduleDateFrom1;
|
|
|
|
|
data['scheduleDateFrom2'] = this.scheduleDateFrom2;
|
|
|
|
|
if (this.site != null) {
|
|
|
|
|
data['site'] = this.site!.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['building'] = this.building;
|
|
|
|
|
data['floor'] = this.floor;
|
|
|
|
|
data['department'] = this.department;
|
|
|
|
|
data['room'] = this.room;
|
|
|
|
|
// if (this.planRecurrentMedicalRooms != null) {
|
|
|
|
|
// data['planRecurrentMedicalRooms'] = this.planRecurrentMedicalRooms!.map((v) => v.toJson()).toList();
|
|
|
|
|
// }
|
|
|
|
|
data['friday'] = this.friday;
|
|
|
|
|
data['saturday'] = this.saturday;
|
|
|
|
|
data['sunday'] = this.sunday;
|
|
|
|
|
data['monday'] = this.monday;
|
|
|
|
|
data['tuesday'] = this.tuesday;
|
|
|
|
|
data['wednesday'] = this.wednesday;
|
|
|
|
|
data['thursday'] = this.thursday;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|