hotfix misc
This commit is contained in:
parent
2badd51032
commit
79a8fa6300
|
@ -586,10 +586,14 @@ class UpdateIDE {
|
||||||
Future<ApiCallResponse> call() async {
|
Future<ApiCallResponse> call() async {
|
||||||
final String baseUrl = PhpGroup.getBaseUrl();
|
final String baseUrl = PhpGroup.getBaseUrl();
|
||||||
|
|
||||||
final String devUUID = StorageUtil().devUUID;
|
final String devUUID =
|
||||||
final String userUUID = StorageUtil().userUUID;
|
(await StorageHelper.instance.get(SQLiteStorageKey.devUUID.value, Storage.SQLiteStorage)) ?? '';
|
||||||
final String cliID = StorageUtil().cliUUID;
|
final String userUUID =
|
||||||
final String newIde = StorageUtil().userDevUUID;
|
(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';
|
const String atividade = 'updVisitado';
|
||||||
|
|
||||||
return ApiManager.instance.makeApiCall(
|
return ApiManager.instance.makeApiCall(
|
||||||
|
@ -602,7 +606,7 @@ class UpdateIDE {
|
||||||
params: {
|
params: {
|
||||||
'devUUID': devUUID,
|
'devUUID': devUUID,
|
||||||
'userUUID': userUUID,
|
'userUUID': userUUID,
|
||||||
'cliID': cliID,
|
'cliID': cliUUID,
|
||||||
'atividade': atividade,
|
'atividade': atividade,
|
||||||
'newIde': newIde,
|
'newIde': newIde,
|
||||||
},
|
},
|
||||||
|
|
|
@ -563,9 +563,11 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
||||||
onPressed: !model.isFormValid()
|
onPressed: !model.isFormValid()
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
try {
|
try {
|
||||||
model.provVisitSchedule = await PhpGroup.postProvVisitSchedulingCall.call(
|
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,
|
motivo: model.notesTextController.text,
|
||||||
nome: model.personNameTextController.text,
|
nome: model.personNameTextController.text,
|
||||||
proID: model.ownerUUID,
|
proID: model.ownerUUID,
|
||||||
|
@ -596,7 +598,8 @@ class _ScheduleProvisionalVisitPageWidgetState extends State<ScheduleProvisional
|
||||||
setState(() {});
|
setState(() {});
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
DialogUtil.errorDefault(context);
|
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,
|
showLoadingIndicator: true,
|
||||||
|
|
Loading…
Reference in New Issue