ajustes no front e finalizado o salvamento dos dados no DB
This commit is contained in:
@@ -115,7 +115,7 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
int ALIMENTACAO_DIARIA_COD = 0;
|
||||
int IDENTIDADE_GENERO_COD = 0;
|
||||
int ID_EQUIPE = 0;
|
||||
String CD_USUARIO_SUS = '';
|
||||
int ID_CIDADAO = 0;
|
||||
String? INE;
|
||||
String? INE_DB;
|
||||
String? ESCOLARIDADE;
|
||||
@@ -216,9 +216,9 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
}
|
||||
|
||||
loadCadIndividual()async{
|
||||
CD_USUARIO_SUS = widget.listData[0]['CD_USUARIO_SUS'];
|
||||
ID_CIDADAO = widget.listData[0]['ID_CIDADAO'];
|
||||
|
||||
await DBQuerys().buscaCadInvidual(CD_USUARIO_SUS).then((dataCitizen)async{
|
||||
await DBQuerys().buscaCadInvidual(ID_CIDADAO).then((dataCitizen)async{
|
||||
// print(CD_USUARIO_SUS);
|
||||
if(dataCitizen.length != 0) {
|
||||
TIPO_SALVAR = 'update';
|
||||
@@ -545,7 +545,7 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
'CRIANCAS_OUTRO' : CRIANCAS_OUTRO?1:2,
|
||||
'IDENTIDADE_GENERO' : IDENTIDADE_GENERO_COD,
|
||||
};
|
||||
await DbSqliteSync().insertCadastrosIndividuais(row,TIPO_SALVAR,CD_USUARIO_SUS).then((value){
|
||||
await DbSqliteSync().insertCadastrosIndividuais(row,TIPO_SALVAR,ID_CIDADAO).then((value){
|
||||
AlertDialogDefault().alert(
|
||||
context,
|
||||
'Aviso',
|
||||
@@ -1003,6 +1003,15 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
onTapDelete: ()=>setState(()=>SAIDA_CADASTRO=null),
|
||||
showDelete: true,
|
||||
),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: 'Data',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap:!edit?null: ()=>escolherprazoInicio(context,'data_saida'),
|
||||
child: InputWithSubtitle(
|
||||
@@ -1508,6 +1517,15 @@ class _RegisterIndividualScreenState extends State<RegisterIndividualScreen> {
|
||||
onChanged: !editing?null: (value)=>setState(()=>INE_RESP_CADASTRO = value),
|
||||
list: listINEPROF
|
||||
),
|
||||
Container(
|
||||
width: width*0.7,
|
||||
child: TextDefault(
|
||||
textAlign: TextAlign.start,
|
||||
text: 'Data do Cadastro',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
GestureDetector(
|
||||
onTap:!edit?null: ()=>escolherprazoInicio(context,'cadastro'),
|
||||
child: InputWithSubtitle(
|
||||
|
||||
Reference in New Issue
Block a user