hotfix misc
This commit is contained in:
parent
2badd51032
commit
79a8fa6300
|
@ -586,10 +586,14 @@ class UpdateIDE {
|
|||
Future<ApiCallResponse> call() async {
|
||||
final String baseUrl = PhpGroup.getBaseUrl();
|
||||
|
||||
final String devUUID = StorageUtil().devUUID;
|
||||
final String userUUID = StorageUtil().userUUID;
|
||||
final String cliID = StorageUtil().cliUUID;
|
||||
final String newIde = StorageUtil().userDevUUID;
|
||||
final String devUUID =
|
||||
(await StorageHelper.instance.get(SQLiteStorageKey.devUUID.value, Storage.SQLiteStorage)) ?? '';
|
||||
final String userUUID =
|
||||
(await StorageHelper.instance.get(SQLiteStorageKey.userUUID.value, Storage.SQLiteStorage)) ?? '';
|
||||
final String cliUUID =
|
||||
(await StorageHelper.instance.get(SQLiteStorageKey.clientUUID.value, Storage.SQLiteStorage)) ?? '';
|
||||
final String newIde =
|
||||
(await StorageHelper.instance.get(SQLiteStorageKey.userDevUUID.value, Storage.SQLiteStorage)) ?? '';
|
||||
const String atividade = 'updVisitado';
|
||||
|
||||
return ApiManager.instance.makeApiCall(
|
||||
|
@ -602,7 +606,7 @@ class UpdateIDE {
|
|||
params: {
|
||||
'devUUID': devUUID,
|
||||
'userUUID': userUUID,
|
||||
'cliID': cliID,
|
||||
'cliID': cliUUID,
|
||||
'atividade': atividade,
|
||||
'newIde': newIde,
|
||||
},
|
||||
|
|
|
@ -563,9 +563,11 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
onPressed: !model.isFormValid()
|
||||
? null
|
||||
: () async {
|
||||
try {
|
||||
try {
|
||||
model.provVisitSchedule = await PhpGroup.postProvVisitSchedulingCall.call(
|
||||
data: DateFormat('dd/MM/yyyy HH:mm:ss').format(DateFormat('dd/MM/yyyy HH:mm:ss').parse(model.dateTimeTextController.text).add(const Duration(hours: 3))),
|
||||
data: DateFormat('dd/MM/yyyy HH:mm:ss').format(DateFormat('dd/MM/yyyy HH:mm:ss')
|
||||
.parse(model.dateTimeTextController.text)
|
||||
.add(const Duration(hours: 3))),
|
||||
motivo: model.notesTextController.text,
|
||||
nome: model.personNameTextController.text,
|
||||
proID: model.ownerUUID,
|
||||
|
@ -596,7 +598,8 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
|||
setState(() {});
|
||||
} catch (e, s) {
|
||||
DialogUtil.errorDefault(context);
|
||||
LogUtil.requestAPIFailed("processRequest.php", "", "Cadastrar Visita Provisória", e, s);
|
||||
LogUtil.requestAPIFailed(
|
||||
"processRequest.php", "", "Cadastrar Visita Provisória", e, s);
|
||||
}
|
||||
},
|
||||
showLoadingIndicator: true,
|
||||
|
|
Loading…
Reference in New Issue