ajustes de 7 para 10 etapas
This commit is contained in:
@@ -174,19 +174,18 @@ class DbSqliteLoad{
|
||||
// print(await db.query('PROCEDIMENTOS_SIGTAP'));
|
||||
return db;
|
||||
}
|
||||
Future saveProceduresRegisterDB(var value)async{
|
||||
Future saveProceduresRegisterDB(var value, int i)async{
|
||||
Database db = await intialDB();
|
||||
// "INSERT OR REPLACE INTO PROCEDIMENTOS_SIGTAP_REGISTRO (COD_PROC_SIGTAP, CODIGO_REGISTRO) VALUES (?,?)";
|
||||
// {"codProcedimento":"0101010010","codRegistro":"01"}
|
||||
for(int i=0;value.length > i;i++){
|
||||
Map<String, dynamic> row = {
|
||||
'COD_PROC_SIGTAP' : value[i]['codProcedimento'],
|
||||
'CODIGO_REGISTRO' : value[i]['codRegistro'],
|
||||
};
|
||||
int id = await db.insert('PROCEDIMENTOS_SIGTAP_REGISTRO', row);
|
||||
// print('id increment $id PROCEDIMENTOS_SIGTAP_REGISTRO');
|
||||
// print(await db.query('PROCEDIMENTOS_SIGTAP_REGISTRO'));
|
||||
}
|
||||
|
||||
Map<String, dynamic> row = {
|
||||
'COD_PROC_SIGTAP' : value[i]['codProcedimento'],
|
||||
'CODIGO_REGISTRO' : value[i]['codRegistro'],
|
||||
};
|
||||
int id = await db.insert('PROCEDIMENTOS_SIGTAP_REGISTRO', row);
|
||||
// print('id increment $id PROCEDIMENTOS_SIGTAP_REGISTRO');
|
||||
// print(await db.query('PROCEDIMENTOS_SIGTAP_REGISTRO'));
|
||||
return db;
|
||||
}
|
||||
Future saveCID(var value,int i)async{
|
||||
@@ -203,18 +202,18 @@ class DbSqliteLoad{
|
||||
// print(await db.query('CIDS'));
|
||||
return db;
|
||||
}
|
||||
Future saveProceduresCID(var value)async{
|
||||
Future saveProceduresCID(var value, int i)async{
|
||||
Database db = await intialDB();
|
||||
// "INSERT OR REPLACE INTO PROCEDIMENTOS_SIGTAP_CID (COD_PROC_SIGTAP, CODIGO_CID) VALUES (?,?)"
|
||||
// {"codProcedimento":"0201010046","codCID":"C211"}
|
||||
for(int i=0;value.length > i;i++){
|
||||
Map<String, dynamic> row = {
|
||||
'COD_PROC_SIGTAP' : value[i]['codProcedimento'],
|
||||
'CODIGO_CID' : value[i]['codCID'],
|
||||
};
|
||||
int id = await db.insert('PROCEDIMENTOS_SIGTAP_CID', row);
|
||||
// print('id increment $id PROCEDIMENTOS_SIGTAP_REGISTRO');
|
||||
}
|
||||
|
||||
Map<String, dynamic> row = {
|
||||
'COD_PROC_SIGTAP' : value[i]['codProcedimento'],
|
||||
'CODIGO_CID' : value[i]['codCID'],
|
||||
};
|
||||
int id = await db.insert('PROCEDIMENTOS_SIGTAP_CID', row);
|
||||
// print('id increment $id PROCEDIMENTOS_SIGTAP_REGISTRO');
|
||||
|
||||
// print(await db.query('PROCEDIMENTOS_SIGTAP_CID'));
|
||||
return db;
|
||||
}
|
||||
@@ -231,18 +230,18 @@ class DbSqliteLoad{
|
||||
// print(await db.query('CBOS'));
|
||||
return db;
|
||||
}
|
||||
Future saveProceduresCBO(var value)async{
|
||||
Future saveProceduresCBO(var value,int i)async{
|
||||
Database db = await intialDB();
|
||||
// "INSERT OR REPLACE INTO PROCEDIMENTOS_SIGTAP_CBO (COD_PROC_SIGTAP, CODIGO_CBO) VALUES (?,?)";
|
||||
// "codProcedimento":"0101010010","codCBO":"223208"
|
||||
for(int i=0;value.length > i;i++){
|
||||
Map<String, dynamic> row = {
|
||||
'COD_PROC_SIGTAP' : value[i]['codProcedimento'],
|
||||
'CODIGO_CBO' : value[i]['codCBO'],
|
||||
};
|
||||
int id = await db.insert('PROCEDIMENTOS_SIGTAP_CBO', row);
|
||||
// print('id increment $id PROCEDIMENTOS_SIGTAP_REGISTRO');
|
||||
}
|
||||
|
||||
Map<String, dynamic> row = {
|
||||
'COD_PROC_SIGTAP' : value[i]['codProcedimento'],
|
||||
'CODIGO_CBO' : value[i]['codCBO'],
|
||||
};
|
||||
int id = await db.insert('PROCEDIMENTOS_SIGTAP_CBO', row);
|
||||
// print('id increment $id PROCEDIMENTOS_SIGTAP_REGISTRO');
|
||||
|
||||
// print(await db.query('PROCEDIMENTOS_SIGTAP_CBO'));
|
||||
return db;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user