finalizada a recuperação de dados do cidadão
This commit is contained in:
@@ -12,6 +12,7 @@ import '../../widgets/input_with_subtitle.dart';
|
|||||||
import '../../widgets/onbackbutton.dart';
|
import '../../widgets/onbackbutton.dart';
|
||||||
import '../../widgets/subtitle_appbar_citizen.dart';
|
import '../../widgets/subtitle_appbar_citizen.dart';
|
||||||
import '../../widgets/switch_with_subtitle.dart';
|
import '../../widgets/switch_with_subtitle.dart';
|
||||||
|
import '../../widgets/text_default.dart';
|
||||||
class RegisterHomeScreen extends StatefulWidget {
|
class RegisterHomeScreen extends StatefulWidget {
|
||||||
List listData;
|
List listData;
|
||||||
RegisterHomeScreen({required this.listData});
|
RegisterHomeScreen({required this.listData});
|
||||||
@@ -39,6 +40,7 @@ class _RegisterHomeScreenState extends State<RegisterHomeScreen> {
|
|||||||
bool edit = false;
|
bool edit = false;
|
||||||
bool editing = false;
|
bool editing = false;
|
||||||
bool mandatory = false;
|
bool mandatory = false;
|
||||||
|
bool CNS_VALIDO = false;
|
||||||
|
|
||||||
List<String> listTypeHome = [];
|
List<String> listTypeHome = [];
|
||||||
List<String> listINE = [];
|
List<String> listINE = [];
|
||||||
@@ -268,6 +270,13 @@ class _RegisterHomeScreenState extends State<RegisterHomeScreen> {
|
|||||||
INE_RESP_CADASTRO = 'INE: ${list[i]['INE']} / Área: ${list[i]['AREA']} - Microárea : ${list[i]['MICROAREA']}';
|
INE_RESP_CADASTRO = 'INE: ${list[i]['INE']} / Área: ${list[i]['AREA']} - Microárea : ${list[i]['MICROAREA']}';
|
||||||
listINEPROF.add('INE: ${list[i]['INE']} / Área: ${list[i]['AREA']} - Microárea : ${list[i]['MICROAREA']}');
|
listINEPROF.add('INE: ${list[i]['INE']} / Área: ${list[i]['AREA']} - Microárea : ${list[i]['MICROAREA']}');
|
||||||
}
|
}
|
||||||
|
await DBQuerys().buscaProfissionalCadInd(idUsuario).then((list){
|
||||||
|
ID_RESP_CADASTRO.text = list['NOME_PROFISSIONAL'];
|
||||||
|
String CNS_PROFISSIONAL = list['CNS_PROFISSIONAL'];
|
||||||
|
if(CNS_PROFISSIONAL == 999999999999999 || CNS_PROFISSIONAL == '999999999999999'){
|
||||||
|
CNS_VALIDO = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -717,6 +726,28 @@ class _RegisterHomeScreenState extends State<RegisterHomeScreen> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
CNS_VALIDO?Card(
|
||||||
|
margin: EdgeInsets.all(10),
|
||||||
|
child: Container(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
width: width,
|
||||||
|
height: heigth*0.1,
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Icon(Icons.warning,color: ColorPalette.red,),
|
||||||
|
Container(
|
||||||
|
width: width*0.9,
|
||||||
|
child: TextDefault(
|
||||||
|
text: 'CNS do Profissional inválido. Este cadastro não será exportado para o e-SUS.',
|
||||||
|
fontSize: 15,
|
||||||
|
maxLines: 2,
|
||||||
|
color: ColorPalette.red,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
):Container()
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user