@fluxhub/fluxhub-lib 9.0.145 → 9.0.147
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/bundles/fluxhub-fluxhub-lib.umd.js +80 -61
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhautocomplete.js +5 -1
- package/esm2015/lib/controls/fhgrid.js +1 -2
- package/esm2015/lib/controls/fhupload_s3.js +7 -5
- package/esm2015/lib/controls/win_combo_select.js +2 -2
- package/esm2015/lib/services/doquery.service.js +1 -3
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +23 -34
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +47 -22
- package/esm5/lib/controls/fhautocomplete.js +6 -1
- package/esm5/lib/controls/fhgrid.js +1 -2
- package/esm5/lib/controls/fhupload_s3.js +7 -5
- package/esm5/lib/controls/win_combo_select.js +3 -2
- package/esm5/lib/services/doquery.service.js +1 -3
- package/esm5/lib/wkf_engine/wkf_header_bar.js +23 -34
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +47 -22
- package/fesm2015/fluxhub-fluxhub-lib.js +79 -62
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +80 -61
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload_s3.d.ts +1 -0
- package/lib/wkf_engine/wkf_header_bar.d.ts +2 -1
- package/package.json +1 -1
|
@@ -796,8 +796,6 @@ var QueryService = /** @class */ (function () {
|
|
|
796
796
|
}
|
|
797
797
|
if (queryp.types[i] == "string")
|
|
798
798
|
queryp.values[i] = "" + queryp.values[i];
|
|
799
|
-
if (queryp.types[i] == "date")
|
|
800
|
-
queryp.values[i] = this.uti_s.sql_date(queryp.values[i]);
|
|
801
799
|
if (queryp.types[i] == "date") {
|
|
802
800
|
queryp.values[i] = this.uti_s.sql_date(queryp.values[i]);
|
|
803
801
|
if (queryp.values[i].split("0").join("") == "NaN-NaN-NaN")
|
|
@@ -1746,6 +1744,7 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1746
1744
|
maxFileSize: 500 * 1024 * 1024,
|
|
1747
1745
|
});
|
|
1748
1746
|
this.id_component = '';
|
|
1747
|
+
this.last_result = {};
|
|
1749
1748
|
this.id = null;
|
|
1750
1749
|
this.p_cod_doc = "";
|
|
1751
1750
|
this.p_section = "";
|
|
@@ -1764,12 +1763,13 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1764
1763
|
progressBar: true,
|
|
1765
1764
|
});
|
|
1766
1765
|
_this.ref_allegato();
|
|
1767
|
-
_this.
|
|
1766
|
+
_this.last_result = {
|
|
1768
1767
|
item: item,
|
|
1769
1768
|
response: response,
|
|
1770
1769
|
status: status,
|
|
1771
|
-
header: header
|
|
1772
|
-
}
|
|
1770
|
+
header: header
|
|
1771
|
+
};
|
|
1772
|
+
_this.change.emit(_this.last_result);
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
1775
|
}
|
|
@@ -1845,7 +1845,7 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1845
1845
|
_this.uploader.setOptions(uo);
|
|
1846
1846
|
_this.uploader.onCompleteAll = function () {
|
|
1847
1847
|
_this.loading = false;
|
|
1848
|
-
_this.upload_ended.emit();
|
|
1848
|
+
_this.upload_ended.emit(_this.last_result);
|
|
1849
1849
|
if (_this.dialogRef != null)
|
|
1850
1850
|
if (_this.dialogRef.componentInstance != null) {
|
|
1851
1851
|
_this.dialogRef.componentInstance.update_progess(100);
|
|
@@ -2111,9 +2111,10 @@ var FHWinComboSelect = /** @class */ (function () {
|
|
|
2111
2111
|
this.dialogRef.close(null);
|
|
2112
2112
|
};
|
|
2113
2113
|
FHWinComboSelect.prototype.set_selection = function (lab, myD, nota) {
|
|
2114
|
+
var _this = this;
|
|
2114
2115
|
if (nota === void 0) { nota = false; }
|
|
2115
2116
|
if (this.cmb_sel == null) {
|
|
2116
|
-
|
|
2117
|
+
setTimeout(function () { _this.set_selection(lab, myD, nota); }, 500);
|
|
2117
2118
|
return;
|
|
2118
2119
|
}
|
|
2119
2120
|
this.nota = nota;
|
|
@@ -6377,7 +6378,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6377
6378
|
};
|
|
6378
6379
|
FHGridComponent.prototype.calcola_filtro = function (obj_filtro, filter_v, key, add_end) {
|
|
6379
6380
|
if (add_end === void 0) { add_end = true; }
|
|
6380
|
-
console.log("obj_filtro ", obj_filtro);
|
|
6381
6381
|
var b_filter = false;
|
|
6382
6382
|
if (obj_filtro.type != null) {
|
|
6383
6383
|
if (obj_filtro.filter != null) {
|
|
@@ -8709,6 +8709,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
8709
8709
|
}
|
|
8710
8710
|
};
|
|
8711
8711
|
FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
|
|
8712
|
+
var _this = this;
|
|
8712
8713
|
this.valDef = desc_val;
|
|
8713
8714
|
this.selval = desc_val;
|
|
8714
8715
|
if (this.myData != null) {
|
|
@@ -8726,6 +8727,10 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
8726
8727
|
if (!b_found && this.only_from_list)
|
|
8727
8728
|
this.resetValue(false);
|
|
8728
8729
|
}
|
|
8730
|
+
else {
|
|
8731
|
+
setTimeout(function () { _this.setByValue(desc_val); }, 1000);
|
|
8732
|
+
return;
|
|
8733
|
+
}
|
|
8729
8734
|
if (!this.only_from_list) {
|
|
8730
8735
|
this.sItem = this.selval;
|
|
8731
8736
|
}
|
|
@@ -14034,6 +14039,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14034
14039
|
this.b_edit_before = this.b_edit;
|
|
14035
14040
|
this.edit_b(false);
|
|
14036
14041
|
var arr = this.getfieldvalues();
|
|
14042
|
+
// console.log('arr',arr);
|
|
14037
14043
|
var p = new QParam();
|
|
14038
14044
|
p.sql = "insert_aggiuntivi";
|
|
14039
14045
|
p.types = ["string", "string"];
|
|
@@ -14042,33 +14048,57 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14042
14048
|
for (var i = 0; i < arr.length; i++) {
|
|
14043
14049
|
p.types.push(arr[i].types);
|
|
14044
14050
|
p.names.push(arr[i].names);
|
|
14045
|
-
if (arr[i].values
|
|
14051
|
+
if (arr[i].values == null) {
|
|
14052
|
+
console.log('NULL', arr[i].names, arr[i].values);
|
|
14053
|
+
arr[i].values = "dbnull";
|
|
14054
|
+
}
|
|
14055
|
+
else {
|
|
14056
|
+
console.log('NO NULL', arr[i].names, arr[i].values);
|
|
14046
14057
|
if (arr[i].types == "boolean")
|
|
14047
14058
|
if (arr[i].values)
|
|
14048
|
-
|
|
14059
|
+
arr[i].values = "1";
|
|
14049
14060
|
else
|
|
14050
|
-
|
|
14051
|
-
if (arr[i].types == "int")
|
|
14052
|
-
if (
|
|
14053
|
-
|
|
14054
|
-
else
|
|
14055
|
-
|
|
14061
|
+
arr[i].values = "0";
|
|
14062
|
+
if (arr[i].types == "int") {
|
|
14063
|
+
if (arr[i].values + "" == "")
|
|
14064
|
+
arr[i].values = "dbnull";
|
|
14065
|
+
else {
|
|
14066
|
+
if (isNaN(arr[i].values))
|
|
14067
|
+
arr[i].values = "0";
|
|
14068
|
+
else
|
|
14069
|
+
arr[i].values = "" + arr[i].values;
|
|
14070
|
+
}
|
|
14071
|
+
}
|
|
14056
14072
|
if (arr[i].types == "string")
|
|
14057
|
-
|
|
14058
|
-
if (arr[i].types == "date")
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14073
|
+
arr[i].values = "" + arr[i].values;
|
|
14074
|
+
if (arr[i].types == "date") {
|
|
14075
|
+
arr[i].values = this.uti_s.sql_date(arr[i].values);
|
|
14076
|
+
if (arr[i].values.split("0").join("") == "NaN-NaN-NaN")
|
|
14077
|
+
arr[i].values = "dbnull";
|
|
14078
|
+
}
|
|
14079
|
+
if (arr[i].types == "datetime") {
|
|
14080
|
+
console.log('typeof ', typeof (arr[i].values), arr[i].values);
|
|
14081
|
+
arr[i].values = this.uti_s.sql_date_time(arr[i].values);
|
|
14082
|
+
console.log('arr[i].values ', arr[i].values);
|
|
14083
|
+
if (arr[i].values.split("0").join("") == "NaN-NaN-NaN NaN:NaN")
|
|
14084
|
+
arr[i].values = "dbnull";
|
|
14085
|
+
}
|
|
14086
|
+
if (arr[i].types == "string" && arr[i].values == null)
|
|
14087
|
+
arr[i].values = "dbnull";
|
|
14088
|
+
if (arr[i].types == "decimal") {
|
|
14089
|
+
if (arr[i].values + "" == "")
|
|
14090
|
+
arr[i].values = "dbnull";
|
|
14091
|
+
else {
|
|
14092
|
+
if (isNaN(arr[i].values))
|
|
14093
|
+
arr[i].values = "0";
|
|
14094
|
+
else
|
|
14095
|
+
arr[i].values = "" + arr[i].values;
|
|
14096
|
+
}
|
|
14097
|
+
}
|
|
14070
14098
|
}
|
|
14099
|
+
p.values.push(arr[i].values);
|
|
14071
14100
|
}
|
|
14101
|
+
// console.log('p',p);
|
|
14072
14102
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
14073
14103
|
if (data != null)
|
|
14074
14104
|
if (data.result_msg == "OK") {
|
|
@@ -14747,39 +14777,24 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
14747
14777
|
this.edit_button = false;
|
|
14748
14778
|
this.respingi_button = false;
|
|
14749
14779
|
this.procedi_button = true;
|
|
14780
|
+
this.button_clicked = new EventEmitter();
|
|
14750
14781
|
}
|
|
14751
|
-
wkf_header_bar.prototype.back = function () {
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
wkf_header_bar.prototype.
|
|
14756
|
-
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
wkf_header_bar.prototype.
|
|
14760
|
-
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
wkf_header_bar.prototype.
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
wkf_header_bar.prototype.open_info = function () {
|
|
14768
|
-
if (this.dt_agg != null)
|
|
14769
|
-
this.dt_agg.open_info();
|
|
14770
|
-
};
|
|
14771
|
-
wkf_header_bar.prototype.open_commenti = function () {
|
|
14772
|
-
if (this.dt_agg != null)
|
|
14773
|
-
this.dt_agg.open_commenti();
|
|
14774
|
-
};
|
|
14775
|
-
wkf_header_bar.prototype.open_upload = function () {
|
|
14776
|
-
if (this.dt_agg != null)
|
|
14777
|
-
this.dt_agg.open_upload();
|
|
14778
|
-
};
|
|
14779
|
-
wkf_header_bar.prototype.open_wkf = function () {
|
|
14780
|
-
if (this.dt_agg != null)
|
|
14781
|
-
this.dt_agg.open_wkf();
|
|
14782
|
-
};
|
|
14782
|
+
wkf_header_bar.prototype.back = function () { this.button_clicked.emit('back'); if (this.dt_agg != null)
|
|
14783
|
+
this.dt_agg.back(this.edit_button); };
|
|
14784
|
+
wkf_header_bar.prototype.evt_salv = function () { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
|
|
14785
|
+
this.dt_agg.evt_salv(); };
|
|
14786
|
+
wkf_header_bar.prototype.respingi = function () { this.button_clicked.emit('respingi'); if (this.dt_agg != null)
|
|
14787
|
+
this.dt_agg.respingi(); };
|
|
14788
|
+
wkf_header_bar.prototype.procedi = function () { this.button_clicked.emit('procedi'); if (this.dt_agg != null)
|
|
14789
|
+
this.dt_agg.procedi(); };
|
|
14790
|
+
wkf_header_bar.prototype.open_info = function () { this.button_clicked.emit('open_info'); if (this.dt_agg != null)
|
|
14791
|
+
this.dt_agg.open_info(); };
|
|
14792
|
+
wkf_header_bar.prototype.open_commenti = function () { this.button_clicked.emit('open_commenti'); if (this.dt_agg != null)
|
|
14793
|
+
this.dt_agg.open_commenti(); };
|
|
14794
|
+
wkf_header_bar.prototype.open_upload = function () { this.button_clicked.emit('open_upload'); if (this.dt_agg != null)
|
|
14795
|
+
this.dt_agg.open_upload(); };
|
|
14796
|
+
wkf_header_bar.prototype.open_wkf = function () { this.button_clicked.emit('open_wkf'); if (this.dt_agg != null)
|
|
14797
|
+
this.dt_agg.open_wkf(); };
|
|
14783
14798
|
wkf_header_bar.prototype.ngAfterViewInit = function () { };
|
|
14784
14799
|
wkf_header_bar.ctorParameters = function () { return [
|
|
14785
14800
|
{ type: AppService }
|
|
@@ -14800,6 +14815,10 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
14800
14815
|
Input(),
|
|
14801
14816
|
__metadata("design:type", Boolean)
|
|
14802
14817
|
], wkf_header_bar.prototype, "procedi_button", void 0);
|
|
14818
|
+
__decorate([
|
|
14819
|
+
Output(),
|
|
14820
|
+
__metadata("design:type", EventEmitter)
|
|
14821
|
+
], wkf_header_bar.prototype, "button_clicked", void 0);
|
|
14803
14822
|
wkf_header_bar = __decorate([
|
|
14804
14823
|
Component({
|
|
14805
14824
|
selector: "wkf_header_bar",
|