WIP
This commit is contained in:
parent
e5b254eeb8
commit
74119d0aec
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 13 KiB |
|
@ -379,37 +379,6 @@ Future<void> snackbar(BuildContext context, {required bool opt}) async {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkData() async {
|
|
||||||
final response = await PhpGroup.getDadosCall.call(
|
|
||||||
devUUID: AppState().devUUID,
|
|
||||||
userUUID: AppState().userUUID,
|
|
||||||
cliUUID: AppState().cliUUID,
|
|
||||||
atividade: 'getDados',
|
|
||||||
);
|
|
||||||
|
|
||||||
switch (response.statusCode) {
|
|
||||||
case 200:
|
|
||||||
if (response.jsonBody['error'] == false) {
|
|
||||||
AppState().whatsapp = response.jsonBody['whatsapp'];
|
|
||||||
AppState().provisional = response.jsonBody['provisional'];
|
|
||||||
AppState().name = response.jsonBody['visitado']['VDO_NOME'];
|
|
||||||
} else {
|
|
||||||
if (response.jsonBody['error_msg'] !=
|
|
||||||
r'''Usuario nao possui vinculo ativo com esse condominio''') {
|
|
||||||
log(response.jsonBody['error_msg']);
|
|
||||||
await DialogUtil.warningDefault(context)
|
|
||||||
.whenComplete(() => checkData());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
await DialogUtil.warningDefault(context).whenComplete(() => checkData());
|
|
||||||
|
|
||||||
safeSetState(() {});
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<bool> checkLocals({
|
Future<bool> checkLocals({
|
||||||
String? cliUUID,
|
String? cliUUID,
|
||||||
required BuildContext context,
|
required BuildContext context,
|
||||||
|
|
Loading…
Reference in New Issue