inserido busca das disciplinas professores
This commit is contained in:
@@ -356,7 +356,7 @@
|
|||||||
"languageVersion": "3.1"
|
"languageVersion": "3.1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generated": "2023-11-13T18:24:35.011119Z",
|
"generated": "2023-11-29T18:25:40.810217Z",
|
||||||
"generator": "pub",
|
"generator": "pub",
|
||||||
"generatorVersion": "3.1.5"
|
"generatorVersion": "3.1.5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\package_info-2.0.2\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.3.4\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"package_info","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\package_info-2.0.2\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_android-2.2.1\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\package_info-2.0.2\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.3.4\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_linux-2.3.2\\\\","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_windows-2.3.2\\\\","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_web-2.2.1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"package_info","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2023-11-13 15:26:18.379220","version":"3.13.9"}
|
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\package_info-2.0.2\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.3.4\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"package_info","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\package_info-2.0.2\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_android","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_android-2.2.1\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\package_info-2.0.2\\\\","native_build":true,"dependencies":[]},{"name":"shared_preferences_foundation","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_foundation-2.3.4\\\\","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_linux-2.3.2\\\\","native_build":false,"dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.2.1\\\\","native_build":false,"dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_windows-2.3.2\\\\","native_build":false,"dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"C:\\\\Users\\\\Reginaldo\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\shared_preferences_web-2.2.1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"package_info","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2023-11-30 12:03:03.350634","version":"3.13.9"}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
sdk.dir=C:/Users/Reginaldo/AppData/Local/Android/Sdk
|
sdk.dir=C:/Users/Reginaldo/AppData/Local/Android/Sdk
|
||||||
flutter.sdk=C:\\src\\flutter
|
flutter.sdk=C:\\src\\flutter
|
||||||
flutter.buildMode=debug
|
flutter.buildMode=debug
|
||||||
flutter.versionName=1.0.1
|
flutter.versionName=1.0.2
|
||||||
flutter.versionCode=2
|
flutter.versionCode=3
|
||||||
@@ -7,6 +7,6 @@ public final class BuildConfig {
|
|||||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||||
public static final String APPLICATION_ID = "com.rkm.educaprof.rkm_educa_prof_app";
|
public static final String APPLICATION_ID = "com.rkm.educaprof.rkm_educa_prof_app";
|
||||||
public static final String BUILD_TYPE = "debug";
|
public static final String BUILD_TYPE = "debug";
|
||||||
public static final int VERSION_CODE = 2;
|
public static final int VERSION_CODE = 3;
|
||||||
public static final String VERSION_NAME = "1.0.1";
|
public static final String VERSION_NAME = "1.0.2";
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
#Mon Nov 13 15:27:38 BRT 2023
|
#Thu Nov 30 12:03:18 BRT 2023
|
||||||
base.0=D\:\\PROJETOS\\clientes\\rkm\\rkm_educa_prof_app\\build\\app\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
|
base.0=D\:\\PROJETOS\\clientes\\rkm\\rkm_educa_prof_app\\build\\app\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
|
||||||
path.0=classes.dex
|
path.0=classes.dex
|
||||||
renamed.0=classes.dex
|
renamed.0=classes.dex
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
1<?xml version="1.0" encoding="utf-8"?>
|
1<?xml version="1.0" encoding="utf-8"?>
|
||||||
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
3 package="com.rkm.educaprof.rkm_educa_prof_app"
|
3 package="com.rkm.educaprof.rkm_educa_prof_app"
|
||||||
4 android:versionCode="2"
|
4 android:versionCode="3"
|
||||||
5 android:versionName="1.0.1" >
|
5 android:versionName="1.0.2" >
|
||||||
6
|
6
|
||||||
7 <uses-sdk
|
7 <uses-sdk
|
||||||
8 android:minSdkVersion="19"
|
8 android:minSdkVersion="19"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.rkm.educaprof.rkm_educa_prof_app"
|
package="com.rkm.educaprof.rkm_educa_prof_app"
|
||||||
android:versionCode="2"
|
android:versionCode="3"
|
||||||
android:versionName="1.0.1" >
|
android:versionName="1.0.2" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="19"
|
android:minSdkVersion="19"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.rkm.educaprof.rkm_educa_prof_app"
|
package="com.rkm.educaprof.rkm_educa_prof_app"
|
||||||
android:versionCode="2"
|
android:versionCode="3"
|
||||||
android:versionName="1.0.1" >
|
android:versionName="1.0.2" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="19"
|
android:minSdkVersion="19"
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 2,
|
"versionCode": 3,
|
||||||
"versionName": "1.0.1",
|
"versionName": "1.0.2",
|
||||||
"outputFile": "AndroidManifest.xml"
|
"outputFile": "AndroidManifest.xml"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.rkm.educaprof.rkm_educa_prof_app"
|
package="com.rkm.educaprof.rkm_educa_prof_app"
|
||||||
android:versionCode="2"
|
android:versionCode="3"
|
||||||
android:versionName="1.0.1" >
|
android:versionName="1.0.2" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="19"
|
android:minSdkVersion="19"
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 2,
|
"versionCode": 3,
|
||||||
"versionName": "1.0.1",
|
"versionName": "1.0.2",
|
||||||
"outputFile": "AndroidManifest.xml"
|
"outputFile": "AndroidManifest.xml"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 2,
|
"versionCode": 3,
|
||||||
"versionName": "1.0.1",
|
"versionName": "1.0.2",
|
||||||
"outputFile": "resources-debug.ap_"
|
"outputFile": "resources-debug.ap_"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,8 +11,8 @@
|
|||||||
"type": "SINGLE",
|
"type": "SINGLE",
|
||||||
"filters": [],
|
"filters": [],
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"versionCode": 2,
|
"versionCode": 3,
|
||||||
"versionName": "1.0.1",
|
"versionName": "1.0.2",
|
||||||
"outputFile": "app-debug.apk"
|
"outputFile": "app-debug.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
f058a856df12d0aae7a15c3e9fd868da2dedca32
|
d815f54346b6eff84e5c161985073425cb5c6334
|
||||||
Binary file not shown.
@@ -3,6 +3,7 @@ import 'package:line_icons/line_icons.dart';
|
|||||||
import 'package:rkm_educa_prof_app/componentes/text_custom.dart';
|
import 'package:rkm_educa_prof_app/componentes/text_custom.dart';
|
||||||
import 'package:rkm_educa_prof_app/telas/tela_calendario.dart';
|
import 'package:rkm_educa_prof_app/telas/tela_calendario.dart';
|
||||||
import '../servicos/shared_preferences/shared.dart';
|
import '../servicos/shared_preferences/shared.dart';
|
||||||
|
import '../telas/tela_home.dart';
|
||||||
import '../telas/tela_login.dart';
|
import '../telas/tela_login.dart';
|
||||||
import '../utils/dimensoes.dart';
|
import '../utils/dimensoes.dart';
|
||||||
import 'item_drawer.dart';
|
import 'item_drawer.dart';
|
||||||
@@ -45,27 +46,20 @@ class DrawerCustom extends StatelessWidget {
|
|||||||
ItemDrawer(
|
ItemDrawer(
|
||||||
icone: LineIcons.home,
|
icone: LineIcons.home,
|
||||||
texto: 'HOME',
|
texto: 'HOME',
|
||||||
onPressed: (){},
|
// onPressed: (){},
|
||||||
// onPressed: ()=> Navigator.pushReplacement(
|
onPressed: ()=> Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: dados) )),
|
||||||
// context,
|
|
||||||
// MaterialPageRoute(builder: (context) => TelaSituacaoEscolar(alunos: alunos,indiceAluno: indiceFilhos)),
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||||
ItemDrawer(
|
ItemDrawer(
|
||||||
icone: LineIcons.clipboardList,
|
icone: LineIcons.clipboardList,
|
||||||
texto: 'LANÇAMENTO DE NOTAS',
|
texto: 'LANÇAMENTO DE NOTAS',
|
||||||
onPressed: (){},
|
onPressed: ()=>Navigator.pushNamed(context, '/notas',arguments: dados),
|
||||||
// onPressed: ()=> Navigator.pushReplacement(
|
|
||||||
// context,
|
|
||||||
// MaterialPageRoute(builder: (context) => TelaPerfil(alunos: alunos,indiceAluno: indiceFilhos)),
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||||
ItemDrawer(
|
ItemDrawer(
|
||||||
icone: LineIcons.checkSquareAlt,
|
icone: LineIcons.checkSquareAlt,
|
||||||
texto: 'LANÇAMENTO DE FALTAS/PRESENÇAS',
|
texto: 'LANÇAMENTO DE FALTAS/PRESENÇAS',
|
||||||
onPressed: (){},
|
onPressed: ()=>Navigator.pushNamed(context, '/faltas',arguments: dados),
|
||||||
),
|
),
|
||||||
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||||
ItemDrawer(
|
ItemDrawer(
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:gainer_crypto/crypto.dart';
|
import 'package:gainer_crypto/crypto.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
import 'package:intl/intl.dart';
|
||||||
|
|
||||||
class MainControllers{
|
class MainControllers{
|
||||||
encrypt(String senhaDigitada,String senhaUsuario) {
|
encrypt(String senhaDigitada,String senhaUsuario) {
|
||||||
@@ -41,25 +42,26 @@ class MainControllers{
|
|||||||
// Retorna a senha criptografada
|
// Retorna a senha criptografada
|
||||||
return senhaCriptogradafa;
|
return senhaCriptogradafa;
|
||||||
}
|
}
|
||||||
// salvarLog(EstudanteModelo estudanteModelo,String TELA)async{
|
salvarLog(String TELA,List dados)async{
|
||||||
// final url = '${estudanteModelo.URL}/log';
|
final url = '${dados[2]}/log';
|
||||||
// // print('dados');
|
// print('dados');
|
||||||
// // print(widget.estudanteModelo.dados);
|
// print(widget.estudanteModelo.dados);
|
||||||
// final response = await http.post(
|
final response = await http.post(
|
||||||
// Uri.parse(url),
|
Uri.parse(url),
|
||||||
// body:{
|
body:{
|
||||||
// 'DATA' : DateFormat('dd/MM/yyyy HH:mm').format(DateTime.now()),
|
'DATA' : DateFormat('dd/MM/yyyy HH:mm').format(DateTime.now()),
|
||||||
// 'TELA' : TELA,
|
'TELA' : TELA,
|
||||||
// 'CD_USUARIO' : estudanteModelo.CD_USUARIO,
|
'CD_USUARIO' : dados[5],
|
||||||
// 'NO_USUARIO': estudanteModelo.NO_USUARIO,
|
'NO_USUARIO': dados[1],
|
||||||
// 'CD_ALUNO': estudanteModelo.dados[estudanteModelo.nroAluno]['CD_ALUNO'],
|
'CD_ALUNO': dados[6],
|
||||||
// 'NO_ALUNO': estudanteModelo.dados[estudanteModelo.nroAluno]['NO_ALUNO'],
|
'NO_ALUNO': '',
|
||||||
// 'CIDADE' : estudanteModelo.cidade
|
'CIDADE' : dados[0],
|
||||||
// }
|
'SISTEMA' : 'PROFESSORES'
|
||||||
// );
|
}
|
||||||
//
|
);
|
||||||
// print('response : ${response.body}');
|
|
||||||
// }
|
print('response : ${response.body}');
|
||||||
|
}
|
||||||
Future<int> pegarAno(String urlAPI,String cidade)async{
|
Future<int> pegarAno(String urlAPI,String cidade)async{
|
||||||
final url = '$urlAPI/mostrar_boletim?ANO=${DateTime.now().year}&CIDADE=$cidade';
|
final url = '$urlAPI/mostrar_boletim?ANO=${DateTime.now().year}&CIDADE=$cidade';
|
||||||
print(url);
|
print(url);
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:rkm_educa_prof_app/telas/tela_faltas.dart';
|
||||||
|
import 'package:rkm_educa_prof_app/telas/tela_notas.dart';
|
||||||
import 'package:rkm_educa_prof_app/telas/tela_splash.dart';
|
import 'package:rkm_educa_prof_app/telas/tela_splash.dart';
|
||||||
|
|
||||||
var routes = {
|
var routes = {
|
||||||
'/splash': (context) => TelaSplash(),
|
'/splash': (context) => TelaSplash(),
|
||||||
|
'/notas' : (context) => TelaNotas(dados: ModalRoute.of(context)!.settings.arguments as List,),
|
||||||
|
'/faltas' : (context) => TelaFaltas(dados: ModalRoute.of(context)!.settings.arguments as List,)
|
||||||
};
|
};
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
|
||||||
class PrefService{
|
class PrefService{
|
||||||
Future createCacheLogin(String cpf, String senha,String cidade)async{
|
Future createCacheLogin(List<String> list )async{
|
||||||
SharedPreferences preferences = await SharedPreferences.getInstance();
|
SharedPreferences preferences = await SharedPreferences.getInstance();
|
||||||
preferences.setStringList('login', [cpf,senha,cidade]);
|
preferences.setStringList('login', list);
|
||||||
}
|
}
|
||||||
Future readCacheLogin()async{
|
Future readCacheLogin()async{
|
||||||
SharedPreferences preferences = await SharedPreferences.getInstance();
|
SharedPreferences preferences = await SharedPreferences.getInstance();
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import '../componentes/appbar_custom.dart';
|
|||||||
import '../componentes/drawer_custom.dart';
|
import '../componentes/drawer_custom.dart';
|
||||||
import '../componentes/item_agenda.dart';
|
import '../componentes/item_agenda.dart';
|
||||||
import '../componentes/text_custom.dart';
|
import '../componentes/text_custom.dart';
|
||||||
|
import '../controllers/main_controllers.dart';
|
||||||
import '../modelos/evento_modelo.dart';
|
import '../modelos/evento_modelo.dart';
|
||||||
import '../utils/cores.dart';
|
import '../utils/cores.dart';
|
||||||
import '../utils/dimensoes.dart';
|
import '../utils/dimensoes.dart';
|
||||||
@@ -117,6 +118,7 @@ class _TelaCalendarioState extends State<TelaCalendario> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
MainControllers().salvarLog('CALENDARIO',widget.dados);
|
||||||
buscarEventos();
|
buscarEventos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
44
lib/telas/tela_faltas.dart
Normal file
44
lib/telas/tela_faltas.dart
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import '../componentes/appbar_custom.dart';
|
||||||
|
import '../componentes/drawer_custom.dart';
|
||||||
|
|
||||||
|
class TelaFaltas extends StatefulWidget {
|
||||||
|
List dados;
|
||||||
|
|
||||||
|
TelaFaltas({
|
||||||
|
required this.dados
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<TelaFaltas> createState() => _TelaFaltasState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _TelaFaltasState extends State<TelaFaltas> {
|
||||||
|
|
||||||
|
buscarDisciplinas()async{
|
||||||
|
print('ususario');
|
||||||
|
print(widget.dados[8]);
|
||||||
|
int ano = DateTime.now().year;
|
||||||
|
final url = '${widget.dados[2]}/buscardisciplinasprof?USUARIO_SISTEMA=${widget.dados[8]}&CIDADE=${widget.dados[0]}&ANO=$ano';
|
||||||
|
print(url);
|
||||||
|
final response = await http.get(Uri.parse(url));
|
||||||
|
var map = json.decode(response.body);
|
||||||
|
print(map);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
buscarDisciplinas();
|
||||||
|
}
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBarCustom().appbar(context, 'LANÇAMENTO DE FALTAS'),
|
||||||
|
drawer: DrawerCustom(dados: widget.dados,),
|
||||||
|
body: Center(child: Text('faltas'),),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../componentes/drawer_custom.dart';
|
import '../componentes/drawer_custom.dart';
|
||||||
|
import '../controllers/main_controllers.dart';
|
||||||
|
import '../utils/dimensoes.dart';
|
||||||
|
|
||||||
class TelaHome extends StatefulWidget {
|
class TelaHome extends StatefulWidget {
|
||||||
List dados;
|
List dados;
|
||||||
@@ -11,19 +13,29 @@ class TelaHome extends StatefulWidget {
|
|||||||
@override
|
@override
|
||||||
State<TelaHome> createState() => _TelaHomeState();
|
State<TelaHome> createState() => _TelaHomeState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _TelaHomeState extends State<TelaHome> {
|
class _TelaHomeState extends State<TelaHome> {
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
MainControllers().salvarLog('HOME',widget.dados);
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white10,
|
||||||
|
title: Image.asset("assets/images/rkmprof.png",width:Dimensoes.width*0.4,height: Dimensoes.height * 0.15),
|
||||||
|
centerTitle: true,
|
||||||
iconTheme: IconThemeData(color: Colors.black),
|
iconTheme: IconThemeData(color: Colors.black),
|
||||||
),
|
),
|
||||||
drawer: DrawerCustom(dados: widget.dados,),
|
drawer: DrawerCustom(dados: widget.dados,),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Text('home'),
|
child: Container(
|
||||||
|
child: Image.asset("assets/images/rkmprof.png",width:Dimensoes.width,height: Dimensoes.height * 0.15,color: Colors.black.withOpacity(0.2),)
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class _TelaLoginState extends State<TelaLogin> {
|
|||||||
String urlAPI = 'https://homol-controle-educa-api.rkmsistemas.com.br';
|
String urlAPI = 'https://homol-controle-educa-api.rkmsistemas.com.br';
|
||||||
final PrefService _prefService = PrefService();
|
final PrefService _prefService = PrefService();
|
||||||
String _version = 'Carregando...';
|
String _version = 'Carregando...';
|
||||||
|
String idUsuario = '';
|
||||||
|
|
||||||
verificacao(){
|
verificacao(){
|
||||||
if(inputLogin.text.isNotEmpty){
|
if(inputLogin.text.isNotEmpty){
|
||||||
@@ -65,8 +66,20 @@ class _TelaLoginState extends State<TelaLogin> {
|
|||||||
if(map['NO_USERNAME']==map['SENHA']){
|
if(map['NO_USERNAME']==map['SENHA']){
|
||||||
if(map['NO_USERNAME']==usuario && map['SENHA']==inputSenha.text.toUpperCase()){
|
if(map['NO_USERNAME']==usuario && map['SENHA']==inputSenha.text.toUpperCase()){
|
||||||
showSnackBar(context, 'Acesso validado', Colors.green);
|
showSnackBar(context, 'Acesso validado', Colors.green);
|
||||||
List dados = [cidade.toUpperCase(),map['NO_USUARIO_SISTEMA']??'',urlAPI,map['NO_FANTASIA']??'',map['CD_UNIDADE']??0];
|
List <String> dados = [
|
||||||
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: 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()
|
||||||
|
];
|
||||||
|
_prefService.createCacheLogin(dados).then((value){
|
||||||
|
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: dados) ));
|
||||||
|
});
|
||||||
}else{
|
}else{
|
||||||
setState(() {
|
setState(() {
|
||||||
carregando = false;
|
carregando = false;
|
||||||
@@ -77,8 +90,18 @@ class _TelaLoginState extends State<TelaLogin> {
|
|||||||
if(MainControllers().encrypt(inputSenha.text,map['SENHA']) == map['SENHA']){
|
if(MainControllers().encrypt(inputSenha.text,map['SENHA']) == map['SENHA']){
|
||||||
print(map);
|
print(map);
|
||||||
showSnackBar(context, 'Acesso validado', Colors.green);
|
showSnackBar(context, 'Acesso validado', Colors.green);
|
||||||
List dados = [cidade.toUpperCase(),map['NO_USUARIO_SISTEMA']??'',urlAPI,map['NO_FANTASIA']??'',map['CD_UNIDADE']??0,inputLogin.text];
|
List <String> dados = [
|
||||||
_prefService.createCacheLogin(inputLogin.text, inputSenha.text,cidade).then((value) =>
|
cidade.toUpperCase(),
|
||||||
|
map['NO_USUARIO_SISTEMA']??'',
|
||||||
|
urlAPI,
|
||||||
|
map['NO_FANTASIA']??'',
|
||||||
|
map['CD_UNIDADE'].toString()??'',
|
||||||
|
inputLogin.text,
|
||||||
|
usuario,
|
||||||
|
inputSenha.text,
|
||||||
|
map['CD_USUARIO_SISTEMA'].toString()
|
||||||
|
];
|
||||||
|
_prefService.createCacheLogin(dados).then((value) =>
|
||||||
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: dados) )));
|
Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => TelaHome(dados: dados) )));
|
||||||
}else{
|
}else{
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -97,8 +120,9 @@ class _TelaLoginState extends State<TelaLogin> {
|
|||||||
var map = await json.decode(response.body);
|
var map = await json.decode(response.body);
|
||||||
print(map);
|
print(map);
|
||||||
if(map != false){
|
if(map != false){
|
||||||
if(map['CPF']==inputLogin.text && map['CONDICAO']=='1'){
|
if(map['CPF']==inputLogin.text && map['APP_PROFESSORES']=='1'){
|
||||||
print('api foi');
|
print('api foi');
|
||||||
|
idUsuario = map['ID_USUARIO'];
|
||||||
conectAPI(map['CIDADE'],map['ID_USUARIO']);
|
conectAPI(map['CIDADE'],map['ID_USUARIO']);
|
||||||
}else{
|
}else{
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -133,9 +157,15 @@ class _TelaLoginState extends State<TelaLogin> {
|
|||||||
carregando = true;
|
carregando = true;
|
||||||
});
|
});
|
||||||
print(login);
|
print(login);
|
||||||
inputLogin.text = login[0];
|
inputLogin.text = login[5];
|
||||||
inputSenha.text = login[5];
|
inputSenha.text = login[7];
|
||||||
conectAPI(login[2],login[1]);
|
if(login[0]!='' && login[6]!=''){
|
||||||
|
conectAPI(login[0],login[6]);
|
||||||
|
}else{
|
||||||
|
setState(() {
|
||||||
|
carregando = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
25
lib/telas/tela_notas.dart
Normal file
25
lib/telas/tela_notas.dart
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import '../componentes/appbar_custom.dart';
|
||||||
|
import '../componentes/drawer_custom.dart';
|
||||||
|
|
||||||
|
class TelaNotas extends StatefulWidget {
|
||||||
|
List dados;
|
||||||
|
|
||||||
|
TelaNotas({
|
||||||
|
required this.dados
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<TelaNotas> createState() => _TelaNotasState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _TelaNotasState extends State<TelaNotas> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Scaffold(
|
||||||
|
appBar: AppBarCustom().appbar(context, 'LANÇAMENTO DE NOTAS'),
|
||||||
|
drawer: DrawerCustom(dados: widget.dados,),
|
||||||
|
body: Center(child: Text('notas'),),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -182,7 +182,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "4.0.2"
|
version: "4.0.2"
|
||||||
intl:
|
intl:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: intl
|
name: intl
|
||||||
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
|
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: rkm_educa_prof_app
|
name: rkm_educa_prof_app
|
||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 1.0.1+2
|
version: 1.0.2+3
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.1.4 <4.0.0'
|
sdk: '>=3.1.4 <4.0.0'
|
||||||
@@ -18,6 +18,7 @@ dependencies:
|
|||||||
line_icons:
|
line_icons:
|
||||||
flutter_calendar_carousel: ^2.4.2
|
flutter_calendar_carousel: ^2.4.2
|
||||||
package_info: ^2.0.2
|
package_info: ^2.0.2
|
||||||
|
intl:
|
||||||
|
|
||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
Reference in New Issue
Block a user