continuação da recuperação dos dados cadastro individual e ajustes de layout e models
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/service/db/db_querys.dart';
|
||||
import 'package:rkm/widgets/button_default.dart';
|
||||
|
||||
@@ -55,7 +55,7 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
||||
}
|
||||
});
|
||||
await ApiDataLoad().apiConect(urlAPI,mode,nameCityApi,inputUser.text).then((response) async {
|
||||
print("erre : "+response.toString());
|
||||
// print("erre : "+response.toString());
|
||||
if(response == 'Erro' || response.toString() == 'Error: -902 - I/O error during "open" operation for file "/bases/conectasus/extrema/SISTEMA.FDB" Error while trying to open file No such file or directory'){
|
||||
setState(() {
|
||||
loading = false;
|
||||
@@ -72,14 +72,14 @@ class _LoginLoadScreenState extends State<LoginLoadScreen> {
|
||||
error = 'Usuário não encontrado';
|
||||
});
|
||||
}else if(response['status']==1) {
|
||||
print('aqui 1');
|
||||
print(response);
|
||||
// print('aqui 1');
|
||||
// print(response);
|
||||
setState((){
|
||||
error = '';
|
||||
});
|
||||
//verificar se a criptografia identificou se a senha está correta
|
||||
if(MainControllers().encrypt(inputPassword.text,response['userPass']) == response['userPass']){
|
||||
// print(EncryptPassword().encrypt(inputPassword.text,response['userPass']));
|
||||
// 'print'(EncryptPassword().encrypt(inputPassword.text,response['userPass']));
|
||||
setState(() {
|
||||
loading = false;
|
||||
});
|
||||
|
||||
@@ -143,10 +143,10 @@ class _SyncLoginScreenState extends State<SyncLoginScreen> {
|
||||
}
|
||||
}
|
||||
if(idUnidade!=''){
|
||||
print('idUnidade');
|
||||
print(idUnidade);
|
||||
print('idUsuario');
|
||||
print(idUsuario);
|
||||
// print('idUnidade');
|
||||
// print(idUnidade);
|
||||
// print('idUsuario');
|
||||
// print(idUsuario);
|
||||
var query = "SELECT * FROM EQUIPES JOIN PROFISSIONAIS_EQUIPE ON PROFISSIONAIS_EQUIPE.ID_EQUIPE = EQUIPES.ID_EQUIPE WHERE ID_UNIDADE = $idUnidade AND ID_PROFISSIONAL = $idUsuario";
|
||||
List list = await db.rawQuery(query);
|
||||
listTeam.clear();
|
||||
@@ -155,8 +155,8 @@ class _SyncLoginScreenState extends State<SyncLoginScreen> {
|
||||
}
|
||||
setState(() {});
|
||||
}
|
||||
print('listTeam');
|
||||
print(listTeam);
|
||||
// print('listTeam');
|
||||
// print(listTeam);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user