salvas novas chamadas no banco na tela_faltas.dart
This commit is contained in:
@@ -67,15 +67,15 @@ class _TelaLoginState extends State<TelaLogin> {
|
||||
if(map['NO_USERNAME']==usuario && map['SENHA']==inputSenha.text.toUpperCase()){
|
||||
showSnackBar(context, 'Acesso validado', Colors.green);
|
||||
List <String> dados = [
|
||||
cidade.toUpperCase(),
|
||||
map['NO_USUARIO_SISTEMA']??'',
|
||||
urlAPI,
|
||||
map['NO_FANTASIA']??'',
|
||||
map['CD_UNIDADE'].toString()??'',
|
||||
inputLogin.text,
|
||||
usuario,
|
||||
inputSenha.text,
|
||||
map['CD_USUARIO_SISTEMA'].toString()
|
||||
cidade.toUpperCase(),//0
|
||||
map['NO_USUARIO_SISTEMA']??'',//1
|
||||
urlAPI,//2
|
||||
map['NO_FANTASIA']??'',//3
|
||||
map['CD_UNIDADE'].toString()??'',//4
|
||||
inputLogin.text,//5
|
||||
usuario,//6
|
||||
inputSenha.text,//7
|
||||
map['CD_USUARIO_SISTEMA'].toString()//8
|
||||
];
|
||||
_prefService.createCacheLogin(dados).then((value){
|
||||
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: dados) ));
|
||||
@@ -91,15 +91,15 @@ class _TelaLoginState extends State<TelaLogin> {
|
||||
print(map);
|
||||
showSnackBar(context, 'Acesso validado', Colors.green);
|
||||
List <String> dados = [
|
||||
cidade.toUpperCase(),
|
||||
map['NO_USUARIO_SISTEMA']??'',
|
||||
urlAPI,
|
||||
map['NO_FANTASIA']??'',
|
||||
map['CD_UNIDADE'].toString()??'',
|
||||
inputLogin.text,
|
||||
usuario,
|
||||
inputSenha.text,
|
||||
map['CD_USUARIO_SISTEMA'].toString()
|
||||
cidade.toUpperCase(),//0
|
||||
map['NO_USUARIO_SISTEMA']??'',//1
|
||||
urlAPI,//2
|
||||
map['NO_FANTASIA']??'',//3
|
||||
map['CD_UNIDADE'].toString()??'',//4
|
||||
inputLogin.text,//5
|
||||
usuario,//6
|
||||
inputSenha.text,//7
|
||||
map['CD_USUARIO_SISTEMA'].toString()//8
|
||||
];
|
||||
_prefService.createCacheLogin(dados).then((value) =>
|
||||
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: dados) )));
|
||||
|
||||
Reference in New Issue
Block a user