@eqproject/eqp-dynamic-module 2.7.38 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4413,7 +4413,7 @@ class DbgetterComponent {
4413
4413
  this.backupQuestionFields = null;
4414
4414
  }
4415
4415
  ngOnInit() {
4416
- console.log("INSIDE DBGETTER", this.form, this.record, this.field, this.QueryEditorComponent);
4416
+ //console.log("INSIDE DBGETTER", this.form, this.record, this.field, this.QueryEditorComponent);
4417
4417
  if (this.QueryEditorComponent != null) {
4418
4418
  this.QueryEditorComponent.inputParams.config.mode = QueryEditorModeEnum.RESULT;
4419
4419
  this.QueryEditorComponent.inputParams.config.field = this.field;
@@ -4422,7 +4422,7 @@ class DbgetterComponent {
4422
4422
  if (this.field.DataGetter.DataGetterValue.openedFields.find(x => x.QueryPropertyValue == '?') != null) {
4423
4423
  // Il campo ha almeno un valore con "?"
4424
4424
  this.haveQuestions = true;
4425
- console.log("CHECKING BACKUPS OPENED FIELDS....", this.backupQuestionFields);
4425
+ //console.log("CHECKING BACKUPS OPENED FIELDS....", this.backupQuestionFields);
4426
4426
  if (this.backupQuestionFields == null) {
4427
4427
  this.backupQuestionFields = new Array();
4428
4428
  this.field.DataGetter.DataGetterValue.openedFields.forEach((rqf) => {
@@ -4436,17 +4436,17 @@ class DbgetterComponent {
4436
4436
  this.field.DataGetter.DataGetterValue.openedFields.filter(x => x.QueryPropertyValue.indexOf('!') != -1).forEach((fieldWithRelation) => {
4437
4437
  var fieldRelated = fieldWithRelation.QueryPropertyValue.replace("!", "");
4438
4438
  if (this.record[fieldRelated] == null) {
4439
- console.log("this.record[fieldRelated] E' NULL", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4439
+ //console.log("this.record[fieldRelated] E' NULL", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4440
4440
  this.relations.push({ field: fieldRelated, loaded: false, actualvalue: this.record[fieldRelated] });
4441
4441
  this.checkRelations();
4442
4442
  this.interval = setInterval(() => {
4443
- console.log("this.record[fieldRelated] CHECK", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4443
+ //console.log("this.record[fieldRelated] CHECK", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4444
4444
  var currentRelation = this.relations.find(x => x.field == fieldRelated);
4445
4445
  if (currentRelation != null) {
4446
4446
  // Gestione dei cambi di valore dei campi relazionati
4447
4447
  // Il campo relazionato INIZIALMENTE NON E' NULL, e cambia valore in qualcosa che NON E' NULL
4448
4448
  if (currentRelation.actualvalue != null && this.record[fieldRelated] != null && this.record[fieldRelated] != currentRelation.actualvalue) {
4449
- console.log("this.record[fieldRelated] HA CAMBIATO VALORE!!", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4449
+ //console.log("this.record[fieldRelated] HA CAMBIATO VALORE!!", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4450
4450
  currentRelation.actualvalue = this.record[fieldRelated];
4451
4451
  currentRelation.loaded = true;
4452
4452
  fieldWithRelation.QueryPropertyValue = this.record[fieldRelated];
@@ -4455,7 +4455,7 @@ class DbgetterComponent {
4455
4455
  }
4456
4456
  // Il campo relazionato INIZIALMENTE NON E' NULL, e cambia valore IN NULL
4457
4457
  else if (currentRelation.actualvalue != null && this.record[fieldRelated] == null) {
4458
- console.log("this.record[fieldRelated] E' TORNATO AD ESSERE NULL!! :(", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4458
+ //console.log("this.record[fieldRelated] E' TORNATO AD ESSERE NULL!! :(", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4459
4459
  currentRelation.actualvalue = this.record[fieldRelated];
4460
4460
  currentRelation.loaded = true;
4461
4461
  fieldWithRelation.QueryPropertyValue = "!" + fieldRelated;
@@ -4468,7 +4468,7 @@ class DbgetterComponent {
4468
4468
  }
4469
4469
  // Il campo relazionato INIZIALMENTE E' NULL, e cambia valore
4470
4470
  else if (currentRelation.actualvalue == null && this.record[fieldRelated] != null) {
4471
- console.log("this.record[fieldRelated] NON E' PIU' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4471
+ //console.log("this.record[fieldRelated] NON E' PIU' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4472
4472
  currentRelation.actualvalue = this.record[fieldRelated];
4473
4473
  currentRelation.loaded = true;
4474
4474
  fieldWithRelation.QueryPropertyValue = this.record[fieldRelated];
@@ -4476,10 +4476,10 @@ class DbgetterComponent {
4476
4476
  }
4477
4477
  this.checkRelations();
4478
4478
  }
4479
- }, 2000);
4479
+ }, 200);
4480
4480
  }
4481
4481
  else {
4482
- console.log("this.record[fieldRelated] NON E' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4482
+ //console.log("this.record[fieldRelated] NON E' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
4483
4483
  fieldWithRelation.QueryPropertyValue = this.record[fieldRelated] != null ? this.record[fieldRelated] : '';
4484
4484
  this.relations.push({ field: fieldRelated, loaded: true, actualvalue: this.record[fieldRelated] });
4485
4485
  this.checkRelations();
@@ -4502,17 +4502,20 @@ class DbgetterComponent {
4502
4502
  }
4503
4503
  }
4504
4504
  reloadComponent() {
4505
- console.log("RELOAD COMPONENT CALLED", this.record, this.QueryEditorComponent.inputParams.config.record);
4505
+ //console.log("RELOAD COMPONENT CALLED", this.record, this.QueryEditorComponent.inputParams.config.record);
4506
4506
  this.reload = false;
4507
4507
  this.QueryEditorComponent.inputParams.config.record = this.record;
4508
4508
  this.QueryEditorComponent.inputParams.config.field = this.field;
4509
- setTimeout(() => { this.reload = true; console.log("RELOADED QUERYEDITOR"); }, 3000);
4509
+ setTimeout(() => {
4510
+ this.reload = true;
4511
+ //console.log("RELOADED QUERYEDITOR");
4512
+ }, 3000);
4510
4513
  }
4511
4514
  checkRelations() {
4512
4515
  this.relationsLoaded = this.relations.find(x => x.loaded) != null;
4513
4516
  }
4514
4517
  onExternalSQLResultOut(ev) {
4515
- console.log("Risultato dell'elaborazione del query editor: onExternalSQLResultOut", ev);
4518
+ //console.log("Risultato dell'elaborazione del query editor: onExternalSQLResultOut", ev);
4516
4519
  if (ev.Behaviours.indexOf("send-out") != -1) {
4517
4520
  this.out.emit(ev);
4518
4521
  }