- Add New Record directly by the QSelect

This commit is contained in:
paoloar77
2022-01-28 00:57:39 +01:00
parent 842a041fe5
commit fd79893ddc
7 changed files with 133 additions and 83 deletions

View File

@@ -25,7 +25,8 @@ module.exports = {
},
popolaTabelleNuove() {
const abilita = false;
const abilita = true;
const scrivi_citta = false;
let ris = null;
if (abilita) {
@@ -41,13 +42,15 @@ module.exports = {
const { SubSkill } = require('../models/subskill');
this.insertIntoDb('subskills', SubSkill)
// Cities
const {City} = require('../models/city');
this.insertIntoDb('cities', City)
if (scrivi_citta) {
// Cities
const {City} = require('../models/city');
this.insertIntoDb('cities', City)
// Province
const { Province } = require('../models/province');
this.insertIntoDb('provinces', Province)
// Province
const {Province} = require('../models/province');
this.insertIntoDb('provinces', Province)
}
// Contribtypes
const { Contribtype } = require('../models/contribtype');