|
|
@ -387,88 +387,92 @@ class Ppm {
|
|
|
|
String visitStatusName,
|
|
|
|
String visitStatusName,
|
|
|
|
String warrantyEndDate,
|
|
|
|
String warrantyEndDate,
|
|
|
|
TimerModel tbsTimer,
|
|
|
|
TimerModel tbsTimer,
|
|
|
|
}) =>
|
|
|
|
}) {
|
|
|
|
Ppm(
|
|
|
|
Ppm ppm = Ppm(
|
|
|
|
id: id ?? this.id,
|
|
|
|
id: id ?? this.id,
|
|
|
|
ppmScheduleId: ppmScheduleId ?? this.ppmScheduleId,
|
|
|
|
ppmScheduleId: ppmScheduleId ?? this.ppmScheduleId,
|
|
|
|
assetId: assetId ?? this.assetId,
|
|
|
|
assetId: assetId ?? this.assetId,
|
|
|
|
jobSheetNo: jobSheetNo ?? this.jobSheetNo,
|
|
|
|
jobSheetNo: jobSheetNo ?? this.jobSheetNo,
|
|
|
|
assignedEmployeeId: assignedEmployeeId ?? this.assignedEmployeeId,
|
|
|
|
assignedEmployeeId: assignedEmployeeId ?? this.assignedEmployeeId,
|
|
|
|
expectedDate: expectedDate ?? this.expectedDate,
|
|
|
|
expectedDate: expectedDate ?? this.expectedDate,
|
|
|
|
actualDate: actualDate ?? this.actualDate,
|
|
|
|
actualDate: actualDate ?? this.actualDate,
|
|
|
|
nextDate: nextDate ?? this.nextDate,
|
|
|
|
nextDate: nextDate ?? this.nextDate,
|
|
|
|
forwardToId: forwardToId ?? this.forwardToId,
|
|
|
|
forwardToId: forwardToId ?? this.forwardToId,
|
|
|
|
maintenanceContractId: maintenanceContractId ?? this.maintenanceContractId,
|
|
|
|
maintenanceContractId: maintenanceContractId ?? this.maintenanceContractId,
|
|
|
|
typeOfServiceId: typeOfServiceId ?? this.typeOfServiceId,
|
|
|
|
typeOfServiceId: typeOfServiceId ?? this.typeOfServiceId,
|
|
|
|
executionTimeFrameId: executionTimeFrameId ?? this.executionTimeFrameId,
|
|
|
|
executionTimeFrameId: executionTimeFrameId ?? this.executionTimeFrameId,
|
|
|
|
externalEngineer: externalEngineer ?? this.externalEngineer,
|
|
|
|
externalEngineer: externalEngineer ?? this.externalEngineer,
|
|
|
|
telephone: telephone ?? this.telephone,
|
|
|
|
telephone: telephone ?? this.telephone,
|
|
|
|
groupLeaderReviewId: groupLeaderReviewId ?? this.groupLeaderReviewId,
|
|
|
|
groupLeaderReviewId: groupLeaderReviewId ?? this.groupLeaderReviewId,
|
|
|
|
timePeriodId: timePeriodId ?? this.timePeriodId,
|
|
|
|
timePeriodId: timePeriodId ?? this.timePeriodId,
|
|
|
|
assignedToId: assignedToId ?? this.assignedToId,
|
|
|
|
assignedToId: assignedToId ?? this.assignedToId,
|
|
|
|
vCalibrationTools: vCalibrationTools ?? this.vCalibrationTools,
|
|
|
|
vCalibrationTools: vCalibrationTools ?? this.vCalibrationTools,
|
|
|
|
vKits: vKits ?? this.vKits,
|
|
|
|
vKits: vKits ?? this.vKits,
|
|
|
|
vContacts: vContacts ?? this.vContacts,
|
|
|
|
vContacts: vContacts ?? this.vContacts,
|
|
|
|
vChecklists: vChecklists ?? this.vChecklists,
|
|
|
|
vChecklists: vChecklists ?? this.vChecklists,
|
|
|
|
files: files ?? this.files,
|
|
|
|
files: files ?? this.files,
|
|
|
|
visitStatusId: visitStatusId ?? this.visitStatusId,
|
|
|
|
visitStatusId: visitStatusId ?? this.visitStatusId,
|
|
|
|
startDate: startDate ?? this.startDate,
|
|
|
|
startDate: startDate ?? this.startDate,
|
|
|
|
endDate: endDate ?? this.endDate,
|
|
|
|
endDate: endDate ?? this.endDate,
|
|
|
|
workingHours: workingHours ?? this.workingHours,
|
|
|
|
workingHours: workingHours ?? this.workingHours,
|
|
|
|
travelingHours: travelingHours ?? this.travelingHours,
|
|
|
|
travelingHours: travelingHours ?? this.travelingHours,
|
|
|
|
deviceStatusId: deviceStatusId ?? this.deviceStatusId,
|
|
|
|
deviceStatusId: deviceStatusId ?? this.deviceStatusId,
|
|
|
|
comments: comments ?? this.comments,
|
|
|
|
comments: comments ?? this.comments,
|
|
|
|
workPerformed: workPerformed ?? this.workPerformed,
|
|
|
|
workPerformed: workPerformed ?? this.workPerformed,
|
|
|
|
supplierId: supplierId ?? this.supplierId,
|
|
|
|
supplierId: supplierId ?? this.supplierId,
|
|
|
|
suppPersonId: suppPersonId ?? this.suppPersonId,
|
|
|
|
suppPersonId: suppPersonId ?? this.suppPersonId,
|
|
|
|
suppStartDate: suppStartDate ?? this.suppStartDate,
|
|
|
|
suppStartDate: suppStartDate ?? this.suppStartDate,
|
|
|
|
suppEndDate: suppEndDate ?? this.suppEndDate,
|
|
|
|
suppEndDate: suppEndDate ?? this.suppEndDate,
|
|
|
|
suppWorkingHours: suppWorkingHours ?? this.suppWorkingHours,
|
|
|
|
suppWorkingHours: suppWorkingHours ?? this.suppWorkingHours,
|
|
|
|
taskStatusId: taskStatusId ?? this.taskStatusId,
|
|
|
|
taskStatusId: taskStatusId ?? this.taskStatusId,
|
|
|
|
engSignature: engSignature ?? this.engSignature,
|
|
|
|
engSignature: engSignature ?? this.engSignature,
|
|
|
|
nurseSignature: nurseSignature ?? this.nurseSignature,
|
|
|
|
nurseSignature: nurseSignature ?? this.nurseSignature,
|
|
|
|
safetyId: safetyId ?? this.safetyId,
|
|
|
|
safetyId: safetyId ?? this.safetyId,
|
|
|
|
assetAvailabilityId: assetAvailabilityId ?? this.assetAvailabilityId,
|
|
|
|
assetAvailabilityId: assetAvailabilityId ?? this.assetAvailabilityId,
|
|
|
|
assetAvailabilityName: assetAvailabilityName ?? this.assetAvailabilityName,
|
|
|
|
assetAvailabilityName: assetAvailabilityName ?? this.assetAvailabilityName,
|
|
|
|
assetName: assetName ?? this.assetName,
|
|
|
|
assetName: assetName ?? this.assetName,
|
|
|
|
assetNumber: assetNumber ?? this.assetNumber,
|
|
|
|
assetNumber: assetNumber ?? this.assetNumber,
|
|
|
|
assetSerialNo: assetSerialNo ?? this.assetSerialNo,
|
|
|
|
assetSerialNo: assetSerialNo ?? this.assetSerialNo,
|
|
|
|
assetSupplierId: assetSupplierId ?? this.assetSupplierId,
|
|
|
|
assetSupplierId: assetSupplierId ?? this.assetSupplierId,
|
|
|
|
assetSupplierName: assetSupplierName ?? this.assetSupplierName,
|
|
|
|
assetSupplierName: assetSupplierName ?? this.assetSupplierName,
|
|
|
|
assignedEmployeeName: assignedEmployeeName ?? this.assignedEmployeeName,
|
|
|
|
assignedEmployeeName: assignedEmployeeName ?? this.assignedEmployeeName,
|
|
|
|
assignedToName: assignedToName ?? this.assignedToName,
|
|
|
|
assignedToName: assignedToName ?? this.assignedToName,
|
|
|
|
createdOn: createdOn ?? this.createdOn,
|
|
|
|
createdOn: createdOn ?? this.createdOn,
|
|
|
|
departmentId: departmentId ?? this.departmentId,
|
|
|
|
departmentId: departmentId ?? this.departmentId,
|
|
|
|
departmentName: departmentName ?? this.departmentName,
|
|
|
|
departmentName: departmentName ?? this.departmentName,
|
|
|
|
deviceStatusName: deviceStatusName ?? this.deviceStatusName,
|
|
|
|
deviceStatusName: deviceStatusName ?? this.deviceStatusName,
|
|
|
|
dueDate: dueDate ?? this.dueDate,
|
|
|
|
dueDate: dueDate ?? this.dueDate,
|
|
|
|
executionTimeFrameName: executionTimeFrameName ?? this.executionTimeFrameName,
|
|
|
|
executionTimeFrameName: executionTimeFrameName ?? this.executionTimeFrameName,
|
|
|
|
forwardToName: forwardToName ?? this.forwardToName,
|
|
|
|
forwardToName: forwardToName ?? this.forwardToName,
|
|
|
|
manufacturerId: manufacturerId ?? this.manufacturerId,
|
|
|
|
manufacturerId: manufacturerId ?? this.manufacturerId,
|
|
|
|
manufacturerName: manufacturerName ?? this.manufacturerName,
|
|
|
|
manufacturerName: manufacturerName ?? this.manufacturerName,
|
|
|
|
modifiedOn: modifiedOn ?? this.modifiedOn,
|
|
|
|
modifiedOn: modifiedOn ?? this.modifiedOn,
|
|
|
|
notified: notified ?? this.notified,
|
|
|
|
notified: notified ?? this.notified,
|
|
|
|
planCode: planCode ?? this.planCode,
|
|
|
|
planCode: planCode ?? this.planCode,
|
|
|
|
planNo: planNo ?? this.planNo,
|
|
|
|
planNo: planNo ?? this.planNo,
|
|
|
|
ppmId: ppmId ?? this.ppmId,
|
|
|
|
ppmId: ppmId ?? this.ppmId,
|
|
|
|
ppmScheduleCode: ppmScheduleCode ?? this.ppmScheduleCode,
|
|
|
|
ppmScheduleCode: ppmScheduleCode ?? this.ppmScheduleCode,
|
|
|
|
ppmScheduleNo: ppmScheduleNo ?? this.ppmScheduleNo,
|
|
|
|
ppmScheduleNo: ppmScheduleNo ?? this.ppmScheduleNo,
|
|
|
|
ppmSupplierId: ppmSupplierId ?? this.ppmSupplierId,
|
|
|
|
ppmSupplierId: ppmSupplierId ?? this.ppmSupplierId,
|
|
|
|
ppmSupplierName: ppmSupplierName ?? this.ppmSupplierName,
|
|
|
|
ppmSupplierName: ppmSupplierName ?? this.ppmSupplierName,
|
|
|
|
safetyName: safetyName ?? this.safetyName,
|
|
|
|
safetyName: safetyName ?? this.safetyName,
|
|
|
|
siteId: siteId ?? this.siteId,
|
|
|
|
siteId: siteId ?? this.siteId,
|
|
|
|
siteName: siteName ?? this.siteName,
|
|
|
|
siteName: siteName ?? this.siteName,
|
|
|
|
supplierName: supplierName ?? this.supplierName,
|
|
|
|
supplierName: supplierName ?? this.supplierName,
|
|
|
|
suppPerson: suppPerson ?? this.suppPerson,
|
|
|
|
suppPerson: suppPerson ?? this.suppPerson,
|
|
|
|
taskStatusName: taskStatusName ?? this.taskStatusName,
|
|
|
|
taskStatusName: taskStatusName ?? this.taskStatusName,
|
|
|
|
timePeriodName: timePeriodName ?? this.timePeriodName,
|
|
|
|
timePeriodName: timePeriodName ?? this.timePeriodName,
|
|
|
|
timePeriodValue: timePeriodValue ?? this.timePeriodValue,
|
|
|
|
timePeriodValue: timePeriodValue ?? this.timePeriodValue,
|
|
|
|
typeOfServiceName: typeOfServiceName ?? this.typeOfServiceName,
|
|
|
|
typeOfServiceName: typeOfServiceName ?? this.typeOfServiceName,
|
|
|
|
visitCode: visitCode ?? this.visitCode,
|
|
|
|
visitCode: visitCode ?? this.visitCode,
|
|
|
|
visitNo: visitNo ?? this.visitNo,
|
|
|
|
visitNo: visitNo ?? this.visitNo,
|
|
|
|
visitStatusName: visitStatusName ?? this.visitStatusName,
|
|
|
|
visitStatusName: visitStatusName ?? this.visitStatusName,
|
|
|
|
warrantyEndDate: warrantyEndDate ?? this.warrantyEndDate,
|
|
|
|
warrantyEndDate: warrantyEndDate ?? this.warrantyEndDate,
|
|
|
|
)..tbsTimer = tbsTimer ?? this.tbsTimer;
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ppm.tbsTimer = tbsTimer ?? this.tbsTimer;
|
|
|
|
|
|
|
|
return ppm;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|