|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
import 'dart:developer';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:http/http.dart';
|
|
|
|
|
@ -204,9 +205,9 @@ class DeviceTransferProvider extends ChangeNotifier {
|
|
|
|
|
"senderAttachmentName": newModel?.signature ?? "",
|
|
|
|
|
"destSiteId": oldModel.receiver.client?.id,
|
|
|
|
|
"destDepartmentId": oldModel.receiver.department?.id,
|
|
|
|
|
"destBuildingId": oldModel.receiver.building?.id,
|
|
|
|
|
"destFloorId": oldModel.receiver.floor?.id,
|
|
|
|
|
"destRoom": oldModel.receiver?.room,
|
|
|
|
|
"destBuildingId": oldModel.device?.destBuildingId,
|
|
|
|
|
"destFloorId": oldModel.device?.destFloorId,
|
|
|
|
|
"destRoom": oldModel.device?.destRoom,
|
|
|
|
|
"receiverAssignedEmployeeId": oldModel.receiver.userId,
|
|
|
|
|
"receiverMachineStatusId": oldModel.receiver.status.id ?? "",
|
|
|
|
|
"receiverComment": oldModel.receiver.comment,
|
|
|
|
|
@ -230,9 +231,9 @@ class DeviceTransferProvider extends ChangeNotifier {
|
|
|
|
|
"senderAttachmentName": oldModel.sender?.signature ?? "",
|
|
|
|
|
"destSiteId": newModel.client?.id,
|
|
|
|
|
"destDepartmentId": newModel.department?.id,
|
|
|
|
|
"destBuildingId": newModel.building?.id,
|
|
|
|
|
"destFloorId": newModel.floor?.id,
|
|
|
|
|
"destRoom": newModel.room,
|
|
|
|
|
"destBuildingId": oldModel.device?.destBuildingId,
|
|
|
|
|
"destFloorId": oldModel.device?.destFloorId,
|
|
|
|
|
"destRoom": oldModel.device?.destRoom,
|
|
|
|
|
"receiverAssignedEmployeeId": newModel.userId,
|
|
|
|
|
"receiverMachineStatusId": newModel.status?.id ?? "",
|
|
|
|
|
"receiverComment": newModel.comment,
|
|
|
|
|
@ -245,7 +246,7 @@ class DeviceTransferProvider extends ChangeNotifier {
|
|
|
|
|
}
|
|
|
|
|
if (true) {}
|
|
|
|
|
//body.addAll(newModel.toJson(isSender));
|
|
|
|
|
print(body);
|
|
|
|
|
log(body?.toString());
|
|
|
|
|
Response response;
|
|
|
|
|
try {
|
|
|
|
|
response = await ApiManager.instance.put(URLs.updateDeviceTransfer, body: body);
|
|
|
|
|
|