ajustes para exibir e salvos dados no cadastro individual e visita domiciliar
This commit is contained in:
@@ -543,6 +543,7 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
'HIGIENE_BUCAL' : HIGIENE_BUCAL?1:2,
|
||||
'OUTROS_HIGIENE' : OUTROS_HIGIENE?1:2,
|
||||
'FICHA_ALTERACAO' : 1,
|
||||
//operador
|
||||
'ID_RESP_CADASTRO' : idUsuario,
|
||||
'CNES_RESP_CADASTRO' : CNES_RESP_CADASTRO.text,
|
||||
'CBO_RESP_CADASTRO' : CBO_RESP_CADASTRO,
|
||||
@@ -582,9 +583,11 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
|
||||
var pickDate = await showDatePicker(
|
||||
context: context,
|
||||
locale: Locale('pt','BR'),
|
||||
initialDate: DateTime.now(),
|
||||
firstDate: DateTime(1900),
|
||||
lastDate: DateTime(2024));
|
||||
lastDate: DateTime.now()
|
||||
);
|
||||
if (pickDate != null) {
|
||||
if(type=='cadastro'){
|
||||
date_cad = '${pickDate.year}-${pickDate.month<10?'0':''}${pickDate.month}-${pickDate.day<10?'0':''}${pickDate.day}';
|
||||
|
||||
Reference in New Issue
Block a user