ajustes cidadao fora de area, e ajustes para não exibir microarea null
This commit is contained in:
@@ -358,7 +358,7 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
checkCNS = 'ok';
|
||||
}
|
||||
if((selectClassification!='OUTRO MUNICIPIO' && selectCountry == 'BRASIL' && selectStreet == null) ||
|
||||
(selectStreet!=null && (cepController.text.isEmpty || cepController.text.length!=8)) ||
|
||||
(selectStreet!=null && (cepController.text.isEmpty || cepController.text.length!=10)) ||
|
||||
(selectStreet!=null && numberController.text.isEmpty) ||
|
||||
(selectTypeStreet == null && selectClassification!='OUTRO MUNICIPIO') ||
|
||||
(selectVillage == null && (selectCountry == 'BRASIL' && selectClassification!='OUTRO MUNICIPIO')) ||
|
||||
@@ -445,7 +445,7 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
'NO_BAIRRO_LOGR' : selectVillage,
|
||||
'ID_LOGR_TIPO' : idTipo,
|
||||
'NOME_LOGR' : selectStreet,
|
||||
'CEP_LOGR' : cepController.text.isNotEmpty?int.parse(cepController.text):0,
|
||||
'CEP_LOGR' : cepController.text.isNotEmpty?int.parse(cepController.text.replaceAll('-', '').replaceAll('.', '')):0,
|
||||
'NUMERO_LOGR' : numberController.text.isNotEmpty && numberController.text!='S/N'?int.parse(numberController.text):0,
|
||||
'LOTEAMENTO_LOGR' : selectSubdivision,
|
||||
'COMPL_LOGR' : complementController.text,
|
||||
@@ -1546,7 +1546,7 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
typeInput: 'cep',
|
||||
controller: cepController,
|
||||
subtitle: 'CEP(só números)',
|
||||
errorInput: selectClassification!='OUTRO MUNICIPIO'&& cepController.text.isEmpty?'Campo Obrigatório':cepController.text.length!=8?'CEP incorreto':'',
|
||||
errorInput: selectClassification!='OUTRO MUNICIPIO'&& cepController.text.isEmpty?'Campo Obrigatório':cepController.text.length!=10?'CEP incorreto':'',
|
||||
labelInput: 'CEP(só números)',
|
||||
widthInput: width*0.7,
|
||||
widthSubtitle: width*0.2,
|
||||
|
||||
Reference in New Issue
Block a user