@eqproject/eqp-dynamic-module 2.9.22 → 2.9.24
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.
- package/esm2020/lib/components/private/field-templates/action-button-field-template/action-button-field-template.component.mjs +2 -2
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +6 -5
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +7 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +12 -7
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +12 -7
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3346,10 +3346,11 @@ class NumericFieldTemplateComponent {
|
|
|
3346
3346
|
this.record[this.field.Name] = null;
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3349
|
+
// Non ricordo perchè ho messo questo codice, quindi lo commento, poi ci penseremo (l'attivazione crea un loop, non farlo)
|
|
3350
|
+
/*if (this.field.DataGetter.DataGetterType == DataGetterTypeEnum.Manuale && this.record[this.field.Name] == null) {
|
|
3351
|
+
this.record[this.field.Name] = this.field.DataGetter.DataGetterValue;
|
|
3352
|
+
this.recordChange.emit(this.record);
|
|
3353
|
+
}*/
|
|
3353
3354
|
}
|
|
3354
3355
|
/**
|
|
3355
3356
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
@@ -5689,7 +5690,7 @@ class ActionButtonFieldTemplateComponent {
|
|
|
5689
5690
|
GlobalService.debugLog("checkTriggers - assigned DMMODULE - id/code ", formula);
|
|
5690
5691
|
}
|
|
5691
5692
|
else if (formulaObj.type == TriggerPropertyTypeEnum.DROPDOWN_LIST) {
|
|
5692
|
-
temp = formulaObj.selectedAllowedValue.key; // nel caso di dropdown gli assegno
|
|
5693
|
+
temp = formulaObj.selectedAllowedValue.key; // nel caso di dropdown gli assegno solo la chiave
|
|
5693
5694
|
GlobalService.debugLog("checkTriggers - assigned DROPDOWN_LIST- selectedAllowedValue ", formulaObj.selectedAllowedValue);
|
|
5694
5695
|
}
|
|
5695
5696
|
else { // passo all'eval quando è stringa e assegno il valore calcolato
|
|
@@ -6837,10 +6838,14 @@ class AddFormRecordComponent {
|
|
|
6837
6838
|
var formula = formulas[key].value;
|
|
6838
6839
|
GlobalService.debugLog("checkTriggers - formulas[key] ", formulas[key]);
|
|
6839
6840
|
var temp;
|
|
6840
|
-
if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) {
|
|
6841
|
+
if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) { // assegno id/code del modulo selezionato
|
|
6841
6842
|
temp = formula;
|
|
6842
6843
|
}
|
|
6843
|
-
else {
|
|
6844
|
+
else if (formulas[key].type == TriggerPropertyTypeEnum.DROPDOWN_LIST) {
|
|
6845
|
+
temp = formulas[key].selectedAllowedValue.key; // nel caso di dropdown gli assegno solo la chiave
|
|
6846
|
+
GlobalService.debugLog("checkTriggers - assigned DROPDOWN_LIST- selectedAllowedValue ", temp);
|
|
6847
|
+
}
|
|
6848
|
+
else { // passo all'eval quando è stringa e assegno i lvalore calcolato
|
|
6844
6849
|
temp = UtilityHelperService.EvaluateFieldFormula(formula, record, this.formulaObject);
|
|
6845
6850
|
}
|
|
6846
6851
|
formulas[key] = temp;
|