|
|
|
|
@ -106,6 +106,8 @@ class WorkOrderData {
|
|
|
|
|
this.qAmount,
|
|
|
|
|
this.prNo,
|
|
|
|
|
this.poNo,
|
|
|
|
|
this.mrNo,
|
|
|
|
|
this.exchangeCost,
|
|
|
|
|
required this.workOrderHistory,
|
|
|
|
|
required this.activities,
|
|
|
|
|
required this.activityAssetToBeRetireds,
|
|
|
|
|
@ -171,6 +173,8 @@ class WorkOrderData {
|
|
|
|
|
num? qAmount;
|
|
|
|
|
String? prNo;
|
|
|
|
|
String? poNo;
|
|
|
|
|
String? mrNo;
|
|
|
|
|
num? exchangeCost;
|
|
|
|
|
List<WorkOrderHistory> workOrderHistory;
|
|
|
|
|
List<Activities> activities;
|
|
|
|
|
List<dynamic> activityAssetToBeRetireds;
|
|
|
|
|
@ -207,6 +211,8 @@ class WorkOrderData {
|
|
|
|
|
qAmount: json['qAmount'],
|
|
|
|
|
prNo: json['prNo'],
|
|
|
|
|
poNo: json['poNo'],
|
|
|
|
|
mrNo: json['mrNo'],
|
|
|
|
|
exchangeCost: json['exchangeCost'],
|
|
|
|
|
assetType: json["assetType"] == null ? null : Lookup.fromJson(json["assetType"]),
|
|
|
|
|
assignedEmployee: json["assignedEmployee"] == null ? null : WorkOrderAssignedEmployee.fromJson(json["assignedEmployee"]),
|
|
|
|
|
lastActivityStatus: json["lastActivityStatus"] != null ? Lookup.fromJson(json["lastActivityStatus"]) : null,
|
|
|
|
|
@ -278,6 +284,8 @@ class WorkOrderData {
|
|
|
|
|
"comments": comments,
|
|
|
|
|
"voiceNote": voiceNote,
|
|
|
|
|
"edd": edd,
|
|
|
|
|
'mrNo': mrNo,
|
|
|
|
|
'exchangeCost': exchangeCost,
|
|
|
|
|
"workOrderAttachments": workOrderAttachments.map((e) => e.toJson()).toList(),
|
|
|
|
|
"returnToService": returnToService,
|
|
|
|
|
"serviceType": serviceType?.toJson(),
|
|
|
|
|
@ -828,20 +836,19 @@ class ActivityMaintenanceAssistantEmployees {
|
|
|
|
|
double? workingHours;
|
|
|
|
|
String? technicalComment;
|
|
|
|
|
AssignedEmployee? user;
|
|
|
|
|
AssistantEmployees ?employee;
|
|
|
|
|
AssistantEmployees? employee;
|
|
|
|
|
|
|
|
|
|
ActivityMaintenanceAssistantEmployees({this.startDate, this.endDate, this.workingHours, this.technicalComment, this.user,this.employee});
|
|
|
|
|
ActivityMaintenanceAssistantEmployees({this.startDate, this.endDate, this.workingHours, this.technicalComment, this.user, this.employee});
|
|
|
|
|
|
|
|
|
|
ActivityMaintenanceAssistantEmployees.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
Map<String,dynamic> assistEmpData={};
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> assistEmpData = {};
|
|
|
|
|
|
|
|
|
|
startDate = json['startDate'] != null ? DateTime.parse(json['startDate']) : null;
|
|
|
|
|
endDate = json['endDate'] != null ? DateTime.parse(json['endDate']) : null;
|
|
|
|
|
workingHours = json['workingHours'];
|
|
|
|
|
technicalComment = json['technicalComment'];
|
|
|
|
|
user = json['user'] != null ? AssignedEmployee.fromJson(json['user']) : null;
|
|
|
|
|
if(json['user']!=null) {
|
|
|
|
|
if (json['user'] != null) {
|
|
|
|
|
assistEmpData = {
|
|
|
|
|
'id': null,
|
|
|
|
|
'user': {
|
|
|
|
|
@ -866,7 +873,6 @@ class ActivityMaintenanceAssistantEmployees {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// class ActivityMaintenanceAssistantEmployees {
|
|
|
|
|
// DateTime? startDate;
|
|
|
|
|
// DateTime? endDate;
|
|
|
|
|
@ -923,27 +929,25 @@ class ActivityMaintenanceTimers {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AssistantEmployeesModel {
|
|
|
|
|
DateTime? startDate;
|
|
|
|
|
DateTime? endDate;
|
|
|
|
|
double? workingHours;
|
|
|
|
|
String? technicalComment;
|
|
|
|
|
AssignedEmployee? user;
|
|
|
|
|
AssistantEmployees ?employee;
|
|
|
|
|
AssistantEmployees? employee;
|
|
|
|
|
|
|
|
|
|
AssistantEmployeesModel({this.startDate, this.endDate, this.workingHours, this.technicalComment, this.user,this.employee});
|
|
|
|
|
AssistantEmployeesModel({this.startDate, this.endDate, this.workingHours, this.technicalComment, this.user, this.employee});
|
|
|
|
|
|
|
|
|
|
AssistantEmployeesModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
Map<String,dynamic> assistEmpData={};
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> assistEmpData = {};
|
|
|
|
|
|
|
|
|
|
startDate = json['startDate'] != null ? DateTime.parse(json['startDate']) : null;
|
|
|
|
|
endDate = json['endDate'] != null ? DateTime.parse(json['endDate']) : null;
|
|
|
|
|
workingHours = json['workingHours'];
|
|
|
|
|
technicalComment = json['technicalComment'];
|
|
|
|
|
user = json['user'] != null ? AssignedEmployee.fromJson(json['user']) : null;
|
|
|
|
|
if(json['user']!=null) {
|
|
|
|
|
if (json['user'] != null) {
|
|
|
|
|
assistEmpData = {
|
|
|
|
|
'id': null,
|
|
|
|
|
'user': {
|
|
|
|
|
|