|
|
|
|
@ -202,8 +202,11 @@ class DeviceTransferProvider extends ChangeNotifier {
|
|
|
|
|
"senderEndDate": newModel.timer?.endAt?.toIso8601String(),
|
|
|
|
|
"senderTravelingHours": newModel.travelingHours,
|
|
|
|
|
"senderAttachmentName": newModel?.signature ?? "",
|
|
|
|
|
"destSiteId": oldModel.receiver.client.id,
|
|
|
|
|
"destDepartmentId": oldModel.receiver.department.id,
|
|
|
|
|
"destSiteId": oldModel.receiver.client?.id,
|
|
|
|
|
"destDepartmentId": oldModel.receiver.department?.id,
|
|
|
|
|
"destBuildingId": oldModel.receiver.building?.id,
|
|
|
|
|
"destFloorId": oldModel.receiver.floor?.id,
|
|
|
|
|
"destRoom": oldModel.receiver?.room,
|
|
|
|
|
"receiverAssignedEmployeeId": oldModel.receiver.userId,
|
|
|
|
|
"receiverMachineStatusId": oldModel.receiver.status.id ?? "",
|
|
|
|
|
"receiverComment": oldModel.receiver.comment,
|
|
|
|
|
@ -225,8 +228,11 @@ class DeviceTransferProvider extends ChangeNotifier {
|
|
|
|
|
"senderEndDate": oldModel.sender.timer?.endAt?.toIso8601String(),
|
|
|
|
|
"senderTravelingHours": oldModel.sender.travelingHours,
|
|
|
|
|
"senderAttachmentName": oldModel.sender?.signature ?? "",
|
|
|
|
|
"destSiteId": newModel.client.id,
|
|
|
|
|
"destDepartmentId": newModel.department.id,
|
|
|
|
|
"destSiteId": newModel.client?.id,
|
|
|
|
|
"destDepartmentId": newModel.department?.id,
|
|
|
|
|
"destBuildingId": newModel.building?.id,
|
|
|
|
|
"destFloorId": newModel.floor?.id,
|
|
|
|
|
"destRoom": newModel.room,
|
|
|
|
|
"receiverAssignedEmployeeId": newModel.userId,
|
|
|
|
|
"receiverMachineStatusId": newModel.status?.id ?? "",
|
|
|
|
|
"receiverComment": newModel.comment,
|
|
|
|
|
@ -237,7 +243,7 @@ class DeviceTransferProvider extends ChangeNotifier {
|
|
|
|
|
"receiverAttachmentName": newModel?.signature ?? "",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (true) {}
|
|
|
|
|
//body.addAll(newModel.toJson(isSender));
|
|
|
|
|
print(body);
|
|
|
|
|
Response response;
|
|
|
|
|
|