@fluxhub/fluxhub-lib 9.0.136 → 9.0.138
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 +1854 -1128
- 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/fhpickfield.js +9 -6
- package/esm2015/lib/controls/fhupload_s3.js +466 -0
- package/esm2015/lib/controls/fhuploadpanel_s3.js +663 -0
- package/esm2015/lib/controls/fhwinpicklist.js +17 -13
- package/esm2015/lib/fluxhub-lib.module.js +4 -4
- package/esm2015/public_api.js +3 -1
- package/esm5/lib/controls/fhpickfield.js +9 -6
- package/esm5/lib/controls/fhupload_s3.js +380 -0
- package/esm5/lib/controls/fhuploadpanel_s3.js +366 -0
- package/esm5/lib/controls/fhwinpicklist.js +17 -14
- package/esm5/lib/fluxhub-lib.module.js +4 -4
- package/esm5/public_api.js +3 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +2530 -1422
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +1763 -1039
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhpickfield.d.ts +2 -2
- package/lib/controls/fhupload_s3.d.ts +59 -0
- package/lib/controls/fhuploadpanel_s3.d.ts +52 -0
- package/lib/controls/fhwinpicklist.d.ts +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
2
|
-
import {
|
|
3
|
-
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
2
|
+
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
4
3
|
import { ToastrService } from 'ngx-toastr';
|
|
4
|
+
import { ɵɵdefineInjectable, Injectable, ɵɵinject, forwardRef, EventEmitter, Input, ViewChild, ElementRef, Output, Component, Inject, HostListener, ViewContainerRef, Directive, Pipe, PLATFORM_ID, Optional, NgModule } from '@angular/core';
|
|
5
|
+
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
6
|
+
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
5
7
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
6
8
|
import { AES, enc } from 'crypto-js';
|
|
7
9
|
import { getDiff } from 'recursive-diff';
|
|
8
10
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
9
11
|
import { NG_VALUE_ACCESSOR, NgControl, FormsModule } from '@angular/forms';
|
|
10
|
-
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
11
|
-
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
12
12
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
13
13
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
14
14
|
import 'ag-grid-enterprise';
|
|
@@ -846,783 +846,518 @@ QueryService = __decorate([
|
|
|
846
846
|
UtilityService])
|
|
847
847
|
], QueryService);
|
|
848
848
|
|
|
849
|
-
let
|
|
850
|
-
constructor(
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
849
|
+
let OdbcService = class OdbcService {
|
|
850
|
+
constructor(http, app_s, toastr) {
|
|
851
|
+
this.http = http;
|
|
852
|
+
this.app_s = app_s;
|
|
853
853
|
this.toastr = toastr;
|
|
854
|
-
this.
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
this.
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
this.
|
|
862
|
-
|
|
863
|
-
this.
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
854
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
855
|
+
}
|
|
856
|
+
doQuery(queryp, displayError = true) {
|
|
857
|
+
this.headers = new HttpHeaders({
|
|
858
|
+
"Content-Type": "application/json",
|
|
859
|
+
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
860
|
+
});
|
|
861
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
862
|
+
let post_v = JSON.stringify(queryp);
|
|
863
|
+
return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map((res) => {
|
|
864
|
+
// Handle errors, display if enabled
|
|
865
|
+
let err;
|
|
866
|
+
if (!res) {
|
|
867
|
+
err = new Error("Empty server response");
|
|
868
|
+
}
|
|
869
|
+
else if (res.result_msg === "KO") {
|
|
870
|
+
err = new Error(res.msg);
|
|
871
|
+
}
|
|
872
|
+
if (err) {
|
|
873
|
+
console.error(err);
|
|
874
|
+
if (displayError) {
|
|
875
|
+
this.toastr.error(err.message);
|
|
876
|
+
}
|
|
877
|
+
throw new Error(err);
|
|
878
|
+
}
|
|
879
|
+
return res || new QGResult();
|
|
880
|
+
}), catchError((err) => {
|
|
881
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
882
|
+
// We'd also dig deeper into the error to get a better message
|
|
883
|
+
let errMsg = err.message
|
|
884
|
+
? err.message
|
|
885
|
+
: err.status
|
|
886
|
+
? `${err.status} - ${err.statusText}`
|
|
887
|
+
: "Server error";
|
|
888
|
+
console.error(errMsg); // log to console instead
|
|
889
|
+
throw err;
|
|
890
|
+
}));
|
|
891
|
+
}
|
|
892
|
+
};
|
|
893
|
+
OdbcService.ctorParameters = () => [
|
|
894
|
+
{ type: HttpClient },
|
|
895
|
+
{ type: AppService },
|
|
896
|
+
{ type: ToastrService }
|
|
897
|
+
];
|
|
898
|
+
OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
899
|
+
OdbcService = __decorate([
|
|
900
|
+
Injectable({
|
|
901
|
+
providedIn: "root",
|
|
902
|
+
}),
|
|
903
|
+
__metadata("design:paramtypes", [HttpClient,
|
|
904
|
+
AppService,
|
|
905
|
+
ToastrService])
|
|
906
|
+
], OdbcService);
|
|
907
|
+
|
|
908
|
+
const noop = () => { };
|
|
909
|
+
const ɵ0 = noop;
|
|
910
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
911
|
+
provide: NG_VALUE_ACCESSOR,
|
|
912
|
+
useExisting: forwardRef(() => FHComboboxComponent),
|
|
913
|
+
multi: true,
|
|
914
|
+
};
|
|
915
|
+
let FHComboboxComponent = class FHComboboxComponent {
|
|
916
|
+
constructor(_dataService, _dataService_odbc) {
|
|
917
|
+
this._dataService = _dataService;
|
|
918
|
+
this._dataService_odbc = _dataService_odbc;
|
|
919
|
+
this.init_fill = true;
|
|
920
|
+
this.sql = "";
|
|
867
921
|
this.types = [];
|
|
868
922
|
this.values = [];
|
|
869
|
-
this.
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
923
|
+
this.hidden = false;
|
|
924
|
+
this.label = "";
|
|
925
|
+
this.enabled = true;
|
|
926
|
+
this.required = false;
|
|
927
|
+
this.sel_label = "";
|
|
928
|
+
this.fillend = new EventEmitter();
|
|
929
|
+
this.selchange = new EventEmitter();
|
|
930
|
+
this.initend = new EventEmitter();
|
|
931
|
+
this.myData = [];
|
|
932
|
+
this.valDef = "-1";
|
|
933
|
+
this.selval = "-1";
|
|
934
|
+
this.errorMsg = "";
|
|
935
|
+
this.db_type = "1";
|
|
936
|
+
this.dis_value = "";
|
|
937
|
+
this.descri_val = "";
|
|
938
|
+
this.onChange = (_) => { };
|
|
939
|
+
this.onTouched = () => { };
|
|
883
940
|
}
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
if (
|
|
941
|
+
setValue(desc_val) {
|
|
942
|
+
this.setByValue(desc_val);
|
|
943
|
+
}
|
|
944
|
+
update_dis() {
|
|
945
|
+
this.dis_value = "";
|
|
946
|
+
try {
|
|
947
|
+
if (this.descri_val != null)
|
|
948
|
+
if (this.descri_val != "") {
|
|
949
|
+
this.dis_value = this.descri_val;
|
|
892
950
|
return;
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
else {
|
|
896
|
-
for (let i = 0; i < this.value_list.length; i++)
|
|
897
|
-
if (this.value_list[i].descrizione_valore
|
|
898
|
-
.toUpperCase()
|
|
899
|
-
.indexOf(this.fltr_user.toUpperCase()) != -1) {
|
|
900
|
-
let b_found_a = false;
|
|
901
|
-
for (let z = 0; z < this.value_list_sel.length; z++)
|
|
902
|
-
if (this.value_list_sel[z].descrizione_valore ==
|
|
903
|
-
this.value_list[i].descrizione_valore) {
|
|
904
|
-
b_found_a = true;
|
|
905
|
-
break;
|
|
906
|
-
}
|
|
907
|
-
if (!b_found_a)
|
|
908
|
-
this.value_list_sel.push(this.value_list[i]);
|
|
909
|
-
if (this.value_list_sel.length == 50 && this.limit_size)
|
|
910
|
-
return;
|
|
911
951
|
}
|
|
952
|
+
if (this.valDef == null)
|
|
953
|
+
this.dis_value = "";
|
|
954
|
+
else
|
|
955
|
+
this.dis_value = this.valDef.split("-1").join("");
|
|
956
|
+
}
|
|
957
|
+
catch (e) {
|
|
958
|
+
console.log("errore split -> this.valDef ", this.valDef);
|
|
912
959
|
}
|
|
913
|
-
/*
|
|
914
|
-
this.value_list_sel =new Array();
|
|
915
|
-
for(let i:number=0;i<this.value_list.length;i++)
|
|
916
|
-
{
|
|
917
|
-
let b_found_a=false;
|
|
918
|
-
for(let z:number=0;z<this.value_list_sel.length;z++)
|
|
919
|
-
if(this.value_list_sel[z].descrizione_valore==this.value_list[i].descrizione_valore){b_found_a=true; break;}
|
|
920
|
-
|
|
921
|
-
if(!b_found_a && (this.value_list[i].descrizione_valore.toUpperCase().indexOf(this.fltr_user.toUpperCase())!=-1 || this.fltr_user==''))
|
|
922
|
-
{
|
|
923
|
-
// console.log(this.value_list[i].username);
|
|
924
|
-
if(this.value_sel==null) this.value_list_sel.push(this.value_list[i]);
|
|
925
|
-
else
|
|
926
|
-
{
|
|
927
|
-
|
|
928
|
-
let b_found=false;
|
|
929
|
-
for(let y:number=0;y<this.value_sel.length;y++)
|
|
930
|
-
if(this.value_sel[y].descrizione_valore==this.value_list[i].descrizione_valore){b_found=true; break;}
|
|
931
|
-
if(!b_found)
|
|
932
|
-
this.value_list_sel.push(this.value_list[i]);
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}*/
|
|
936
|
-
// console.log(this.value_list);
|
|
937
960
|
}
|
|
938
|
-
|
|
939
|
-
this.
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
961
|
+
resetValue() {
|
|
962
|
+
this.selval = "-1";
|
|
963
|
+
this.valDef = "-1";
|
|
964
|
+
this.update_dis();
|
|
965
|
+
}
|
|
966
|
+
focus() {
|
|
967
|
+
this.smtr.nativeElement.focus();
|
|
968
|
+
}
|
|
969
|
+
reset() {
|
|
970
|
+
console.log("reset");
|
|
971
|
+
this.selval = "-1";
|
|
972
|
+
this.valDef = "-1";
|
|
973
|
+
this.myData = new Array();
|
|
974
|
+
this.update_dis();
|
|
975
|
+
}
|
|
976
|
+
fillCombo() {
|
|
977
|
+
// console.log(this.init_fill);
|
|
978
|
+
// if(!this.init_fill){this.init_fill=true;return;}
|
|
979
|
+
if (this.sql == null)
|
|
980
|
+
this.sql = "";
|
|
981
|
+
if (this.sql.indexOf("|") != -1 && this.sql.indexOf("$") != -1) {
|
|
982
|
+
this.set_options(this.sql);
|
|
983
|
+
return;
|
|
944
984
|
}
|
|
945
|
-
let ok_op = false;
|
|
946
985
|
let p = new QParam();
|
|
947
|
-
p.sql =
|
|
986
|
+
p.sql = this.sql;
|
|
948
987
|
p.types = this.types;
|
|
949
988
|
p.values = this.values;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}
|
|
962
|
-
this.filtra();
|
|
963
|
-
ok_op = true;
|
|
964
|
-
}
|
|
965
|
-
if (!ok_op) {
|
|
966
|
-
}
|
|
967
|
-
}, (err) => {
|
|
968
|
-
this.errorMsg =
|
|
969
|
-
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
fill_list_arr(k, arrs) {
|
|
973
|
-
this.value_sel = new Array();
|
|
974
|
-
for (let i = 0; i < arrs.length; i++)
|
|
975
|
-
for (let y = 0; y < k.length; y++)
|
|
976
|
-
if (arrs[i] ==
|
|
977
|
-
k[y].descrizione_valore) {
|
|
978
|
-
this.value_sel.push(k[y]);
|
|
989
|
+
let ok_op = false;
|
|
990
|
+
// console.log(p);
|
|
991
|
+
if (this.db_type == "1")
|
|
992
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
993
|
+
let ok_op = false;
|
|
994
|
+
if (data != null)
|
|
995
|
+
if (data.result_msg == "OK") {
|
|
996
|
+
this.resetD(data.result_data);
|
|
997
|
+
ok_op = true;
|
|
998
|
+
}
|
|
999
|
+
if (!ok_op) {
|
|
979
1000
|
}
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1001
|
+
}, (err) => {
|
|
1002
|
+
this.errorMsg =
|
|
1003
|
+
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
1004
|
+
this.sql +
|
|
1005
|
+
"]";
|
|
1006
|
+
});
|
|
1007
|
+
if (this.db_type == "2")
|
|
1008
|
+
this._dataService_odbc.doQuery(p).subscribe((data) => {
|
|
1009
|
+
let ok_op = false;
|
|
1010
|
+
if (data != null)
|
|
1011
|
+
if (data.result_msg == "OK") {
|
|
1012
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
1013
|
+
if (data.result_data[i].VALORE != null)
|
|
1014
|
+
data.result_data[i].valore = data.result_data[i].VALORE;
|
|
1015
|
+
if (data.result_data[i].DESCRIZIONE_VALORE != null)
|
|
1016
|
+
data.result_data[i].descrizione_valore =
|
|
1017
|
+
data.result_data[i].DESCRIZIONE_VALORE;
|
|
1018
|
+
}
|
|
1019
|
+
this.resetD(data.result_data);
|
|
1020
|
+
ok_op = true;
|
|
1021
|
+
}
|
|
1022
|
+
if (!ok_op) {
|
|
987
1023
|
}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
timeOut: 1000,
|
|
994
|
-
progressBar: true,
|
|
1024
|
+
}, (err) => {
|
|
1025
|
+
this.errorMsg =
|
|
1026
|
+
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
1027
|
+
this.sql +
|
|
1028
|
+
"]";
|
|
995
1029
|
});
|
|
1030
|
+
}
|
|
1031
|
+
add_option(o) {
|
|
1032
|
+
this.myData.push(o);
|
|
1033
|
+
}
|
|
1034
|
+
resetD(o) {
|
|
1035
|
+
this.myData = o;
|
|
1036
|
+
this.selval = "-1";
|
|
1037
|
+
// console.log(this.smtr); console.log(this.smtr.nativeElement);
|
|
1038
|
+
this.setByValue(this.valDef);
|
|
1039
|
+
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
1040
|
+
this.setByDescri(this.valDef);
|
|
1041
|
+
this.fillend.emit();
|
|
1042
|
+
}
|
|
1043
|
+
setByDescri(desc_val) {
|
|
1044
|
+
// console.log("setByDescri "+desc_val);
|
|
1045
|
+
this.valDef = desc_val;
|
|
1046
|
+
this.selval = "-1";
|
|
1047
|
+
if (desc_val == "")
|
|
996
1048
|
return;
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
if (
|
|
1000
|
-
|
|
1001
|
-
|
|
1049
|
+
if (this.myData == null)
|
|
1050
|
+
return;
|
|
1051
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1052
|
+
return;
|
|
1053
|
+
for (let j = 0; j < this.myData.length; j++)
|
|
1054
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
1055
|
+
this.selval = "" + this.myData[j].valore;
|
|
1056
|
+
if (this.myData[j].descrizione_valore != null)
|
|
1057
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
1058
|
+
this.update_dis();
|
|
1059
|
+
return;
|
|
1002
1060
|
}
|
|
1003
|
-
|
|
1004
|
-
this.value_sel = new Array();
|
|
1005
|
-
this.value_sel.push(this.selectedAdd);
|
|
1006
|
-
this.selectedAdd = null;
|
|
1007
|
-
this.filtra();
|
|
1008
|
-
if (this.single_sel)
|
|
1009
|
-
this.ok();
|
|
1061
|
+
this.update_dis();
|
|
1010
1062
|
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1063
|
+
setByIndex(ind) {
|
|
1064
|
+
this.valDef = "";
|
|
1065
|
+
this.selval = "-1";
|
|
1066
|
+
if (this.myData == null)
|
|
1067
|
+
return;
|
|
1068
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1017
1069
|
return;
|
|
1070
|
+
if (this.myData.length > ind) {
|
|
1071
|
+
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
1018
1072
|
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1073
|
+
}
|
|
1074
|
+
getObj() {
|
|
1075
|
+
if (this.selval == null)
|
|
1076
|
+
return null;
|
|
1077
|
+
if (this.selval == "-1")
|
|
1078
|
+
return null;
|
|
1079
|
+
else
|
|
1080
|
+
for (let j = 0; j < this.myData.length; j++)
|
|
1081
|
+
if (this.myData[j].valore == this.selval) {
|
|
1082
|
+
return this.myData[j];
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
setByValue(desc_val) {
|
|
1086
|
+
this.valDef = desc_val;
|
|
1087
|
+
this.selval = "-1";
|
|
1088
|
+
// console.log(this.myData);
|
|
1089
|
+
if ("" + desc_val == "") {
|
|
1090
|
+
// console.log('qqq1111');
|
|
1091
|
+
return;
|
|
1022
1092
|
}
|
|
1023
|
-
|
|
1024
|
-
this.
|
|
1025
|
-
|
|
1093
|
+
// console.log("qui");
|
|
1094
|
+
if (this.myData == null)
|
|
1095
|
+
return;
|
|
1096
|
+
// console.log("qui1");
|
|
1097
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1098
|
+
return;
|
|
1099
|
+
//console.log("qui2");
|
|
1100
|
+
for (let j = 0; j < this.myData.length; j++) {
|
|
1101
|
+
//console.log(this.myData[j].valore +' '+ desc_val);
|
|
1102
|
+
if (this.myData[j].valore == desc_val) {
|
|
1103
|
+
this.selval = "" + this.myData[j].valore;
|
|
1104
|
+
if (this.myData[j].descrizione_valore != null)
|
|
1105
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
1106
|
+
this.update_dis();
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
this.update_dis();
|
|
1026
1111
|
}
|
|
1027
|
-
|
|
1028
|
-
this.
|
|
1029
|
-
|
|
1030
|
-
|
|
1112
|
+
getDescri() {
|
|
1113
|
+
if (!this.enabled) {
|
|
1114
|
+
if (this.selval == null)
|
|
1115
|
+
return this.valDef;
|
|
1116
|
+
if (this.selval == "-1")
|
|
1117
|
+
return this.valDef;
|
|
1118
|
+
}
|
|
1119
|
+
if (this.selval == null)
|
|
1120
|
+
return "-1";
|
|
1121
|
+
if (this.selval == "-1")
|
|
1122
|
+
return "-1";
|
|
1123
|
+
else
|
|
1124
|
+
for (let j = 0; j < this.myData.length; j++)
|
|
1125
|
+
if (this.myData[j].valore == this.selval) {
|
|
1126
|
+
return this.myData[j].descrizione_valore;
|
|
1127
|
+
}
|
|
1031
1128
|
}
|
|
1032
|
-
|
|
1033
|
-
this.
|
|
1034
|
-
this.
|
|
1035
|
-
|
|
1129
|
+
getValue() {
|
|
1130
|
+
// console.log(this.selval);
|
|
1131
|
+
if (!this.enabled) {
|
|
1132
|
+
if (this.selval == null)
|
|
1133
|
+
return this.valDef;
|
|
1134
|
+
if (this.selval == "-1")
|
|
1135
|
+
return this.valDef;
|
|
1136
|
+
}
|
|
1137
|
+
if (this.selval == null)
|
|
1138
|
+
return "-1";
|
|
1139
|
+
if (this.selval == "")
|
|
1140
|
+
return "-1";
|
|
1141
|
+
else
|
|
1142
|
+
return this.selval;
|
|
1036
1143
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1144
|
+
getData(campo) {
|
|
1145
|
+
for (var x in this.myData) {
|
|
1146
|
+
if (this.myData[x]["valore"] == this.selval) {
|
|
1147
|
+
return this.myData[x][campo];
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
continue;
|
|
1151
|
+
}
|
|
1043
1152
|
}
|
|
1044
|
-
return sx;
|
|
1045
1153
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1154
|
+
set_options(s) {
|
|
1155
|
+
this.myData = new Array();
|
|
1156
|
+
let a = s.split("$");
|
|
1157
|
+
for (let i = 0; i < a.length; i++) {
|
|
1158
|
+
var o = new Object();
|
|
1159
|
+
var av = a[i].split("|");
|
|
1160
|
+
o.valore = av[1];
|
|
1161
|
+
o.descrizione_valore = av[0];
|
|
1162
|
+
this.myData.push(o);
|
|
1163
|
+
}
|
|
1164
|
+
this.setByValue(this.valDef);
|
|
1165
|
+
if (this.getValue() == "-1")
|
|
1166
|
+
this.setByDescri(this.valDef);
|
|
1048
1167
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1168
|
+
ngAfterViewInit() {
|
|
1169
|
+
setTimeout(() => {
|
|
1170
|
+
if (this.init_fill == true) {
|
|
1171
|
+
if (this.sql == "") {
|
|
1172
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
1173
|
+
return;
|
|
1174
|
+
}
|
|
1175
|
+
this.fillCombo();
|
|
1176
|
+
}
|
|
1177
|
+
else {
|
|
1178
|
+
this.errorMsg = "";
|
|
1179
|
+
}
|
|
1180
|
+
this.initend.emit();
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
sc() {
|
|
1184
|
+
this.onChange(this.getValue());
|
|
1185
|
+
this.selchange.emit({
|
|
1186
|
+
event: this.getObj(),
|
|
1187
|
+
valore: this.getValue(),
|
|
1188
|
+
descrizione_valore: this.getDescri(),
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
getModelValue() {
|
|
1192
|
+
const value = this.getData("valore");
|
|
1193
|
+
return value;
|
|
1194
|
+
}
|
|
1195
|
+
writeValue(value) {
|
|
1196
|
+
this.setByValue(value);
|
|
1197
|
+
}
|
|
1198
|
+
registerOnChange(fn) {
|
|
1199
|
+
this.onChange = fn;
|
|
1200
|
+
}
|
|
1201
|
+
registerOnTouched(fn) {
|
|
1202
|
+
this.onTouched = fn;
|
|
1051
1203
|
}
|
|
1052
1204
|
};
|
|
1053
|
-
|
|
1054
|
-
{ type: MatDialogRef },
|
|
1205
|
+
FHComboboxComponent.ctorParameters = () => [
|
|
1055
1206
|
{ type: QueryService },
|
|
1056
|
-
{ type:
|
|
1057
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1207
|
+
{ type: OdbcService }
|
|
1058
1208
|
];
|
|
1059
1209
|
__decorate([
|
|
1060
1210
|
Input(),
|
|
1061
|
-
__metadata("design:type",
|
|
1062
|
-
],
|
|
1211
|
+
__metadata("design:type", Boolean)
|
|
1212
|
+
], FHComboboxComponent.prototype, "init_fill", void 0);
|
|
1063
1213
|
__decorate([
|
|
1064
1214
|
Input(),
|
|
1065
|
-
__metadata("design:type",
|
|
1066
|
-
],
|
|
1067
|
-
__decorate([
|
|
1068
|
-
Input(),
|
|
1069
|
-
__metadata("design:type", Boolean)
|
|
1070
|
-
], FHPickListComponent.prototype, "vis_buttons", void 0);
|
|
1215
|
+
__metadata("design:type", String)
|
|
1216
|
+
], FHComboboxComponent.prototype, "sql", void 0);
|
|
1071
1217
|
__decorate([
|
|
1072
1218
|
Input(),
|
|
1073
|
-
__metadata("design:type",
|
|
1074
|
-
],
|
|
1219
|
+
__metadata("design:type", Array)
|
|
1220
|
+
], FHComboboxComponent.prototype, "types", void 0);
|
|
1075
1221
|
__decorate([
|
|
1076
1222
|
Input(),
|
|
1077
1223
|
__metadata("design:type", Array)
|
|
1078
|
-
],
|
|
1079
|
-
FHPickListComponent = __decorate([
|
|
1080
|
-
Component({
|
|
1081
|
-
selector: "FHPickList",
|
|
1082
|
-
template: `
|
|
1083
|
-
<div fxLayout="column" fxLayoutGap="15px" fxFlex>
|
|
1084
|
-
<div fxLayout="row">
|
|
1085
|
-
<div fxLayout="column" fxFlex="41%">
|
|
1086
|
-
<div style="width:100%;height:420px;overflow:auto;">
|
|
1087
|
-
<table style="width: 100%" class="fh_table">
|
|
1088
|
-
<thead>
|
|
1089
|
-
<tr>
|
|
1090
|
-
<th>VALORI SELEZIONABILI</th>
|
|
1091
|
-
</tr>
|
|
1092
|
-
</thead>
|
|
1093
|
-
|
|
1094
|
-
<tbody>
|
|
1095
|
-
<tr>
|
|
1096
|
-
<td>
|
|
1097
|
-
<input
|
|
1098
|
-
[(ngModel)]="fltr_user"
|
|
1099
|
-
(ngModelChange)="filtra()"
|
|
1100
|
-
style="padding:8px;margin:15px auto;width:100%;"
|
|
1101
|
-
placeholder="Ricerca..."
|
|
1102
|
-
/>
|
|
1103
|
-
</td>
|
|
1104
|
-
</tr>
|
|
1105
|
-
<tr
|
|
1106
|
-
*ngFor="
|
|
1107
|
-
let u of value_list_sel;
|
|
1108
|
-
let odd = odd;
|
|
1109
|
-
let even = even
|
|
1110
|
-
"
|
|
1111
|
-
[ngClass]="{ odd: odd, even: even }"
|
|
1112
|
-
(click)="addTo(u)"
|
|
1113
|
-
(dblclick)="do_add()"
|
|
1114
|
-
class="selector"
|
|
1115
|
-
[ngClass]="{ active: selectedAdd == u }"
|
|
1116
|
-
>
|
|
1117
|
-
<td>{{ u.descrizione_valore }}</td>
|
|
1118
|
-
</tr>
|
|
1119
|
-
</tbody>
|
|
1120
|
-
</table>
|
|
1121
|
-
</div>
|
|
1122
|
-
</div>
|
|
1123
|
-
<div
|
|
1124
|
-
fxLayout="column"
|
|
1125
|
-
fxFlex="18%"
|
|
1126
|
-
style="height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);"
|
|
1127
|
-
>
|
|
1128
|
-
<div
|
|
1129
|
-
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"
|
|
1130
|
-
>
|
|
1131
|
-
<button
|
|
1132
|
-
mat-flat-button
|
|
1133
|
-
color="primary"
|
|
1134
|
-
(click)="do_add()"
|
|
1135
|
-
[disabled]="!option"
|
|
1136
|
-
>
|
|
1137
|
-
<mat-icon>arrow_forward</mat-icon>
|
|
1138
|
-
</button>
|
|
1139
|
-
<br /><br />
|
|
1140
|
-
<button
|
|
1141
|
-
mat-flat-button
|
|
1142
|
-
color="primary"
|
|
1143
|
-
(click)="do_rem()"
|
|
1144
|
-
[disabled]="option"
|
|
1145
|
-
>
|
|
1146
|
-
<mat-icon>delete</mat-icon>
|
|
1147
|
-
</button>
|
|
1148
|
-
</div>
|
|
1149
|
-
</div>
|
|
1150
|
-
<div fxLayout="column" fxFlex="41%">
|
|
1151
|
-
<div style="width:100%;height:420px;overflow:auto;">
|
|
1152
|
-
<table style="width: 100%" class="fh_table">
|
|
1153
|
-
<thead>
|
|
1154
|
-
<tr>
|
|
1155
|
-
<th>VALORI SELEZIONATI</th>
|
|
1156
|
-
</tr>
|
|
1157
|
-
</thead>
|
|
1158
|
-
<tbody>
|
|
1159
|
-
<tr
|
|
1160
|
-
*ngFor="let u of value_sel; let odd = odd; let even = even"
|
|
1161
|
-
(mouseover)="selectedRemove = u"
|
|
1162
|
-
[ngClass]="{ odd: odd, even: even }"
|
|
1163
|
-
(click)="removeTo(u)"
|
|
1164
|
-
(dblclick)="do_rem()"
|
|
1165
|
-
class="selector"
|
|
1166
|
-
[ngClass]="{ active: selectedRemove == u }"
|
|
1167
|
-
>
|
|
1168
|
-
<td>{{ u.descrizione_valore }}</td>
|
|
1169
|
-
</tr>
|
|
1170
|
-
</tbody>
|
|
1171
|
-
</table>
|
|
1172
|
-
</div>
|
|
1173
|
-
</div>
|
|
1174
|
-
</div>
|
|
1175
|
-
<br /><br />
|
|
1176
|
-
<div fxLayout="row" fxLayoutAlign="center center" fxLayoutGap="5px">
|
|
1177
|
-
<button mat-flat-button color="primary" (click)="ok()">Ok</button
|
|
1178
|
-
>
|
|
1179
|
-
<button
|
|
1180
|
-
mat-flat-button
|
|
1181
|
-
style="background-color: #F5F5F5"
|
|
1182
|
-
(click)="dialogRef.close()"
|
|
1183
|
-
>
|
|
1184
|
-
Annulla
|
|
1185
|
-
</button>
|
|
1186
|
-
</div>
|
|
1187
|
-
</div>
|
|
1188
|
-
`,
|
|
1189
|
-
styles: [`
|
|
1190
|
-
.selector {
|
|
1191
|
-
cursor: hand;
|
|
1192
|
-
}
|
|
1193
|
-
`]
|
|
1194
|
-
}),
|
|
1195
|
-
__param(3, Inject(MAT_DIALOG_DATA)),
|
|
1196
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
1197
|
-
QueryService,
|
|
1198
|
-
ToastrService, Object])
|
|
1199
|
-
], FHPickListComponent);
|
|
1200
|
-
|
|
1201
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1202
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1203
|
-
useExisting: forwardRef(() => FHPickFieldComponent),
|
|
1204
|
-
multi: true,
|
|
1205
|
-
};
|
|
1206
|
-
let FHPickFieldComponent = class FHPickFieldComponent {
|
|
1207
|
-
constructor(dataservice, dialog) {
|
|
1208
|
-
this.dataservice = dataservice;
|
|
1209
|
-
this.dialog = dialog;
|
|
1210
|
-
this.label = '';
|
|
1211
|
-
this.required = false;
|
|
1212
|
-
this.enabled = true;
|
|
1213
|
-
this.hidden = false;
|
|
1214
|
-
this.sep = ',';
|
|
1215
|
-
this.value_list = new Array();
|
|
1216
|
-
this.single_sel = false;
|
|
1217
|
-
this.vis_buttons = true;
|
|
1218
|
-
this.limit_size = false;
|
|
1219
|
-
this.value_sel = new Array();
|
|
1220
|
-
this.change = new EventEmitter();
|
|
1221
|
-
this.t_value = "";
|
|
1222
|
-
this.i_value = "";
|
|
1223
|
-
this.selectedUser = [];
|
|
1224
|
-
this.onChange = (_) => { };
|
|
1225
|
-
this.onTouched = () => { };
|
|
1226
|
-
}
|
|
1227
|
-
ngAfterViewInit() {
|
|
1228
|
-
setTimeout(() => {
|
|
1229
|
-
if (this.required)
|
|
1230
|
-
this.label = this.label + " *";
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
set_by_value(v) {
|
|
1234
|
-
if (v == null)
|
|
1235
|
-
this.clear();
|
|
1236
|
-
if (v == '')
|
|
1237
|
-
this.clear();
|
|
1238
|
-
let vx = v.split(this.sep);
|
|
1239
|
-
this.t_value = '';
|
|
1240
|
-
this.i_value = '';
|
|
1241
|
-
for (let ix = 0; ix < vx.length; ix++) {
|
|
1242
|
-
for (let index = 0; index < this.value_list.length; index++) {
|
|
1243
|
-
if (vx[ix] == this.value_list[index].valore) {
|
|
1244
|
-
if (this.t_value != '')
|
|
1245
|
-
this.t_value += this.sep;
|
|
1246
|
-
this.t_value += this.value_list[index].descrizione_valore;
|
|
1247
|
-
if (this.i_value != '')
|
|
1248
|
-
this.i_value += this.sep;
|
|
1249
|
-
this.i_value += this.value_list[index].descrizione_valore;
|
|
1250
|
-
break;
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
writeValue(value) {
|
|
1256
|
-
if (value == null) {
|
|
1257
|
-
this.clear();
|
|
1258
|
-
return;
|
|
1259
|
-
}
|
|
1260
|
-
if (value == '') {
|
|
1261
|
-
this.clear();
|
|
1262
|
-
return;
|
|
1263
|
-
}
|
|
1264
|
-
this.set_by_value(value);
|
|
1265
|
-
}
|
|
1266
|
-
open_pick() {
|
|
1267
|
-
if (!this.enabled)
|
|
1268
|
-
return;
|
|
1269
|
-
let dialogRef = this.dialog.open(FHPickListComponent, {
|
|
1270
|
-
disableClose: true,
|
|
1271
|
-
width: "700px",
|
|
1272
|
-
height: "550px", data: {
|
|
1273
|
-
value_list: this.value_list,
|
|
1274
|
-
single_sel: this.single_sel,
|
|
1275
|
-
vis_buttons: this.vis_buttons,
|
|
1276
|
-
limit_size: this.limit_size,
|
|
1277
|
-
value_sel: this.value_sel
|
|
1278
|
-
}
|
|
1279
|
-
});
|
|
1280
|
-
dialogRef.afterClosed().subscribe((result) => {
|
|
1281
|
-
if (result != null) {
|
|
1282
|
-
this.set_by_value(result.map((v) => { return v.valore; }).join(this.sep));
|
|
1283
|
-
this.change.emit(result);
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
clear() {
|
|
1288
|
-
this.t_value = '';
|
|
1289
|
-
this.i_value = '';
|
|
1290
|
-
this.onChange('');
|
|
1291
|
-
}
|
|
1292
|
-
registerOnChange(fn) {
|
|
1293
|
-
this.onChange = fn;
|
|
1294
|
-
}
|
|
1295
|
-
registerOnTouched(fn) {
|
|
1296
|
-
this.onTouched = fn;
|
|
1297
|
-
}
|
|
1298
|
-
};
|
|
1299
|
-
FHPickFieldComponent.ctorParameters = () => [
|
|
1300
|
-
{ type: QueryService },
|
|
1301
|
-
{ type: MatDialog }
|
|
1302
|
-
];
|
|
1224
|
+
], FHComboboxComponent.prototype, "values", void 0);
|
|
1303
1225
|
__decorate([
|
|
1304
1226
|
Input(),
|
|
1305
|
-
__metadata("design:type",
|
|
1306
|
-
],
|
|
1227
|
+
__metadata("design:type", Boolean)
|
|
1228
|
+
], FHComboboxComponent.prototype, "hidden", void 0);
|
|
1307
1229
|
__decorate([
|
|
1308
1230
|
Input(),
|
|
1309
|
-
__metadata("design:type",
|
|
1310
|
-
],
|
|
1231
|
+
__metadata("design:type", String)
|
|
1232
|
+
], FHComboboxComponent.prototype, "label", void 0);
|
|
1311
1233
|
__decorate([
|
|
1312
1234
|
Input(),
|
|
1313
1235
|
__metadata("design:type", Boolean)
|
|
1314
|
-
],
|
|
1236
|
+
], FHComboboxComponent.prototype, "enabled", void 0);
|
|
1315
1237
|
__decorate([
|
|
1316
1238
|
Input(),
|
|
1317
1239
|
__metadata("design:type", Boolean)
|
|
1318
|
-
],
|
|
1240
|
+
], FHComboboxComponent.prototype, "required", void 0);
|
|
1319
1241
|
__decorate([
|
|
1320
1242
|
Input(),
|
|
1321
1243
|
__metadata("design:type", String)
|
|
1322
|
-
],
|
|
1323
|
-
__decorate([
|
|
1324
|
-
Input(),
|
|
1325
|
-
__metadata("design:type", Array)
|
|
1326
|
-
], FHPickFieldComponent.prototype, "value_list", void 0);
|
|
1244
|
+
], FHComboboxComponent.prototype, "sel_label", void 0);
|
|
1327
1245
|
__decorate([
|
|
1328
|
-
|
|
1329
|
-
__metadata("design:type",
|
|
1330
|
-
],
|
|
1246
|
+
ViewChild("cmb"),
|
|
1247
|
+
__metadata("design:type", ElementRef)
|
|
1248
|
+
], FHComboboxComponent.prototype, "smtr", void 0);
|
|
1331
1249
|
__decorate([
|
|
1332
|
-
|
|
1333
|
-
__metadata("design:type",
|
|
1334
|
-
],
|
|
1335
|
-
__decorate([
|
|
1336
|
-
Input(),
|
|
1337
|
-
__metadata("design:type", Boolean)
|
|
1338
|
-
], FHPickFieldComponent.prototype, "limit_size", void 0);
|
|
1250
|
+
Output(),
|
|
1251
|
+
__metadata("design:type", EventEmitter)
|
|
1252
|
+
], FHComboboxComponent.prototype, "fillend", void 0);
|
|
1339
1253
|
__decorate([
|
|
1340
|
-
|
|
1341
|
-
__metadata("design:type",
|
|
1342
|
-
],
|
|
1254
|
+
Output(),
|
|
1255
|
+
__metadata("design:type", EventEmitter)
|
|
1256
|
+
], FHComboboxComponent.prototype, "selchange", void 0);
|
|
1343
1257
|
__decorate([
|
|
1344
1258
|
Output(),
|
|
1345
1259
|
__metadata("design:type", EventEmitter)
|
|
1346
|
-
],
|
|
1347
|
-
|
|
1260
|
+
], FHComboboxComponent.prototype, "initend", void 0);
|
|
1261
|
+
__decorate([
|
|
1262
|
+
Input(),
|
|
1263
|
+
__metadata("design:type", String)
|
|
1264
|
+
], FHComboboxComponent.prototype, "valDef", void 0);
|
|
1265
|
+
__decorate([
|
|
1266
|
+
Input(),
|
|
1267
|
+
__metadata("design:type", String)
|
|
1268
|
+
], FHComboboxComponent.prototype, "db_type", void 0);
|
|
1269
|
+
FHComboboxComponent = __decorate([
|
|
1348
1270
|
Component({
|
|
1349
|
-
selector: "
|
|
1271
|
+
selector: "FHComboBox",
|
|
1350
1272
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
1351
|
-
template: `
|
|
1352
|
-
<
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
>
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
<input
|
|
1384
|
-
type="text"
|
|
1385
|
-
#el1
|
|
1386
|
-
matInput
|
|
1387
|
-
[disabled]="true"
|
|
1388
|
-
[(ngModel)]="t_value"
|
|
1389
|
-
/>
|
|
1390
|
-
</mat-form-field>
|
|
1273
|
+
template: `
|
|
1274
|
+
<mat-form-field
|
|
1275
|
+
[hidden]="!enabled || hidden"
|
|
1276
|
+
appearance="outline"
|
|
1277
|
+
floatLabel="always"
|
|
1278
|
+
><mat-label>{{ label }}</mat-label>
|
|
1279
|
+
<mat-select
|
|
1280
|
+
#cmb
|
|
1281
|
+
[(ngModel)]="selval"
|
|
1282
|
+
(selectionChange)="sc()"
|
|
1283
|
+
[required]="required"
|
|
1284
|
+
>
|
|
1285
|
+
<mat-option value="-1">{{ sel_label }}</mat-option>
|
|
1286
|
+
<mat-option value="{{ app.valore }}" *ngFor="let app of myData">{{
|
|
1287
|
+
app.descrizione_valore
|
|
1288
|
+
}}</mat-option>
|
|
1289
|
+
</mat-select>
|
|
1290
|
+
</mat-form-field>
|
|
1291
|
+
|
|
1292
|
+
<mat-form-field
|
|
1293
|
+
[hidden]="enabled || hidden"
|
|
1294
|
+
appearance="outline"
|
|
1295
|
+
floatLabel="always"
|
|
1296
|
+
><mat-label>{{ label }}</mat-label>
|
|
1297
|
+
<input
|
|
1298
|
+
type="text"
|
|
1299
|
+
#el1
|
|
1300
|
+
matInput
|
|
1301
|
+
[disabled]="true"
|
|
1302
|
+
[(ngModel)]="dis_value"
|
|
1303
|
+
/>
|
|
1304
|
+
</mat-form-field>
|
|
1391
1305
|
`,
|
|
1392
|
-
styles: [
|
|
1393
|
-
.clickable-field {
|
|
1394
|
-
border: 1px solid #000000;
|
|
1395
|
-
color: #000000;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
.clickable-field:focus {
|
|
1399
|
-
outline: none;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
:host ::ng-deep .mat-input-element {
|
|
1403
|
-
cursor: pointer !important;
|
|
1404
|
-
}
|
|
1405
|
-
`]
|
|
1306
|
+
styles: [``]
|
|
1406
1307
|
}),
|
|
1407
|
-
__metadata("design:paramtypes", [QueryService,
|
|
1408
|
-
]
|
|
1308
|
+
__metadata("design:paramtypes", [QueryService,
|
|
1309
|
+
OdbcService])
|
|
1310
|
+
], FHComboboxComponent);
|
|
1409
1311
|
|
|
1410
|
-
let
|
|
1411
|
-
constructor(
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1312
|
+
let FHListComponent = class FHListComponent {
|
|
1313
|
+
constructor(_dataService) {
|
|
1314
|
+
this._dataService = _dataService;
|
|
1315
|
+
this.init_fill = true;
|
|
1316
|
+
this.sql = "";
|
|
1317
|
+
this.types = [];
|
|
1318
|
+
this.values = [];
|
|
1319
|
+
this.label = "";
|
|
1320
|
+
this.enabled = true;
|
|
1321
|
+
this.single_sel = false;
|
|
1322
|
+
this.separator = ",";
|
|
1323
|
+
this.fillend = new EventEmitter();
|
|
1324
|
+
this.selchange = new EventEmitter();
|
|
1325
|
+
this.initend = new EventEmitter();
|
|
1326
|
+
this.myData = new Array();
|
|
1327
|
+
this.selval = "-1";
|
|
1328
|
+
this.errorMsg = "";
|
|
1329
|
+
this.valDef = "-1";
|
|
1418
1330
|
}
|
|
1419
|
-
|
|
1420
|
-
|
|
1331
|
+
change_v(u, o) {
|
|
1332
|
+
u.checked = !u.checked;
|
|
1333
|
+
this.upd_f(u, o);
|
|
1421
1334
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
]
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
(
|
|
1436
|
-
/>
|
|
1437
|
-
</div>
|
|
1438
|
-
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
1439
|
-
<h2 mat-dialog-title>DETTAGLIO MODIFICA - {{ title }}</h2>
|
|
1440
|
-
|
|
1441
|
-
<mat-dialog-content style="min-width:700px">
|
|
1442
|
-
<table style="width: 90%" class="fh_table">
|
|
1443
|
-
<thead>
|
|
1444
|
-
<tr>
|
|
1445
|
-
<th style="width:20%;">Operazione</th>
|
|
1446
|
-
<th style="width:20%;">Campo</th>
|
|
1447
|
-
<th style="width:30%;">Old Value</th>
|
|
1448
|
-
<th style="width:30%;">New Value</th>
|
|
1449
|
-
</tr>
|
|
1450
|
-
</thead>
|
|
1451
|
-
<tbody>
|
|
1452
|
-
<tr
|
|
1453
|
-
*ngFor="let u of modifiche; let odd = odd; let even = even"
|
|
1454
|
-
[ngClass]="{ odd: odd, even: even }"
|
|
1455
|
-
>
|
|
1456
|
-
<td>{{ u.op }}</td>
|
|
1457
|
-
<td>{{ u.path }}</td>
|
|
1458
|
-
<td>{{ u.oldVal }}</td>
|
|
1459
|
-
<td>{{ u.val }}</td>
|
|
1460
|
-
</tr>
|
|
1461
|
-
</tbody>
|
|
1462
|
-
</table>
|
|
1463
|
-
</mat-dialog-content>
|
|
1464
|
-
`
|
|
1465
|
-
}),
|
|
1466
|
-
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
1467
|
-
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
1468
|
-
], win_show_log_dett);
|
|
1469
|
-
|
|
1470
|
-
class FHConfirmValues {
|
|
1471
|
-
constructor() {
|
|
1472
|
-
this.title_dialog = "";
|
|
1473
|
-
this.b_commento = false;
|
|
1474
|
-
this.msg_dialog = "";
|
|
1475
|
-
this.confirm_mgs = "CONFERMA";
|
|
1476
|
-
this.annulla_mgs = "ANNULLA";
|
|
1477
|
-
this.commento_mgs = "Commento";
|
|
1478
|
-
this.insert_comment_msg = "Inserire un commento";
|
|
1335
|
+
upd_f(u, b) {
|
|
1336
|
+
if (this.single_sel)
|
|
1337
|
+
u.checked = true;
|
|
1338
|
+
/*console.log(b.descrizione_valore +" "+b.checked);
|
|
1339
|
+
for(let i:number=0;i<this.myData.length;i++)
|
|
1340
|
+
if(this.myData[i].descrizione_valore==u.descrizione_valore){
|
|
1341
|
+
this.myData[i].checked=b.checked
|
|
1342
|
+
|
|
1343
|
+
break;
|
|
1344
|
+
}*/
|
|
1345
|
+
let o = new Object();
|
|
1346
|
+
o.u = u;
|
|
1347
|
+
o.b = b;
|
|
1348
|
+
this.selchange.emit(o);
|
|
1479
1349
|
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.title = "";
|
|
1492
|
-
this.msg = "";
|
|
1493
|
-
this.commento = "";
|
|
1494
|
-
this.b_commento = false;
|
|
1495
|
-
this.confirm_mgs = "CONFERMA";
|
|
1496
|
-
this.annulla_mgs = "ANNULLA";
|
|
1497
|
-
this.commento_mgs = "Commento";
|
|
1498
|
-
this.insert_comment_msg = "Inserire un commento";
|
|
1499
|
-
if (conf == null) {
|
|
1500
|
-
this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
|
|
1501
|
-
this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
|
|
1502
|
-
return;
|
|
1503
|
-
}
|
|
1504
|
-
this.title = conf.title_dialog;
|
|
1505
|
-
this.msg = conf.msg_dialog;
|
|
1506
|
-
if (conf.b_commento != null)
|
|
1507
|
-
this.b_commento = conf.b_commento;
|
|
1508
|
-
if (conf.confirm_mgs != null)
|
|
1509
|
-
this.confirm_mgs = conf.confirm_mgs;
|
|
1510
|
-
if (conf.annulla_mgs != null)
|
|
1511
|
-
this.annulla_mgs = conf.annulla_mgs;
|
|
1512
|
-
if (conf.commento_mgs != null)
|
|
1513
|
-
this.commento_mgs = conf.commento_mgs;
|
|
1514
|
-
if (conf.insert_comment_msg != null)
|
|
1515
|
-
this.insert_comment_msg = conf.insert_comment_msg;
|
|
1516
|
-
}
|
|
1517
|
-
ok() {
|
|
1518
|
-
if (this.b_commento && this.commento == "") {
|
|
1519
|
-
this.toast.error(this.insert_comment_msg);
|
|
1520
|
-
return;
|
|
1521
|
-
}
|
|
1522
|
-
this.dialogRef.close(true);
|
|
1523
|
-
}
|
|
1524
|
-
close() {
|
|
1525
|
-
this.dialogRef.close(null);
|
|
1526
|
-
}
|
|
1527
|
-
setTitle(texto) {
|
|
1528
|
-
this.title = texto;
|
|
1529
|
-
}
|
|
1530
|
-
setMsg(texto) {
|
|
1531
|
-
this.msg = texto;
|
|
1532
|
-
}
|
|
1533
|
-
ngAfterViewInit() { }
|
|
1534
|
-
};
|
|
1535
|
-
FHConfirmComponent.ctorParameters = () => [
|
|
1536
|
-
{ type: MatDialogRef },
|
|
1537
|
-
{ type: AppService },
|
|
1538
|
-
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
1539
|
-
{ type: ToastrService }
|
|
1540
|
-
];
|
|
1541
|
-
FHConfirmComponent = __decorate([
|
|
1542
|
-
Component({
|
|
1543
|
-
template: `
|
|
1544
|
-
<h1 mat-dialog-title>{{ title }}</h1>
|
|
1545
|
-
<div mat-dialog-content>
|
|
1546
|
-
<div fxLayout="column" fxLayoutGap="15px">
|
|
1547
|
-
{{ msg }}
|
|
1548
|
-
<div style="width:400px" [hidden]="!b_commento"><br /></div>
|
|
1549
|
-
<div style="width:400px" [hidden]="!b_commento">
|
|
1550
|
-
<FHTextArea
|
|
1551
|
-
label="{{ commento_mgs }}"
|
|
1552
|
-
required
|
|
1553
|
-
[(ngModel)]="commento"
|
|
1554
|
-
></FHTextArea>
|
|
1555
|
-
</div>
|
|
1556
|
-
</div>
|
|
1557
|
-
</div>
|
|
1558
|
-
|
|
1559
|
-
<div mat-dialog-actions>
|
|
1560
|
-
<button mat-raised-button (click)="ok()" color="primary">
|
|
1561
|
-
{{ confirm_mgs }}
|
|
1562
|
-
</button>
|
|
1563
|
-
<button mat-raised-button (click)="dialogRef.close(false)" color="warn">
|
|
1564
|
-
{{ annulla_mgs }}
|
|
1565
|
-
</button>
|
|
1566
|
-
</div>
|
|
1567
|
-
`,
|
|
1568
|
-
styles: [``]
|
|
1569
|
-
}),
|
|
1570
|
-
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
1571
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
1572
|
-
AppService,
|
|
1573
|
-
FHConfirmValues,
|
|
1574
|
-
ToastrService])
|
|
1575
|
-
], FHConfirmComponent);
|
|
1576
|
-
|
|
1577
|
-
let FHListComponent = class FHListComponent {
|
|
1578
|
-
constructor(_dataService) {
|
|
1579
|
-
this._dataService = _dataService;
|
|
1580
|
-
this.init_fill = true;
|
|
1581
|
-
this.sql = "";
|
|
1582
|
-
this.types = [];
|
|
1583
|
-
this.values = [];
|
|
1584
|
-
this.label = "";
|
|
1585
|
-
this.enabled = true;
|
|
1586
|
-
this.single_sel = false;
|
|
1587
|
-
this.separator = ",";
|
|
1588
|
-
this.fillend = new EventEmitter();
|
|
1589
|
-
this.selchange = new EventEmitter();
|
|
1590
|
-
this.initend = new EventEmitter();
|
|
1591
|
-
this.myData = new Array();
|
|
1592
|
-
this.selval = "-1";
|
|
1593
|
-
this.errorMsg = "";
|
|
1594
|
-
this.valDef = "-1";
|
|
1595
|
-
}
|
|
1596
|
-
change_v(u, o) {
|
|
1597
|
-
u.checked = !u.checked;
|
|
1598
|
-
this.upd_f(u, o);
|
|
1599
|
-
}
|
|
1600
|
-
upd_f(u, b) {
|
|
1601
|
-
if (this.single_sel)
|
|
1602
|
-
u.checked = true;
|
|
1603
|
-
/*console.log(b.descrizione_valore +" "+b.checked);
|
|
1604
|
-
for(let i:number=0;i<this.myData.length;i++)
|
|
1605
|
-
if(this.myData[i].descrizione_valore==u.descrizione_valore){
|
|
1606
|
-
this.myData[i].checked=b.checked
|
|
1607
|
-
|
|
1608
|
-
break;
|
|
1609
|
-
}*/
|
|
1610
|
-
let o = new Object();
|
|
1611
|
-
o.u = u;
|
|
1612
|
-
o.b = b;
|
|
1613
|
-
this.selchange.emit(o);
|
|
1614
|
-
}
|
|
1615
|
-
resetValue() {
|
|
1616
|
-
for (let i = 0; i < this.myData.length; i++)
|
|
1617
|
-
this.myData[i].checked = false;
|
|
1618
|
-
}
|
|
1619
|
-
reset() {
|
|
1620
|
-
this.myData = new Array();
|
|
1621
|
-
this.resetValue();
|
|
1622
|
-
}
|
|
1623
|
-
fillCombo() {
|
|
1624
|
-
//(this.init_fill);
|
|
1625
|
-
if (!this.init_fill) {
|
|
1350
|
+
resetValue() {
|
|
1351
|
+
for (let i = 0; i < this.myData.length; i++)
|
|
1352
|
+
this.myData[i].checked = false;
|
|
1353
|
+
}
|
|
1354
|
+
reset() {
|
|
1355
|
+
this.myData = new Array();
|
|
1356
|
+
this.resetValue();
|
|
1357
|
+
}
|
|
1358
|
+
fillCombo() {
|
|
1359
|
+
//(this.init_fill);
|
|
1360
|
+
if (!this.init_fill) {
|
|
1626
1361
|
return;
|
|
1627
1362
|
}
|
|
1628
1363
|
//console.log("fillcombolist");
|
|
@@ -1937,354 +1672,1962 @@ WinWait = __decorate([
|
|
|
1937
1672
|
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
1938
1673
|
], WinWait);
|
|
1939
1674
|
|
|
1940
|
-
|
|
1941
|
-
constructor(
|
|
1942
|
-
this.
|
|
1675
|
+
class FHConfirmValues {
|
|
1676
|
+
constructor() {
|
|
1677
|
+
this.title_dialog = "";
|
|
1678
|
+
this.b_commento = false;
|
|
1679
|
+
this.msg_dialog = "";
|
|
1680
|
+
this.confirm_mgs = "CONFERMA";
|
|
1681
|
+
this.annulla_mgs = "ANNULLA";
|
|
1682
|
+
this.commento_mgs = "Commento";
|
|
1683
|
+
this.insert_comment_msg = "Inserire un commento";
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* A Sample of how simple it is to create a new window, with its own injects.
|
|
1689
|
+
*/
|
|
1690
|
+
let FHConfirmComponent = class FHConfirmComponent {
|
|
1691
|
+
constructor(dialogRef, app_s, conf, toast) {
|
|
1692
|
+
this.dialogRef = dialogRef;
|
|
1943
1693
|
this.app_s = app_s;
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
1694
|
+
this.conf = conf;
|
|
1695
|
+
this.toast = toast;
|
|
1696
|
+
this.title = "";
|
|
1697
|
+
this.msg = "";
|
|
1698
|
+
this.commento = "";
|
|
1699
|
+
this.b_commento = false;
|
|
1700
|
+
this.confirm_mgs = "CONFERMA";
|
|
1701
|
+
this.annulla_mgs = "ANNULLA";
|
|
1702
|
+
this.commento_mgs = "Commento";
|
|
1703
|
+
this.insert_comment_msg = "Inserire un commento";
|
|
1704
|
+
if (conf == null) {
|
|
1705
|
+
this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
|
|
1706
|
+
this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
|
|
1707
|
+
return;
|
|
1708
|
+
}
|
|
1709
|
+
this.title = conf.title_dialog;
|
|
1710
|
+
this.msg = conf.msg_dialog;
|
|
1711
|
+
if (conf.b_commento != null)
|
|
1712
|
+
this.b_commento = conf.b_commento;
|
|
1713
|
+
if (conf.confirm_mgs != null)
|
|
1714
|
+
this.confirm_mgs = conf.confirm_mgs;
|
|
1715
|
+
if (conf.annulla_mgs != null)
|
|
1716
|
+
this.annulla_mgs = conf.annulla_mgs;
|
|
1717
|
+
if (conf.commento_mgs != null)
|
|
1718
|
+
this.commento_mgs = conf.commento_mgs;
|
|
1719
|
+
if (conf.insert_comment_msg != null)
|
|
1720
|
+
this.insert_comment_msg = conf.insert_comment_msg;
|
|
1946
1721
|
}
|
|
1947
|
-
|
|
1948
|
-
this.
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
}
|
|
1952
|
-
this.
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
}
|
|
1963
|
-
if (err) {
|
|
1964
|
-
console.error(err);
|
|
1965
|
-
if (displayError) {
|
|
1966
|
-
this.toastr.error(err.message);
|
|
1967
|
-
}
|
|
1968
|
-
throw new Error(err);
|
|
1969
|
-
}
|
|
1970
|
-
return res || new QGResult();
|
|
1971
|
-
}), catchError((err) => {
|
|
1972
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
1973
|
-
// We'd also dig deeper into the error to get a better message
|
|
1974
|
-
let errMsg = err.message
|
|
1975
|
-
? err.message
|
|
1976
|
-
: err.status
|
|
1977
|
-
? `${err.status} - ${err.statusText}`
|
|
1978
|
-
: "Server error";
|
|
1979
|
-
console.error(errMsg); // log to console instead
|
|
1980
|
-
throw err;
|
|
1981
|
-
}));
|
|
1722
|
+
ok() {
|
|
1723
|
+
if (this.b_commento && this.commento == "") {
|
|
1724
|
+
this.toast.error(this.insert_comment_msg);
|
|
1725
|
+
return;
|
|
1726
|
+
}
|
|
1727
|
+
this.dialogRef.close(true);
|
|
1728
|
+
}
|
|
1729
|
+
close() {
|
|
1730
|
+
this.dialogRef.close(null);
|
|
1731
|
+
}
|
|
1732
|
+
setTitle(texto) {
|
|
1733
|
+
this.title = texto;
|
|
1734
|
+
}
|
|
1735
|
+
setMsg(texto) {
|
|
1736
|
+
this.msg = texto;
|
|
1982
1737
|
}
|
|
1738
|
+
ngAfterViewInit() { }
|
|
1983
1739
|
};
|
|
1984
|
-
|
|
1985
|
-
{ type:
|
|
1740
|
+
FHConfirmComponent.ctorParameters = () => [
|
|
1741
|
+
{ type: MatDialogRef },
|
|
1986
1742
|
{ type: AppService },
|
|
1743
|
+
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
1987
1744
|
{ type: ToastrService }
|
|
1988
1745
|
];
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
]
|
|
1746
|
+
FHConfirmComponent = __decorate([
|
|
1747
|
+
Component({
|
|
1748
|
+
template: `
|
|
1749
|
+
<h1 mat-dialog-title>{{ title }}</h1>
|
|
1750
|
+
<div mat-dialog-content>
|
|
1751
|
+
<div fxLayout="column" fxLayoutGap="15px">
|
|
1752
|
+
{{ msg }}
|
|
1753
|
+
<div style="width:400px" [hidden]="!b_commento"><br /></div>
|
|
1754
|
+
<div style="width:400px" [hidden]="!b_commento">
|
|
1755
|
+
<FHTextArea
|
|
1756
|
+
label="{{ commento_mgs }}"
|
|
1757
|
+
required
|
|
1758
|
+
[(ngModel)]="commento"
|
|
1759
|
+
></FHTextArea>
|
|
1760
|
+
</div>
|
|
1761
|
+
</div>
|
|
1762
|
+
</div>
|
|
1998
1763
|
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
1764
|
+
<div mat-dialog-actions>
|
|
1765
|
+
<button mat-raised-button (click)="ok()" color="primary">
|
|
1766
|
+
{{ confirm_mgs }}
|
|
1767
|
+
</button>
|
|
1768
|
+
<button mat-raised-button (click)="dialogRef.close(false)" color="warn">
|
|
1769
|
+
{{ annulla_mgs }}
|
|
1770
|
+
</button>
|
|
1771
|
+
</div>
|
|
1772
|
+
`,
|
|
1773
|
+
styles: [``]
|
|
1774
|
+
}),
|
|
1775
|
+
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
1776
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
1777
|
+
AppService,
|
|
1778
|
+
FHConfirmValues,
|
|
1779
|
+
ToastrService])
|
|
1780
|
+
], FHConfirmComponent);
|
|
1781
|
+
|
|
1782
|
+
let FHUploadS3Component = class FHUploadS3Component {
|
|
1783
|
+
constructor(_dataService, toastr, dialog, app_s, uti) {
|
|
2008
1784
|
this._dataService = _dataService;
|
|
2009
|
-
this.
|
|
2010
|
-
this.
|
|
2011
|
-
this.
|
|
2012
|
-
this.
|
|
2013
|
-
this.
|
|
2014
|
-
this.hidden = false;
|
|
2015
|
-
this.label = "";
|
|
1785
|
+
this.toastr = toastr;
|
|
1786
|
+
this.dialog = dialog;
|
|
1787
|
+
this.app_s = app_s;
|
|
1788
|
+
this.uti = uti;
|
|
1789
|
+
this.show_descri = true;
|
|
2016
1790
|
this.enabled = true;
|
|
2017
|
-
this.
|
|
2018
|
-
this.
|
|
2019
|
-
this.
|
|
2020
|
-
this.
|
|
2021
|
-
this.
|
|
2022
|
-
this.
|
|
2023
|
-
this.
|
|
2024
|
-
this.
|
|
2025
|
-
this.
|
|
2026
|
-
this.
|
|
2027
|
-
this.
|
|
2028
|
-
this.
|
|
2029
|
-
this.
|
|
2030
|
-
this.
|
|
1791
|
+
this.single = true;
|
|
1792
|
+
this.descri_obb = false;
|
|
1793
|
+
this.programma_da_eseguire = "";
|
|
1794
|
+
this.label_attendere = "ATTENDERE UPLOAD IN CORSO";
|
|
1795
|
+
this.fixed_label = " (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)";
|
|
1796
|
+
this.limit_string = "Il file di <size>MB supera il limite di 500MB";
|
|
1797
|
+
this.allegato_inserito = "ALLEGATO INSERITO";
|
|
1798
|
+
this.inserire_descrizione = "Descrizione Obbligatoria";
|
|
1799
|
+
this.lista_allegati = [];
|
|
1800
|
+
this.change = new EventEmitter();
|
|
1801
|
+
this.upload_ended = new EventEmitter();
|
|
1802
|
+
this.call_upload = new EventEmitter();
|
|
1803
|
+
this.multi_list = false;
|
|
1804
|
+
this.allow_delete = false;
|
|
1805
|
+
this.loading = false;
|
|
1806
|
+
this.App = "";
|
|
1807
|
+
this.K = "";
|
|
1808
|
+
this.label_b = "";
|
|
1809
|
+
this.descrizione = "";
|
|
1810
|
+
this.file_name = "";
|
|
1811
|
+
this.label = "";
|
|
1812
|
+
this.username = "";
|
|
1813
|
+
this.b_edit_loaded = false;
|
|
1814
|
+
this.tipo = "";
|
|
1815
|
+
this.b_ini = false;
|
|
1816
|
+
this.uploader = new FileUploader({
|
|
1817
|
+
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + '_new',
|
|
1818
|
+
maxFileSize: 500 * 1024 * 1024,
|
|
1819
|
+
});
|
|
1820
|
+
this.id = null;
|
|
1821
|
+
this.p_cod_doc = '';
|
|
1822
|
+
this.p_section = '';
|
|
1823
|
+
this.p_system_type = '';
|
|
1824
|
+
this.username = this.app_s.user;
|
|
1825
|
+
this.uploader.onBeforeUploadItem = (item) => {
|
|
1826
|
+
item.withCredentials = false;
|
|
1827
|
+
};
|
|
1828
|
+
console.log('uploader ', this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + '_new');
|
|
1829
|
+
this.uploader.onCompleteItem = (item, response, status, header) => {
|
|
1830
|
+
if (status === 200) {
|
|
1831
|
+
this.descrizione = "";
|
|
1832
|
+
this.toastr.info("INFO", this.allegato_inserito, {
|
|
1833
|
+
timeOut: 1000,
|
|
1834
|
+
progressBar: true,
|
|
1835
|
+
});
|
|
1836
|
+
this.ref_allegato();
|
|
1837
|
+
this.change.emit({
|
|
1838
|
+
item: item,
|
|
1839
|
+
response: response,
|
|
1840
|
+
status: status,
|
|
1841
|
+
header: header,
|
|
1842
|
+
});
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
2031
1845
|
}
|
|
2032
|
-
|
|
2033
|
-
this.
|
|
1846
|
+
call_up() {
|
|
1847
|
+
this.call_upload.emit({
|
|
1848
|
+
App: this.App,
|
|
1849
|
+
K: this.K,
|
|
1850
|
+
descrizione: this.descrizione,
|
|
1851
|
+
single: false,
|
|
1852
|
+
username: this.app_s.user,
|
|
1853
|
+
tipo: this.tipo,
|
|
1854
|
+
local_path: this.app_s.LOCAL_PATH,
|
|
1855
|
+
p1: this.programma_da_eseguire,
|
|
1856
|
+
});
|
|
2034
1857
|
}
|
|
2035
|
-
|
|
2036
|
-
this.
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
this.
|
|
1858
|
+
del_doc() {
|
|
1859
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
1860
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
|
|
1861
|
+
let dialogRef = this.dialog.open(FHConfirmComponent);
|
|
1862
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
1863
|
+
if (result) {
|
|
1864
|
+
let p = new QParam();
|
|
1865
|
+
p.sql = "DELETE_ALLEGATO";
|
|
1866
|
+
p.types = ["int", "string"];
|
|
1867
|
+
p.values = [this.id, this.app_s.user];
|
|
1868
|
+
let ok_op = false;
|
|
1869
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
1870
|
+
let ok_op = false;
|
|
1871
|
+
if (data != null)
|
|
1872
|
+
if (data.result_msg == "OK") {
|
|
1873
|
+
// this.arr_g = data.result_data;
|
|
1874
|
+
this.ref_allegato();
|
|
1875
|
+
this.toastr.info("INFO", "ALLEGATO ELIMINATO", {
|
|
1876
|
+
timeOut: 1000,
|
|
1877
|
+
progressBar: true,
|
|
1878
|
+
});
|
|
1879
|
+
ok_op = true;
|
|
1880
|
+
}
|
|
1881
|
+
}, (err) => { });
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1885
|
+
load_types() {
|
|
1886
|
+
if (this.cmb_tipo == null) {
|
|
1887
|
+
setTimeout(() => {
|
|
1888
|
+
this.load_types();
|
|
1889
|
+
}, 200);
|
|
1890
|
+
return;
|
|
2047
1891
|
}
|
|
2048
|
-
|
|
2049
|
-
|
|
1892
|
+
if (this.tipo == "") {
|
|
1893
|
+
setTimeout(() => {
|
|
1894
|
+
this.load_types();
|
|
1895
|
+
}, 200);
|
|
1896
|
+
return;
|
|
2050
1897
|
}
|
|
1898
|
+
console.log("this.cmb_tipo.sql ", this.cmb_tipo.sql);
|
|
1899
|
+
this.cmb_tipo.sql = this.tipo;
|
|
1900
|
+
this.cmb_tipo.fillCombo();
|
|
2051
1901
|
}
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
1902
|
+
ngAfterViewInit() {
|
|
1903
|
+
setTimeout(() => {
|
|
1904
|
+
let uo = {};
|
|
1905
|
+
uo.headers = [
|
|
1906
|
+
{
|
|
1907
|
+
name: "Authorization",
|
|
1908
|
+
value: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
1909
|
+
},
|
|
1910
|
+
];
|
|
1911
|
+
// console.log('ngAfterViewInit!!');
|
|
1912
|
+
this.uploader.setOptions(uo);
|
|
1913
|
+
this.uploader.onCompleteAll = () => {
|
|
1914
|
+
this.loading = false;
|
|
1915
|
+
this.upload_ended.emit();
|
|
1916
|
+
if (this.dialogRef != null)
|
|
1917
|
+
if (this.dialogRef.componentInstance != null) {
|
|
1918
|
+
this.dialogRef.componentInstance.update_progess(100);
|
|
1919
|
+
this.dialogRef = null;
|
|
1920
|
+
}
|
|
1921
|
+
};
|
|
1922
|
+
this.uploader.onErrorItem = (a, b, c, d) => {
|
|
1923
|
+
this.toastr.error(b);
|
|
1924
|
+
};
|
|
1925
|
+
this.uploader.onAfterAddingFile = (fileItem) => {
|
|
1926
|
+
this.ch(fileItem);
|
|
1927
|
+
};
|
|
1928
|
+
this.uploader.onProgressItem = (fileItem, progress) => {
|
|
1929
|
+
// console.log(fileItem);
|
|
1930
|
+
// console.log(progress);
|
|
1931
|
+
this.loading = true;
|
|
1932
|
+
if (this.dialogRef != null)
|
|
1933
|
+
if (this.dialogRef.componentInstance != null)
|
|
1934
|
+
this.dialogRef.componentInstance.update_progess(progress);
|
|
1935
|
+
};
|
|
1936
|
+
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
1937
|
+
switch (filter.name) {
|
|
1938
|
+
case "fileSize":
|
|
1939
|
+
let ar = Math.round(item.size / 1024 / 1024);
|
|
1940
|
+
this.toastr.error(this.limit_string.split("<size>").join("" + ar));
|
|
1941
|
+
break;
|
|
1942
|
+
default:
|
|
1943
|
+
this.toastr.error("Errore: " + filter.name);
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
});
|
|
2059
1947
|
}
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
1948
|
+
download_all() {
|
|
1949
|
+
window.open(this.app_s.COMPANY_SITE_ROOT +
|
|
1950
|
+
"/uploads/" +
|
|
1951
|
+
this.App +
|
|
1952
|
+
"/" +
|
|
1953
|
+
this.K +
|
|
1954
|
+
"/" +
|
|
1955
|
+
this.file_name);
|
|
2066
1956
|
}
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
if (this.sql == null)
|
|
2071
|
-
this.sql = "";
|
|
2072
|
-
if (this.sql.indexOf("|") != -1 && this.sql.indexOf("$") != -1) {
|
|
2073
|
-
this.set_options(this.sql);
|
|
1957
|
+
ch(fileItem) {
|
|
1958
|
+
if (this.descri_obb && this.descrizione == "") {
|
|
1959
|
+
this.toastr.error(this.inserire_descrizione);
|
|
2074
1960
|
return;
|
|
2075
1961
|
}
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
1962
|
+
/*
|
|
1963
|
+
for (let i = 0; i < this.lista_allegati.length; i++) {
|
|
1964
|
+
if (
|
|
1965
|
+
this.lista_allegati[i].file_name_orig.toLowerCase() ==
|
|
1966
|
+
fileItem.file.name.toLowerCase()
|
|
1967
|
+
) {
|
|
1968
|
+
this.toastr.error("File già presente (cancellarlo per aggiornarlo)");
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
}*/
|
|
1972
|
+
this.uploader.onBuildItemForm = (item, form) => {
|
|
1973
|
+
form.append("App", this.App);
|
|
1974
|
+
form.append("K", this.K);
|
|
1975
|
+
form.append("descrizione", this.descrizione);
|
|
1976
|
+
form.append("single", this.single);
|
|
1977
|
+
form.append("username", this.username);
|
|
1978
|
+
form.append("system_type", this.p_system_type);
|
|
1979
|
+
form.append('uiid', this.uti.newGuid());
|
|
1980
|
+
form.append('doc_number', this.p_cod_doc);
|
|
1981
|
+
form.append('repo_uiid', 'S3');
|
|
1982
|
+
form.append('parent_doc_type', this.App);
|
|
1983
|
+
form.append('parent_doc_rif', this.p_cod_doc);
|
|
1984
|
+
form.append('parent_doc_uiid', this.K);
|
|
1985
|
+
form.append('parent_doc_section', this.p_section);
|
|
1986
|
+
form.append('version', 1);
|
|
1987
|
+
form.append('status', 'PUBLISHED');
|
|
1988
|
+
form.append('p_owner', this.app_s.user);
|
|
1989
|
+
// if (this.multi_list)
|
|
1990
|
+
// form.append("tipo", this.cmb_tipo.getDescri().split("-1").join(""));
|
|
1991
|
+
// else form.append("tipo", this.tipo);
|
|
1992
|
+
form.append("tipo", '');
|
|
1993
|
+
form.append("local_path", this.app_s.LOCAL_PATH);
|
|
1994
|
+
if (this.programma_da_eseguire != "")
|
|
1995
|
+
form.append("p1", this.programma_da_eseguire);
|
|
1996
|
+
};
|
|
1997
|
+
if (this.dialogRef == null) {
|
|
1998
|
+
this.dialogRef = this.dialog.open(WinWait, { disableClose: true });
|
|
1999
|
+
setTimeout(() => {
|
|
2000
|
+
this.dialogRef.componentInstance.label = this.label_attendere;
|
|
2001
|
+
});
|
|
2002
|
+
this.dialogRef.afterClosed().subscribe((result) => {
|
|
2003
|
+
if (result != "") {
|
|
2091
2004
|
}
|
|
2092
|
-
}, (err) => {
|
|
2093
|
-
this.errorMsg =
|
|
2094
|
-
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
2095
|
-
this.sql +
|
|
2096
|
-
"]";
|
|
2097
2005
|
});
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2006
|
+
}
|
|
2007
|
+
this.uploader.uploadAll();
|
|
2008
|
+
}
|
|
2009
|
+
init(p_app, p_k, p_cod_doc, p_section, p_label, p_system_type, programma_da_eseguire = "", allow_delete = false) {
|
|
2010
|
+
this.App = p_app;
|
|
2011
|
+
this.K = p_k;
|
|
2012
|
+
this.label = p_label;
|
|
2013
|
+
this.p_cod_doc = p_cod_doc;
|
|
2014
|
+
this.p_section = p_section;
|
|
2015
|
+
this.p_system_type = p_system_type;
|
|
2016
|
+
this.b_ini = true;
|
|
2017
|
+
this.b_edit_loaded = false;
|
|
2018
|
+
this.descrizione = "";
|
|
2019
|
+
this.programma_da_eseguire = programma_da_eseguire;
|
|
2020
|
+
this.allow_delete = allow_delete;
|
|
2021
|
+
this.ref_allegato();
|
|
2022
|
+
// console.log('init! ',this.tipo)
|
|
2023
|
+
if (this.tipo.indexOf("SELECT_") > -1) {
|
|
2024
|
+
this.multi_list = true;
|
|
2025
|
+
this.load_types();
|
|
2026
|
+
//console.log('fillCombo');
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
ref_allegato() {
|
|
2030
|
+
// console.log(' ref_allegato')
|
|
2031
|
+
this.id = null;
|
|
2032
|
+
this.descrizione = "";
|
|
2033
|
+
this.file_name = "";
|
|
2034
|
+
this.label_b = "";
|
|
2035
|
+
this.cmb_tipo.resetValue();
|
|
2036
|
+
if (!this.single)
|
|
2037
|
+
return;
|
|
2038
|
+
if (this.App == null)
|
|
2039
|
+
return;
|
|
2040
|
+
if (this.App == "")
|
|
2041
|
+
return;
|
|
2042
|
+
let p = new QParam();
|
|
2043
|
+
p.sql = "SELECT_ALLEGATO_INFO_NEW";
|
|
2044
|
+
p.types = ["string", "string"];
|
|
2045
|
+
p.values = [this.App, this.K];
|
|
2046
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
2047
|
+
if (data != null)
|
|
2048
|
+
if (data.result_msg == "OK") {
|
|
2049
|
+
let a = data.result_data;
|
|
2050
|
+
if (a.length > 0) {
|
|
2051
|
+
this.id = a[0].id;
|
|
2052
|
+
this.descrizione = a[0].descrizione;
|
|
2053
|
+
this.file_name = a[0].file_name_orig;
|
|
2054
|
+
this.label_b = "" + a[0].file_name_orig + " - " + a[0].dim + "";
|
|
2055
|
+
this.b_edit_loaded = true;
|
|
2112
2056
|
}
|
|
2113
|
-
if (!ok_op) {
|
|
2114
2057
|
}
|
|
2115
|
-
|
|
2116
|
-
this.errorMsg =
|
|
2117
|
-
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
2118
|
-
this.sql +
|
|
2119
|
-
"]";
|
|
2120
|
-
});
|
|
2058
|
+
});
|
|
2121
2059
|
}
|
|
2122
|
-
|
|
2123
|
-
|
|
2060
|
+
};
|
|
2061
|
+
FHUploadS3Component.ctorParameters = () => [
|
|
2062
|
+
{ type: QueryService },
|
|
2063
|
+
{ type: ToastrService },
|
|
2064
|
+
{ type: MatDialog },
|
|
2065
|
+
{ type: AppService },
|
|
2066
|
+
{ type: UtilityService }
|
|
2067
|
+
];
|
|
2068
|
+
__decorate([
|
|
2069
|
+
Input(),
|
|
2070
|
+
__metadata("design:type", Boolean)
|
|
2071
|
+
], FHUploadS3Component.prototype, "show_descri", void 0);
|
|
2072
|
+
__decorate([
|
|
2073
|
+
Input(),
|
|
2074
|
+
__metadata("design:type", Boolean)
|
|
2075
|
+
], FHUploadS3Component.prototype, "enabled", void 0);
|
|
2076
|
+
__decorate([
|
|
2077
|
+
Input(),
|
|
2078
|
+
__metadata("design:type", Boolean)
|
|
2079
|
+
], FHUploadS3Component.prototype, "single", void 0);
|
|
2080
|
+
__decorate([
|
|
2081
|
+
Input(),
|
|
2082
|
+
__metadata("design:type", Boolean)
|
|
2083
|
+
], FHUploadS3Component.prototype, "descri_obb", void 0);
|
|
2084
|
+
__decorate([
|
|
2085
|
+
Input(),
|
|
2086
|
+
__metadata("design:type", String)
|
|
2087
|
+
], FHUploadS3Component.prototype, "programma_da_eseguire", void 0);
|
|
2088
|
+
__decorate([
|
|
2089
|
+
Input(),
|
|
2090
|
+
__metadata("design:type", String)
|
|
2091
|
+
], FHUploadS3Component.prototype, "label_attendere", void 0);
|
|
2092
|
+
__decorate([
|
|
2093
|
+
Input(),
|
|
2094
|
+
__metadata("design:type", String)
|
|
2095
|
+
], FHUploadS3Component.prototype, "fixed_label", void 0);
|
|
2096
|
+
__decorate([
|
|
2097
|
+
Input(),
|
|
2098
|
+
__metadata("design:type", String)
|
|
2099
|
+
], FHUploadS3Component.prototype, "limit_string", void 0);
|
|
2100
|
+
__decorate([
|
|
2101
|
+
Input(),
|
|
2102
|
+
__metadata("design:type", String)
|
|
2103
|
+
], FHUploadS3Component.prototype, "allegato_inserito", void 0);
|
|
2104
|
+
__decorate([
|
|
2105
|
+
Input(),
|
|
2106
|
+
__metadata("design:type", String)
|
|
2107
|
+
], FHUploadS3Component.prototype, "inserire_descrizione", void 0);
|
|
2108
|
+
__decorate([
|
|
2109
|
+
Input(),
|
|
2110
|
+
__metadata("design:type", Array)
|
|
2111
|
+
], FHUploadS3Component.prototype, "lista_allegati", void 0);
|
|
2112
|
+
__decorate([
|
|
2113
|
+
Output(),
|
|
2114
|
+
__metadata("design:type", EventEmitter)
|
|
2115
|
+
], FHUploadS3Component.prototype, "change", void 0);
|
|
2116
|
+
__decorate([
|
|
2117
|
+
Output(),
|
|
2118
|
+
__metadata("design:type", EventEmitter)
|
|
2119
|
+
], FHUploadS3Component.prototype, "upload_ended", void 0);
|
|
2120
|
+
__decorate([
|
|
2121
|
+
Output(),
|
|
2122
|
+
__metadata("design:type", EventEmitter)
|
|
2123
|
+
], FHUploadS3Component.prototype, "call_upload", void 0);
|
|
2124
|
+
__decorate([
|
|
2125
|
+
ViewChild("cmb_tipo"),
|
|
2126
|
+
__metadata("design:type", FHComboboxComponent)
|
|
2127
|
+
], FHUploadS3Component.prototype, "cmb_tipo", void 0);
|
|
2128
|
+
FHUploadS3Component = __decorate([
|
|
2129
|
+
Component({
|
|
2130
|
+
selector: "FHUploadS3",
|
|
2131
|
+
template: `
|
|
2132
|
+
<div *ngIf="loading" fxLayout="row">
|
|
2133
|
+
WAIT
|
|
2134
|
+
</div>
|
|
2135
|
+
<div
|
|
2136
|
+
[hidden]="!(enabled && !loading)"
|
|
2137
|
+
fxLayout="row"
|
|
2138
|
+
fxLayoutAlign="start center"
|
|
2139
|
+
>
|
|
2140
|
+
<div
|
|
2141
|
+
[hidden]="!multi_list"
|
|
2142
|
+
style="width:380px"
|
|
2143
|
+
fxLayoutAlign="start center"
|
|
2144
|
+
>
|
|
2145
|
+
<FHComboBox
|
|
2146
|
+
[sql]="tipo"
|
|
2147
|
+
#cmb_tipo
|
|
2148
|
+
[init_fill]="false"
|
|
2149
|
+
label="Tipologia"
|
|
2150
|
+
></FHComboBox
|
|
2151
|
+
>
|
|
2152
|
+
</div>
|
|
2153
|
+
<mat-form-field
|
|
2154
|
+
[hidden]="!show_descri"
|
|
2155
|
+
style="width: 100%"
|
|
2156
|
+
appearance="outline"
|
|
2157
|
+
floatLabel="always"
|
|
2158
|
+
><mat-label>{{ label }} {{ fixed_label }}</mat-label>
|
|
2159
|
+
<input
|
|
2160
|
+
matInput
|
|
2161
|
+
type="text"
|
|
2162
|
+
name="descrizione"
|
|
2163
|
+
[(ngModel)]="descrizione"
|
|
2164
|
+
/>
|
|
2165
|
+
</mat-form-field>
|
|
2166
|
+
|
|
2167
|
+
<div
|
|
2168
|
+
style="width:140px"
|
|
2169
|
+
fxLayout="row"
|
|
2170
|
+
fxLayoutAlign="start start"
|
|
2171
|
+
(click)="call_up()"
|
|
2172
|
+
>
|
|
2173
|
+
<input
|
|
2174
|
+
type="file"
|
|
2175
|
+
multiple
|
|
2176
|
+
ng2FileSelect
|
|
2177
|
+
[uploader]="uploader"
|
|
2178
|
+
name="file-fh{{ App }}"
|
|
2179
|
+
id="file-fh{{ App }}"
|
|
2180
|
+
class="inputfile inputfile-fh"
|
|
2181
|
+
/>
|
|
2182
|
+
<label for="file-fh{{ App }}" style="width:210px"
|
|
2183
|
+
><svg
|
|
2184
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2185
|
+
width="20"
|
|
2186
|
+
height="17"
|
|
2187
|
+
viewBox="0 0 20 17"
|
|
2188
|
+
>
|
|
2189
|
+
<path
|
|
2190
|
+
d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
|
|
2191
|
+
/></svg
|
|
2192
|
+
><span style="font-size: 12px"> Upload</span></label
|
|
2193
|
+
>
|
|
2194
|
+
</div>
|
|
2195
|
+
<div fxLayout="row" fxLayoutAlign="start start">
|
|
2196
|
+
<button
|
|
2197
|
+
mat-flat-button
|
|
2198
|
+
*ngIf="b_edit_loaded"
|
|
2199
|
+
(click)="download_all()"
|
|
2200
|
+
style="font-size: 12px"
|
|
2201
|
+
>
|
|
2202
|
+
{{ label_b }}</button
|
|
2203
|
+
>
|
|
2204
|
+
<button
|
|
2205
|
+
mat-flat-button
|
|
2206
|
+
*ngIf="id != null && allow_delete"
|
|
2207
|
+
(click)="del_doc()"
|
|
2208
|
+
color="warn"
|
|
2209
|
+
>
|
|
2210
|
+
<mat-icon>delete</mat-icon>
|
|
2211
|
+
</button>
|
|
2212
|
+
</div>
|
|
2213
|
+
</div>
|
|
2214
|
+
<div *ngIf="!enabled" fxLayout="row" fxLayoutGap="10px">
|
|
2215
|
+
<label>{{ label }}:</label>
|
|
2216
|
+
<div *ngIf="label != descrizione">{{ descrizione }}</div>
|
|
2217
|
+
<button
|
|
2218
|
+
mat-flat-button
|
|
2219
|
+
*ngIf="b_edit_loaded"
|
|
2220
|
+
(click)="download_all()"
|
|
2221
|
+
style="font-size: 12px;background-color: #F5F5F5"
|
|
2222
|
+
>
|
|
2223
|
+
{{ label_b }}
|
|
2224
|
+
</button>
|
|
2225
|
+
</div>
|
|
2226
|
+
`,
|
|
2227
|
+
styles: [``]
|
|
2228
|
+
}),
|
|
2229
|
+
__metadata("design:paramtypes", [QueryService,
|
|
2230
|
+
ToastrService,
|
|
2231
|
+
MatDialog,
|
|
2232
|
+
AppService, UtilityService])
|
|
2233
|
+
], FHUploadS3Component);
|
|
2234
|
+
|
|
2235
|
+
class FSInput {
|
|
2236
|
+
constructor() {
|
|
2237
|
+
this.command = "";
|
|
2238
|
+
this.p1 = "";
|
|
2239
|
+
this.p2 = "";
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
let FHWinComboSelect = class FHWinComboSelect {
|
|
2244
|
+
constructor(dialogRef, toastr, data) {
|
|
2245
|
+
this.dialogRef = dialogRef;
|
|
2246
|
+
this.toastr = toastr;
|
|
2247
|
+
this.data = data;
|
|
2248
|
+
this.label = "";
|
|
2249
|
+
this.width = "100%";
|
|
2250
|
+
this.nota = false;
|
|
2251
|
+
this.nota_val = "";
|
|
2252
|
+
if (data == null)
|
|
2253
|
+
return;
|
|
2254
|
+
if (data != null) {
|
|
2255
|
+
let lab = "";
|
|
2256
|
+
let arrd = [];
|
|
2257
|
+
let nota = false;
|
|
2258
|
+
if (data.label != null)
|
|
2259
|
+
lab = data.label;
|
|
2260
|
+
if (data.arr_option != null)
|
|
2261
|
+
arrd = data.arr_option;
|
|
2262
|
+
if (data.nota != null)
|
|
2263
|
+
nota = data.nota;
|
|
2264
|
+
this.set_selection(lab, arrd, nota);
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
close() {
|
|
2268
|
+
this.dialogRef.close(null);
|
|
2269
|
+
}
|
|
2270
|
+
set_selection(lab, myD, nota = false) {
|
|
2271
|
+
this.nota = nota;
|
|
2272
|
+
this.label = lab;
|
|
2273
|
+
for (let i = 0; i < myD.length; i++)
|
|
2274
|
+
this.cmb_sel.add_option(myD[i]);
|
|
2275
|
+
}
|
|
2276
|
+
ok() {
|
|
2277
|
+
if (this.cmb_sel.getValue() == "-1") {
|
|
2278
|
+
this.toastr.error("Selezionare un valore");
|
|
2279
|
+
return;
|
|
2280
|
+
}
|
|
2281
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
2282
|
+
this.dialogRef.close(this.cmb_sel.getObj());
|
|
2283
|
+
}
|
|
2284
|
+
ngAfterViewInit() { }
|
|
2285
|
+
};
|
|
2286
|
+
FHWinComboSelect.ctorParameters = () => [
|
|
2287
|
+
{ type: MatDialogRef },
|
|
2288
|
+
{ type: ToastrService },
|
|
2289
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2290
|
+
];
|
|
2291
|
+
__decorate([
|
|
2292
|
+
ViewChild("cmb_sel"),
|
|
2293
|
+
__metadata("design:type", FHComboboxComponent)
|
|
2294
|
+
], FHWinComboSelect.prototype, "cmb_sel", void 0);
|
|
2295
|
+
FHWinComboSelect = __decorate([
|
|
2296
|
+
Component({
|
|
2297
|
+
selector: "fhwincomboselect",
|
|
2298
|
+
template: `
|
|
2299
|
+
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
|
|
2300
|
+
<img
|
|
2301
|
+
src="assets/icons/x.png"
|
|
2302
|
+
style="cursor: pointer;"
|
|
2303
|
+
(click)="close()"
|
|
2304
|
+
/>
|
|
2305
|
+
</div>
|
|
2306
|
+
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
2307
|
+
|
|
2308
|
+
<div fxLayout="column">
|
|
2309
|
+
<mat-dialog-content style="font-size: 15px;">
|
|
2310
|
+
<div fxLayout="column">
|
|
2311
|
+
<h3>
|
|
2312
|
+
{{ label | uppercase }}
|
|
2313
|
+
</h3>
|
|
2314
|
+
<FHComboBox #cmb_sel [init_fill]="false"></FHComboBox>
|
|
2315
|
+
<mat-form-field *ngIf="nota" appearance="outline" floatLabel="always"
|
|
2316
|
+
><mat-label>Nota</mat-label>
|
|
2317
|
+
<textarea matInput [(ngModel)]="nota_val" rows="12"></textarea>
|
|
2318
|
+
</mat-form-field>
|
|
2319
|
+
</div>
|
|
2320
|
+
</mat-dialog-content>
|
|
2321
|
+
|
|
2322
|
+
<mat-dialog-actions
|
|
2323
|
+
fxFlex="100"
|
|
2324
|
+
fxLayout="row"
|
|
2325
|
+
fxLayoutAlign="center center"
|
|
2326
|
+
>
|
|
2327
|
+
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
2328
|
+
>
|
|
2329
|
+
<button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
|
|
2330
|
+
</mat-dialog-actions>
|
|
2331
|
+
</div>
|
|
2332
|
+
`
|
|
2333
|
+
}),
|
|
2334
|
+
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
2335
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
2336
|
+
ToastrService, Object])
|
|
2337
|
+
], FHWinComboSelect);
|
|
2338
|
+
|
|
2339
|
+
let WinAskTextBigComponent = class WinAskTextBigComponent {
|
|
2340
|
+
constructor(dialogRef, toastr, data) {
|
|
2341
|
+
this.dialogRef = dialogRef;
|
|
2342
|
+
this.toastr = toastr;
|
|
2343
|
+
this.data = data;
|
|
2344
|
+
this.title = "";
|
|
2345
|
+
this.label = "";
|
|
2346
|
+
this.valore = "";
|
|
2347
|
+
this.readonly = false;
|
|
2348
|
+
this.show_annulla = true;
|
|
2349
|
+
this.show_ok = true;
|
|
2350
|
+
this.min_chars = 3;
|
|
2351
|
+
if (data != null) {
|
|
2352
|
+
if (data.title != null)
|
|
2353
|
+
this.title = data.title;
|
|
2354
|
+
if (data.label != null)
|
|
2355
|
+
this.label = data.label;
|
|
2356
|
+
if (data.valore != null)
|
|
2357
|
+
this.valore = data.valore;
|
|
2358
|
+
if (data.readonly != null)
|
|
2359
|
+
this.readonly = data.readonly;
|
|
2360
|
+
if (data.show_annulla != null)
|
|
2361
|
+
this.show_annulla = data.show_annulla;
|
|
2362
|
+
if (data.show_ok != null)
|
|
2363
|
+
this.show_ok = data.show_ok;
|
|
2364
|
+
if (data.min_chars != null)
|
|
2365
|
+
this.min_chars = data.min_chars;
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
ngAfterViewInit() { }
|
|
2369
|
+
close() {
|
|
2370
|
+
this.dialogRef.close(null);
|
|
2371
|
+
}
|
|
2372
|
+
show() { }
|
|
2373
|
+
hide() {
|
|
2374
|
+
this.dialogRef.close(null);
|
|
2375
|
+
}
|
|
2376
|
+
do_check() {
|
|
2377
|
+
if (this.valore.length < this.min_chars) {
|
|
2378
|
+
this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
|
|
2379
|
+
return;
|
|
2380
|
+
}
|
|
2381
|
+
this.dialogRef.close(this.valore);
|
|
2382
|
+
}
|
|
2383
|
+
chiudi() {
|
|
2384
|
+
this.dialogRef.close(null);
|
|
2385
|
+
}
|
|
2386
|
+
};
|
|
2387
|
+
WinAskTextBigComponent.ctorParameters = () => [
|
|
2388
|
+
{ type: MatDialogRef },
|
|
2389
|
+
{ type: ToastrService },
|
|
2390
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2391
|
+
];
|
|
2392
|
+
WinAskTextBigComponent = __decorate([
|
|
2393
|
+
Component({
|
|
2394
|
+
selector: "app-win_ask_text",
|
|
2395
|
+
template: `
|
|
2396
|
+
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
|
|
2397
|
+
<img
|
|
2398
|
+
src="assets/icons/x.png"
|
|
2399
|
+
style="cursor: pointer;"
|
|
2400
|
+
(click)="close()"
|
|
2401
|
+
/>
|
|
2402
|
+
</div>
|
|
2403
|
+
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
2404
|
+
|
|
2405
|
+
<h2 mat-dialog-title>{{ title }}</h2>
|
|
2406
|
+
<mat-dialog-content style="width:630px;font-size: 15px;">
|
|
2407
|
+
<mat-form-field
|
|
2408
|
+
appearance="outline"
|
|
2409
|
+
floatLabel="always"
|
|
2410
|
+
style="width:100%"
|
|
2411
|
+
><mat-label>{{ label }}</mat-label>
|
|
2412
|
+
<textarea
|
|
2413
|
+
matInput
|
|
2414
|
+
[readonly]="readonly"
|
|
2415
|
+
[(ngModel)]="valore"
|
|
2416
|
+
rows="15"
|
|
2417
|
+
required
|
|
2418
|
+
></textarea>
|
|
2419
|
+
</mat-form-field>
|
|
2420
|
+
</mat-dialog-content>
|
|
2421
|
+
<mat-dialog-actions>
|
|
2422
|
+
<div
|
|
2423
|
+
fxLayout="row"
|
|
2424
|
+
fxLayoutAlign="center center"
|
|
2425
|
+
style="width: 100%"
|
|
2426
|
+
[hidden]="readonly"
|
|
2427
|
+
>
|
|
2428
|
+
<button
|
|
2429
|
+
*ngIf="show_ok"
|
|
2430
|
+
mat-flat-button
|
|
2431
|
+
color="primary"
|
|
2432
|
+
(click)="do_check()"
|
|
2433
|
+
>
|
|
2434
|
+
OK</button
|
|
2435
|
+
>
|
|
2436
|
+
<button
|
|
2437
|
+
*ngIf="show_annulla"
|
|
2438
|
+
mat-flat-button
|
|
2439
|
+
color="warn"
|
|
2440
|
+
(click)="chiudi()"
|
|
2441
|
+
>
|
|
2442
|
+
ANNULLA
|
|
2443
|
+
</button>
|
|
2444
|
+
</div>
|
|
2445
|
+
<div
|
|
2446
|
+
fxLayout="row"
|
|
2447
|
+
fxLayoutAlign="center center"
|
|
2448
|
+
style="width: 100%"
|
|
2449
|
+
[hidden]="!readonly"
|
|
2450
|
+
>
|
|
2451
|
+
<button
|
|
2452
|
+
*ngIf="show_annulla"
|
|
2453
|
+
mat-flat-button
|
|
2454
|
+
color="warn"
|
|
2455
|
+
(click)="chiudi()"
|
|
2456
|
+
>
|
|
2457
|
+
CHIUDI
|
|
2458
|
+
</button>
|
|
2459
|
+
</div>
|
|
2460
|
+
</mat-dialog-actions>
|
|
2461
|
+
`
|
|
2462
|
+
}),
|
|
2463
|
+
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
2464
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
2465
|
+
ToastrService, Object])
|
|
2466
|
+
], WinAskTextBigComponent);
|
|
2467
|
+
|
|
2468
|
+
let FileService = class FileService {
|
|
2469
|
+
constructor(http, app_s, toastr) {
|
|
2470
|
+
this.http = http;
|
|
2471
|
+
this.app_s = app_s;
|
|
2472
|
+
this.toastr = toastr;
|
|
2473
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
2474
|
+
}
|
|
2475
|
+
doQuery(queryp, displayError = true) {
|
|
2476
|
+
this.headers = new HttpHeaders({
|
|
2477
|
+
"Content-Type": "application/json",
|
|
2478
|
+
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
2479
|
+
});
|
|
2480
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
2481
|
+
// console.log('FileService url: '+ this.url);
|
|
2482
|
+
let post_v = JSON.stringify(queryp);
|
|
2483
|
+
// console.log(post_v);
|
|
2484
|
+
return this.http
|
|
2485
|
+
.post(this.url, post_v, {
|
|
2486
|
+
headers: this.headers,
|
|
2487
|
+
})
|
|
2488
|
+
.pipe(map((res) => {
|
|
2489
|
+
// Handle errors, display if enabled
|
|
2490
|
+
let r = res;
|
|
2491
|
+
let err;
|
|
2492
|
+
if (!res) {
|
|
2493
|
+
err = new Error("Empty server response");
|
|
2494
|
+
}
|
|
2495
|
+
else if (r.result_msg === "KO") {
|
|
2496
|
+
err = new Error(r.msg);
|
|
2497
|
+
}
|
|
2498
|
+
if (err) {
|
|
2499
|
+
console.error(err);
|
|
2500
|
+
if (displayError) {
|
|
2501
|
+
this.toastr.error(err.message);
|
|
2502
|
+
}
|
|
2503
|
+
throw new Error(err);
|
|
2504
|
+
}
|
|
2505
|
+
return res || new QGResult();
|
|
2506
|
+
}), catchError((err) => {
|
|
2507
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
2508
|
+
// We'd also dig deeper into the error to get a better message
|
|
2509
|
+
let errMsg = err.message
|
|
2510
|
+
? err.message
|
|
2511
|
+
: err.status
|
|
2512
|
+
? `${err.status} - ${err.statusText}`
|
|
2513
|
+
: "Server error";
|
|
2514
|
+
console.error(errMsg); // log to console instead
|
|
2515
|
+
throw err;
|
|
2516
|
+
}));
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
FileService.ctorParameters = () => [
|
|
2520
|
+
{ type: HttpClient },
|
|
2521
|
+
{ type: AppService },
|
|
2522
|
+
{ type: ToastrService }
|
|
2523
|
+
];
|
|
2524
|
+
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
2525
|
+
FileService = __decorate([
|
|
2526
|
+
Injectable({
|
|
2527
|
+
providedIn: "root",
|
|
2528
|
+
}),
|
|
2529
|
+
__metadata("design:paramtypes", [HttpClient,
|
|
2530
|
+
AppService,
|
|
2531
|
+
ToastrService])
|
|
2532
|
+
], FileService);
|
|
2533
|
+
|
|
2534
|
+
let FHUploadPanelS3Component = class FHUploadPanelS3Component {
|
|
2535
|
+
constructor(_appservice, _dataService, toastr, dialog, fileService, uti) {
|
|
2536
|
+
this._appservice = _appservice;
|
|
2537
|
+
this._dataService = _dataService;
|
|
2538
|
+
this.toastr = toastr;
|
|
2539
|
+
this.dialog = dialog;
|
|
2540
|
+
this.fileService = fileService;
|
|
2541
|
+
this.uti = uti;
|
|
2542
|
+
this.enabled = true;
|
|
2543
|
+
this.force_en = false;
|
|
2544
|
+
this.label = "";
|
|
2545
|
+
this.sovrascrivi_path = "";
|
|
2546
|
+
this.ruolo_supervisore = "[ZZZ_DIS_CC]";
|
|
2547
|
+
this.access_control = false;
|
|
2548
|
+
this.show_images = true;
|
|
2549
|
+
this.can_delete_owner = true;
|
|
2550
|
+
this.b_initt = false;
|
|
2551
|
+
this.change = new EventEmitter();
|
|
2552
|
+
this.call_upload = new EventEmitter();
|
|
2553
|
+
this.image_mode = false;
|
|
2554
|
+
this.App = "";
|
|
2555
|
+
this.K = "";
|
|
2556
|
+
this.image_type = false;
|
|
2557
|
+
this.b_edit_loaded = false;
|
|
2558
|
+
this.b_False = false;
|
|
2559
|
+
this.b_mobile = false;
|
|
2560
|
+
this.b_ini = false;
|
|
2561
|
+
this.m_p_tipo = '';
|
|
2562
|
+
this.multi_list = false;
|
|
2563
|
+
this.m_programma_da_eseguire = '';
|
|
2564
|
+
this.m_p_cod_doc = '';
|
|
2565
|
+
this.m_p_section = '';
|
|
2566
|
+
this.m_p_system_type = '';
|
|
2567
|
+
}
|
|
2568
|
+
call_up(o) {
|
|
2569
|
+
this.call_upload.emit({
|
|
2570
|
+
App: this.App,
|
|
2571
|
+
K: this.K,
|
|
2572
|
+
descrizione: o.descrizione,
|
|
2573
|
+
single: false,
|
|
2574
|
+
username: this._appservice.user,
|
|
2575
|
+
cod_doc: this.m_p_cod_doc,
|
|
2576
|
+
section: this.m_p_section,
|
|
2577
|
+
local_path: this._appservice.LOCAL_PATH,
|
|
2578
|
+
p1: this.m_programma_da_eseguire,
|
|
2579
|
+
});
|
|
2580
|
+
}
|
|
2581
|
+
download_all(ax) {
|
|
2582
|
+
let p = new FSInput();
|
|
2583
|
+
p.command = "exec_app";
|
|
2584
|
+
p.p1 = "s3_downloader";
|
|
2585
|
+
p.p2 = ax.uiid +
|
|
2586
|
+
"|" +
|
|
2587
|
+
this._appservice.user;
|
|
2588
|
+
this.fileService.doQuery(p).subscribe((data) => {
|
|
2589
|
+
if (data != null)
|
|
2590
|
+
if (data.result_msg == "OK") {
|
|
2591
|
+
let str_mg = data.msg.split('|');
|
|
2592
|
+
if (str_mg[0] == 'OK')
|
|
2593
|
+
window.open(str_mg[1]);
|
|
2594
|
+
else
|
|
2595
|
+
this.toastr.error(str_mg[1].split('|').join(' -> '));
|
|
2596
|
+
}
|
|
2597
|
+
});
|
|
2598
|
+
}
|
|
2599
|
+
edit_tipo(ax) {
|
|
2600
|
+
let p = new QParam();
|
|
2601
|
+
p.sql = this.m_p_tipo;
|
|
2602
|
+
p.types = [];
|
|
2603
|
+
p.values = [];
|
|
2604
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
2605
|
+
if (data != null)
|
|
2606
|
+
if (data.result_msg == "OK") {
|
|
2607
|
+
let dialogRef = this.dialog.open(FHWinComboSelect);
|
|
2608
|
+
setTimeout(() => {
|
|
2609
|
+
dialogRef.componentInstance.set_selection("Tipologia Allegato", data.result_data);
|
|
2610
|
+
});
|
|
2611
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
2612
|
+
if (result != null) {
|
|
2613
|
+
let p = new QParam();
|
|
2614
|
+
p.sql = "UPDATE_ALLEGATI_TIPO";
|
|
2615
|
+
p.types = ["int", "string"];
|
|
2616
|
+
p.values = [ax.id, result.descrizione_valore];
|
|
2617
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
2618
|
+
if (data != null)
|
|
2619
|
+
if (data.result_msg == "OK") {
|
|
2620
|
+
this.ref_allegato();
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
});
|
|
2627
|
+
}
|
|
2628
|
+
edit_descri(ax) {
|
|
2629
|
+
let dialogRef = this.dialog.open(WinAskTextBigComponent);
|
|
2630
|
+
setTimeout(() => {
|
|
2631
|
+
dialogRef.componentInstance.label = "Descrizione Allegato";
|
|
2632
|
+
dialogRef.componentInstance.valore = ax.description;
|
|
2633
|
+
dialogRef.componentInstance.min_chars = 0;
|
|
2634
|
+
});
|
|
2635
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
2636
|
+
if (result != null) {
|
|
2637
|
+
let p = new QParam();
|
|
2638
|
+
p.sql = "UPDATE_ALLEGATI_DESCRIZIONE_NEW";
|
|
2639
|
+
p.types = ["string", 'string'];
|
|
2640
|
+
p.values = [ax.uiid, result];
|
|
2641
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
2642
|
+
if (data != null)
|
|
2643
|
+
if (data.result_msg == "OK") {
|
|
2644
|
+
this.ref_allegato();
|
|
2645
|
+
}
|
|
2646
|
+
});
|
|
2647
|
+
}
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
delete(ax) {
|
|
2651
|
+
localStorage.setItem(this._appservice.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
2652
|
+
localStorage.setItem(this._appservice.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
|
|
2653
|
+
let dialogRef = this.dialog.open(FHConfirmComponent);
|
|
2654
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
2655
|
+
if (result) {
|
|
2656
|
+
let p = new QParam();
|
|
2657
|
+
p.sql = "DELETE_ALLEGATO_NEW";
|
|
2658
|
+
p.types = ["string"];
|
|
2659
|
+
p.values = [ax.uiid];
|
|
2660
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
2661
|
+
if (data != null)
|
|
2662
|
+
if (data.result_msg == "OK") {
|
|
2663
|
+
// this.arr_g = data.result_data;
|
|
2664
|
+
this.ref_allegato();
|
|
2665
|
+
this.toastr.info("INFO", "ALLEGATO ELIMINATO", {
|
|
2666
|
+
timeOut: 1000,
|
|
2667
|
+
progressBar: true,
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
ngAfterViewInit() {
|
|
2675
|
+
setTimeout(() => {
|
|
2676
|
+
setTimeout(() => {
|
|
2677
|
+
this.b_initt = true;
|
|
2678
|
+
}, 700);
|
|
2679
|
+
this.upc.single = false;
|
|
2680
|
+
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
2681
|
+
if (this.force_en)
|
|
2682
|
+
this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Attachment Description', this.m_p_system_type, this.m_programma_da_eseguire);
|
|
2683
|
+
else
|
|
2684
|
+
this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Descrizione Allegato', this.m_p_system_type, this.m_programma_da_eseguire);
|
|
2685
|
+
this.ref_allegato();
|
|
2686
|
+
});
|
|
2687
|
+
}
|
|
2688
|
+
init(p_app, p_k, p_cod_doc, p_section, p_system_type, programma_da_eseguire = "") {
|
|
2689
|
+
this.App = p_app;
|
|
2690
|
+
this.K = p_k;
|
|
2691
|
+
this.b_ini = true;
|
|
2692
|
+
this.b_edit_loaded = false;
|
|
2693
|
+
this.m_p_cod_doc = p_cod_doc;
|
|
2694
|
+
this.m_p_section = p_section;
|
|
2695
|
+
this.m_p_system_type = p_system_type;
|
|
2696
|
+
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
2697
|
+
this.ngAfterViewInit();
|
|
2698
|
+
}
|
|
2699
|
+
ref_allegato() {
|
|
2700
|
+
if (this.App == null)
|
|
2701
|
+
return;
|
|
2702
|
+
if (this.App == "")
|
|
2703
|
+
return;
|
|
2704
|
+
this.image_mode = false;
|
|
2705
|
+
let p = new QParam();
|
|
2706
|
+
p.sql = "SELECT_ALLEGATO_INFO_NEW";
|
|
2707
|
+
p.types = ["string", "string", "string"];
|
|
2708
|
+
p.values = [this.App, this.K, this.m_p_section];
|
|
2709
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
2710
|
+
if (data != null)
|
|
2711
|
+
if (data.result_msg == "OK") {
|
|
2712
|
+
this.arr_g = data.result_data;
|
|
2713
|
+
this.arr_g.map((v) => { if (v.type == 'IMG')
|
|
2714
|
+
this.image_mode = true; });
|
|
2715
|
+
let iconf = "webinfo";
|
|
2716
|
+
for (let i = 0; i < this.arr_g.length; i++) {
|
|
2717
|
+
if (this.arr_g[i].APP != null)
|
|
2718
|
+
this.arr_g[i].App = this.arr_g[i].APP;
|
|
2719
|
+
if (this.arr_g[i].description != null)
|
|
2720
|
+
this.arr_g[i].descrizione_vis = this.arr_g[i].description
|
|
2721
|
+
.split("\n")
|
|
2722
|
+
.join("<br>");
|
|
2723
|
+
else
|
|
2724
|
+
this.arr_g[i].descrizione_vis = '';
|
|
2725
|
+
let arrf = this.arr_g[i].file_name_orig.split(".");
|
|
2726
|
+
if (this.sovrascrivi_path == "") {
|
|
2727
|
+
this.arr_g[i].url =
|
|
2728
|
+
this._appservice.COMPANY_SITE_ROOT +
|
|
2729
|
+
"/uploads/" +
|
|
2730
|
+
this.arr_g[i].App +
|
|
2731
|
+
"/" +
|
|
2732
|
+
this.arr_g[i].K +
|
|
2733
|
+
"/" +
|
|
2734
|
+
this.arr_g[i].file_name_orig;
|
|
2735
|
+
this.arr_g[i].url_orig =
|
|
2736
|
+
this._appservice.COMPANY_SITE_ROOT +
|
|
2737
|
+
"/uploads/" +
|
|
2738
|
+
this.arr_g[i].App +
|
|
2739
|
+
"/" +
|
|
2740
|
+
this.arr_g[i].K +
|
|
2741
|
+
"/" +
|
|
2742
|
+
this.arr_g[i].file_name_orig;
|
|
2743
|
+
}
|
|
2744
|
+
else {
|
|
2745
|
+
this.arr_g[i].url =
|
|
2746
|
+
this.sovrascrivi_path +
|
|
2747
|
+
"/uploads/" +
|
|
2748
|
+
this.arr_g[i].App +
|
|
2749
|
+
"/" +
|
|
2750
|
+
this.arr_g[i].K +
|
|
2751
|
+
"/" +
|
|
2752
|
+
this.arr_g[i].file_name_orig;
|
|
2753
|
+
this.arr_g[i].url_orig =
|
|
2754
|
+
this.sovrascrivi_path +
|
|
2755
|
+
"/uploads/" +
|
|
2756
|
+
this.arr_g[i].App +
|
|
2757
|
+
"/" +
|
|
2758
|
+
this.arr_g[i].K +
|
|
2759
|
+
"/" +
|
|
2760
|
+
this.arr_g[i].file_name_orig;
|
|
2761
|
+
}
|
|
2762
|
+
if ("3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH".indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
|
|
2763
|
+
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
2764
|
+
this.arr_g[i].icon = iconf + ".svg";
|
|
2765
|
+
if (this.can_delete_owner) {
|
|
2766
|
+
this.arr_g[i].can_delete =
|
|
2767
|
+
!this.access_control ||
|
|
2768
|
+
this.arr_g[i].idp == this._appservice.user ||
|
|
2769
|
+
this.uti.hasRole(this.ruolo_supervisore);
|
|
2770
|
+
if ("[ZZZ_DIS_CC]" == this.ruolo_supervisore)
|
|
2771
|
+
this.arr_g[i].can_delete_m = this.arr_g[i].idp;
|
|
2772
|
+
else
|
|
2773
|
+
this.arr_g[i].can_delete_m =
|
|
2774
|
+
this.arr_g[i].idp + ",[" + this.ruolo_supervisore + "]";
|
|
2775
|
+
}
|
|
2776
|
+
else {
|
|
2777
|
+
this.arr_g[i].can_delete =
|
|
2778
|
+
!this.access_control ||
|
|
2779
|
+
this.uti.hasRole(this.ruolo_supervisore);
|
|
2780
|
+
if ("[ZZZ_DIS_CC]" == this.ruolo_supervisore)
|
|
2781
|
+
this.arr_g[i].can_delete_m = "";
|
|
2782
|
+
else
|
|
2783
|
+
this.arr_g[i].can_delete_m = "[" + this.ruolo_supervisore + "]";
|
|
2784
|
+
}
|
|
2785
|
+
this.arr_g[i].can_edit =
|
|
2786
|
+
!this.access_control ||
|
|
2787
|
+
this.arr_g[i].idp == this._appservice.user ||
|
|
2788
|
+
this.uti.hasRole(this.ruolo_supervisore);
|
|
2789
|
+
if ((this.arr_g[i].file_name_orig.indexOf(".jpg") != -1 ||
|
|
2790
|
+
this.arr_g[i].file_name_orig.indexOf(".gif") != -1 ||
|
|
2791
|
+
this.arr_g[i].file_name_orig.indexOf(".png") != -1) &&
|
|
2792
|
+
this.show_images) {
|
|
2793
|
+
this.arr_g[i].type = "IMG";
|
|
2794
|
+
this.arr_g[i].image_original = [this.arr_g[i].url];
|
|
2795
|
+
if (this.arr_g[i].preview != null)
|
|
2796
|
+
if (this.arr_g[i].preview == 1) {
|
|
2797
|
+
let pcs = this.arr_g[i].url.split(".");
|
|
2798
|
+
let lastPc = pcs.pop();
|
|
2799
|
+
this.arr_g[i].url = pcs.join(".") + "_preview." + lastPc;
|
|
2800
|
+
}
|
|
2801
|
+
this.image_type = true;
|
|
2802
|
+
this.arr_g[i].image_thumbnail = [this.arr_g[i].url];
|
|
2803
|
+
}
|
|
2804
|
+
else
|
|
2805
|
+
this.arr_g[i].type = "O";
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
});
|
|
2809
|
+
}
|
|
2810
|
+
};
|
|
2811
|
+
FHUploadPanelS3Component.ctorParameters = () => [
|
|
2812
|
+
{ type: AppService },
|
|
2813
|
+
{ type: QueryService },
|
|
2814
|
+
{ type: ToastrService },
|
|
2815
|
+
{ type: MatDialog },
|
|
2816
|
+
{ type: FileService },
|
|
2817
|
+
{ type: UtilityService }
|
|
2818
|
+
];
|
|
2819
|
+
__decorate([
|
|
2820
|
+
Input(),
|
|
2821
|
+
__metadata("design:type", Boolean)
|
|
2822
|
+
], FHUploadPanelS3Component.prototype, "enabled", void 0);
|
|
2823
|
+
__decorate([
|
|
2824
|
+
Input(),
|
|
2825
|
+
__metadata("design:type", Boolean)
|
|
2826
|
+
], FHUploadPanelS3Component.prototype, "force_en", void 0);
|
|
2827
|
+
__decorate([
|
|
2828
|
+
Input(),
|
|
2829
|
+
__metadata("design:type", String)
|
|
2830
|
+
], FHUploadPanelS3Component.prototype, "label", void 0);
|
|
2831
|
+
__decorate([
|
|
2832
|
+
Input(),
|
|
2833
|
+
__metadata("design:type", String)
|
|
2834
|
+
], FHUploadPanelS3Component.prototype, "sovrascrivi_path", void 0);
|
|
2835
|
+
__decorate([
|
|
2836
|
+
Input(),
|
|
2837
|
+
__metadata("design:type", String)
|
|
2838
|
+
], FHUploadPanelS3Component.prototype, "ruolo_supervisore", void 0);
|
|
2839
|
+
__decorate([
|
|
2840
|
+
Input(),
|
|
2841
|
+
__metadata("design:type", Boolean)
|
|
2842
|
+
], FHUploadPanelS3Component.prototype, "access_control", void 0);
|
|
2843
|
+
__decorate([
|
|
2844
|
+
Input(),
|
|
2845
|
+
__metadata("design:type", Boolean)
|
|
2846
|
+
], FHUploadPanelS3Component.prototype, "show_images", void 0);
|
|
2847
|
+
__decorate([
|
|
2848
|
+
Input(),
|
|
2849
|
+
__metadata("design:type", Boolean)
|
|
2850
|
+
], FHUploadPanelS3Component.prototype, "can_delete_owner", void 0);
|
|
2851
|
+
__decorate([
|
|
2852
|
+
Output(),
|
|
2853
|
+
__metadata("design:type", EventEmitter)
|
|
2854
|
+
], FHUploadPanelS3Component.prototype, "change", void 0);
|
|
2855
|
+
__decorate([
|
|
2856
|
+
Output(),
|
|
2857
|
+
__metadata("design:type", EventEmitter)
|
|
2858
|
+
], FHUploadPanelS3Component.prototype, "call_upload", void 0);
|
|
2859
|
+
__decorate([
|
|
2860
|
+
ViewChild("upc"),
|
|
2861
|
+
__metadata("design:type", FHUploadS3Component)
|
|
2862
|
+
], FHUploadPanelS3Component.prototype, "upc", void 0);
|
|
2863
|
+
FHUploadPanelS3Component = __decorate([
|
|
2864
|
+
Component({
|
|
2865
|
+
selector: "FHUploadPanelS3",
|
|
2866
|
+
template: `
|
|
2867
|
+
|
|
2868
|
+
<div fxLayout="column">
|
|
2869
|
+
<h3 *ngIf="label != ''">{{ label }}</h3>
|
|
2870
|
+
<div fxLayout="column">
|
|
2871
|
+
<div [hidden]="!enabled">
|
|
2872
|
+
<FHUploadS3
|
|
2873
|
+
[single]="b_False"
|
|
2874
|
+
[label_attendere]="
|
|
2875
|
+
force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO'
|
|
2876
|
+
"
|
|
2877
|
+
[fixed_label]="
|
|
2878
|
+
force_en
|
|
2879
|
+
? 'Attachments description (insert the description here before uploading the file)'
|
|
2880
|
+
: ' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'
|
|
2881
|
+
"
|
|
2882
|
+
[allegato_inserito]="
|
|
2883
|
+
force_en ? 'Attachment Inserted' : 'ALLEGATO INSERITO'
|
|
2884
|
+
"
|
|
2885
|
+
[lista_allegati]="arr_g"
|
|
2886
|
+
(change)="ref_allegato()"
|
|
2887
|
+
(call_upload)="call_up($event)"
|
|
2888
|
+
#upc
|
|
2889
|
+
></FHUploadS3>
|
|
2890
|
+
</div>
|
|
2891
|
+
<table width="98%" class="fh_table" *ngIf="!image_type && !b_mobile">
|
|
2892
|
+
<thead>
|
|
2893
|
+
<tr class="header">
|
|
2894
|
+
<th style="width:40px"></th>
|
|
2895
|
+
<th style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
|
|
2896
|
+
<th style="width:60px;text-align:center">Dim.</th>
|
|
2897
|
+
<th style="width:40%">
|
|
2898
|
+
{{ force_en ? "Description" : "Descrizione" }}
|
|
2899
|
+
</th>
|
|
2900
|
+
<th style="width:20%">
|
|
2901
|
+
{{ force_en ? "Version" : "Versione" }}
|
|
2902
|
+
</th>
|
|
2903
|
+
|
|
2904
|
+
<th *ngIf="image_mode" class="actions"></th>
|
|
2905
|
+
<th style="width:30%">{{ force_en ? "User" : "Utente" }}</th>
|
|
2906
|
+
<th style="width:240px;text-align:center">
|
|
2907
|
+
{{ force_en ? "Date" : "Data" }}
|
|
2908
|
+
</th>
|
|
2909
|
+
<th style="width:40px" class="actions"></th>
|
|
2910
|
+
<th *ngIf="enabled" style="width:40px" class="actions"></th>
|
|
2911
|
+
</tr>
|
|
2912
|
+
</thead>
|
|
2913
|
+
<tbody>
|
|
2914
|
+
<tr
|
|
2915
|
+
*ngFor="let app of arr_g; let odd = odd; let even = even"
|
|
2916
|
+
style="font-size: 15px;"
|
|
2917
|
+
[ngClass]="{ odd: odd, even: even }"
|
|
2918
|
+
>
|
|
2919
|
+
<td
|
|
2920
|
+
style="text-align:center;vertical-align: middle;width:36px;height:36px;"
|
|
2921
|
+
>
|
|
2922
|
+
<div
|
|
2923
|
+
style="text-align:center;vertical-align: middle;width:28px;height:28px;"
|
|
2924
|
+
>
|
|
2925
|
+
<img
|
|
2926
|
+
src="assets/icons/square-o/{{ app.icon }}"
|
|
2927
|
+
style="width:28px;height:28px;"
|
|
2928
|
+
/>
|
|
2929
|
+
</div>
|
|
2930
|
+
</td>
|
|
2931
|
+
<td>{{ app.file_name_orig }}</td>
|
|
2932
|
+
<td style="text-align:center">{{ app.dim }}</td>
|
|
2933
|
+
<td>
|
|
2934
|
+
<div fxLayout="row">
|
|
2935
|
+
<div *ngIf="enabled">
|
|
2936
|
+
<a
|
|
2937
|
+
mat-icon-button
|
|
2938
|
+
matTooltip="Modifica Descrizione"
|
|
2939
|
+
*ngIf="app.can_edit"
|
|
2940
|
+
(click)="edit_descri(app)"
|
|
2941
|
+
>
|
|
2942
|
+
<mat-icon>edit</mat-icon>
|
|
2943
|
+
</a>
|
|
2944
|
+
|
|
2945
|
+
<a
|
|
2946
|
+
mat-icon-button
|
|
2947
|
+
[matTooltip]="
|
|
2948
|
+
'Modifica Descrizione consentita solo a: ' + app.nc
|
|
2949
|
+
"
|
|
2950
|
+
*ngIf="!app.can_edit"
|
|
2951
|
+
[disabled]="true"
|
|
2952
|
+
>
|
|
2953
|
+
<mat-icon>edit</mat-icon>
|
|
2954
|
+
</a>
|
|
2955
|
+
</div>
|
|
2956
|
+
<div
|
|
2957
|
+
[innerHTML]="app.descrizione_vis"
|
|
2958
|
+
style="width:100%"
|
|
2959
|
+
></div>
|
|
2960
|
+
</div>
|
|
2961
|
+
</td>
|
|
2962
|
+
|
|
2963
|
+
<td>
|
|
2964
|
+
{{app.version}}
|
|
2965
|
+
</td>
|
|
2966
|
+
|
|
2967
|
+
<td *ngIf="image_mode"
|
|
2968
|
+
style="min-width:400px;min-height: 400px"
|
|
2969
|
+
|
|
2970
|
+
>
|
|
2971
|
+
<fh-image-viewer [u]="app"></fh-image-viewer>
|
|
2972
|
+
</td>
|
|
2973
|
+
|
|
2974
|
+
<td>{{ app.nc }}</td>
|
|
2975
|
+
<td style="text-align:center">
|
|
2976
|
+
{{ app.dt_ins | date: "dd/MM/yyyy HH:mm:ss" }}
|
|
2977
|
+
</td>
|
|
2978
|
+
<td style="text-align:center">
|
|
2979
|
+
<button
|
|
2980
|
+
mat-icon-button
|
|
2981
|
+
matTooltip="Download File"
|
|
2982
|
+
(click)="download_all(app)"
|
|
2983
|
+
>
|
|
2984
|
+
<mat-icon>cloud_download</mat-icon>
|
|
2985
|
+
</button>
|
|
2986
|
+
</td>
|
|
2987
|
+
|
|
2988
|
+
<td *ngIf="enabled" style="text-align:center">
|
|
2989
|
+
<a
|
|
2990
|
+
mat-icon-button
|
|
2991
|
+
matTooltip="Elimina File"
|
|
2992
|
+
*ngIf="app.can_delete"
|
|
2993
|
+
(click)="delete(app)"
|
|
2994
|
+
>
|
|
2995
|
+
<mat-icon>delete</mat-icon>
|
|
2996
|
+
</a>
|
|
2997
|
+
|
|
2998
|
+
<a
|
|
2999
|
+
mat-icon-button
|
|
3000
|
+
[matTooltip]="
|
|
3001
|
+
'Cancellazione consentita solo a: ' + app.can_delete_m
|
|
3002
|
+
"
|
|
3003
|
+
*ngIf="!app.can_delete"
|
|
3004
|
+
[disabled]="true"
|
|
3005
|
+
>
|
|
3006
|
+
<mat-icon>delete</mat-icon>
|
|
3007
|
+
</a>
|
|
3008
|
+
</td>
|
|
3009
|
+
</tr>
|
|
3010
|
+
</tbody>
|
|
3011
|
+
</table>
|
|
3012
|
+
<table width="98%" class="fh_table" *ngIf="image_type && !b_mobile">
|
|
3013
|
+
<thead>
|
|
3014
|
+
<tr class="header">
|
|
3015
|
+
<th style="width:40px"></th>
|
|
3016
|
+
<th style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
|
|
3017
|
+
<th style="width:60px;text-align:center">Dim.</th>
|
|
3018
|
+
|
|
3019
|
+
<th style="width:20%">
|
|
3020
|
+
{{ force_en ? "Description" : "Descrizione" }}
|
|
3021
|
+
</th>
|
|
3022
|
+
<th *ngIf="multi_list" style="width:10%">
|
|
3023
|
+
{{ force_en ? "Version" : "Versione" }}
|
|
3024
|
+
</th>
|
|
3025
|
+
<th style="width:40%"></th>
|
|
3026
|
+
|
|
3027
|
+
<th style="width:10%">{{ force_en ? "User" : "Utente" }}</th>
|
|
3028
|
+
<th style="width:240px;text-align:center">
|
|
3029
|
+
{{ force_en ? "Date" : "Data" }}
|
|
3030
|
+
</th>
|
|
3031
|
+
<th style="width:40px" class="actions"></th>
|
|
3032
|
+
<th *ngIf="enabled" style="width:40px" class="actions"></th>
|
|
3033
|
+
</tr>
|
|
3034
|
+
</thead>
|
|
3035
|
+
<tbody>
|
|
3036
|
+
<tr
|
|
3037
|
+
*ngFor="let app of arr_g; let odd = odd; let even = even"
|
|
3038
|
+
style="font-size: 15px;"
|
|
3039
|
+
[ngClass]="{ odd: odd, even: even }"
|
|
3040
|
+
>
|
|
3041
|
+
<td
|
|
3042
|
+
style="text-align:center;vertical-align: middle;width:36px;height:36px;"
|
|
3043
|
+
>
|
|
3044
|
+
<div
|
|
3045
|
+
style="text-align:center;vertical-align: middle;width:28px;height:28px;"
|
|
3046
|
+
>
|
|
3047
|
+
<img
|
|
3048
|
+
src="assets/icons/square-o/{{ app.icon }}"
|
|
3049
|
+
style="width:28px;height:28px;"
|
|
3050
|
+
/>
|
|
3051
|
+
</div>
|
|
3052
|
+
</td>
|
|
3053
|
+
|
|
3054
|
+
<td>{{ app.file_name_orig }}</td>
|
|
3055
|
+
<td style="text-align:center">{{ app.dim }}</td>
|
|
3056
|
+
<td>
|
|
3057
|
+
<div fxLayout="row">
|
|
3058
|
+
<div *ngIf="enabled">
|
|
3059
|
+
<a
|
|
3060
|
+
mat-icon-button
|
|
3061
|
+
matTooltip="Modifica Descrizione"
|
|
3062
|
+
*ngIf="app.can_edit"
|
|
3063
|
+
(click)="edit_descri(app)"
|
|
3064
|
+
>
|
|
3065
|
+
<mat-icon>edit</mat-icon>
|
|
3066
|
+
</a>
|
|
3067
|
+
|
|
3068
|
+
<a
|
|
3069
|
+
mat-icon-button
|
|
3070
|
+
[matTooltip]="
|
|
3071
|
+
'Modifica Descrizione consentita solo a: ' + app.nc
|
|
3072
|
+
"
|
|
3073
|
+
*ngIf="!app.can_edit"
|
|
3074
|
+
[disabled]="true"
|
|
3075
|
+
>
|
|
3076
|
+
<mat-icon>edit</mat-icon>
|
|
3077
|
+
</a>
|
|
3078
|
+
</div>
|
|
3079
|
+
<div
|
|
3080
|
+
[innerHTML]="app.descrizione_vis"
|
|
3081
|
+
style="width:100%"
|
|
3082
|
+
></div>
|
|
3083
|
+
</div>
|
|
3084
|
+
</td>
|
|
3085
|
+
<td>
|
|
3086
|
+
{{app.version}}
|
|
3087
|
+
</td>
|
|
3088
|
+
|
|
3089
|
+
<td
|
|
3090
|
+
style="min-width:400px;min-height: 400px"
|
|
3091
|
+
*ngIf="app.type == 'IMG'"
|
|
3092
|
+
>
|
|
3093
|
+
<fh-image-viewer [u]="app"></fh-image-viewer>
|
|
3094
|
+
</td>
|
|
3095
|
+
<td *ngIf="app.type != 'IMG'"></td>
|
|
3096
|
+
<td>{{ app.nc }}</td>
|
|
3097
|
+
<td style="text-align:center">
|
|
3098
|
+
{{ app.dt_ins | date: "dd/MM/yyyy HH:mm:ss" }}
|
|
3099
|
+
</td>
|
|
3100
|
+
<td style="text-align:center">
|
|
3101
|
+
<button
|
|
3102
|
+
mat-icon-button
|
|
3103
|
+
matTooltip="Download File"
|
|
3104
|
+
(click)="download_all(app)"
|
|
3105
|
+
>
|
|
3106
|
+
<mat-icon>cloud_download</mat-icon>
|
|
3107
|
+
</button>
|
|
3108
|
+
</td>
|
|
3109
|
+
|
|
3110
|
+
<td *ngIf="enabled" style="text-align:center">
|
|
3111
|
+
<a
|
|
3112
|
+
mat-icon-button
|
|
3113
|
+
matTooltip="Elimina File"
|
|
3114
|
+
*ngIf="app.can_delete"
|
|
3115
|
+
(click)="delete(app)"
|
|
3116
|
+
>
|
|
3117
|
+
<mat-icon>delete</mat-icon>
|
|
3118
|
+
</a>
|
|
3119
|
+
|
|
3120
|
+
<a
|
|
3121
|
+
mat-icon-button
|
|
3122
|
+
[matTooltip]="
|
|
3123
|
+
'Cancellazione consentita solo a: ' + app.can_delete_m
|
|
3124
|
+
"
|
|
3125
|
+
*ngIf="!app.can_delete"
|
|
3126
|
+
[disabled]="true"
|
|
3127
|
+
>
|
|
3128
|
+
<mat-icon>delete</mat-icon>
|
|
3129
|
+
</a>
|
|
3130
|
+
</td>
|
|
3131
|
+
</tr>
|
|
3132
|
+
</tbody>
|
|
3133
|
+
</table>
|
|
3134
|
+
<table width="98%" class="fh_table" *ngIf="b_mobile">
|
|
3135
|
+
<tbody>
|
|
3136
|
+
<tr
|
|
3137
|
+
*ngFor="let app of arr_g; let odd = odd; let even = even"
|
|
3138
|
+
style="font-size: 15px;"
|
|
3139
|
+
[ngClass]="{ odd: odd, even: even }"
|
|
3140
|
+
>
|
|
3141
|
+
<td
|
|
3142
|
+
style="text-align:center;vertical-align: middle;width:36px;height:36px;"
|
|
3143
|
+
>
|
|
3144
|
+
<div
|
|
3145
|
+
style="text-align:center;vertical-align: middle;width:28px;height:28px;"
|
|
3146
|
+
>
|
|
3147
|
+
<img
|
|
3148
|
+
src="assets/icons/square-o/{{ app.icon }}"
|
|
3149
|
+
style="width:28px;height:28px;"
|
|
3150
|
+
/>
|
|
3151
|
+
</div>
|
|
3152
|
+
</td>
|
|
3153
|
+
<td *ngIf="b_mobile" style="text-align:center">
|
|
3154
|
+
{{ app.file_name_orig }}<br /><br />
|
|
3155
|
+
<button
|
|
3156
|
+
style="background-color: #F5F5F5"
|
|
3157
|
+
(click)="download_all(app)"
|
|
3158
|
+
mat-flat-button
|
|
3159
|
+
>
|
|
3160
|
+
DOWNLOAD
|
|
3161
|
+
</button>
|
|
3162
|
+
</td>
|
|
3163
|
+
</tr>
|
|
3164
|
+
</tbody>
|
|
3165
|
+
</table>
|
|
3166
|
+
</div>
|
|
3167
|
+
</div>
|
|
3168
|
+
<div *ngIf="!b_ini && b_initt" style="color:#ff0000">
|
|
3169
|
+
|
|
3170
|
+
</div>
|
|
3171
|
+
`,
|
|
3172
|
+
styles: [``]
|
|
3173
|
+
}),
|
|
3174
|
+
__metadata("design:paramtypes", [AppService,
|
|
3175
|
+
QueryService,
|
|
3176
|
+
ToastrService,
|
|
3177
|
+
MatDialog,
|
|
3178
|
+
FileService,
|
|
3179
|
+
UtilityService])
|
|
3180
|
+
], FHUploadPanelS3Component);
|
|
3181
|
+
|
|
3182
|
+
let FHPickListComponent = class FHPickListComponent {
|
|
3183
|
+
constructor(dialogRef, _dataService, toastr, data) {
|
|
3184
|
+
this.dialogRef = dialogRef;
|
|
3185
|
+
this._dataService = _dataService;
|
|
3186
|
+
this.toastr = toastr;
|
|
3187
|
+
this.data = data;
|
|
3188
|
+
this.width = "100%";
|
|
3189
|
+
this.selectedAdd = null;
|
|
3190
|
+
this.selectedRemove = null;
|
|
3191
|
+
this.selval = "-1";
|
|
3192
|
+
this.errorMsg = "";
|
|
3193
|
+
this.valDef = "-1";
|
|
3194
|
+
this.fltr_user = "";
|
|
3195
|
+
this.value_list = new Array();
|
|
3196
|
+
this.single_sel = false;
|
|
3197
|
+
this.vis_buttons = true;
|
|
3198
|
+
this.limit_size = false;
|
|
3199
|
+
this.value_list_sel = new Array();
|
|
3200
|
+
this.types = [];
|
|
3201
|
+
this.values = [];
|
|
3202
|
+
this.value_sel = [];
|
|
3203
|
+
if (data != null) {
|
|
3204
|
+
if (data.value_list != null)
|
|
3205
|
+
this.value_list = data.value_list;
|
|
3206
|
+
if (data.single_sel != null)
|
|
3207
|
+
this.single_sel = data.single_sel;
|
|
3208
|
+
if (data.vis_buttons != null)
|
|
3209
|
+
this.vis_buttons = data.vis_buttons;
|
|
3210
|
+
if (data.limit_size != null)
|
|
3211
|
+
this.limit_size = data.limit_size;
|
|
3212
|
+
if (data.value_sel != null)
|
|
3213
|
+
this.value_sel = data.value_sel;
|
|
3214
|
+
this.fill_list_arr(this.value_list, this.value_sel);
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
ngAfterViewInit() { }
|
|
3218
|
+
filtra() {
|
|
3219
|
+
this.value_list_sel = new Array();
|
|
3220
|
+
// console.log('filtra() '+this.fltr_user.toUpperCase());
|
|
3221
|
+
if (this.fltr_user == "") {
|
|
3222
|
+
for (let i = 0; i < this.value_list.length; i++) {
|
|
3223
|
+
this.value_list_sel.push(this.value_list[i]);
|
|
3224
|
+
if (i == 50 && this.limit_size)
|
|
3225
|
+
return;
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
else {
|
|
3229
|
+
for (let i = 0; i < this.value_list.length; i++)
|
|
3230
|
+
if (this.value_list[i].descrizione_valore
|
|
3231
|
+
.toUpperCase()
|
|
3232
|
+
.indexOf(this.fltr_user.toUpperCase()) != -1) {
|
|
3233
|
+
let b_found_a = false;
|
|
3234
|
+
for (let z = 0; z < this.value_list_sel.length; z++)
|
|
3235
|
+
if (this.value_list_sel[z].descrizione_valore ==
|
|
3236
|
+
this.value_list[i].descrizione_valore) {
|
|
3237
|
+
b_found_a = true;
|
|
3238
|
+
break;
|
|
3239
|
+
}
|
|
3240
|
+
if (!b_found_a)
|
|
3241
|
+
this.value_list_sel.push(this.value_list[i]);
|
|
3242
|
+
if (this.value_list_sel.length == 50 && this.limit_size)
|
|
3243
|
+
return;
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
/*
|
|
3247
|
+
this.value_list_sel =new Array();
|
|
3248
|
+
for(let i:number=0;i<this.value_list.length;i++)
|
|
3249
|
+
{
|
|
3250
|
+
let b_found_a=false;
|
|
3251
|
+
for(let z:number=0;z<this.value_list_sel.length;z++)
|
|
3252
|
+
if(this.value_list_sel[z].descrizione_valore==this.value_list[i].descrizione_valore){b_found_a=true; break;}
|
|
3253
|
+
|
|
3254
|
+
if(!b_found_a && (this.value_list[i].descrizione_valore.toUpperCase().indexOf(this.fltr_user.toUpperCase())!=-1 || this.fltr_user==''))
|
|
3255
|
+
{
|
|
3256
|
+
// console.log(this.value_list[i].username);
|
|
3257
|
+
if(this.value_sel==null) this.value_list_sel.push(this.value_list[i]);
|
|
3258
|
+
else
|
|
3259
|
+
{
|
|
3260
|
+
|
|
3261
|
+
let b_found=false;
|
|
3262
|
+
for(let y:number=0;y<this.value_sel.length;y++)
|
|
3263
|
+
if(this.value_sel[y].descrizione_valore==this.value_list[i].descrizione_valore){b_found=true; break;}
|
|
3264
|
+
if(!b_found)
|
|
3265
|
+
this.value_list_sel.push(this.value_list[i]);
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
}*/
|
|
3269
|
+
// console.log(this.value_list);
|
|
3270
|
+
}
|
|
3271
|
+
fill_list(k, arrs) {
|
|
3272
|
+
this.value_sel = [];
|
|
3273
|
+
let ok_op = false;
|
|
3274
|
+
let p = new QParam();
|
|
3275
|
+
p.sql = k;
|
|
3276
|
+
p.types = this.types;
|
|
3277
|
+
p.values = this.values;
|
|
3278
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
3279
|
+
let ok_op = false;
|
|
3280
|
+
if (data != null)
|
|
3281
|
+
if (data.result_msg == "OK") {
|
|
3282
|
+
this.value_list = data.result_data;
|
|
3283
|
+
for (let i = 0; i < arrs.length; i++)
|
|
3284
|
+
for (let y = 0; y < data.result_data.length; y++)
|
|
3285
|
+
if (arrs[i] ==
|
|
3286
|
+
data.result_data[y].descrizione_valore) {
|
|
3287
|
+
this.value_sel.push(data.result_data[y]);
|
|
3288
|
+
}
|
|
3289
|
+
for (let y = 0; y < this.value_sel.length; y++)
|
|
3290
|
+
for (let i = this.value_list.length - 1; i >= 0; i--)
|
|
3291
|
+
if (this.value_list[i].descrizione_valore ==
|
|
3292
|
+
this.value_sel[y].descrizione_valore) {
|
|
3293
|
+
this.value_list.splice(i, 1);
|
|
3294
|
+
break;
|
|
3295
|
+
}
|
|
3296
|
+
this.filtra();
|
|
3297
|
+
ok_op = true;
|
|
3298
|
+
}
|
|
3299
|
+
if (!ok_op) {
|
|
3300
|
+
}
|
|
3301
|
+
}, (err) => {
|
|
3302
|
+
this.errorMsg =
|
|
3303
|
+
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
3304
|
+
});
|
|
3305
|
+
}
|
|
3306
|
+
fill_list_arr(k, arrs) {
|
|
3307
|
+
this.value_sel = [];
|
|
3308
|
+
console.log(k, arrs);
|
|
3309
|
+
for (let i = 0; i < arrs.length; i++)
|
|
3310
|
+
for (let y = 0; y < k.length; y++)
|
|
3311
|
+
if (arrs[i] ==
|
|
3312
|
+
k[y].valore) {
|
|
3313
|
+
this.value_sel.push(k[y]);
|
|
3314
|
+
}
|
|
3315
|
+
console.log('value_sel ', this.value_sel);
|
|
3316
|
+
this.value_list = k;
|
|
3317
|
+
for (let y = 0; y < this.value_sel.length; y++)
|
|
3318
|
+
for (let i = this.value_list.length - 1; i >= 0; i--)
|
|
3319
|
+
if (this.value_list[i].descrizione_valore ==
|
|
3320
|
+
this.value_sel[y].descrizione_valore) {
|
|
3321
|
+
this.value_list.splice(i, 1);
|
|
3322
|
+
break;
|
|
3323
|
+
}
|
|
3324
|
+
this.filtra();
|
|
3325
|
+
}
|
|
3326
|
+
do_add() {
|
|
3327
|
+
if (this.selectedAdd == null) {
|
|
3328
|
+
this.toastr.error("ERRORE", "Selezionare il valore da aggiungere", {
|
|
3329
|
+
timeOut: 1000,
|
|
3330
|
+
progressBar: true,
|
|
3331
|
+
});
|
|
3332
|
+
return;
|
|
3333
|
+
}
|
|
3334
|
+
var index = this.value_list.indexOf(this.selectedAdd, 0);
|
|
3335
|
+
if (!this.single_sel)
|
|
3336
|
+
if (index > -1) {
|
|
3337
|
+
this.value_list.splice(index, 1);
|
|
3338
|
+
}
|
|
3339
|
+
if (this.single_sel)
|
|
3340
|
+
this.value_sel = new Array();
|
|
3341
|
+
this.value_sel.push(this.selectedAdd);
|
|
3342
|
+
this.selectedAdd = null;
|
|
3343
|
+
this.filtra();
|
|
3344
|
+
if (this.single_sel)
|
|
3345
|
+
this.ok();
|
|
3346
|
+
}
|
|
3347
|
+
do_rem() {
|
|
3348
|
+
if (this.selectedRemove == null) {
|
|
3349
|
+
this.toastr.error("ERRORE", "Selezionare il valore da rimuovere", {
|
|
3350
|
+
timeOut: 1000,
|
|
3351
|
+
progressBar: true,
|
|
3352
|
+
});
|
|
3353
|
+
return;
|
|
3354
|
+
}
|
|
3355
|
+
var index = this.value_sel.indexOf(this.selectedRemove, 0);
|
|
3356
|
+
if (index > -1) {
|
|
3357
|
+
this.value_sel.splice(index, 1);
|
|
3358
|
+
}
|
|
3359
|
+
this.value_list.push(this.selectedRemove);
|
|
3360
|
+
this.selectedRemove = null;
|
|
3361
|
+
this.filtra();
|
|
3362
|
+
}
|
|
3363
|
+
addTo(item) {
|
|
3364
|
+
this.option = true;
|
|
3365
|
+
this.selectedAdd = item;
|
|
3366
|
+
this.selectedRemove = null;
|
|
3367
|
+
}
|
|
3368
|
+
removeTo(item) {
|
|
3369
|
+
this.option = false;
|
|
3370
|
+
this.selectedAdd = null;
|
|
3371
|
+
this.selectedRemove = item;
|
|
3372
|
+
}
|
|
3373
|
+
getSelStr() {
|
|
3374
|
+
let sx = "";
|
|
3375
|
+
for (var i = 0; i < this.value_sel.length; i++) {
|
|
3376
|
+
if (sx != "")
|
|
3377
|
+
sx = sx + ",";
|
|
3378
|
+
sx = sx + this.value_sel[i].descrizione_valore;
|
|
3379
|
+
}
|
|
3380
|
+
return sx;
|
|
3381
|
+
}
|
|
3382
|
+
getSelArr() {
|
|
3383
|
+
return this.value_sel;
|
|
3384
|
+
}
|
|
3385
|
+
ok() {
|
|
3386
|
+
this.dialogRef.close(this.getSelArr());
|
|
3387
|
+
}
|
|
3388
|
+
};
|
|
3389
|
+
FHPickListComponent.ctorParameters = () => [
|
|
3390
|
+
{ type: MatDialogRef },
|
|
3391
|
+
{ type: QueryService },
|
|
3392
|
+
{ type: ToastrService },
|
|
3393
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
3394
|
+
];
|
|
3395
|
+
__decorate([
|
|
3396
|
+
Input(),
|
|
3397
|
+
__metadata("design:type", Array)
|
|
3398
|
+
], FHPickListComponent.prototype, "value_list", void 0);
|
|
3399
|
+
__decorate([
|
|
3400
|
+
Input(),
|
|
3401
|
+
__metadata("design:type", Boolean)
|
|
3402
|
+
], FHPickListComponent.prototype, "single_sel", void 0);
|
|
3403
|
+
__decorate([
|
|
3404
|
+
Input(),
|
|
3405
|
+
__metadata("design:type", Boolean)
|
|
3406
|
+
], FHPickListComponent.prototype, "vis_buttons", void 0);
|
|
3407
|
+
__decorate([
|
|
3408
|
+
Input(),
|
|
3409
|
+
__metadata("design:type", Boolean)
|
|
3410
|
+
], FHPickListComponent.prototype, "limit_size", void 0);
|
|
3411
|
+
__decorate([
|
|
3412
|
+
Input(),
|
|
3413
|
+
__metadata("design:type", Array)
|
|
3414
|
+
], FHPickListComponent.prototype, "value_sel", void 0);
|
|
3415
|
+
FHPickListComponent = __decorate([
|
|
3416
|
+
Component({
|
|
3417
|
+
selector: "FHPickList",
|
|
3418
|
+
template: `
|
|
3419
|
+
<div fxLayout="column" fxLayoutGap="15px" fxFlex>
|
|
3420
|
+
<div fxLayout="row">
|
|
3421
|
+
<div fxLayout="column" fxFlex="41%">
|
|
3422
|
+
<div style="width:100%;height:420px;overflow:auto;">
|
|
3423
|
+
<table style="width: 100%" class="fh_table">
|
|
3424
|
+
<thead>
|
|
3425
|
+
<tr>
|
|
3426
|
+
<th>VALORI SELEZIONABILI</th>
|
|
3427
|
+
</tr>
|
|
3428
|
+
</thead>
|
|
3429
|
+
|
|
3430
|
+
<tbody>
|
|
3431
|
+
<tr>
|
|
3432
|
+
<td>
|
|
3433
|
+
<input
|
|
3434
|
+
[(ngModel)]="fltr_user"
|
|
3435
|
+
(ngModelChange)="filtra()"
|
|
3436
|
+
style="padding:8px;margin:15px auto;width:100%;"
|
|
3437
|
+
placeholder="Ricerca..."
|
|
3438
|
+
/>
|
|
3439
|
+
</td>
|
|
3440
|
+
</tr>
|
|
3441
|
+
<tr
|
|
3442
|
+
*ngFor="
|
|
3443
|
+
let u of value_list_sel;
|
|
3444
|
+
let odd = odd;
|
|
3445
|
+
let even = even
|
|
3446
|
+
"
|
|
3447
|
+
|
|
3448
|
+
(click)="addTo(u)"
|
|
3449
|
+
(dblclick)="do_add()"
|
|
3450
|
+
class="selector"
|
|
3451
|
+
|
|
3452
|
+
[ngClass]="{ active: selectedAdd == u }"
|
|
3453
|
+
>
|
|
3454
|
+
<td [ngClass]="{ odd: odd, even: even }" style="cursor:pointer">{{ u.descrizione_valore }}</td>
|
|
3455
|
+
</tr>
|
|
3456
|
+
</tbody>
|
|
3457
|
+
</table>
|
|
3458
|
+
</div>
|
|
3459
|
+
</div>
|
|
3460
|
+
<div
|
|
3461
|
+
fxLayout="column"
|
|
3462
|
+
fxFlex="18%"
|
|
3463
|
+
style="height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);"
|
|
3464
|
+
>
|
|
3465
|
+
<div
|
|
3466
|
+
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"
|
|
3467
|
+
>
|
|
3468
|
+
<button
|
|
3469
|
+
mat-flat-button
|
|
3470
|
+
color="primary"
|
|
3471
|
+
(click)="do_add()"
|
|
3472
|
+
[disabled]="!option"
|
|
3473
|
+
>
|
|
3474
|
+
<mat-icon>arrow_forward</mat-icon>
|
|
3475
|
+
</button>
|
|
3476
|
+
<br /><br />
|
|
3477
|
+
<button
|
|
3478
|
+
mat-flat-button
|
|
3479
|
+
color="primary"
|
|
3480
|
+
(click)="do_rem()"
|
|
3481
|
+
[disabled]="option"
|
|
3482
|
+
>
|
|
3483
|
+
<mat-icon>delete</mat-icon>
|
|
3484
|
+
</button>
|
|
3485
|
+
</div>
|
|
3486
|
+
</div>
|
|
3487
|
+
<div fxLayout="column" fxFlex="41%">
|
|
3488
|
+
<div style="width:100%;height:420px;overflow:auto;">
|
|
3489
|
+
<table style="width: 100%" class="fh_table">
|
|
3490
|
+
<thead>
|
|
3491
|
+
<tr>
|
|
3492
|
+
<th>VALORI SELEZIONATI</th>
|
|
3493
|
+
</tr>
|
|
3494
|
+
</thead>
|
|
3495
|
+
<tbody>
|
|
3496
|
+
<tr
|
|
3497
|
+
*ngFor="let u of value_sel; let odd = odd; let even = even"
|
|
3498
|
+
(mouseover)="selectedRemove = u"
|
|
3499
|
+
[ngClass]="{ odd: odd, even: even }"
|
|
3500
|
+
(click)="removeTo(u)"
|
|
3501
|
+
(dblclick)="do_rem()"
|
|
3502
|
+
class="selector"
|
|
3503
|
+
[ngClass]="{ active: selectedRemove == u }"
|
|
3504
|
+
>
|
|
3505
|
+
<td [ngClass]="{ odd: odd, even: even }" style="cursor:pointer">{{ u.descrizione_valore }}</td>
|
|
3506
|
+
</tr>
|
|
3507
|
+
</tbody>
|
|
3508
|
+
</table>
|
|
3509
|
+
</div>
|
|
3510
|
+
</div>
|
|
3511
|
+
</div>
|
|
3512
|
+
<br /><br />
|
|
3513
|
+
<div fxLayout="row" fxLayoutAlign="center center" fxLayoutGap="5px">
|
|
3514
|
+
<button mat-flat-button color="primary" (click)="ok()">Ok</button
|
|
3515
|
+
>
|
|
3516
|
+
<button
|
|
3517
|
+
mat-flat-button
|
|
3518
|
+
style="background-color: #F5F5F5"
|
|
3519
|
+
(click)="dialogRef.close()"
|
|
3520
|
+
>
|
|
3521
|
+
Annulla
|
|
3522
|
+
</button>
|
|
3523
|
+
</div>
|
|
3524
|
+
</div>
|
|
3525
|
+
`,
|
|
3526
|
+
styles: [`
|
|
3527
|
+
.selector {
|
|
3528
|
+
cursor: hand;
|
|
3529
|
+
}
|
|
3530
|
+
`]
|
|
3531
|
+
}),
|
|
3532
|
+
__param(3, Inject(MAT_DIALOG_DATA)),
|
|
3533
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
3534
|
+
QueryService,
|
|
3535
|
+
ToastrService, Object])
|
|
3536
|
+
], FHPickListComponent);
|
|
3537
|
+
|
|
3538
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
3539
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3540
|
+
useExisting: forwardRef(() => FHPickFieldComponent),
|
|
3541
|
+
multi: true,
|
|
3542
|
+
};
|
|
3543
|
+
let FHPickFieldComponent = class FHPickFieldComponent {
|
|
3544
|
+
constructor(dataservice, dialog) {
|
|
3545
|
+
this.dataservice = dataservice;
|
|
3546
|
+
this.dialog = dialog;
|
|
3547
|
+
this.label = '';
|
|
3548
|
+
this.required = false;
|
|
3549
|
+
this.enabled = true;
|
|
3550
|
+
this.hidden = false;
|
|
3551
|
+
this.sep = ',';
|
|
3552
|
+
this.value_list = new Array();
|
|
3553
|
+
this.single_sel = false;
|
|
3554
|
+
this.vis_buttons = true;
|
|
3555
|
+
this.limit_size = false;
|
|
3556
|
+
this.value_sel = [];
|
|
3557
|
+
this.change = new EventEmitter();
|
|
3558
|
+
this.t_value = "";
|
|
3559
|
+
this.i_value = "";
|
|
3560
|
+
this.selectedUser = [];
|
|
3561
|
+
this.onChange = (_) => { };
|
|
3562
|
+
this.onTouched = () => { };
|
|
2124
3563
|
}
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
2131
|
-
this.setByDescri(this.valDef);
|
|
2132
|
-
this.fillend.emit();
|
|
3564
|
+
ngAfterViewInit() {
|
|
3565
|
+
setTimeout(() => {
|
|
3566
|
+
if (this.required)
|
|
3567
|
+
this.label = this.label + " *";
|
|
3568
|
+
});
|
|
2133
3569
|
}
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
this.
|
|
2149
|
-
|
|
2150
|
-
|
|
3570
|
+
set_by_value(v) {
|
|
3571
|
+
if (v == null)
|
|
3572
|
+
this.clear();
|
|
3573
|
+
if (v == '')
|
|
3574
|
+
this.clear();
|
|
3575
|
+
let vx = v.split(this.sep);
|
|
3576
|
+
this.t_value = '';
|
|
3577
|
+
this.i_value = '';
|
|
3578
|
+
this.value_sel = [];
|
|
3579
|
+
for (let ix = 0; ix < vx.length; ix++) {
|
|
3580
|
+
for (let index = 0; index < this.value_list.length; index++) {
|
|
3581
|
+
if (vx[ix] == this.value_list[index].valore) {
|
|
3582
|
+
if (this.t_value != '')
|
|
3583
|
+
this.t_value += this.sep;
|
|
3584
|
+
this.t_value += this.value_list[index].descrizione_valore;
|
|
3585
|
+
if (this.i_value != '')
|
|
3586
|
+
this.i_value += this.sep;
|
|
3587
|
+
this.i_value += this.value_list[index].valore;
|
|
3588
|
+
this.value_sel.push(this.value_list[index].valore);
|
|
3589
|
+
break;
|
|
3590
|
+
}
|
|
2151
3591
|
}
|
|
2152
|
-
this.update_dis();
|
|
2153
|
-
}
|
|
2154
|
-
setByIndex(ind) {
|
|
2155
|
-
this.valDef = "";
|
|
2156
|
-
this.selval = "-1";
|
|
2157
|
-
if (this.myData == null)
|
|
2158
|
-
return;
|
|
2159
|
-
if (this.myData.length == 0 || this.myData[0] == null)
|
|
2160
|
-
return;
|
|
2161
|
-
if (this.myData.length > ind) {
|
|
2162
|
-
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
2163
3592
|
}
|
|
2164
3593
|
}
|
|
2165
|
-
|
|
2166
|
-
if (
|
|
2167
|
-
|
|
2168
|
-
if (this.selval == "-1")
|
|
2169
|
-
return null;
|
|
2170
|
-
else
|
|
2171
|
-
for (let j = 0; j < this.myData.length; j++)
|
|
2172
|
-
if (this.myData[j].valore == this.selval) {
|
|
2173
|
-
return this.myData[j];
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
|
-
setByValue(desc_val) {
|
|
2177
|
-
this.valDef = desc_val;
|
|
2178
|
-
this.selval = "-1";
|
|
2179
|
-
// console.log(this.myData);
|
|
2180
|
-
if ("" + desc_val == "") {
|
|
2181
|
-
// console.log('qqq1111');
|
|
3594
|
+
writeValue(value) {
|
|
3595
|
+
if (value == null) {
|
|
3596
|
+
this.clear();
|
|
2182
3597
|
return;
|
|
2183
3598
|
}
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
return;
|
|
2187
|
-
// console.log("qui1");
|
|
2188
|
-
if (this.myData.length == 0 || this.myData[0] == null)
|
|
3599
|
+
if (value == '') {
|
|
3600
|
+
this.clear();
|
|
2189
3601
|
return;
|
|
2190
|
-
//console.log("qui2");
|
|
2191
|
-
for (let j = 0; j < this.myData.length; j++) {
|
|
2192
|
-
//console.log(this.myData[j].valore +' '+ desc_val);
|
|
2193
|
-
if (this.myData[j].valore == desc_val) {
|
|
2194
|
-
this.selval = "" + this.myData[j].valore;
|
|
2195
|
-
if (this.myData[j].descrizione_valore != null)
|
|
2196
|
-
this.descri_val = this.myData[j].descrizione_valore;
|
|
2197
|
-
this.update_dis();
|
|
2198
|
-
return;
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
this.update_dis();
|
|
2202
|
-
}
|
|
2203
|
-
getDescri() {
|
|
2204
|
-
if (!this.enabled) {
|
|
2205
|
-
if (this.selval == null)
|
|
2206
|
-
return this.valDef;
|
|
2207
|
-
if (this.selval == "-1")
|
|
2208
|
-
return this.valDef;
|
|
2209
|
-
}
|
|
2210
|
-
if (this.selval == null)
|
|
2211
|
-
return "-1";
|
|
2212
|
-
if (this.selval == "-1")
|
|
2213
|
-
return "-1";
|
|
2214
|
-
else
|
|
2215
|
-
for (let j = 0; j < this.myData.length; j++)
|
|
2216
|
-
if (this.myData[j].valore == this.selval) {
|
|
2217
|
-
return this.myData[j].descrizione_valore;
|
|
2218
|
-
}
|
|
2219
|
-
}
|
|
2220
|
-
getValue() {
|
|
2221
|
-
// console.log(this.selval);
|
|
2222
|
-
if (!this.enabled) {
|
|
2223
|
-
if (this.selval == null)
|
|
2224
|
-
return this.valDef;
|
|
2225
|
-
if (this.selval == "-1")
|
|
2226
|
-
return this.valDef;
|
|
2227
|
-
}
|
|
2228
|
-
if (this.selval == null)
|
|
2229
|
-
return "-1";
|
|
2230
|
-
if (this.selval == "")
|
|
2231
|
-
return "-1";
|
|
2232
|
-
else
|
|
2233
|
-
return this.selval;
|
|
2234
|
-
}
|
|
2235
|
-
getData(campo) {
|
|
2236
|
-
for (var x in this.myData) {
|
|
2237
|
-
if (this.myData[x]["valore"] == this.selval) {
|
|
2238
|
-
return this.myData[x][campo];
|
|
2239
|
-
}
|
|
2240
|
-
else {
|
|
2241
|
-
continue;
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
set_options(s) {
|
|
2246
|
-
this.myData = new Array();
|
|
2247
|
-
let a = s.split("$");
|
|
2248
|
-
for (let i = 0; i < a.length; i++) {
|
|
2249
|
-
var o = new Object();
|
|
2250
|
-
var av = a[i].split("|");
|
|
2251
|
-
o.valore = av[1];
|
|
2252
|
-
o.descrizione_valore = av[0];
|
|
2253
|
-
this.myData.push(o);
|
|
2254
3602
|
}
|
|
2255
|
-
this.
|
|
2256
|
-
if (this.getValue() == "-1")
|
|
2257
|
-
this.setByDescri(this.valDef);
|
|
3603
|
+
this.set_by_value(value);
|
|
2258
3604
|
}
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
this.
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
this.
|
|
3605
|
+
open_pick() {
|
|
3606
|
+
if (!this.enabled)
|
|
3607
|
+
return;
|
|
3608
|
+
let dialogRef = this.dialog.open(FHPickListComponent, {
|
|
3609
|
+
disableClose: true,
|
|
3610
|
+
width: "700px",
|
|
3611
|
+
height: "550px", data: {
|
|
3612
|
+
value_list: JSON.parse(JSON.stringify(this.value_list)),
|
|
3613
|
+
single_sel: this.single_sel,
|
|
3614
|
+
vis_buttons: this.vis_buttons,
|
|
3615
|
+
limit_size: this.limit_size,
|
|
3616
|
+
value_sel: JSON.parse(JSON.stringify(this.value_sel))
|
|
2270
3617
|
}
|
|
2271
|
-
this.initend.emit();
|
|
2272
3618
|
});
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
descrizione_valore: this.getDescri(),
|
|
3619
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
3620
|
+
if (result != null) {
|
|
3621
|
+
this.set_by_value(result.map((v) => { return v.valore; }).join(this.sep));
|
|
3622
|
+
this.change.emit(result);
|
|
3623
|
+
this.onChange(this.i_value);
|
|
3624
|
+
}
|
|
2280
3625
|
});
|
|
2281
3626
|
}
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
writeValue(value) {
|
|
2287
|
-
this.setByValue(value);
|
|
3627
|
+
clear() {
|
|
3628
|
+
this.t_value = '';
|
|
3629
|
+
this.i_value = '';
|
|
3630
|
+
this.onChange('');
|
|
2288
3631
|
}
|
|
2289
3632
|
registerOnChange(fn) {
|
|
2290
3633
|
this.onChange = fn;
|
|
@@ -2293,112 +3636,176 @@ let FHComboboxComponent = class FHComboboxComponent {
|
|
|
2293
3636
|
this.onTouched = fn;
|
|
2294
3637
|
}
|
|
2295
3638
|
};
|
|
2296
|
-
|
|
3639
|
+
FHPickFieldComponent.ctorParameters = () => [
|
|
2297
3640
|
{ type: QueryService },
|
|
2298
|
-
{ type:
|
|
3641
|
+
{ type: MatDialog }
|
|
2299
3642
|
];
|
|
2300
|
-
__decorate([
|
|
2301
|
-
Input(),
|
|
2302
|
-
__metadata("design:type", Boolean)
|
|
2303
|
-
], FHComboboxComponent.prototype, "init_fill", void 0);
|
|
2304
3643
|
__decorate([
|
|
2305
3644
|
Input(),
|
|
2306
3645
|
__metadata("design:type", String)
|
|
2307
|
-
],
|
|
2308
|
-
__decorate([
|
|
2309
|
-
Input(),
|
|
2310
|
-
__metadata("design:type", Array)
|
|
2311
|
-
], FHComboboxComponent.prototype, "types", void 0);
|
|
2312
|
-
__decorate([
|
|
2313
|
-
Input(),
|
|
2314
|
-
__metadata("design:type", Array)
|
|
2315
|
-
], FHComboboxComponent.prototype, "values", void 0);
|
|
3646
|
+
], FHPickFieldComponent.prototype, "label", void 0);
|
|
2316
3647
|
__decorate([
|
|
2317
3648
|
Input(),
|
|
2318
3649
|
__metadata("design:type", Boolean)
|
|
2319
|
-
],
|
|
2320
|
-
__decorate([
|
|
2321
|
-
Input(),
|
|
2322
|
-
__metadata("design:type", String)
|
|
2323
|
-
], FHComboboxComponent.prototype, "label", void 0);
|
|
3650
|
+
], FHPickFieldComponent.prototype, "required", void 0);
|
|
2324
3651
|
__decorate([
|
|
2325
3652
|
Input(),
|
|
2326
3653
|
__metadata("design:type", Boolean)
|
|
2327
|
-
],
|
|
3654
|
+
], FHPickFieldComponent.prototype, "enabled", void 0);
|
|
2328
3655
|
__decorate([
|
|
2329
3656
|
Input(),
|
|
2330
3657
|
__metadata("design:type", Boolean)
|
|
2331
|
-
],
|
|
3658
|
+
], FHPickFieldComponent.prototype, "hidden", void 0);
|
|
2332
3659
|
__decorate([
|
|
2333
3660
|
Input(),
|
|
2334
3661
|
__metadata("design:type", String)
|
|
2335
|
-
],
|
|
2336
|
-
__decorate([
|
|
2337
|
-
ViewChild("cmb"),
|
|
2338
|
-
__metadata("design:type", ElementRef)
|
|
2339
|
-
], FHComboboxComponent.prototype, "smtr", void 0);
|
|
3662
|
+
], FHPickFieldComponent.prototype, "sep", void 0);
|
|
2340
3663
|
__decorate([
|
|
2341
|
-
|
|
2342
|
-
__metadata("design:type",
|
|
2343
|
-
],
|
|
3664
|
+
Input(),
|
|
3665
|
+
__metadata("design:type", Array)
|
|
3666
|
+
], FHPickFieldComponent.prototype, "value_list", void 0);
|
|
2344
3667
|
__decorate([
|
|
2345
|
-
|
|
2346
|
-
__metadata("design:type",
|
|
2347
|
-
],
|
|
3668
|
+
Input(),
|
|
3669
|
+
__metadata("design:type", Boolean)
|
|
3670
|
+
], FHPickFieldComponent.prototype, "single_sel", void 0);
|
|
2348
3671
|
__decorate([
|
|
2349
|
-
|
|
2350
|
-
__metadata("design:type",
|
|
2351
|
-
],
|
|
3672
|
+
Input(),
|
|
3673
|
+
__metadata("design:type", Boolean)
|
|
3674
|
+
], FHPickFieldComponent.prototype, "vis_buttons", void 0);
|
|
2352
3675
|
__decorate([
|
|
2353
3676
|
Input(),
|
|
2354
|
-
__metadata("design:type",
|
|
2355
|
-
],
|
|
3677
|
+
__metadata("design:type", Boolean)
|
|
3678
|
+
], FHPickFieldComponent.prototype, "limit_size", void 0);
|
|
2356
3679
|
__decorate([
|
|
2357
3680
|
Input(),
|
|
2358
|
-
__metadata("design:type",
|
|
2359
|
-
],
|
|
2360
|
-
|
|
3681
|
+
__metadata("design:type", Array)
|
|
3682
|
+
], FHPickFieldComponent.prototype, "value_sel", void 0);
|
|
3683
|
+
__decorate([
|
|
3684
|
+
Output(),
|
|
3685
|
+
__metadata("design:type", EventEmitter)
|
|
3686
|
+
], FHPickFieldComponent.prototype, "change", void 0);
|
|
3687
|
+
FHPickFieldComponent = __decorate([
|
|
2361
3688
|
Component({
|
|
2362
|
-
selector: "
|
|
3689
|
+
selector: "FHPickField",
|
|
2363
3690
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
2364
|
-
template: `
|
|
2365
|
-
<
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
3691
|
+
template: `
|
|
3692
|
+
<div fxLayout="row" [hidden]="!enabled || hidden">
|
|
3693
|
+
<mat-form-field
|
|
3694
|
+
style="clickable-field"
|
|
3695
|
+
(click)="open_pick()"
|
|
3696
|
+
appearance="outline"
|
|
3697
|
+
floatLabel="always"
|
|
3698
|
+
><mat-label>{{ label }}</mat-label>
|
|
3699
|
+
|
|
3700
|
+
<input
|
|
3701
|
+
matInput
|
|
3702
|
+
[hidden]="hidden"
|
|
3703
|
+
type="text"
|
|
3704
|
+
[ngModel]="t_value"
|
|
3705
|
+
[disabled]="false"
|
|
3706
|
+
readonly
|
|
3707
|
+
/>
|
|
3708
|
+
</mat-form-field>
|
|
3709
|
+
<button
|
|
3710
|
+
mat-icon-button
|
|
3711
|
+
matSuffix
|
|
3712
|
+
[hidden]="selectedUser.length == 0"
|
|
3713
|
+
(click)="clear()"
|
|
3714
|
+
>
|
|
3715
|
+
<mat-icon>clear</mat-icon>
|
|
3716
|
+
</button>
|
|
3717
|
+
</div>
|
|
3718
|
+
<mat-form-field
|
|
3719
|
+
[hidden]="enabled || hidden"
|
|
3720
|
+
appearance="outline"
|
|
3721
|
+
floatLabel="always"
|
|
3722
|
+
><mat-label>{{ label }}</mat-label>
|
|
3723
|
+
<input
|
|
3724
|
+
type="text"
|
|
3725
|
+
#el1
|
|
3726
|
+
matInput
|
|
3727
|
+
[disabled]="true"
|
|
3728
|
+
[(ngModel)]="t_value"
|
|
3729
|
+
/>
|
|
3730
|
+
</mat-form-field>
|
|
3731
|
+
`,
|
|
3732
|
+
styles: [`
|
|
3733
|
+
.clickable-field {
|
|
3734
|
+
border: 1px solid #000000;
|
|
3735
|
+
color: #000000;
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3738
|
+
.clickable-field:focus {
|
|
3739
|
+
outline: none;
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
:host ::ng-deep .mat-input-element {
|
|
3743
|
+
cursor: pointer !important;
|
|
3744
|
+
}
|
|
3745
|
+
`]
|
|
3746
|
+
}),
|
|
3747
|
+
__metadata("design:paramtypes", [QueryService, MatDialog])
|
|
3748
|
+
], FHPickFieldComponent);
|
|
2382
3749
|
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
3750
|
+
let win_show_log_dett = class win_show_log_dett {
|
|
3751
|
+
constructor(dialogRef, data) {
|
|
3752
|
+
this.dialogRef = dialogRef;
|
|
3753
|
+
this.data = data;
|
|
3754
|
+
this.modifiche = [];
|
|
3755
|
+
this.title = "";
|
|
3756
|
+
this.title = data.title.toUpperCase();
|
|
3757
|
+
this.modifiche = JSON.parse(data.dt);
|
|
3758
|
+
}
|
|
3759
|
+
close() {
|
|
3760
|
+
this.dialogRef.close(null);
|
|
3761
|
+
}
|
|
3762
|
+
ngAfterViewInit() { }
|
|
3763
|
+
};
|
|
3764
|
+
win_show_log_dett.ctorParameters = () => [
|
|
3765
|
+
{ type: MatDialogRef },
|
|
3766
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
3767
|
+
];
|
|
3768
|
+
win_show_log_dett = __decorate([
|
|
3769
|
+
Component({
|
|
3770
|
+
template: `
|
|
3771
|
+
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
|
|
3772
|
+
<img
|
|
3773
|
+
src="assets/icons/x.png"
|
|
3774
|
+
style="cursor: pointer;"
|
|
3775
|
+
(click)="close()"
|
|
2394
3776
|
/>
|
|
2395
|
-
</
|
|
2396
|
-
|
|
2397
|
-
|
|
3777
|
+
</div>
|
|
3778
|
+
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
3779
|
+
<h2 mat-dialog-title>DETTAGLIO MODIFICA - {{ title }}</h2>
|
|
3780
|
+
|
|
3781
|
+
<mat-dialog-content style="min-width:700px">
|
|
3782
|
+
<table style="width: 90%" class="fh_table">
|
|
3783
|
+
<thead>
|
|
3784
|
+
<tr>
|
|
3785
|
+
<th style="width:20%;">Operazione</th>
|
|
3786
|
+
<th style="width:20%;">Campo</th>
|
|
3787
|
+
<th style="width:30%;">Old Value</th>
|
|
3788
|
+
<th style="width:30%;">New Value</th>
|
|
3789
|
+
</tr>
|
|
3790
|
+
</thead>
|
|
3791
|
+
<tbody>
|
|
3792
|
+
<tr
|
|
3793
|
+
*ngFor="let u of modifiche; let odd = odd; let even = even"
|
|
3794
|
+
[ngClass]="{ odd: odd, even: even }"
|
|
3795
|
+
>
|
|
3796
|
+
<td>{{ u.op }}</td>
|
|
3797
|
+
<td>{{ u.path }}</td>
|
|
3798
|
+
<td>{{ u.oldVal }}</td>
|
|
3799
|
+
<td>{{ u.val }}</td>
|
|
3800
|
+
</tr>
|
|
3801
|
+
</tbody>
|
|
3802
|
+
</table>
|
|
3803
|
+
</mat-dialog-content>
|
|
3804
|
+
`
|
|
2398
3805
|
}),
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
],
|
|
3806
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
3807
|
+
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
3808
|
+
], win_show_log_dett);
|
|
2402
3809
|
|
|
2403
3810
|
let FHUploadComponent = class FHUploadComponent {
|
|
2404
3811
|
constructor(_dataService, toastr, dialog, app_s) {
|
|
@@ -2810,92 +4217,26 @@ FHUploadComponent = __decorate([
|
|
|
2810
4217
|
</button>
|
|
2811
4218
|
</div>
|
|
2812
4219
|
</div>
|
|
2813
|
-
<div *ngIf="!enabled" fxLayout="row" fxLayoutGap="10px">
|
|
2814
|
-
<label>{{ label }}:</label>
|
|
2815
|
-
<div *ngIf="label != descrizione">{{ descrizione }}</div>
|
|
2816
|
-
<button
|
|
2817
|
-
mat-flat-button
|
|
2818
|
-
*ngIf="b_edit_loaded"
|
|
2819
|
-
(click)="download_all()"
|
|
2820
|
-
style="font-size: 12px;background-color: #F5F5F5"
|
|
2821
|
-
>
|
|
2822
|
-
{{ label_b }}
|
|
2823
|
-
</button>
|
|
2824
|
-
</div>
|
|
2825
|
-
`,
|
|
2826
|
-
styles: [``]
|
|
2827
|
-
}),
|
|
2828
|
-
__metadata("design:paramtypes", [QueryService,
|
|
2829
|
-
ToastrService,
|
|
2830
|
-
MatDialog,
|
|
2831
|
-
AppService])
|
|
2832
|
-
], FHUploadComponent);
|
|
2833
|
-
|
|
2834
|
-
let FileService = class FileService {
|
|
2835
|
-
constructor(http, app_s, toastr) {
|
|
2836
|
-
this.http = http;
|
|
2837
|
-
this.app_s = app_s;
|
|
2838
|
-
this.toastr = toastr;
|
|
2839
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
2840
|
-
}
|
|
2841
|
-
doQuery(queryp, displayError = true) {
|
|
2842
|
-
this.headers = new HttpHeaders({
|
|
2843
|
-
"Content-Type": "application/json",
|
|
2844
|
-
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
2845
|
-
});
|
|
2846
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
2847
|
-
// console.log('FileService url: '+ this.url);
|
|
2848
|
-
let post_v = JSON.stringify(queryp);
|
|
2849
|
-
// console.log(post_v);
|
|
2850
|
-
return this.http
|
|
2851
|
-
.post(this.url, post_v, {
|
|
2852
|
-
headers: this.headers,
|
|
2853
|
-
})
|
|
2854
|
-
.pipe(map((res) => {
|
|
2855
|
-
// Handle errors, display if enabled
|
|
2856
|
-
let r = res;
|
|
2857
|
-
let err;
|
|
2858
|
-
if (!res) {
|
|
2859
|
-
err = new Error("Empty server response");
|
|
2860
|
-
}
|
|
2861
|
-
else if (r.result_msg === "KO") {
|
|
2862
|
-
err = new Error(r.msg);
|
|
2863
|
-
}
|
|
2864
|
-
if (err) {
|
|
2865
|
-
console.error(err);
|
|
2866
|
-
if (displayError) {
|
|
2867
|
-
this.toastr.error(err.message);
|
|
2868
|
-
}
|
|
2869
|
-
throw new Error(err);
|
|
2870
|
-
}
|
|
2871
|
-
return res || new QGResult();
|
|
2872
|
-
}), catchError((err) => {
|
|
2873
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
2874
|
-
// We'd also dig deeper into the error to get a better message
|
|
2875
|
-
let errMsg = err.message
|
|
2876
|
-
? err.message
|
|
2877
|
-
: err.status
|
|
2878
|
-
? `${err.status} - ${err.statusText}`
|
|
2879
|
-
: "Server error";
|
|
2880
|
-
console.error(errMsg); // log to console instead
|
|
2881
|
-
throw err;
|
|
2882
|
-
}));
|
|
2883
|
-
}
|
|
2884
|
-
};
|
|
2885
|
-
FileService.ctorParameters = () => [
|
|
2886
|
-
{ type: HttpClient },
|
|
2887
|
-
{ type: AppService },
|
|
2888
|
-
{ type: ToastrService }
|
|
2889
|
-
];
|
|
2890
|
-
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
2891
|
-
FileService = __decorate([
|
|
2892
|
-
Injectable({
|
|
2893
|
-
providedIn: "root",
|
|
4220
|
+
<div *ngIf="!enabled" fxLayout="row" fxLayoutGap="10px">
|
|
4221
|
+
<label>{{ label }}:</label>
|
|
4222
|
+
<div *ngIf="label != descrizione">{{ descrizione }}</div>
|
|
4223
|
+
<button
|
|
4224
|
+
mat-flat-button
|
|
4225
|
+
*ngIf="b_edit_loaded"
|
|
4226
|
+
(click)="download_all()"
|
|
4227
|
+
style="font-size: 12px;background-color: #F5F5F5"
|
|
4228
|
+
>
|
|
4229
|
+
{{ label_b }}
|
|
4230
|
+
</button>
|
|
4231
|
+
</div>
|
|
4232
|
+
`,
|
|
4233
|
+
styles: [``]
|
|
2894
4234
|
}),
|
|
2895
|
-
__metadata("design:paramtypes", [
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
]
|
|
4235
|
+
__metadata("design:paramtypes", [QueryService,
|
|
4236
|
+
ToastrService,
|
|
4237
|
+
MatDialog,
|
|
4238
|
+
AppService])
|
|
4239
|
+
], FHUploadComponent);
|
|
2899
4240
|
|
|
2900
4241
|
let AuthenticationService = class AuthenticationService {
|
|
2901
4242
|
constructor(_dataService, toastr, http, router, route, _fileService, app_s, uti_s) {
|
|
@@ -3171,231 +4512,6 @@ AuthenticationService = __decorate([
|
|
|
3171
4512
|
UtilityService])
|
|
3172
4513
|
], AuthenticationService);
|
|
3173
4514
|
|
|
3174
|
-
let WinAskTextBigComponent = class WinAskTextBigComponent {
|
|
3175
|
-
constructor(dialogRef, toastr, data) {
|
|
3176
|
-
this.dialogRef = dialogRef;
|
|
3177
|
-
this.toastr = toastr;
|
|
3178
|
-
this.data = data;
|
|
3179
|
-
this.title = "";
|
|
3180
|
-
this.label = "";
|
|
3181
|
-
this.valore = "";
|
|
3182
|
-
this.readonly = false;
|
|
3183
|
-
this.show_annulla = true;
|
|
3184
|
-
this.show_ok = true;
|
|
3185
|
-
this.min_chars = 3;
|
|
3186
|
-
if (data != null) {
|
|
3187
|
-
if (data.title != null)
|
|
3188
|
-
this.title = data.title;
|
|
3189
|
-
if (data.label != null)
|
|
3190
|
-
this.label = data.label;
|
|
3191
|
-
if (data.valore != null)
|
|
3192
|
-
this.valore = data.valore;
|
|
3193
|
-
if (data.readonly != null)
|
|
3194
|
-
this.readonly = data.readonly;
|
|
3195
|
-
if (data.show_annulla != null)
|
|
3196
|
-
this.show_annulla = data.show_annulla;
|
|
3197
|
-
if (data.show_ok != null)
|
|
3198
|
-
this.show_ok = data.show_ok;
|
|
3199
|
-
if (data.min_chars != null)
|
|
3200
|
-
this.min_chars = data.min_chars;
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
ngAfterViewInit() { }
|
|
3204
|
-
close() {
|
|
3205
|
-
this.dialogRef.close(null);
|
|
3206
|
-
}
|
|
3207
|
-
show() { }
|
|
3208
|
-
hide() {
|
|
3209
|
-
this.dialogRef.close(null);
|
|
3210
|
-
}
|
|
3211
|
-
do_check() {
|
|
3212
|
-
if (this.valore.length < this.min_chars) {
|
|
3213
|
-
this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
|
|
3214
|
-
return;
|
|
3215
|
-
}
|
|
3216
|
-
this.dialogRef.close(this.valore);
|
|
3217
|
-
}
|
|
3218
|
-
chiudi() {
|
|
3219
|
-
this.dialogRef.close(null);
|
|
3220
|
-
}
|
|
3221
|
-
};
|
|
3222
|
-
WinAskTextBigComponent.ctorParameters = () => [
|
|
3223
|
-
{ type: MatDialogRef },
|
|
3224
|
-
{ type: ToastrService },
|
|
3225
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
3226
|
-
];
|
|
3227
|
-
WinAskTextBigComponent = __decorate([
|
|
3228
|
-
Component({
|
|
3229
|
-
selector: "app-win_ask_text",
|
|
3230
|
-
template: `
|
|
3231
|
-
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
|
|
3232
|
-
<img
|
|
3233
|
-
src="assets/icons/x.png"
|
|
3234
|
-
style="cursor: pointer;"
|
|
3235
|
-
(click)="close()"
|
|
3236
|
-
/>
|
|
3237
|
-
</div>
|
|
3238
|
-
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
3239
|
-
|
|
3240
|
-
<h2 mat-dialog-title>{{ title }}</h2>
|
|
3241
|
-
<mat-dialog-content style="width:630px;font-size: 15px;">
|
|
3242
|
-
<mat-form-field
|
|
3243
|
-
appearance="outline"
|
|
3244
|
-
floatLabel="always"
|
|
3245
|
-
style="width:100%"
|
|
3246
|
-
><mat-label>{{ label }}</mat-label>
|
|
3247
|
-
<textarea
|
|
3248
|
-
matInput
|
|
3249
|
-
[readonly]="readonly"
|
|
3250
|
-
[(ngModel)]="valore"
|
|
3251
|
-
rows="15"
|
|
3252
|
-
required
|
|
3253
|
-
></textarea>
|
|
3254
|
-
</mat-form-field>
|
|
3255
|
-
</mat-dialog-content>
|
|
3256
|
-
<mat-dialog-actions>
|
|
3257
|
-
<div
|
|
3258
|
-
fxLayout="row"
|
|
3259
|
-
fxLayoutAlign="center center"
|
|
3260
|
-
style="width: 100%"
|
|
3261
|
-
[hidden]="readonly"
|
|
3262
|
-
>
|
|
3263
|
-
<button
|
|
3264
|
-
*ngIf="show_ok"
|
|
3265
|
-
mat-flat-button
|
|
3266
|
-
color="primary"
|
|
3267
|
-
(click)="do_check()"
|
|
3268
|
-
>
|
|
3269
|
-
OK</button
|
|
3270
|
-
>
|
|
3271
|
-
<button
|
|
3272
|
-
*ngIf="show_annulla"
|
|
3273
|
-
mat-flat-button
|
|
3274
|
-
color="warn"
|
|
3275
|
-
(click)="chiudi()"
|
|
3276
|
-
>
|
|
3277
|
-
ANNULLA
|
|
3278
|
-
</button>
|
|
3279
|
-
</div>
|
|
3280
|
-
<div
|
|
3281
|
-
fxLayout="row"
|
|
3282
|
-
fxLayoutAlign="center center"
|
|
3283
|
-
style="width: 100%"
|
|
3284
|
-
[hidden]="!readonly"
|
|
3285
|
-
>
|
|
3286
|
-
<button
|
|
3287
|
-
*ngIf="show_annulla"
|
|
3288
|
-
mat-flat-button
|
|
3289
|
-
color="warn"
|
|
3290
|
-
(click)="chiudi()"
|
|
3291
|
-
>
|
|
3292
|
-
CHIUDI
|
|
3293
|
-
</button>
|
|
3294
|
-
</div>
|
|
3295
|
-
</mat-dialog-actions>
|
|
3296
|
-
`
|
|
3297
|
-
}),
|
|
3298
|
-
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
3299
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
3300
|
-
ToastrService, Object])
|
|
3301
|
-
], WinAskTextBigComponent);
|
|
3302
|
-
|
|
3303
|
-
let FHWinComboSelect = class FHWinComboSelect {
|
|
3304
|
-
constructor(dialogRef, toastr, data) {
|
|
3305
|
-
this.dialogRef = dialogRef;
|
|
3306
|
-
this.toastr = toastr;
|
|
3307
|
-
this.data = data;
|
|
3308
|
-
this.label = "";
|
|
3309
|
-
this.width = "100%";
|
|
3310
|
-
this.nota = false;
|
|
3311
|
-
this.nota_val = "";
|
|
3312
|
-
if (data == null)
|
|
3313
|
-
return;
|
|
3314
|
-
if (data != null) {
|
|
3315
|
-
let lab = "";
|
|
3316
|
-
let arrd = [];
|
|
3317
|
-
let nota = false;
|
|
3318
|
-
if (data.label != null)
|
|
3319
|
-
lab = data.label;
|
|
3320
|
-
if (data.arr_option != null)
|
|
3321
|
-
arrd = data.arr_option;
|
|
3322
|
-
if (data.nota != null)
|
|
3323
|
-
nota = data.nota;
|
|
3324
|
-
this.set_selection(lab, arrd, nota);
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
close() {
|
|
3328
|
-
this.dialogRef.close(null);
|
|
3329
|
-
}
|
|
3330
|
-
set_selection(lab, myD, nota = false) {
|
|
3331
|
-
this.nota = nota;
|
|
3332
|
-
this.label = lab;
|
|
3333
|
-
for (let i = 0; i < myD.length; i++)
|
|
3334
|
-
this.cmb_sel.add_option(myD[i]);
|
|
3335
|
-
}
|
|
3336
|
-
ok() {
|
|
3337
|
-
if (this.cmb_sel.getValue() == "-1") {
|
|
3338
|
-
this.toastr.error("Selezionare un valore");
|
|
3339
|
-
return;
|
|
3340
|
-
}
|
|
3341
|
-
this.cmb_sel.getObj().nota = this.nota_val;
|
|
3342
|
-
this.dialogRef.close(this.cmb_sel.getObj());
|
|
3343
|
-
}
|
|
3344
|
-
ngAfterViewInit() { }
|
|
3345
|
-
};
|
|
3346
|
-
FHWinComboSelect.ctorParameters = () => [
|
|
3347
|
-
{ type: MatDialogRef },
|
|
3348
|
-
{ type: ToastrService },
|
|
3349
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
3350
|
-
];
|
|
3351
|
-
__decorate([
|
|
3352
|
-
ViewChild("cmb_sel"),
|
|
3353
|
-
__metadata("design:type", FHComboboxComponent)
|
|
3354
|
-
], FHWinComboSelect.prototype, "cmb_sel", void 0);
|
|
3355
|
-
FHWinComboSelect = __decorate([
|
|
3356
|
-
Component({
|
|
3357
|
-
selector: "fhwincomboselect",
|
|
3358
|
-
template: `
|
|
3359
|
-
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
|
|
3360
|
-
<img
|
|
3361
|
-
src="assets/icons/x.png"
|
|
3362
|
-
style="cursor: pointer;"
|
|
3363
|
-
(click)="close()"
|
|
3364
|
-
/>
|
|
3365
|
-
</div>
|
|
3366
|
-
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
3367
|
-
|
|
3368
|
-
<div fxLayout="column">
|
|
3369
|
-
<mat-dialog-content style="font-size: 15px;">
|
|
3370
|
-
<div fxLayout="column">
|
|
3371
|
-
<h3>
|
|
3372
|
-
{{ label | uppercase }}
|
|
3373
|
-
</h3>
|
|
3374
|
-
<FHComboBox #cmb_sel [init_fill]="false"></FHComboBox>
|
|
3375
|
-
<mat-form-field *ngIf="nota" appearance="outline" floatLabel="always"
|
|
3376
|
-
><mat-label>Nota</mat-label>
|
|
3377
|
-
<textarea matInput [(ngModel)]="nota_val" rows="12"></textarea>
|
|
3378
|
-
</mat-form-field>
|
|
3379
|
-
</div>
|
|
3380
|
-
</mat-dialog-content>
|
|
3381
|
-
|
|
3382
|
-
<mat-dialog-actions
|
|
3383
|
-
fxFlex="100"
|
|
3384
|
-
fxLayout="row"
|
|
3385
|
-
fxLayoutAlign="center center"
|
|
3386
|
-
>
|
|
3387
|
-
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
3388
|
-
>
|
|
3389
|
-
<button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
|
|
3390
|
-
</mat-dialog-actions>
|
|
3391
|
-
</div>
|
|
3392
|
-
`
|
|
3393
|
-
}),
|
|
3394
|
-
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
3395
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
3396
|
-
ToastrService, Object])
|
|
3397
|
-
], FHWinComboSelect);
|
|
3398
|
-
|
|
3399
4515
|
let FHUploadPanelComponent = class FHUploadPanelComponent {
|
|
3400
4516
|
constructor(_appservice, _dataService, toastr, dialog, auth_s, uti) {
|
|
3401
4517
|
this._appservice = _appservice;
|
|
@@ -6176,14 +7292,6 @@ class wkfapp {
|
|
|
6176
7292
|
}
|
|
6177
7293
|
}
|
|
6178
7294
|
|
|
6179
|
-
class FSInput {
|
|
6180
|
-
constructor() {
|
|
6181
|
-
this.command = "";
|
|
6182
|
-
this.p1 = "";
|
|
6183
|
-
this.p2 = "";
|
|
6184
|
-
}
|
|
6185
|
-
}
|
|
6186
|
-
|
|
6187
7295
|
class OfficeOperation {
|
|
6188
7296
|
}
|
|
6189
7297
|
class OfficeResult {
|
|
@@ -19696,7 +20804,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
|
|
|
19696
20804
|
win_salva_annulla,
|
|
19697
20805
|
FormBuilderComponent,
|
|
19698
20806
|
FormExecuterComponent,
|
|
19699
|
-
FHTableManager, FHPickFieldComponent
|
|
20807
|
+
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component
|
|
19700
20808
|
],
|
|
19701
20809
|
declarations: [
|
|
19702
20810
|
win_show_log_dett,
|
|
@@ -19774,7 +20882,7 @@ FluxhubLibModule = FluxhubLibModule_1 = __decorate([
|
|
|
19774
20882
|
FHTableManager,
|
|
19775
20883
|
win_manage_values,
|
|
19776
20884
|
win_manage_roles,
|
|
19777
|
-
FHComboboxComponentFilter, FHPickFieldComponent
|
|
20885
|
+
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component
|
|
19778
20886
|
],
|
|
19779
20887
|
providers: [HighlightService, DragulaService],
|
|
19780
20888
|
entryComponents: [
|
|
@@ -20009,5 +21117,5 @@ class FSResult {
|
|
|
20009
21117
|
* Generated bundle index. Do not edit.
|
|
20010
21118
|
*/
|
|
20011
21119
|
|
|
20012
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_show_log_dett, win_time_slider, win_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_select_canale as ɵba, win_select_level as ɵbb, win_commenti as ɵbc, win_info_doc as ɵbd, win_log as ɵbe, win_recupera_doc as ɵbf, win_riassegna_select_level as ɵbg, win_riassegna_select_user as ɵbh, win_sostituisci_utente as ɵbi, win_commento_sel_notif as ɵbj, win_manage_values as ɵbk, win_manage_roles as ɵbl, FHComboboxComponentFilter as ɵbm, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
|
|
21120
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmComponent, FHConfirmValues, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_show_log_dett, win_time_slider, win_uploads, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_select_canale as ɵba, win_select_level as ɵbb, win_commenti as ɵbc, win_info_doc as ɵbd, win_log as ɵbe, win_recupera_doc as ɵbf, win_riassegna_select_level as ɵbg, win_riassegna_select_user as ɵbh, win_sostituisci_utente as ɵbi, win_commento_sel_notif as ɵbj, win_manage_values as ɵbk, win_manage_roles as ɵbl, FHComboboxComponentFilter as ɵbm, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵm, FHHelpButton as ɵn, SafePipe as ɵo, DecimalMask as ɵp, MOMENT_DATE_FORMATS as ɵq, MomentDateAdapter as ɵr, win_grid_help as ɵs, HighlightService as ɵt, FHViewerComponent as ɵu, win_app_logs as ɵw, FHGridToolBarComponent as ɵx, win_assegna as ɵy, win_conferma as ɵz };
|
|
20013
21121
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|