@fluxhub/fluxhub-lib 9.0.146 → 9.0.148
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 +84 -64
- 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.js +7 -5
- package/esm2015/lib/controls/fhupload_s3.js +7 -5
- 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.js +7 -5
- package/esm5/lib/controls/fhupload_s3.js +7 -5
- 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 +84 -65
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +84 -64
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +1 -0
- 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
|
@@ -771,8 +771,6 @@ let QueryService = class QueryService {
|
|
|
771
771
|
}
|
|
772
772
|
if (queryp.types[i] == "string")
|
|
773
773
|
queryp.values[i] = "" + queryp.values[i];
|
|
774
|
-
if (queryp.types[i] == "date")
|
|
775
|
-
queryp.values[i] = this.uti_s.sql_date(queryp.values[i]);
|
|
776
774
|
if (queryp.types[i] == "date") {
|
|
777
775
|
queryp.values[i] = this.uti_s.sql_date(queryp.values[i]);
|
|
778
776
|
if (queryp.values[i].split("0").join("") == "NaN-NaN-NaN")
|
|
@@ -1818,6 +1816,7 @@ let FHUploadS3Component = class FHUploadS3Component {
|
|
|
1818
1816
|
maxFileSize: 500 * 1024 * 1024,
|
|
1819
1817
|
});
|
|
1820
1818
|
this.id_component = '';
|
|
1819
|
+
this.last_result = {};
|
|
1821
1820
|
this.id = null;
|
|
1822
1821
|
this.p_cod_doc = "";
|
|
1823
1822
|
this.p_section = "";
|
|
@@ -1836,12 +1835,13 @@ let FHUploadS3Component = class FHUploadS3Component {
|
|
|
1836
1835
|
progressBar: true,
|
|
1837
1836
|
});
|
|
1838
1837
|
this.ref_allegato();
|
|
1839
|
-
this.
|
|
1838
|
+
this.last_result = {
|
|
1840
1839
|
item: item,
|
|
1841
1840
|
response: response,
|
|
1842
1841
|
status: status,
|
|
1843
|
-
header: header
|
|
1844
|
-
}
|
|
1842
|
+
header: header
|
|
1843
|
+
};
|
|
1844
|
+
this.change.emit(this.last_result);
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
@@ -1914,7 +1914,7 @@ let FHUploadS3Component = class FHUploadS3Component {
|
|
|
1914
1914
|
this.uploader.setOptions(uo);
|
|
1915
1915
|
this.uploader.onCompleteAll = () => {
|
|
1916
1916
|
this.loading = false;
|
|
1917
|
-
this.upload_ended.emit();
|
|
1917
|
+
this.upload_ended.emit(this.last_result);
|
|
1918
1918
|
if (this.dialogRef != null)
|
|
1919
1919
|
if (this.dialogRef.componentInstance != null) {
|
|
1920
1920
|
this.dialogRef.componentInstance.update_progess(100);
|
|
@@ -3817,6 +3817,7 @@ let FHUploadComponent = class FHUploadComponent {
|
|
|
3817
3817
|
this.b_edit_loaded = false;
|
|
3818
3818
|
this.tipo = "";
|
|
3819
3819
|
this.b_ini = false;
|
|
3820
|
+
this.last_result = {};
|
|
3820
3821
|
this.uploader = new FileUploader({
|
|
3821
3822
|
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
|
|
3822
3823
|
maxFileSize: 500 * 1024 * 1024,
|
|
@@ -3834,12 +3835,13 @@ let FHUploadComponent = class FHUploadComponent {
|
|
|
3834
3835
|
progressBar: true,
|
|
3835
3836
|
});
|
|
3836
3837
|
this.ref_allegato();
|
|
3837
|
-
this.
|
|
3838
|
+
this.last_result = {
|
|
3838
3839
|
item: item,
|
|
3839
3840
|
response: response,
|
|
3840
3841
|
status: status,
|
|
3841
|
-
header: header
|
|
3842
|
-
}
|
|
3842
|
+
header: header
|
|
3843
|
+
};
|
|
3844
|
+
this.change.emit(this.last_result);
|
|
3843
3845
|
}
|
|
3844
3846
|
};
|
|
3845
3847
|
}
|
|
@@ -3912,7 +3914,7 @@ let FHUploadComponent = class FHUploadComponent {
|
|
|
3912
3914
|
this.uploader.setOptions(uo);
|
|
3913
3915
|
this.uploader.onCompleteAll = () => {
|
|
3914
3916
|
this.loading = false;
|
|
3915
|
-
this.upload_ended.emit();
|
|
3917
|
+
this.upload_ended.emit(this.last_result);
|
|
3916
3918
|
if (this.dialogRef != null)
|
|
3917
3919
|
if (this.dialogRef.componentInstance != null) {
|
|
3918
3920
|
this.dialogRef.componentInstance.update_progess(100);
|
|
@@ -7946,7 +7948,6 @@ let FHGridComponent = class FHGridComponent {
|
|
|
7946
7948
|
});
|
|
7947
7949
|
}
|
|
7948
7950
|
calcola_filtro(obj_filtro, filter_v, key, add_end = true) {
|
|
7949
|
-
console.log("obj_filtro ", obj_filtro);
|
|
7950
7951
|
let b_filter = false;
|
|
7951
7952
|
if (obj_filtro.type != null) {
|
|
7952
7953
|
if (obj_filtro.filter != null) {
|
|
@@ -10484,6 +10485,10 @@ let FHAutoCompleteComponent = class FHAutoCompleteComponent {
|
|
|
10484
10485
|
if (!b_found && this.only_from_list)
|
|
10485
10486
|
this.resetValue(false);
|
|
10486
10487
|
}
|
|
10488
|
+
else {
|
|
10489
|
+
setTimeout(() => { this.setByValue(desc_val); }, 1000);
|
|
10490
|
+
return;
|
|
10491
|
+
}
|
|
10487
10492
|
if (!this.only_from_list) {
|
|
10488
10493
|
this.sItem = this.selval;
|
|
10489
10494
|
}
|
|
@@ -16984,6 +16989,7 @@ class dati_aggiuntivi {
|
|
|
16984
16989
|
this.b_edit_before = this.b_edit;
|
|
16985
16990
|
this.edit_b(false);
|
|
16986
16991
|
let arr = this.getfieldvalues();
|
|
16992
|
+
// console.log('arr',arr);
|
|
16987
16993
|
let p = new QParam();
|
|
16988
16994
|
p.sql = "insert_aggiuntivi";
|
|
16989
16995
|
p.types = ["string", "string"];
|
|
@@ -16992,33 +16998,57 @@ class dati_aggiuntivi {
|
|
|
16992
16998
|
for (let i = 0; i < arr.length; i++) {
|
|
16993
16999
|
p.types.push(arr[i].types);
|
|
16994
17000
|
p.names.push(arr[i].names);
|
|
16995
|
-
if (arr[i].values
|
|
17001
|
+
if (arr[i].values == null) {
|
|
17002
|
+
console.log('NULL', arr[i].names, arr[i].values);
|
|
17003
|
+
arr[i].values = "dbnull";
|
|
17004
|
+
}
|
|
17005
|
+
else {
|
|
17006
|
+
console.log('NO NULL', arr[i].names, arr[i].values);
|
|
16996
17007
|
if (arr[i].types == "boolean")
|
|
16997
17008
|
if (arr[i].values)
|
|
16998
|
-
|
|
16999
|
-
else
|
|
17000
|
-
p.values.push("0");
|
|
17001
|
-
if (arr[i].types == "int")
|
|
17002
|
-
if (isNaN(arr[i].values))
|
|
17003
|
-
p.values.push("0");
|
|
17009
|
+
arr[i].values = "1";
|
|
17004
17010
|
else
|
|
17005
|
-
|
|
17011
|
+
arr[i].values = "0";
|
|
17012
|
+
if (arr[i].types == "int") {
|
|
17013
|
+
if (arr[i].values + "" == "")
|
|
17014
|
+
arr[i].values = "dbnull";
|
|
17015
|
+
else {
|
|
17016
|
+
if (isNaN(arr[i].values))
|
|
17017
|
+
arr[i].values = "0";
|
|
17018
|
+
else
|
|
17019
|
+
arr[i].values = "" + arr[i].values;
|
|
17020
|
+
}
|
|
17021
|
+
}
|
|
17006
17022
|
if (arr[i].types == "string")
|
|
17007
|
-
|
|
17008
|
-
if (arr[i].types == "date")
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17023
|
+
arr[i].values = "" + arr[i].values;
|
|
17024
|
+
if (arr[i].types == "date") {
|
|
17025
|
+
arr[i].values = this.uti_s.sql_date(arr[i].values);
|
|
17026
|
+
if (arr[i].values.split("0").join("") == "NaN-NaN-NaN")
|
|
17027
|
+
arr[i].values = "dbnull";
|
|
17028
|
+
}
|
|
17029
|
+
if (arr[i].types == "datetime") {
|
|
17030
|
+
console.log('typeof ', typeof (arr[i].values), arr[i].values);
|
|
17031
|
+
arr[i].values = this.uti_s.sql_date_time(arr[i].values);
|
|
17032
|
+
console.log('arr[i].values ', arr[i].values);
|
|
17033
|
+
if (arr[i].values.split("0").join("") == "NaN-NaN-NaN NaN:NaN")
|
|
17034
|
+
arr[i].values = "dbnull";
|
|
17035
|
+
}
|
|
17036
|
+
if (arr[i].types == "string" && arr[i].values == null)
|
|
17037
|
+
arr[i].values = "dbnull";
|
|
17038
|
+
if (arr[i].types == "decimal") {
|
|
17039
|
+
if (arr[i].values + "" == "")
|
|
17040
|
+
arr[i].values = "dbnull";
|
|
17041
|
+
else {
|
|
17042
|
+
if (isNaN(arr[i].values))
|
|
17043
|
+
arr[i].values = "0";
|
|
17044
|
+
else
|
|
17045
|
+
arr[i].values = "" + arr[i].values;
|
|
17046
|
+
}
|
|
17047
|
+
}
|
|
17020
17048
|
}
|
|
17049
|
+
p.values.push(arr[i].values);
|
|
17021
17050
|
}
|
|
17051
|
+
// console.log('p',p);
|
|
17022
17052
|
this.m_wkf.doQuery(p).subscribe((data) => {
|
|
17023
17053
|
if (data != null)
|
|
17024
17054
|
if (data.result_msg == "OK") {
|
|
@@ -17685,39 +17715,24 @@ let wkf_header_bar = class wkf_header_bar {
|
|
|
17685
17715
|
this.edit_button = false;
|
|
17686
17716
|
this.respingi_button = false;
|
|
17687
17717
|
this.procedi_button = true;
|
|
17688
|
-
|
|
17689
|
-
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
|
|
17693
|
-
|
|
17694
|
-
|
|
17695
|
-
|
|
17696
|
-
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
|
|
17700
|
-
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
17704
|
-
|
|
17705
|
-
|
|
17706
|
-
if (this.dt_agg != null)
|
|
17707
|
-
this.dt_agg.open_info();
|
|
17708
|
-
}
|
|
17709
|
-
open_commenti() {
|
|
17710
|
-
if (this.dt_agg != null)
|
|
17711
|
-
this.dt_agg.open_commenti();
|
|
17712
|
-
}
|
|
17713
|
-
open_upload() {
|
|
17714
|
-
if (this.dt_agg != null)
|
|
17715
|
-
this.dt_agg.open_upload();
|
|
17716
|
-
}
|
|
17717
|
-
open_wkf() {
|
|
17718
|
-
if (this.dt_agg != null)
|
|
17719
|
-
this.dt_agg.open_wkf();
|
|
17720
|
-
}
|
|
17718
|
+
this.button_clicked = new EventEmitter();
|
|
17719
|
+
}
|
|
17720
|
+
back() { this.button_clicked.emit('back'); if (this.dt_agg != null)
|
|
17721
|
+
this.dt_agg.back(this.edit_button); }
|
|
17722
|
+
evt_salv() { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
|
|
17723
|
+
this.dt_agg.evt_salv(); }
|
|
17724
|
+
respingi() { this.button_clicked.emit('respingi'); if (this.dt_agg != null)
|
|
17725
|
+
this.dt_agg.respingi(); }
|
|
17726
|
+
procedi() { this.button_clicked.emit('procedi'); if (this.dt_agg != null)
|
|
17727
|
+
this.dt_agg.procedi(); }
|
|
17728
|
+
open_info() { this.button_clicked.emit('open_info'); if (this.dt_agg != null)
|
|
17729
|
+
this.dt_agg.open_info(); }
|
|
17730
|
+
open_commenti() { this.button_clicked.emit('open_commenti'); if (this.dt_agg != null)
|
|
17731
|
+
this.dt_agg.open_commenti(); }
|
|
17732
|
+
open_upload() { this.button_clicked.emit('open_upload'); if (this.dt_agg != null)
|
|
17733
|
+
this.dt_agg.open_upload(); }
|
|
17734
|
+
open_wkf() { this.button_clicked.emit('open_wkf'); if (this.dt_agg != null)
|
|
17735
|
+
this.dt_agg.open_wkf(); }
|
|
17721
17736
|
ngAfterViewInit() { }
|
|
17722
17737
|
};
|
|
17723
17738
|
wkf_header_bar.ctorParameters = () => [
|
|
@@ -17739,6 +17754,10 @@ __decorate([
|
|
|
17739
17754
|
Input(),
|
|
17740
17755
|
__metadata("design:type", Boolean)
|
|
17741
17756
|
], wkf_header_bar.prototype, "procedi_button", void 0);
|
|
17757
|
+
__decorate([
|
|
17758
|
+
Output(),
|
|
17759
|
+
__metadata("design:type", EventEmitter)
|
|
17760
|
+
], wkf_header_bar.prototype, "button_clicked", void 0);
|
|
17742
17761
|
wkf_header_bar = __decorate([
|
|
17743
17762
|
Component({
|
|
17744
17763
|
selector: "wkf_header_bar",
|