@fluxhub/fluxhub-lib 9.0.137 → 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, __read, __metadata, __param, __extends, __assign } 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';
|
|
@@ -872,543 +872,465 @@ var QueryService = /** @class */ (function () {
|
|
|
872
872
|
return QueryService;
|
|
873
873
|
}());
|
|
874
874
|
|
|
875
|
-
var
|
|
876
|
-
function
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
875
|
+
var OdbcService = /** @class */ (function () {
|
|
876
|
+
function OdbcService(http, app_s, toastr) {
|
|
877
|
+
this.http = http;
|
|
878
|
+
this.app_s = app_s;
|
|
879
879
|
this.toastr = toastr;
|
|
880
|
-
this.
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
this.
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
this.
|
|
890
|
-
|
|
891
|
-
this.
|
|
892
|
-
|
|
880
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT; // URL to web API
|
|
881
|
+
}
|
|
882
|
+
OdbcService.prototype.doQuery = function (queryp, displayError) {
|
|
883
|
+
var _this = this;
|
|
884
|
+
if (displayError === void 0) { displayError = true; }
|
|
885
|
+
this.headers = new HttpHeaders({
|
|
886
|
+
"Content-Type": "application/json",
|
|
887
|
+
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
888
|
+
});
|
|
889
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
890
|
+
var post_v = JSON.stringify(queryp);
|
|
891
|
+
return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map(function (res) {
|
|
892
|
+
// Handle errors, display if enabled
|
|
893
|
+
var err;
|
|
894
|
+
if (!res) {
|
|
895
|
+
err = new Error("Empty server response");
|
|
896
|
+
}
|
|
897
|
+
else if (res.result_msg === "KO") {
|
|
898
|
+
err = new Error(res.msg);
|
|
899
|
+
}
|
|
900
|
+
if (err) {
|
|
901
|
+
console.error(err);
|
|
902
|
+
if (displayError) {
|
|
903
|
+
_this.toastr.error(err.message);
|
|
904
|
+
}
|
|
905
|
+
throw new Error(err);
|
|
906
|
+
}
|
|
907
|
+
return res || new QGResult();
|
|
908
|
+
}), catchError(function (err) {
|
|
909
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
910
|
+
// We'd also dig deeper into the error to get a better message
|
|
911
|
+
var errMsg = err.message
|
|
912
|
+
? err.message
|
|
913
|
+
: err.status
|
|
914
|
+
? err.status + " - " + err.statusText
|
|
915
|
+
: "Server error";
|
|
916
|
+
console.error(errMsg); // log to console instead
|
|
917
|
+
throw err;
|
|
918
|
+
}));
|
|
919
|
+
};
|
|
920
|
+
OdbcService.ctorParameters = function () { return [
|
|
921
|
+
{ type: HttpClient },
|
|
922
|
+
{ type: AppService },
|
|
923
|
+
{ type: ToastrService }
|
|
924
|
+
]; };
|
|
925
|
+
OdbcService.ɵprov = ɵɵdefineInjectable({ factory: function OdbcService_Factory() { return new OdbcService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: OdbcService, providedIn: "root" });
|
|
926
|
+
OdbcService = __decorate([
|
|
927
|
+
Injectable({
|
|
928
|
+
providedIn: "root",
|
|
929
|
+
}),
|
|
930
|
+
__metadata("design:paramtypes", [HttpClient,
|
|
931
|
+
AppService,
|
|
932
|
+
ToastrService])
|
|
933
|
+
], OdbcService);
|
|
934
|
+
return OdbcService;
|
|
935
|
+
}());
|
|
936
|
+
|
|
937
|
+
var noop = function () { };
|
|
938
|
+
var ɵ0 = noop;
|
|
939
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
940
|
+
provide: NG_VALUE_ACCESSOR,
|
|
941
|
+
useExisting: forwardRef(function () { return FHComboboxComponent; }),
|
|
942
|
+
multi: true,
|
|
943
|
+
};
|
|
944
|
+
var FHComboboxComponent = /** @class */ (function () {
|
|
945
|
+
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
946
|
+
this._dataService = _dataService;
|
|
947
|
+
this._dataService_odbc = _dataService_odbc;
|
|
948
|
+
this.init_fill = true;
|
|
949
|
+
this.sql = "";
|
|
893
950
|
this.types = [];
|
|
894
951
|
this.values = [];
|
|
895
|
-
this.
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
952
|
+
this.hidden = false;
|
|
953
|
+
this.label = "";
|
|
954
|
+
this.enabled = true;
|
|
955
|
+
this.required = false;
|
|
956
|
+
this.sel_label = "";
|
|
957
|
+
this.fillend = new EventEmitter();
|
|
958
|
+
this.selchange = new EventEmitter();
|
|
959
|
+
this.initend = new EventEmitter();
|
|
960
|
+
this.myData = [];
|
|
961
|
+
this.valDef = "-1";
|
|
962
|
+
this.selval = "-1";
|
|
963
|
+
this.errorMsg = "";
|
|
964
|
+
this.db_type = "1";
|
|
965
|
+
this.dis_value = "";
|
|
966
|
+
this.descri_val = "";
|
|
967
|
+
this.onChange = function (_) { };
|
|
968
|
+
this.onTouched = function () { };
|
|
909
969
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
if (
|
|
970
|
+
FHComboboxComponent.prototype.setValue = function (desc_val) {
|
|
971
|
+
this.setByValue(desc_val);
|
|
972
|
+
};
|
|
973
|
+
FHComboboxComponent.prototype.update_dis = function () {
|
|
974
|
+
this.dis_value = "";
|
|
975
|
+
try {
|
|
976
|
+
if (this.descri_val != null)
|
|
977
|
+
if (this.descri_val != "") {
|
|
978
|
+
this.dis_value = this.descri_val;
|
|
918
979
|
return;
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
else {
|
|
922
|
-
for (var i = 0; i < this.value_list.length; i++)
|
|
923
|
-
if (this.value_list[i].descrizione_valore
|
|
924
|
-
.toUpperCase()
|
|
925
|
-
.indexOf(this.fltr_user.toUpperCase()) != -1) {
|
|
926
|
-
var b_found_a = false;
|
|
927
|
-
for (var z = 0; z < this.value_list_sel.length; z++)
|
|
928
|
-
if (this.value_list_sel[z].descrizione_valore ==
|
|
929
|
-
this.value_list[i].descrizione_valore) {
|
|
930
|
-
b_found_a = true;
|
|
931
|
-
break;
|
|
932
|
-
}
|
|
933
|
-
if (!b_found_a)
|
|
934
|
-
this.value_list_sel.push(this.value_list[i]);
|
|
935
|
-
if (this.value_list_sel.length == 50 && this.limit_size)
|
|
936
|
-
return;
|
|
937
980
|
}
|
|
981
|
+
if (this.valDef == null)
|
|
982
|
+
this.dis_value = "";
|
|
983
|
+
else
|
|
984
|
+
this.dis_value = this.valDef.split("-1").join("");
|
|
985
|
+
}
|
|
986
|
+
catch (e) {
|
|
987
|
+
console.log("errore split -> this.valDef ", this.valDef);
|
|
938
988
|
}
|
|
939
|
-
/*
|
|
940
|
-
this.value_list_sel =new Array();
|
|
941
|
-
for(let i:number=0;i<this.value_list.length;i++)
|
|
942
|
-
{
|
|
943
|
-
let b_found_a=false;
|
|
944
|
-
for(let z:number=0;z<this.value_list_sel.length;z++)
|
|
945
|
-
if(this.value_list_sel[z].descrizione_valore==this.value_list[i].descrizione_valore){b_found_a=true; break;}
|
|
946
|
-
|
|
947
|
-
if(!b_found_a && (this.value_list[i].descrizione_valore.toUpperCase().indexOf(this.fltr_user.toUpperCase())!=-1 || this.fltr_user==''))
|
|
948
|
-
{
|
|
949
|
-
// console.log(this.value_list[i].username);
|
|
950
|
-
if(this.value_sel==null) this.value_list_sel.push(this.value_list[i]);
|
|
951
|
-
else
|
|
952
|
-
{
|
|
953
|
-
|
|
954
|
-
let b_found=false;
|
|
955
|
-
for(let y:number=0;y<this.value_sel.length;y++)
|
|
956
|
-
if(this.value_sel[y].descrizione_valore==this.value_list[i].descrizione_valore){b_found=true; break;}
|
|
957
|
-
if(!b_found)
|
|
958
|
-
this.value_list_sel.push(this.value_list[i]);
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
}*/
|
|
962
|
-
// console.log(this.value_list);
|
|
963
989
|
};
|
|
964
|
-
|
|
990
|
+
FHComboboxComponent.prototype.resetValue = function () {
|
|
991
|
+
this.selval = "-1";
|
|
992
|
+
this.valDef = "-1";
|
|
993
|
+
this.update_dis();
|
|
994
|
+
};
|
|
995
|
+
FHComboboxComponent.prototype.focus = function () {
|
|
996
|
+
this.smtr.nativeElement.focus();
|
|
997
|
+
};
|
|
998
|
+
FHComboboxComponent.prototype.reset = function () {
|
|
999
|
+
console.log("reset");
|
|
1000
|
+
this.selval = "-1";
|
|
1001
|
+
this.valDef = "-1";
|
|
1002
|
+
this.myData = new Array();
|
|
1003
|
+
this.update_dis();
|
|
1004
|
+
};
|
|
1005
|
+
FHComboboxComponent.prototype.fillCombo = function () {
|
|
965
1006
|
var _this = this;
|
|
966
|
-
this.
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1007
|
+
// console.log(this.init_fill);
|
|
1008
|
+
// if(!this.init_fill){this.init_fill=true;return;}
|
|
1009
|
+
if (this.sql == null)
|
|
1010
|
+
this.sql = "";
|
|
1011
|
+
if (this.sql.indexOf("|") != -1 && this.sql.indexOf("$") != -1) {
|
|
1012
|
+
this.set_options(this.sql);
|
|
1013
|
+
return;
|
|
971
1014
|
}
|
|
972
|
-
var ok_op = false;
|
|
973
1015
|
var p = new QParam();
|
|
974
|
-
p.sql =
|
|
1016
|
+
p.sql = this.sql;
|
|
975
1017
|
p.types = this.types;
|
|
976
1018
|
p.values = this.values;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}
|
|
989
|
-
_this.filtra();
|
|
990
|
-
ok_op = true;
|
|
1019
|
+
var ok_op = false;
|
|
1020
|
+
// console.log(p);
|
|
1021
|
+
if (this.db_type == "1")
|
|
1022
|
+
this._dataService.doQuery(p).subscribe(function (data) {
|
|
1023
|
+
var ok_op = false;
|
|
1024
|
+
if (data != null)
|
|
1025
|
+
if (data.result_msg == "OK") {
|
|
1026
|
+
_this.resetD(data.result_data);
|
|
1027
|
+
ok_op = true;
|
|
1028
|
+
}
|
|
1029
|
+
if (!ok_op) {
|
|
991
1030
|
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1031
|
+
}, function (err) {
|
|
1032
|
+
_this.errorMsg =
|
|
1033
|
+
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
1034
|
+
_this.sql +
|
|
1035
|
+
"]";
|
|
1036
|
+
});
|
|
1037
|
+
if (this.db_type == "2")
|
|
1038
|
+
this._dataService_odbc.doQuery(p).subscribe(function (data) {
|
|
1039
|
+
var ok_op = false;
|
|
1040
|
+
if (data != null)
|
|
1041
|
+
if (data.result_msg == "OK") {
|
|
1042
|
+
for (var i = 0; i < data.result_data.length; i++) {
|
|
1043
|
+
if (data.result_data[i].VALORE != null)
|
|
1044
|
+
data.result_data[i].valore = data.result_data[i].VALORE;
|
|
1045
|
+
if (data.result_data[i].DESCRIZIONE_VALORE != null)
|
|
1046
|
+
data.result_data[i].descrizione_valore =
|
|
1047
|
+
data.result_data[i].DESCRIZIONE_VALORE;
|
|
1048
|
+
}
|
|
1049
|
+
_this.resetD(data.result_data);
|
|
1050
|
+
ok_op = true;
|
|
1051
|
+
}
|
|
1052
|
+
if (!ok_op) {
|
|
1014
1053
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
timeOut: 1000,
|
|
1021
|
-
progressBar: true,
|
|
1054
|
+
}, function (err) {
|
|
1055
|
+
_this.errorMsg =
|
|
1056
|
+
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
|
|
1057
|
+
_this.sql +
|
|
1058
|
+
"]";
|
|
1022
1059
|
});
|
|
1060
|
+
};
|
|
1061
|
+
FHComboboxComponent.prototype.add_option = function (o) {
|
|
1062
|
+
this.myData.push(o);
|
|
1063
|
+
};
|
|
1064
|
+
FHComboboxComponent.prototype.resetD = function (o) {
|
|
1065
|
+
this.myData = o;
|
|
1066
|
+
this.selval = "-1";
|
|
1067
|
+
// console.log(this.smtr); console.log(this.smtr.nativeElement);
|
|
1068
|
+
this.setByValue(this.valDef);
|
|
1069
|
+
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
1070
|
+
this.setByDescri(this.valDef);
|
|
1071
|
+
this.fillend.emit();
|
|
1072
|
+
};
|
|
1073
|
+
FHComboboxComponent.prototype.setByDescri = function (desc_val) {
|
|
1074
|
+
// console.log("setByDescri "+desc_val);
|
|
1075
|
+
this.valDef = desc_val;
|
|
1076
|
+
this.selval = "-1";
|
|
1077
|
+
if (desc_val == "")
|
|
1023
1078
|
return;
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
if (
|
|
1027
|
-
|
|
1028
|
-
|
|
1079
|
+
if (this.myData == null)
|
|
1080
|
+
return;
|
|
1081
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1082
|
+
return;
|
|
1083
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
1084
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
1085
|
+
this.selval = "" + this.myData[j].valore;
|
|
1086
|
+
if (this.myData[j].descrizione_valore != null)
|
|
1087
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
1088
|
+
this.update_dis();
|
|
1089
|
+
return;
|
|
1029
1090
|
}
|
|
1030
|
-
|
|
1031
|
-
this.value_sel = new Array();
|
|
1032
|
-
this.value_sel.push(this.selectedAdd);
|
|
1033
|
-
this.selectedAdd = null;
|
|
1034
|
-
this.filtra();
|
|
1035
|
-
if (this.single_sel)
|
|
1036
|
-
this.ok();
|
|
1091
|
+
this.update_dis();
|
|
1037
1092
|
};
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1093
|
+
FHComboboxComponent.prototype.setByIndex = function (ind) {
|
|
1094
|
+
this.valDef = "";
|
|
1095
|
+
this.selval = "-1";
|
|
1096
|
+
if (this.myData == null)
|
|
1097
|
+
return;
|
|
1098
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1044
1099
|
return;
|
|
1100
|
+
if (this.myData.length > ind) {
|
|
1101
|
+
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
1045
1102
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1103
|
+
};
|
|
1104
|
+
FHComboboxComponent.prototype.getObj = function () {
|
|
1105
|
+
if (this.selval == null)
|
|
1106
|
+
return null;
|
|
1107
|
+
if (this.selval == "-1")
|
|
1108
|
+
return null;
|
|
1109
|
+
else
|
|
1110
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
1111
|
+
if (this.myData[j].valore == this.selval) {
|
|
1112
|
+
return this.myData[j];
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
FHComboboxComponent.prototype.setByValue = function (desc_val) {
|
|
1116
|
+
this.valDef = desc_val;
|
|
1117
|
+
this.selval = "-1";
|
|
1118
|
+
// console.log(this.myData);
|
|
1119
|
+
if ("" + desc_val == "") {
|
|
1120
|
+
// console.log('qqq1111');
|
|
1121
|
+
return;
|
|
1049
1122
|
}
|
|
1050
|
-
|
|
1051
|
-
this.
|
|
1052
|
-
|
|
1123
|
+
// console.log("qui");
|
|
1124
|
+
if (this.myData == null)
|
|
1125
|
+
return;
|
|
1126
|
+
// console.log("qui1");
|
|
1127
|
+
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1128
|
+
return;
|
|
1129
|
+
//console.log("qui2");
|
|
1130
|
+
for (var j = 0; j < this.myData.length; j++) {
|
|
1131
|
+
//console.log(this.myData[j].valore +' '+ desc_val);
|
|
1132
|
+
if (this.myData[j].valore == desc_val) {
|
|
1133
|
+
this.selval = "" + this.myData[j].valore;
|
|
1134
|
+
if (this.myData[j].descrizione_valore != null)
|
|
1135
|
+
this.descri_val = this.myData[j].descrizione_valore;
|
|
1136
|
+
this.update_dis();
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
this.update_dis();
|
|
1053
1141
|
};
|
|
1054
|
-
|
|
1055
|
-
this.
|
|
1056
|
-
|
|
1057
|
-
|
|
1142
|
+
FHComboboxComponent.prototype.getDescri = function () {
|
|
1143
|
+
if (!this.enabled) {
|
|
1144
|
+
if (this.selval == null)
|
|
1145
|
+
return this.valDef;
|
|
1146
|
+
if (this.selval == "-1")
|
|
1147
|
+
return this.valDef;
|
|
1148
|
+
}
|
|
1149
|
+
if (this.selval == null)
|
|
1150
|
+
return "-1";
|
|
1151
|
+
if (this.selval == "-1")
|
|
1152
|
+
return "-1";
|
|
1153
|
+
else
|
|
1154
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
1155
|
+
if (this.myData[j].valore == this.selval) {
|
|
1156
|
+
return this.myData[j].descrizione_valore;
|
|
1157
|
+
}
|
|
1058
1158
|
};
|
|
1059
|
-
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
|
|
1159
|
+
FHComboboxComponent.prototype.getValue = function () {
|
|
1160
|
+
// console.log(this.selval);
|
|
1161
|
+
if (!this.enabled) {
|
|
1162
|
+
if (this.selval == null)
|
|
1163
|
+
return this.valDef;
|
|
1164
|
+
if (this.selval == "-1")
|
|
1165
|
+
return this.valDef;
|
|
1166
|
+
}
|
|
1167
|
+
if (this.selval == null)
|
|
1168
|
+
return "-1";
|
|
1169
|
+
if (this.selval == "")
|
|
1170
|
+
return "-1";
|
|
1171
|
+
else
|
|
1172
|
+
return this.selval;
|
|
1063
1173
|
};
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1174
|
+
FHComboboxComponent.prototype.getData = function (campo) {
|
|
1175
|
+
for (var x in this.myData) {
|
|
1176
|
+
if (this.myData[x]["valore"] == this.selval) {
|
|
1177
|
+
return this.myData[x][campo];
|
|
1178
|
+
}
|
|
1179
|
+
else {
|
|
1180
|
+
continue;
|
|
1181
|
+
}
|
|
1070
1182
|
}
|
|
1071
|
-
return sx;
|
|
1072
1183
|
};
|
|
1073
|
-
|
|
1074
|
-
|
|
1184
|
+
FHComboboxComponent.prototype.set_options = function (s) {
|
|
1185
|
+
this.myData = new Array();
|
|
1186
|
+
var a = s.split("$");
|
|
1187
|
+
for (var i = 0; i < a.length; i++) {
|
|
1188
|
+
var o = new Object();
|
|
1189
|
+
var av = a[i].split("|");
|
|
1190
|
+
o.valore = av[1];
|
|
1191
|
+
o.descrizione_valore = av[0];
|
|
1192
|
+
this.myData.push(o);
|
|
1193
|
+
}
|
|
1194
|
+
this.setByValue(this.valDef);
|
|
1195
|
+
if (this.getValue() == "-1")
|
|
1196
|
+
this.setByDescri(this.valDef);
|
|
1075
1197
|
};
|
|
1076
|
-
|
|
1077
|
-
this
|
|
1198
|
+
FHComboboxComponent.prototype.ngAfterViewInit = function () {
|
|
1199
|
+
var _this = this;
|
|
1200
|
+
setTimeout(function () {
|
|
1201
|
+
if (_this.init_fill == true) {
|
|
1202
|
+
if (_this.sql == "") {
|
|
1203
|
+
//this.errorMsg="QUERY NON CONFIGURATA";
|
|
1204
|
+
return;
|
|
1205
|
+
}
|
|
1206
|
+
_this.fillCombo();
|
|
1207
|
+
}
|
|
1208
|
+
else {
|
|
1209
|
+
_this.errorMsg = "";
|
|
1210
|
+
}
|
|
1211
|
+
_this.initend.emit();
|
|
1212
|
+
});
|
|
1078
1213
|
};
|
|
1079
|
-
|
|
1080
|
-
|
|
1214
|
+
FHComboboxComponent.prototype.sc = function () {
|
|
1215
|
+
this.onChange(this.getValue());
|
|
1216
|
+
this.selchange.emit({
|
|
1217
|
+
event: this.getObj(),
|
|
1218
|
+
valore: this.getValue(),
|
|
1219
|
+
descrizione_valore: this.getDescri(),
|
|
1220
|
+
});
|
|
1221
|
+
};
|
|
1222
|
+
FHComboboxComponent.prototype.getModelValue = function () {
|
|
1223
|
+
var value = this.getData("valore");
|
|
1224
|
+
return value;
|
|
1225
|
+
};
|
|
1226
|
+
FHComboboxComponent.prototype.writeValue = function (value) {
|
|
1227
|
+
this.setByValue(value);
|
|
1228
|
+
};
|
|
1229
|
+
FHComboboxComponent.prototype.registerOnChange = function (fn) {
|
|
1230
|
+
this.onChange = fn;
|
|
1231
|
+
};
|
|
1232
|
+
FHComboboxComponent.prototype.registerOnTouched = function (fn) {
|
|
1233
|
+
this.onTouched = fn;
|
|
1234
|
+
};
|
|
1235
|
+
FHComboboxComponent.ctorParameters = function () { return [
|
|
1081
1236
|
{ type: QueryService },
|
|
1082
|
-
{ type:
|
|
1083
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1237
|
+
{ type: OdbcService }
|
|
1084
1238
|
]; };
|
|
1085
|
-
__decorate([
|
|
1086
|
-
Input(),
|
|
1087
|
-
__metadata("design:type", Array)
|
|
1088
|
-
], FHPickListComponent.prototype, "value_list", void 0);
|
|
1089
1239
|
__decorate([
|
|
1090
1240
|
Input(),
|
|
1091
1241
|
__metadata("design:type", Boolean)
|
|
1092
|
-
],
|
|
1242
|
+
], FHComboboxComponent.prototype, "init_fill", void 0);
|
|
1093
1243
|
__decorate([
|
|
1094
1244
|
Input(),
|
|
1095
|
-
__metadata("design:type",
|
|
1096
|
-
],
|
|
1245
|
+
__metadata("design:type", String)
|
|
1246
|
+
], FHComboboxComponent.prototype, "sql", void 0);
|
|
1097
1247
|
__decorate([
|
|
1098
1248
|
Input(),
|
|
1099
|
-
__metadata("design:type",
|
|
1100
|
-
],
|
|
1249
|
+
__metadata("design:type", Array)
|
|
1250
|
+
], FHComboboxComponent.prototype, "types", void 0);
|
|
1101
1251
|
__decorate([
|
|
1102
1252
|
Input(),
|
|
1103
1253
|
__metadata("design:type", Array)
|
|
1104
|
-
],
|
|
1105
|
-
FHPickListComponent = __decorate([
|
|
1106
|
-
Component({
|
|
1107
|
-
selector: "FHPickList",
|
|
1108
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td>{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"18%\"\n 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);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td>{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </div>\n ",
|
|
1109
|
-
styles: ["\n .selector {\n cursor: hand;\n }\n "]
|
|
1110
|
-
}),
|
|
1111
|
-
__param(3, Inject(MAT_DIALOG_DATA)),
|
|
1112
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
1113
|
-
QueryService,
|
|
1114
|
-
ToastrService, Object])
|
|
1115
|
-
], FHPickListComponent);
|
|
1116
|
-
return FHPickListComponent;
|
|
1117
|
-
}());
|
|
1118
|
-
|
|
1119
|
-
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
1120
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1121
|
-
useExisting: forwardRef(function () { return FHPickFieldComponent; }),
|
|
1122
|
-
multi: true,
|
|
1123
|
-
};
|
|
1124
|
-
var FHPickFieldComponent = /** @class */ (function () {
|
|
1125
|
-
function FHPickFieldComponent(dataservice, dialog) {
|
|
1126
|
-
this.dataservice = dataservice;
|
|
1127
|
-
this.dialog = dialog;
|
|
1128
|
-
this.label = '';
|
|
1129
|
-
this.required = false;
|
|
1130
|
-
this.enabled = true;
|
|
1131
|
-
this.hidden = false;
|
|
1132
|
-
this.sep = ',';
|
|
1133
|
-
this.value_list = new Array();
|
|
1134
|
-
this.single_sel = false;
|
|
1135
|
-
this.vis_buttons = true;
|
|
1136
|
-
this.limit_size = false;
|
|
1137
|
-
this.value_sel = new Array();
|
|
1138
|
-
this.change = new EventEmitter();
|
|
1139
|
-
this.t_value = "";
|
|
1140
|
-
this.i_value = "";
|
|
1141
|
-
this.selectedUser = [];
|
|
1142
|
-
this.onChange = function (_) { };
|
|
1143
|
-
this.onTouched = function () { };
|
|
1144
|
-
}
|
|
1145
|
-
FHPickFieldComponent.prototype.ngAfterViewInit = function () {
|
|
1146
|
-
var _this = this;
|
|
1147
|
-
setTimeout(function () {
|
|
1148
|
-
if (_this.required)
|
|
1149
|
-
_this.label = _this.label + " *";
|
|
1150
|
-
});
|
|
1151
|
-
};
|
|
1152
|
-
FHPickFieldComponent.prototype.set_by_value = function (v) {
|
|
1153
|
-
if (v == null)
|
|
1154
|
-
this.clear();
|
|
1155
|
-
if (v == '')
|
|
1156
|
-
this.clear();
|
|
1157
|
-
var vx = v.split(this.sep);
|
|
1158
|
-
this.t_value = '';
|
|
1159
|
-
this.i_value = '';
|
|
1160
|
-
for (var ix = 0; ix < vx.length; ix++) {
|
|
1161
|
-
for (var index = 0; index < this.value_list.length; index++) {
|
|
1162
|
-
if (vx[ix] == this.value_list[index].valore) {
|
|
1163
|
-
if (this.t_value != '')
|
|
1164
|
-
this.t_value += this.sep;
|
|
1165
|
-
this.t_value += this.value_list[index].descrizione_valore;
|
|
1166
|
-
if (this.i_value != '')
|
|
1167
|
-
this.i_value += this.sep;
|
|
1168
|
-
this.i_value += this.value_list[index].descrizione_valore;
|
|
1169
|
-
break;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
};
|
|
1174
|
-
FHPickFieldComponent.prototype.writeValue = function (value) {
|
|
1175
|
-
if (value == null) {
|
|
1176
|
-
this.clear();
|
|
1177
|
-
return;
|
|
1178
|
-
}
|
|
1179
|
-
if (value == '') {
|
|
1180
|
-
this.clear();
|
|
1181
|
-
return;
|
|
1182
|
-
}
|
|
1183
|
-
this.set_by_value(value);
|
|
1184
|
-
};
|
|
1185
|
-
FHPickFieldComponent.prototype.open_pick = function () {
|
|
1186
|
-
var _this = this;
|
|
1187
|
-
if (!this.enabled)
|
|
1188
|
-
return;
|
|
1189
|
-
var dialogRef = this.dialog.open(FHPickListComponent, {
|
|
1190
|
-
disableClose: true,
|
|
1191
|
-
width: "700px",
|
|
1192
|
-
height: "550px", data: {
|
|
1193
|
-
value_list: this.value_list,
|
|
1194
|
-
single_sel: this.single_sel,
|
|
1195
|
-
vis_buttons: this.vis_buttons,
|
|
1196
|
-
limit_size: this.limit_size,
|
|
1197
|
-
value_sel: this.value_sel
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
dialogRef.afterClosed().subscribe(function (result) {
|
|
1201
|
-
if (result != null) {
|
|
1202
|
-
_this.set_by_value(result.map(function (v) { return v.valore; }).join(_this.sep));
|
|
1203
|
-
_this.change.emit(result);
|
|
1204
|
-
}
|
|
1205
|
-
});
|
|
1206
|
-
};
|
|
1207
|
-
FHPickFieldComponent.prototype.clear = function () {
|
|
1208
|
-
this.t_value = '';
|
|
1209
|
-
this.i_value = '';
|
|
1210
|
-
this.onChange('');
|
|
1211
|
-
};
|
|
1212
|
-
FHPickFieldComponent.prototype.registerOnChange = function (fn) {
|
|
1213
|
-
this.onChange = fn;
|
|
1214
|
-
};
|
|
1215
|
-
FHPickFieldComponent.prototype.registerOnTouched = function (fn) {
|
|
1216
|
-
this.onTouched = fn;
|
|
1217
|
-
};
|
|
1218
|
-
FHPickFieldComponent.ctorParameters = function () { return [
|
|
1219
|
-
{ type: QueryService },
|
|
1220
|
-
{ type: MatDialog }
|
|
1221
|
-
]; };
|
|
1254
|
+
], FHComboboxComponent.prototype, "values", void 0);
|
|
1222
1255
|
__decorate([
|
|
1223
1256
|
Input(),
|
|
1224
|
-
__metadata("design:type",
|
|
1225
|
-
],
|
|
1257
|
+
__metadata("design:type", Boolean)
|
|
1258
|
+
], FHComboboxComponent.prototype, "hidden", void 0);
|
|
1226
1259
|
__decorate([
|
|
1227
1260
|
Input(),
|
|
1228
|
-
__metadata("design:type",
|
|
1229
|
-
],
|
|
1261
|
+
__metadata("design:type", String)
|
|
1262
|
+
], FHComboboxComponent.prototype, "label", void 0);
|
|
1230
1263
|
__decorate([
|
|
1231
1264
|
Input(),
|
|
1232
1265
|
__metadata("design:type", Boolean)
|
|
1233
|
-
],
|
|
1266
|
+
], FHComboboxComponent.prototype, "enabled", void 0);
|
|
1234
1267
|
__decorate([
|
|
1235
1268
|
Input(),
|
|
1236
1269
|
__metadata("design:type", Boolean)
|
|
1237
|
-
],
|
|
1270
|
+
], FHComboboxComponent.prototype, "required", void 0);
|
|
1238
1271
|
__decorate([
|
|
1239
1272
|
Input(),
|
|
1240
1273
|
__metadata("design:type", String)
|
|
1241
|
-
],
|
|
1274
|
+
], FHComboboxComponent.prototype, "sel_label", void 0);
|
|
1242
1275
|
__decorate([
|
|
1243
|
-
|
|
1244
|
-
__metadata("design:type",
|
|
1245
|
-
],
|
|
1276
|
+
ViewChild("cmb"),
|
|
1277
|
+
__metadata("design:type", ElementRef)
|
|
1278
|
+
], FHComboboxComponent.prototype, "smtr", void 0);
|
|
1246
1279
|
__decorate([
|
|
1247
|
-
|
|
1248
|
-
__metadata("design:type",
|
|
1249
|
-
],
|
|
1280
|
+
Output(),
|
|
1281
|
+
__metadata("design:type", EventEmitter)
|
|
1282
|
+
], FHComboboxComponent.prototype, "fillend", void 0);
|
|
1250
1283
|
__decorate([
|
|
1251
|
-
|
|
1252
|
-
__metadata("design:type",
|
|
1253
|
-
],
|
|
1284
|
+
Output(),
|
|
1285
|
+
__metadata("design:type", EventEmitter)
|
|
1286
|
+
], FHComboboxComponent.prototype, "selchange", void 0);
|
|
1254
1287
|
__decorate([
|
|
1255
|
-
|
|
1256
|
-
__metadata("design:type",
|
|
1257
|
-
],
|
|
1288
|
+
Output(),
|
|
1289
|
+
__metadata("design:type", EventEmitter)
|
|
1290
|
+
], FHComboboxComponent.prototype, "initend", void 0);
|
|
1258
1291
|
__decorate([
|
|
1259
1292
|
Input(),
|
|
1260
|
-
__metadata("design:type",
|
|
1261
|
-
],
|
|
1293
|
+
__metadata("design:type", String)
|
|
1294
|
+
], FHComboboxComponent.prototype, "valDef", void 0);
|
|
1262
1295
|
__decorate([
|
|
1263
|
-
|
|
1264
|
-
__metadata("design:type",
|
|
1265
|
-
],
|
|
1266
|
-
|
|
1296
|
+
Input(),
|
|
1297
|
+
__metadata("design:type", String)
|
|
1298
|
+
], FHComboboxComponent.prototype, "db_type", void 0);
|
|
1299
|
+
FHComboboxComponent = __decorate([
|
|
1267
1300
|
Component({
|
|
1268
|
-
selector: "
|
|
1301
|
+
selector: "FHComboBox",
|
|
1269
1302
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
1270
|
-
template: "\n <
|
|
1271
|
-
styles: ["
|
|
1303
|
+
template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <mat-select\n #cmb\n [(ngModel)]=\"selval\"\n (selectionChange)=\"sc()\"\n [required]=\"required\"\n >\n <mat-option value=\"-1\">{{ sel_label }}</mat-option>\n <mat-option value=\"{{ app.valore }}\" *ngFor=\"let app of myData\">{{\n app.descrizione_valore\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"dis_value\"\n />\n </mat-form-field>\n ",
|
|
1304
|
+
styles: [""]
|
|
1272
1305
|
}),
|
|
1273
|
-
__metadata("design:paramtypes", [QueryService,
|
|
1274
|
-
|
|
1275
|
-
|
|
1306
|
+
__metadata("design:paramtypes", [QueryService,
|
|
1307
|
+
OdbcService])
|
|
1308
|
+
], FHComboboxComponent);
|
|
1309
|
+
return FHComboboxComponent;
|
|
1276
1310
|
}());
|
|
1277
1311
|
|
|
1278
|
-
var
|
|
1279
|
-
function
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1312
|
+
var FHListComponent = /** @class */ (function () {
|
|
1313
|
+
function FHListComponent(_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";
|
|
1286
1330
|
}
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
win_show_log_dett.prototype.ngAfterViewInit = function () { };
|
|
1291
|
-
win_show_log_dett.ctorParameters = function () { return [
|
|
1292
|
-
{ type: MatDialogRef },
|
|
1293
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1294
|
-
]; };
|
|
1295
|
-
win_show_log_dett = __decorate([
|
|
1296
|
-
Component({
|
|
1297
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n <h2 mat-dialog-title>DETTAGLIO MODIFICA - {{ title }}</h2>\n\n <mat-dialog-content style=\"min-width:700px\">\n <table style=\"width: 90%\" class=\"fh_table\">\n <thead>\n <tr>\n <th style=\"width:20%;\">Operazione</th>\n <th style=\"width:20%;\">Campo</th>\n <th style=\"width:30%;\">Old Value</th>\n <th style=\"width:30%;\">New Value</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of modifiche; let odd = odd; let even = even\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td>{{ u.op }}</td>\n <td>{{ u.path }}</td>\n <td>{{ u.oldVal }}</td>\n <td>{{ u.val }}</td>\n </tr>\n </tbody>\n </table>\n </mat-dialog-content>\n "
|
|
1298
|
-
}),
|
|
1299
|
-
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
1300
|
-
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
1301
|
-
], win_show_log_dett);
|
|
1302
|
-
return win_show_log_dett;
|
|
1303
|
-
}());
|
|
1304
|
-
|
|
1305
|
-
var FHConfirmValues = /** @class */ (function () {
|
|
1306
|
-
function FHConfirmValues() {
|
|
1307
|
-
this.title_dialog = "";
|
|
1308
|
-
this.b_commento = false;
|
|
1309
|
-
this.msg_dialog = "";
|
|
1310
|
-
this.confirm_mgs = "CONFERMA";
|
|
1311
|
-
this.annulla_mgs = "ANNULLA";
|
|
1312
|
-
this.commento_mgs = "Commento";
|
|
1313
|
-
this.insert_comment_msg = "Inserire un commento";
|
|
1314
|
-
}
|
|
1315
|
-
return FHConfirmValues;
|
|
1316
|
-
}());
|
|
1317
|
-
|
|
1318
|
-
/**
|
|
1319
|
-
* A Sample of how simple it is to create a new window, with its own injects.
|
|
1320
|
-
*/
|
|
1321
|
-
var FHConfirmComponent = /** @class */ (function () {
|
|
1322
|
-
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
1323
|
-
this.dialogRef = dialogRef;
|
|
1324
|
-
this.app_s = app_s;
|
|
1325
|
-
this.conf = conf;
|
|
1326
|
-
this.toast = toast;
|
|
1327
|
-
this.title = "";
|
|
1328
|
-
this.msg = "";
|
|
1329
|
-
this.commento = "";
|
|
1330
|
-
this.b_commento = false;
|
|
1331
|
-
this.confirm_mgs = "CONFERMA";
|
|
1332
|
-
this.annulla_mgs = "ANNULLA";
|
|
1333
|
-
this.commento_mgs = "Commento";
|
|
1334
|
-
this.insert_comment_msg = "Inserire un commento";
|
|
1335
|
-
if (conf == null) {
|
|
1336
|
-
this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
|
|
1337
|
-
this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
|
|
1338
|
-
return;
|
|
1339
|
-
}
|
|
1340
|
-
this.title = conf.title_dialog;
|
|
1341
|
-
this.msg = conf.msg_dialog;
|
|
1342
|
-
if (conf.b_commento != null)
|
|
1343
|
-
this.b_commento = conf.b_commento;
|
|
1344
|
-
if (conf.confirm_mgs != null)
|
|
1345
|
-
this.confirm_mgs = conf.confirm_mgs;
|
|
1346
|
-
if (conf.annulla_mgs != null)
|
|
1347
|
-
this.annulla_mgs = conf.annulla_mgs;
|
|
1348
|
-
if (conf.commento_mgs != null)
|
|
1349
|
-
this.commento_mgs = conf.commento_mgs;
|
|
1350
|
-
if (conf.insert_comment_msg != null)
|
|
1351
|
-
this.insert_comment_msg = conf.insert_comment_msg;
|
|
1352
|
-
}
|
|
1353
|
-
FHConfirmComponent.prototype.ok = function () {
|
|
1354
|
-
if (this.b_commento && this.commento == "") {
|
|
1355
|
-
this.toast.error(this.insert_comment_msg);
|
|
1356
|
-
return;
|
|
1357
|
-
}
|
|
1358
|
-
this.dialogRef.close(true);
|
|
1359
|
-
};
|
|
1360
|
-
FHConfirmComponent.prototype.close = function () {
|
|
1361
|
-
this.dialogRef.close(null);
|
|
1362
|
-
};
|
|
1363
|
-
FHConfirmComponent.prototype.setTitle = function (texto) {
|
|
1364
|
-
this.title = texto;
|
|
1365
|
-
};
|
|
1366
|
-
FHConfirmComponent.prototype.setMsg = function (texto) {
|
|
1367
|
-
this.msg = texto;
|
|
1368
|
-
};
|
|
1369
|
-
FHConfirmComponent.prototype.ngAfterViewInit = function () { };
|
|
1370
|
-
FHConfirmComponent.ctorParameters = function () { return [
|
|
1371
|
-
{ type: MatDialogRef },
|
|
1372
|
-
{ type: AppService },
|
|
1373
|
-
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
1374
|
-
{ type: ToastrService }
|
|
1375
|
-
]; };
|
|
1376
|
-
FHConfirmComponent = __decorate([
|
|
1377
|
-
Component({
|
|
1378
|
-
template: "\n <h1 mat-dialog-title>{{ title }}</h1>\n <div mat-dialog-content>\n <div fxLayout=\"column\" fxLayoutGap=\"15px\">\n {{ msg }}\n <div style=\"width:400px\" [hidden]=\"!b_commento\"><br /></div>\n <div style=\"width:400px\" [hidden]=\"!b_commento\">\n <FHTextArea\n label=\"{{ commento_mgs }}\"\n required\n [(ngModel)]=\"commento\"\n ></FHTextArea>\n </div>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <button mat-raised-button (click)=\"ok()\" color=\"primary\">\n {{ confirm_mgs }}\n </button>\n <button mat-raised-button (click)=\"dialogRef.close(false)\" color=\"warn\">\n {{ annulla_mgs }}\n </button>\n </div>\n ",
|
|
1379
|
-
styles: [""]
|
|
1380
|
-
}),
|
|
1381
|
-
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
1382
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
1383
|
-
AppService,
|
|
1384
|
-
FHConfirmValues,
|
|
1385
|
-
ToastrService])
|
|
1386
|
-
], FHConfirmComponent);
|
|
1387
|
-
return FHConfirmComponent;
|
|
1388
|
-
}());
|
|
1389
|
-
|
|
1390
|
-
var FHListComponent = /** @class */ (function () {
|
|
1391
|
-
function FHListComponent(_dataService) {
|
|
1392
|
-
this._dataService = _dataService;
|
|
1393
|
-
this.init_fill = true;
|
|
1394
|
-
this.sql = "";
|
|
1395
|
-
this.types = [];
|
|
1396
|
-
this.values = [];
|
|
1397
|
-
this.label = "";
|
|
1398
|
-
this.enabled = true;
|
|
1399
|
-
this.single_sel = false;
|
|
1400
|
-
this.separator = ",";
|
|
1401
|
-
this.fillend = new EventEmitter();
|
|
1402
|
-
this.selchange = new EventEmitter();
|
|
1403
|
-
this.initend = new EventEmitter();
|
|
1404
|
-
this.myData = new Array();
|
|
1405
|
-
this.selval = "-1";
|
|
1406
|
-
this.errorMsg = "";
|
|
1407
|
-
this.valDef = "-1";
|
|
1408
|
-
}
|
|
1409
|
-
FHListComponent.prototype.change_v = function (u, o) {
|
|
1410
|
-
u.checked = !u.checked;
|
|
1411
|
-
this.upd_f(u, o);
|
|
1331
|
+
FHListComponent.prototype.change_v = function (u, o) {
|
|
1332
|
+
u.checked = !u.checked;
|
|
1333
|
+
this.upd_f(u, o);
|
|
1412
1334
|
};
|
|
1413
1335
|
FHListComponent.prototype.upd_f = function (u, b) {
|
|
1414
1336
|
if (this.single_sel)
|
|
@@ -1699,441 +1621,1449 @@ var WinWait = /** @class */ (function () {
|
|
|
1699
1621
|
return WinWait;
|
|
1700
1622
|
}());
|
|
1701
1623
|
|
|
1702
|
-
var
|
|
1703
|
-
function
|
|
1704
|
-
this.
|
|
1624
|
+
var FHConfirmValues = /** @class */ (function () {
|
|
1625
|
+
function FHConfirmValues() {
|
|
1626
|
+
this.title_dialog = "";
|
|
1627
|
+
this.b_commento = false;
|
|
1628
|
+
this.msg_dialog = "";
|
|
1629
|
+
this.confirm_mgs = "CONFERMA";
|
|
1630
|
+
this.annulla_mgs = "ANNULLA";
|
|
1631
|
+
this.commento_mgs = "Commento";
|
|
1632
|
+
this.insert_comment_msg = "Inserire un commento";
|
|
1633
|
+
}
|
|
1634
|
+
return FHConfirmValues;
|
|
1635
|
+
}());
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* A Sample of how simple it is to create a new window, with its own injects.
|
|
1639
|
+
*/
|
|
1640
|
+
var FHConfirmComponent = /** @class */ (function () {
|
|
1641
|
+
function FHConfirmComponent(dialogRef, app_s, conf, toast) {
|
|
1642
|
+
this.dialogRef = dialogRef;
|
|
1705
1643
|
this.app_s = app_s;
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1644
|
+
this.conf = conf;
|
|
1645
|
+
this.toast = toast;
|
|
1646
|
+
this.title = "";
|
|
1647
|
+
this.msg = "";
|
|
1648
|
+
this.commento = "";
|
|
1649
|
+
this.b_commento = false;
|
|
1650
|
+
this.confirm_mgs = "CONFERMA";
|
|
1651
|
+
this.annulla_mgs = "ANNULLA";
|
|
1652
|
+
this.commento_mgs = "Commento";
|
|
1653
|
+
this.insert_comment_msg = "Inserire un commento";
|
|
1654
|
+
if (conf == null) {
|
|
1655
|
+
this.title = localStorage.getItem(this.app_s.COMPANY_KEY + "title_dialog");
|
|
1656
|
+
this.msg = localStorage.getItem(this.app_s.COMPANY_KEY + "msg_dialog");
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1659
|
+
this.title = conf.title_dialog;
|
|
1660
|
+
this.msg = conf.msg_dialog;
|
|
1661
|
+
if (conf.b_commento != null)
|
|
1662
|
+
this.b_commento = conf.b_commento;
|
|
1663
|
+
if (conf.confirm_mgs != null)
|
|
1664
|
+
this.confirm_mgs = conf.confirm_mgs;
|
|
1665
|
+
if (conf.annulla_mgs != null)
|
|
1666
|
+
this.annulla_mgs = conf.annulla_mgs;
|
|
1667
|
+
if (conf.commento_mgs != null)
|
|
1668
|
+
this.commento_mgs = conf.commento_mgs;
|
|
1669
|
+
if (conf.insert_comment_msg != null)
|
|
1670
|
+
this.insert_comment_msg = conf.insert_comment_msg;
|
|
1708
1671
|
}
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
});
|
|
1716
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.ODBC_ENDPOINT;
|
|
1717
|
-
var post_v = JSON.stringify(queryp);
|
|
1718
|
-
return this.http.post(this.url, post_v, { headers: this.headers }).pipe(map(function (res) {
|
|
1719
|
-
// Handle errors, display if enabled
|
|
1720
|
-
var err;
|
|
1721
|
-
if (!res) {
|
|
1722
|
-
err = new Error("Empty server response");
|
|
1723
|
-
}
|
|
1724
|
-
else if (res.result_msg === "KO") {
|
|
1725
|
-
err = new Error(res.msg);
|
|
1726
|
-
}
|
|
1727
|
-
if (err) {
|
|
1728
|
-
console.error(err);
|
|
1729
|
-
if (displayError) {
|
|
1730
|
-
_this.toastr.error(err.message);
|
|
1731
|
-
}
|
|
1732
|
-
throw new Error(err);
|
|
1733
|
-
}
|
|
1734
|
-
return res || new QGResult();
|
|
1735
|
-
}), catchError(function (err) {
|
|
1736
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
1737
|
-
// We'd also dig deeper into the error to get a better message
|
|
1738
|
-
var errMsg = err.message
|
|
1739
|
-
? err.message
|
|
1740
|
-
: err.status
|
|
1741
|
-
? err.status + " - " + err.statusText
|
|
1742
|
-
: "Server error";
|
|
1743
|
-
console.error(errMsg); // log to console instead
|
|
1744
|
-
throw err;
|
|
1745
|
-
}));
|
|
1672
|
+
FHConfirmComponent.prototype.ok = function () {
|
|
1673
|
+
if (this.b_commento && this.commento == "") {
|
|
1674
|
+
this.toast.error(this.insert_comment_msg);
|
|
1675
|
+
return;
|
|
1676
|
+
}
|
|
1677
|
+
this.dialogRef.close(true);
|
|
1746
1678
|
};
|
|
1747
|
-
|
|
1748
|
-
|
|
1679
|
+
FHConfirmComponent.prototype.close = function () {
|
|
1680
|
+
this.dialogRef.close(null);
|
|
1681
|
+
};
|
|
1682
|
+
FHConfirmComponent.prototype.setTitle = function (texto) {
|
|
1683
|
+
this.title = texto;
|
|
1684
|
+
};
|
|
1685
|
+
FHConfirmComponent.prototype.setMsg = function (texto) {
|
|
1686
|
+
this.msg = texto;
|
|
1687
|
+
};
|
|
1688
|
+
FHConfirmComponent.prototype.ngAfterViewInit = function () { };
|
|
1689
|
+
FHConfirmComponent.ctorParameters = function () { return [
|
|
1690
|
+
{ type: MatDialogRef },
|
|
1749
1691
|
{ type: AppService },
|
|
1692
|
+
{ type: FHConfirmValues, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
1750
1693
|
{ type: ToastrService }
|
|
1751
1694
|
]; };
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1695
|
+
FHConfirmComponent = __decorate([
|
|
1696
|
+
Component({
|
|
1697
|
+
template: "\n <h1 mat-dialog-title>{{ title }}</h1>\n <div mat-dialog-content>\n <div fxLayout=\"column\" fxLayoutGap=\"15px\">\n {{ msg }}\n <div style=\"width:400px\" [hidden]=\"!b_commento\"><br /></div>\n <div style=\"width:400px\" [hidden]=\"!b_commento\">\n <FHTextArea\n label=\"{{ commento_mgs }}\"\n required\n [(ngModel)]=\"commento\"\n ></FHTextArea>\n </div>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <button mat-raised-button (click)=\"ok()\" color=\"primary\">\n {{ confirm_mgs }}\n </button>\n <button mat-raised-button (click)=\"dialogRef.close(false)\" color=\"warn\">\n {{ annulla_mgs }}\n </button>\n </div>\n ",
|
|
1698
|
+
styles: [""]
|
|
1756
1699
|
}),
|
|
1757
|
-
|
|
1700
|
+
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
1701
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
1758
1702
|
AppService,
|
|
1703
|
+
FHConfirmValues,
|
|
1759
1704
|
ToastrService])
|
|
1760
|
-
],
|
|
1761
|
-
return
|
|
1705
|
+
], FHConfirmComponent);
|
|
1706
|
+
return FHConfirmComponent;
|
|
1762
1707
|
}());
|
|
1763
1708
|
|
|
1764
|
-
var
|
|
1765
|
-
|
|
1766
|
-
var
|
|
1767
|
-
provide: NG_VALUE_ACCESSOR,
|
|
1768
|
-
useExisting: forwardRef(function () { return FHComboboxComponent; }),
|
|
1769
|
-
multi: true,
|
|
1770
|
-
};
|
|
1771
|
-
var FHComboboxComponent = /** @class */ (function () {
|
|
1772
|
-
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
1709
|
+
var FHUploadS3Component = /** @class */ (function () {
|
|
1710
|
+
function FHUploadS3Component(_dataService, toastr, dialog, app_s, uti) {
|
|
1711
|
+
var _this = this;
|
|
1773
1712
|
this._dataService = _dataService;
|
|
1774
|
-
this.
|
|
1775
|
-
this.
|
|
1776
|
-
this.
|
|
1777
|
-
this.
|
|
1778
|
-
this.
|
|
1779
|
-
this.hidden = false;
|
|
1780
|
-
this.label = "";
|
|
1713
|
+
this.toastr = toastr;
|
|
1714
|
+
this.dialog = dialog;
|
|
1715
|
+
this.app_s = app_s;
|
|
1716
|
+
this.uti = uti;
|
|
1717
|
+
this.show_descri = true;
|
|
1781
1718
|
this.enabled = true;
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1784
|
-
this.
|
|
1785
|
-
this.
|
|
1786
|
-
this.
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1789
|
-
this.
|
|
1790
|
-
this.
|
|
1791
|
-
this.
|
|
1792
|
-
this.
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
this.
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
this.
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1719
|
+
this.single = true;
|
|
1720
|
+
this.descri_obb = false;
|
|
1721
|
+
this.programma_da_eseguire = "";
|
|
1722
|
+
this.label_attendere = "ATTENDERE UPLOAD IN CORSO";
|
|
1723
|
+
this.fixed_label = " (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)";
|
|
1724
|
+
this.limit_string = "Il file di <size>MB supera il limite di 500MB";
|
|
1725
|
+
this.allegato_inserito = "ALLEGATO INSERITO";
|
|
1726
|
+
this.inserire_descrizione = "Descrizione Obbligatoria";
|
|
1727
|
+
this.lista_allegati = [];
|
|
1728
|
+
this.change = new EventEmitter();
|
|
1729
|
+
this.upload_ended = new EventEmitter();
|
|
1730
|
+
this.call_upload = new EventEmitter();
|
|
1731
|
+
this.multi_list = false;
|
|
1732
|
+
this.allow_delete = false;
|
|
1733
|
+
this.loading = false;
|
|
1734
|
+
this.App = "";
|
|
1735
|
+
this.K = "";
|
|
1736
|
+
this.label_b = "";
|
|
1737
|
+
this.descrizione = "";
|
|
1738
|
+
this.file_name = "";
|
|
1739
|
+
this.label = "";
|
|
1740
|
+
this.username = "";
|
|
1741
|
+
this.b_edit_loaded = false;
|
|
1742
|
+
this.tipo = "";
|
|
1743
|
+
this.b_ini = false;
|
|
1744
|
+
this.uploader = new FileUploader({
|
|
1745
|
+
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + '_new',
|
|
1746
|
+
maxFileSize: 500 * 1024 * 1024,
|
|
1747
|
+
});
|
|
1748
|
+
this.id = null;
|
|
1749
|
+
this.p_cod_doc = '';
|
|
1750
|
+
this.p_section = '';
|
|
1751
|
+
this.p_system_type = '';
|
|
1752
|
+
this.username = this.app_s.user;
|
|
1753
|
+
this.uploader.onBeforeUploadItem = function (item) {
|
|
1754
|
+
item.withCredentials = false;
|
|
1755
|
+
};
|
|
1756
|
+
console.log('uploader ', this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + '_new');
|
|
1757
|
+
this.uploader.onCompleteItem = function (item, response, status, header) {
|
|
1758
|
+
if (status === 200) {
|
|
1759
|
+
_this.descrizione = "";
|
|
1760
|
+
_this.toastr.info("INFO", _this.allegato_inserito, {
|
|
1761
|
+
timeOut: 1000,
|
|
1762
|
+
progressBar: true,
|
|
1763
|
+
});
|
|
1764
|
+
_this.ref_allegato();
|
|
1765
|
+
_this.change.emit({
|
|
1766
|
+
item: item,
|
|
1767
|
+
response: response,
|
|
1768
|
+
status: status,
|
|
1769
|
+
header: header,
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
FHUploadS3Component.prototype.call_up = function () {
|
|
1775
|
+
this.call_upload.emit({
|
|
1776
|
+
App: this.App,
|
|
1777
|
+
K: this.K,
|
|
1778
|
+
descrizione: this.descrizione,
|
|
1779
|
+
single: false,
|
|
1780
|
+
username: this.app_s.user,
|
|
1781
|
+
tipo: this.tipo,
|
|
1782
|
+
local_path: this.app_s.LOCAL_PATH,
|
|
1783
|
+
p1: this.programma_da_eseguire,
|
|
1784
|
+
});
|
|
1785
|
+
};
|
|
1786
|
+
FHUploadS3Component.prototype.del_doc = function () {
|
|
1787
|
+
var _this = this;
|
|
1788
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
1789
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
|
|
1790
|
+
var dialogRef = this.dialog.open(FHConfirmComponent);
|
|
1791
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
1792
|
+
if (result) {
|
|
1793
|
+
var p = new QParam();
|
|
1794
|
+
p.sql = "DELETE_ALLEGATO";
|
|
1795
|
+
p.types = ["int", "string"];
|
|
1796
|
+
p.values = [_this.id, _this.app_s.user];
|
|
1797
|
+
var ok_op = false;
|
|
1798
|
+
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
1799
|
+
var ok_op = false;
|
|
1800
|
+
if (data != null)
|
|
1801
|
+
if (data.result_msg == "OK") {
|
|
1802
|
+
// this.arr_g = data.result_data;
|
|
1803
|
+
_this.ref_allegato();
|
|
1804
|
+
_this.toastr.info("INFO", "ALLEGATO ELIMINATO", {
|
|
1805
|
+
timeOut: 1000,
|
|
1806
|
+
progressBar: true,
|
|
1807
|
+
});
|
|
1808
|
+
ok_op = true;
|
|
1809
|
+
}
|
|
1810
|
+
}, function (err) { });
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
};
|
|
1814
|
+
FHUploadS3Component.prototype.load_types = function () {
|
|
1815
|
+
var _this = this;
|
|
1816
|
+
if (this.cmb_tipo == null) {
|
|
1817
|
+
setTimeout(function () {
|
|
1818
|
+
_this.load_types();
|
|
1819
|
+
}, 200);
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
if (this.tipo == "") {
|
|
1823
|
+
setTimeout(function () {
|
|
1824
|
+
_this.load_types();
|
|
1825
|
+
}, 200);
|
|
1826
|
+
return;
|
|
1827
|
+
}
|
|
1828
|
+
console.log("this.cmb_tipo.sql ", this.cmb_tipo.sql);
|
|
1829
|
+
this.cmb_tipo.sql = this.tipo;
|
|
1830
|
+
this.cmb_tipo.fillCombo();
|
|
1831
|
+
};
|
|
1832
|
+
FHUploadS3Component.prototype.ngAfterViewInit = function () {
|
|
1833
|
+
var _this = this;
|
|
1834
|
+
setTimeout(function () {
|
|
1835
|
+
var uo = {};
|
|
1836
|
+
uo.headers = [
|
|
1837
|
+
{
|
|
1838
|
+
name: "Authorization",
|
|
1839
|
+
value: "Bearer " + localStorage.getItem(_this.app_s.COMPANY_KEY + "token"),
|
|
1840
|
+
},
|
|
1841
|
+
];
|
|
1842
|
+
// console.log('ngAfterViewInit!!');
|
|
1843
|
+
_this.uploader.setOptions(uo);
|
|
1844
|
+
_this.uploader.onCompleteAll = function () {
|
|
1845
|
+
_this.loading = false;
|
|
1846
|
+
_this.upload_ended.emit();
|
|
1847
|
+
if (_this.dialogRef != null)
|
|
1848
|
+
if (_this.dialogRef.componentInstance != null) {
|
|
1849
|
+
_this.dialogRef.componentInstance.update_progess(100);
|
|
1850
|
+
_this.dialogRef = null;
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
_this.uploader.onErrorItem = function (a, b, c, d) {
|
|
1854
|
+
_this.toastr.error(b);
|
|
1855
|
+
};
|
|
1856
|
+
_this.uploader.onAfterAddingFile = function (fileItem) {
|
|
1857
|
+
_this.ch(fileItem);
|
|
1858
|
+
};
|
|
1859
|
+
_this.uploader.onProgressItem = function (fileItem, progress) {
|
|
1860
|
+
// console.log(fileItem);
|
|
1861
|
+
// console.log(progress);
|
|
1862
|
+
_this.loading = true;
|
|
1863
|
+
if (_this.dialogRef != null)
|
|
1864
|
+
if (_this.dialogRef.componentInstance != null)
|
|
1865
|
+
_this.dialogRef.componentInstance.update_progess(progress);
|
|
1866
|
+
};
|
|
1867
|
+
_this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
|
|
1868
|
+
switch (filter.name) {
|
|
1869
|
+
case "fileSize":
|
|
1870
|
+
var ar = Math.round(item.size / 1024 / 1024);
|
|
1871
|
+
_this.toastr.error(_this.limit_string.split("<size>").join("" + ar));
|
|
1872
|
+
break;
|
|
1873
|
+
default:
|
|
1874
|
+
_this.toastr.error("Errore: " + filter.name);
|
|
1875
|
+
}
|
|
1876
|
+
};
|
|
1877
|
+
});
|
|
1878
|
+
};
|
|
1879
|
+
FHUploadS3Component.prototype.download_all = function () {
|
|
1880
|
+
window.open(this.app_s.COMPANY_SITE_ROOT +
|
|
1881
|
+
"/uploads/" +
|
|
1882
|
+
this.App +
|
|
1883
|
+
"/" +
|
|
1884
|
+
this.K +
|
|
1885
|
+
"/" +
|
|
1886
|
+
this.file_name);
|
|
1887
|
+
};
|
|
1888
|
+
FHUploadS3Component.prototype.ch = function (fileItem) {
|
|
1889
|
+
var _this = this;
|
|
1890
|
+
if (this.descri_obb && this.descrizione == "") {
|
|
1891
|
+
this.toastr.error(this.inserire_descrizione);
|
|
1892
|
+
return;
|
|
1893
|
+
}
|
|
1894
|
+
/*
|
|
1895
|
+
for (let i = 0; i < this.lista_allegati.length; i++) {
|
|
1896
|
+
if (
|
|
1897
|
+
this.lista_allegati[i].file_name_orig.toLowerCase() ==
|
|
1898
|
+
fileItem.file.name.toLowerCase()
|
|
1899
|
+
) {
|
|
1900
|
+
this.toastr.error("File già presente (cancellarlo per aggiornarlo)");
|
|
1901
|
+
return;
|
|
1902
|
+
}
|
|
1903
|
+
}*/
|
|
1904
|
+
this.uploader.onBuildItemForm = function (item, form) {
|
|
1905
|
+
form.append("App", _this.App);
|
|
1906
|
+
form.append("K", _this.K);
|
|
1907
|
+
form.append("descrizione", _this.descrizione);
|
|
1908
|
+
form.append("single", _this.single);
|
|
1909
|
+
form.append("username", _this.username);
|
|
1910
|
+
form.append("system_type", _this.p_system_type);
|
|
1911
|
+
form.append('uiid', _this.uti.newGuid());
|
|
1912
|
+
form.append('doc_number', _this.p_cod_doc);
|
|
1913
|
+
form.append('repo_uiid', 'S3');
|
|
1914
|
+
form.append('parent_doc_type', _this.App);
|
|
1915
|
+
form.append('parent_doc_rif', _this.p_cod_doc);
|
|
1916
|
+
form.append('parent_doc_uiid', _this.K);
|
|
1917
|
+
form.append('parent_doc_section', _this.p_section);
|
|
1918
|
+
form.append('version', 1);
|
|
1919
|
+
form.append('status', 'PUBLISHED');
|
|
1920
|
+
form.append('p_owner', _this.app_s.user);
|
|
1921
|
+
// if (this.multi_list)
|
|
1922
|
+
// form.append("tipo", this.cmb_tipo.getDescri().split("-1").join(""));
|
|
1923
|
+
// else form.append("tipo", this.tipo);
|
|
1924
|
+
form.append("tipo", '');
|
|
1925
|
+
form.append("local_path", _this.app_s.LOCAL_PATH);
|
|
1926
|
+
if (_this.programma_da_eseguire != "")
|
|
1927
|
+
form.append("p1", _this.programma_da_eseguire);
|
|
1928
|
+
};
|
|
1929
|
+
if (this.dialogRef == null) {
|
|
1930
|
+
this.dialogRef = this.dialog.open(WinWait, { disableClose: true });
|
|
1931
|
+
setTimeout(function () {
|
|
1932
|
+
_this.dialogRef.componentInstance.label = _this.label_attendere;
|
|
1933
|
+
});
|
|
1934
|
+
this.dialogRef.afterClosed().subscribe(function (result) {
|
|
1935
|
+
if (result != "") {
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
this.uploader.uploadAll();
|
|
1940
|
+
};
|
|
1941
|
+
FHUploadS3Component.prototype.init = function (p_app, p_k, p_cod_doc, p_section, p_label, p_system_type, programma_da_eseguire, allow_delete) {
|
|
1942
|
+
if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
|
|
1943
|
+
if (allow_delete === void 0) { allow_delete = false; }
|
|
1944
|
+
this.App = p_app;
|
|
1945
|
+
this.K = p_k;
|
|
1946
|
+
this.label = p_label;
|
|
1947
|
+
this.p_cod_doc = p_cod_doc;
|
|
1948
|
+
this.p_section = p_section;
|
|
1949
|
+
this.p_system_type = p_system_type;
|
|
1950
|
+
this.b_ini = true;
|
|
1951
|
+
this.b_edit_loaded = false;
|
|
1952
|
+
this.descrizione = "";
|
|
1953
|
+
this.programma_da_eseguire = programma_da_eseguire;
|
|
1954
|
+
this.allow_delete = allow_delete;
|
|
1955
|
+
this.ref_allegato();
|
|
1956
|
+
// console.log('init! ',this.tipo)
|
|
1957
|
+
if (this.tipo.indexOf("SELECT_") > -1) {
|
|
1958
|
+
this.multi_list = true;
|
|
1959
|
+
this.load_types();
|
|
1960
|
+
//console.log('fillCombo');
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
FHUploadS3Component.prototype.ref_allegato = function () {
|
|
1964
|
+
var _this = this;
|
|
1965
|
+
// console.log(' ref_allegato')
|
|
1966
|
+
this.id = null;
|
|
1967
|
+
this.descrizione = "";
|
|
1968
|
+
this.file_name = "";
|
|
1969
|
+
this.label_b = "";
|
|
1970
|
+
this.cmb_tipo.resetValue();
|
|
1971
|
+
if (!this.single)
|
|
1972
|
+
return;
|
|
1973
|
+
if (this.App == null)
|
|
1974
|
+
return;
|
|
1975
|
+
if (this.App == "")
|
|
1976
|
+
return;
|
|
1977
|
+
var p = new QParam();
|
|
1978
|
+
p.sql = "SELECT_ALLEGATO_INFO_NEW";
|
|
1979
|
+
p.types = ["string", "string"];
|
|
1980
|
+
p.values = [this.App, this.K];
|
|
1981
|
+
this._dataService.doQuery(p).subscribe(function (data) {
|
|
1982
|
+
if (data != null)
|
|
1983
|
+
if (data.result_msg == "OK") {
|
|
1984
|
+
var a = data.result_data;
|
|
1985
|
+
if (a.length > 0) {
|
|
1986
|
+
_this.id = a[0].id;
|
|
1987
|
+
_this.descrizione = a[0].descrizione;
|
|
1988
|
+
_this.file_name = a[0].file_name_orig;
|
|
1989
|
+
_this.label_b = "" + a[0].file_name_orig + " - " + a[0].dim + "";
|
|
1990
|
+
_this.b_edit_loaded = true;
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
});
|
|
1994
|
+
};
|
|
1995
|
+
FHUploadS3Component.ctorParameters = function () { return [
|
|
1996
|
+
{ type: QueryService },
|
|
1997
|
+
{ type: ToastrService },
|
|
1998
|
+
{ type: MatDialog },
|
|
1999
|
+
{ type: AppService },
|
|
2000
|
+
{ type: UtilityService }
|
|
2001
|
+
]; };
|
|
2002
|
+
__decorate([
|
|
2003
|
+
Input(),
|
|
2004
|
+
__metadata("design:type", Boolean)
|
|
2005
|
+
], FHUploadS3Component.prototype, "show_descri", void 0);
|
|
2006
|
+
__decorate([
|
|
2007
|
+
Input(),
|
|
2008
|
+
__metadata("design:type", Boolean)
|
|
2009
|
+
], FHUploadS3Component.prototype, "enabled", void 0);
|
|
2010
|
+
__decorate([
|
|
2011
|
+
Input(),
|
|
2012
|
+
__metadata("design:type", Boolean)
|
|
2013
|
+
], FHUploadS3Component.prototype, "single", void 0);
|
|
2014
|
+
__decorate([
|
|
2015
|
+
Input(),
|
|
2016
|
+
__metadata("design:type", Boolean)
|
|
2017
|
+
], FHUploadS3Component.prototype, "descri_obb", void 0);
|
|
2018
|
+
__decorate([
|
|
2019
|
+
Input(),
|
|
2020
|
+
__metadata("design:type", String)
|
|
2021
|
+
], FHUploadS3Component.prototype, "programma_da_eseguire", void 0);
|
|
2022
|
+
__decorate([
|
|
2023
|
+
Input(),
|
|
2024
|
+
__metadata("design:type", String)
|
|
2025
|
+
], FHUploadS3Component.prototype, "label_attendere", void 0);
|
|
2026
|
+
__decorate([
|
|
2027
|
+
Input(),
|
|
2028
|
+
__metadata("design:type", String)
|
|
2029
|
+
], FHUploadS3Component.prototype, "fixed_label", void 0);
|
|
2030
|
+
__decorate([
|
|
2031
|
+
Input(),
|
|
2032
|
+
__metadata("design:type", String)
|
|
2033
|
+
], FHUploadS3Component.prototype, "limit_string", void 0);
|
|
2034
|
+
__decorate([
|
|
2035
|
+
Input(),
|
|
2036
|
+
__metadata("design:type", String)
|
|
2037
|
+
], FHUploadS3Component.prototype, "allegato_inserito", void 0);
|
|
2038
|
+
__decorate([
|
|
2039
|
+
Input(),
|
|
2040
|
+
__metadata("design:type", String)
|
|
2041
|
+
], FHUploadS3Component.prototype, "inserire_descrizione", void 0);
|
|
2042
|
+
__decorate([
|
|
2043
|
+
Input(),
|
|
2044
|
+
__metadata("design:type", Array)
|
|
2045
|
+
], FHUploadS3Component.prototype, "lista_allegati", void 0);
|
|
2046
|
+
__decorate([
|
|
2047
|
+
Output(),
|
|
2048
|
+
__metadata("design:type", EventEmitter)
|
|
2049
|
+
], FHUploadS3Component.prototype, "change", void 0);
|
|
2050
|
+
__decorate([
|
|
2051
|
+
Output(),
|
|
2052
|
+
__metadata("design:type", EventEmitter)
|
|
2053
|
+
], FHUploadS3Component.prototype, "upload_ended", void 0);
|
|
2054
|
+
__decorate([
|
|
2055
|
+
Output(),
|
|
2056
|
+
__metadata("design:type", EventEmitter)
|
|
2057
|
+
], FHUploadS3Component.prototype, "call_upload", void 0);
|
|
2058
|
+
__decorate([
|
|
2059
|
+
ViewChild("cmb_tipo"),
|
|
2060
|
+
__metadata("design:type", FHComboboxComponent)
|
|
2061
|
+
], FHUploadS3Component.prototype, "cmb_tipo", void 0);
|
|
2062
|
+
FHUploadS3Component = __decorate([
|
|
2063
|
+
Component({
|
|
2064
|
+
selector: "FHUploadS3",
|
|
2065
|
+
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ App }}\"\n id=\"file-fh{{ App }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ App }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n 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\"\n /></svg\n ><span style=\"font-size: 12px\"> Upload</span></label\n >\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px\"\n >\n {{ label_b }}</button\n > \n <button\n mat-flat-button\n *ngIf=\"id != null && allow_delete\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
2066
|
+
styles: [""]
|
|
2067
|
+
}),
|
|
2068
|
+
__metadata("design:paramtypes", [QueryService,
|
|
2069
|
+
ToastrService,
|
|
2070
|
+
MatDialog,
|
|
2071
|
+
AppService, UtilityService])
|
|
2072
|
+
], FHUploadS3Component);
|
|
2073
|
+
return FHUploadS3Component;
|
|
2074
|
+
}());
|
|
2075
|
+
|
|
2076
|
+
var FSInput = /** @class */ (function () {
|
|
2077
|
+
function FSInput() {
|
|
2078
|
+
this.command = "";
|
|
2079
|
+
this.p1 = "";
|
|
2080
|
+
this.p2 = "";
|
|
2081
|
+
}
|
|
2082
|
+
return FSInput;
|
|
2083
|
+
}());
|
|
2084
|
+
|
|
2085
|
+
var FHWinComboSelect = /** @class */ (function () {
|
|
2086
|
+
function FHWinComboSelect(dialogRef, toastr, data) {
|
|
2087
|
+
this.dialogRef = dialogRef;
|
|
2088
|
+
this.toastr = toastr;
|
|
2089
|
+
this.data = data;
|
|
2090
|
+
this.label = "";
|
|
2091
|
+
this.width = "100%";
|
|
2092
|
+
this.nota = false;
|
|
2093
|
+
this.nota_val = "";
|
|
2094
|
+
if (data == null)
|
|
2095
|
+
return;
|
|
2096
|
+
if (data != null) {
|
|
2097
|
+
var lab = "";
|
|
2098
|
+
var arrd = [];
|
|
2099
|
+
var nota = false;
|
|
2100
|
+
if (data.label != null)
|
|
2101
|
+
lab = data.label;
|
|
2102
|
+
if (data.arr_option != null)
|
|
2103
|
+
arrd = data.arr_option;
|
|
2104
|
+
if (data.nota != null)
|
|
2105
|
+
nota = data.nota;
|
|
2106
|
+
this.set_selection(lab, arrd, nota);
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
FHWinComboSelect.prototype.close = function () {
|
|
2110
|
+
this.dialogRef.close(null);
|
|
2111
|
+
};
|
|
2112
|
+
FHWinComboSelect.prototype.set_selection = function (lab, myD, nota) {
|
|
2113
|
+
if (nota === void 0) { nota = false; }
|
|
2114
|
+
this.nota = nota;
|
|
2115
|
+
this.label = lab;
|
|
2116
|
+
for (var i = 0; i < myD.length; i++)
|
|
2117
|
+
this.cmb_sel.add_option(myD[i]);
|
|
2118
|
+
};
|
|
2119
|
+
FHWinComboSelect.prototype.ok = function () {
|
|
2120
|
+
if (this.cmb_sel.getValue() == "-1") {
|
|
2121
|
+
this.toastr.error("Selezionare un valore");
|
|
2122
|
+
return;
|
|
2123
|
+
}
|
|
2124
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
2125
|
+
this.dialogRef.close(this.cmb_sel.getObj());
|
|
2126
|
+
};
|
|
2127
|
+
FHWinComboSelect.prototype.ngAfterViewInit = function () { };
|
|
2128
|
+
FHWinComboSelect.ctorParameters = function () { return [
|
|
2129
|
+
{ type: MatDialogRef },
|
|
2130
|
+
{ type: ToastrService },
|
|
2131
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2132
|
+
]; };
|
|
2133
|
+
__decorate([
|
|
2134
|
+
ViewChild("cmb_sel"),
|
|
2135
|
+
__metadata("design:type", FHComboboxComponent)
|
|
2136
|
+
], FHWinComboSelect.prototype, "cmb_sel", void 0);
|
|
2137
|
+
FHWinComboSelect = __decorate([
|
|
2138
|
+
Component({
|
|
2139
|
+
selector: "fhwincomboselect",
|
|
2140
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div fxLayout=\"column\">\n <mat-dialog-content style=\"font-size: 15px;\">\n <div fxLayout=\"column\">\n <h3>\n {{ label | uppercase }}\n </h3>\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n <mat-form-field *ngIf=\"nota\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Nota</mat-label>\n <textarea matInput [(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions\n fxFlex=\"100\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
|
|
2141
|
+
}),
|
|
2142
|
+
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
2143
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
2144
|
+
ToastrService, Object])
|
|
2145
|
+
], FHWinComboSelect);
|
|
2146
|
+
return FHWinComboSelect;
|
|
2147
|
+
}());
|
|
2148
|
+
|
|
2149
|
+
var WinAskTextBigComponent = /** @class */ (function () {
|
|
2150
|
+
function WinAskTextBigComponent(dialogRef, toastr, data) {
|
|
2151
|
+
this.dialogRef = dialogRef;
|
|
2152
|
+
this.toastr = toastr;
|
|
2153
|
+
this.data = data;
|
|
2154
|
+
this.title = "";
|
|
2155
|
+
this.label = "";
|
|
2156
|
+
this.valore = "";
|
|
2157
|
+
this.readonly = false;
|
|
2158
|
+
this.show_annulla = true;
|
|
2159
|
+
this.show_ok = true;
|
|
2160
|
+
this.min_chars = 3;
|
|
2161
|
+
if (data != null) {
|
|
2162
|
+
if (data.title != null)
|
|
2163
|
+
this.title = data.title;
|
|
2164
|
+
if (data.label != null)
|
|
2165
|
+
this.label = data.label;
|
|
2166
|
+
if (data.valore != null)
|
|
2167
|
+
this.valore = data.valore;
|
|
2168
|
+
if (data.readonly != null)
|
|
2169
|
+
this.readonly = data.readonly;
|
|
2170
|
+
if (data.show_annulla != null)
|
|
2171
|
+
this.show_annulla = data.show_annulla;
|
|
2172
|
+
if (data.show_ok != null)
|
|
2173
|
+
this.show_ok = data.show_ok;
|
|
2174
|
+
if (data.min_chars != null)
|
|
2175
|
+
this.min_chars = data.min_chars;
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
WinAskTextBigComponent.prototype.ngAfterViewInit = function () { };
|
|
2179
|
+
WinAskTextBigComponent.prototype.close = function () {
|
|
2180
|
+
this.dialogRef.close(null);
|
|
2181
|
+
};
|
|
2182
|
+
WinAskTextBigComponent.prototype.show = function () { };
|
|
2183
|
+
WinAskTextBigComponent.prototype.hide = function () {
|
|
2184
|
+
this.dialogRef.close(null);
|
|
2185
|
+
};
|
|
2186
|
+
WinAskTextBigComponent.prototype.do_check = function () {
|
|
2187
|
+
if (this.valore.length < this.min_chars) {
|
|
2188
|
+
this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
|
|
2189
|
+
return;
|
|
2190
|
+
}
|
|
2191
|
+
this.dialogRef.close(this.valore);
|
|
2192
|
+
};
|
|
2193
|
+
WinAskTextBigComponent.prototype.chiudi = function () {
|
|
2194
|
+
this.dialogRef.close(null);
|
|
2195
|
+
};
|
|
2196
|
+
WinAskTextBigComponent.ctorParameters = function () { return [
|
|
2197
|
+
{ type: MatDialogRef },
|
|
2198
|
+
{ type: ToastrService },
|
|
2199
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2200
|
+
]; };
|
|
2201
|
+
WinAskTextBigComponent = __decorate([
|
|
2202
|
+
Component({
|
|
2203
|
+
selector: "app-win_ask_text",
|
|
2204
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <h2 mat-dialog-title>{{ title }}</h2>\n <mat-dialog-content style=\"width:630px;font-size: 15px;\">\n <mat-form-field\n appearance=\"outline\"\n floatLabel=\"always\"\n style=\"width:100%\"\n ><mat-label>{{ label }}</mat-label>\n <textarea\n matInput\n [readonly]=\"readonly\"\n [(ngModel)]=\"valore\"\n rows=\"15\"\n required\n ></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n style=\"width: 100%\"\n [hidden]=\"readonly\"\n >\n <button\n *ngIf=\"show_ok\"\n mat-flat-button\n color=\"primary\"\n (click)=\"do_check()\"\n >\n OK</button\n > \n <button\n *ngIf=\"show_annulla\"\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n ANNULLA\n </button>\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n style=\"width: 100%\"\n [hidden]=\"!readonly\"\n >\n <button\n *ngIf=\"show_annulla\"\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n CHIUDI\n </button>\n </div>\n </mat-dialog-actions>\n "
|
|
2205
|
+
}),
|
|
2206
|
+
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
2207
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
2208
|
+
ToastrService, Object])
|
|
2209
|
+
], WinAskTextBigComponent);
|
|
2210
|
+
return WinAskTextBigComponent;
|
|
2211
|
+
}());
|
|
2212
|
+
|
|
2213
|
+
var FileService = /** @class */ (function () {
|
|
2214
|
+
function FileService(http, app_s, toastr) {
|
|
2215
|
+
this.http = http;
|
|
2216
|
+
this.app_s = app_s;
|
|
2217
|
+
this.toastr = toastr;
|
|
2218
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
2219
|
+
}
|
|
2220
|
+
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
2221
|
+
var _this = this;
|
|
2222
|
+
if (displayError === void 0) { displayError = true; }
|
|
2223
|
+
this.headers = new HttpHeaders({
|
|
2224
|
+
"Content-Type": "application/json",
|
|
2225
|
+
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
2226
|
+
});
|
|
2227
|
+
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
2228
|
+
// console.log('FileService url: '+ this.url);
|
|
2229
|
+
var post_v = JSON.stringify(queryp);
|
|
2230
|
+
// console.log(post_v);
|
|
2231
|
+
return this.http
|
|
2232
|
+
.post(this.url, post_v, {
|
|
2233
|
+
headers: this.headers,
|
|
2234
|
+
})
|
|
2235
|
+
.pipe(map(function (res) {
|
|
2236
|
+
// Handle errors, display if enabled
|
|
2237
|
+
var r = res;
|
|
2238
|
+
var err;
|
|
2239
|
+
if (!res) {
|
|
2240
|
+
err = new Error("Empty server response");
|
|
2241
|
+
}
|
|
2242
|
+
else if (r.result_msg === "KO") {
|
|
2243
|
+
err = new Error(r.msg);
|
|
2244
|
+
}
|
|
2245
|
+
if (err) {
|
|
2246
|
+
console.error(err);
|
|
2247
|
+
if (displayError) {
|
|
2248
|
+
_this.toastr.error(err.message);
|
|
2249
|
+
}
|
|
2250
|
+
throw new Error(err);
|
|
2251
|
+
}
|
|
2252
|
+
return res || new QGResult();
|
|
2253
|
+
}), catchError(function (err) {
|
|
2254
|
+
// In a real world app, we might use a remote logging infrastructure
|
|
2255
|
+
// We'd also dig deeper into the error to get a better message
|
|
2256
|
+
var errMsg = err.message
|
|
2257
|
+
? err.message
|
|
2258
|
+
: err.status
|
|
2259
|
+
? err.status + " - " + err.statusText
|
|
2260
|
+
: "Server error";
|
|
2261
|
+
console.error(errMsg); // log to console instead
|
|
2262
|
+
throw err;
|
|
2263
|
+
}));
|
|
2264
|
+
};
|
|
2265
|
+
FileService.ctorParameters = function () { return [
|
|
2266
|
+
{ type: HttpClient },
|
|
2267
|
+
{ type: AppService },
|
|
2268
|
+
{ type: ToastrService }
|
|
2269
|
+
]; };
|
|
2270
|
+
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
2271
|
+
FileService = __decorate([
|
|
2272
|
+
Injectable({
|
|
2273
|
+
providedIn: "root",
|
|
2274
|
+
}),
|
|
2275
|
+
__metadata("design:paramtypes", [HttpClient,
|
|
2276
|
+
AppService,
|
|
2277
|
+
ToastrService])
|
|
2278
|
+
], FileService);
|
|
2279
|
+
return FileService;
|
|
2280
|
+
}());
|
|
2281
|
+
|
|
2282
|
+
var FHUploadPanelS3Component = /** @class */ (function () {
|
|
2283
|
+
function FHUploadPanelS3Component(_appservice, _dataService, toastr, dialog, fileService, uti) {
|
|
2284
|
+
this._appservice = _appservice;
|
|
2285
|
+
this._dataService = _dataService;
|
|
2286
|
+
this.toastr = toastr;
|
|
2287
|
+
this.dialog = dialog;
|
|
2288
|
+
this.fileService = fileService;
|
|
2289
|
+
this.uti = uti;
|
|
2290
|
+
this.enabled = true;
|
|
2291
|
+
this.force_en = false;
|
|
2292
|
+
this.label = "";
|
|
2293
|
+
this.sovrascrivi_path = "";
|
|
2294
|
+
this.ruolo_supervisore = "[ZZZ_DIS_CC]";
|
|
2295
|
+
this.access_control = false;
|
|
2296
|
+
this.show_images = true;
|
|
2297
|
+
this.can_delete_owner = true;
|
|
2298
|
+
this.b_initt = false;
|
|
2299
|
+
this.change = new EventEmitter();
|
|
2300
|
+
this.call_upload = new EventEmitter();
|
|
2301
|
+
this.image_mode = false;
|
|
2302
|
+
this.App = "";
|
|
2303
|
+
this.K = "";
|
|
2304
|
+
this.image_type = false;
|
|
2305
|
+
this.b_edit_loaded = false;
|
|
2306
|
+
this.b_False = false;
|
|
2307
|
+
this.b_mobile = false;
|
|
2308
|
+
this.b_ini = false;
|
|
2309
|
+
this.m_p_tipo = '';
|
|
2310
|
+
this.multi_list = false;
|
|
2311
|
+
this.m_programma_da_eseguire = '';
|
|
2312
|
+
this.m_p_cod_doc = '';
|
|
2313
|
+
this.m_p_section = '';
|
|
2314
|
+
this.m_p_system_type = '';
|
|
2315
|
+
}
|
|
2316
|
+
FHUploadPanelS3Component.prototype.call_up = function (o) {
|
|
2317
|
+
this.call_upload.emit({
|
|
2318
|
+
App: this.App,
|
|
2319
|
+
K: this.K,
|
|
2320
|
+
descrizione: o.descrizione,
|
|
2321
|
+
single: false,
|
|
2322
|
+
username: this._appservice.user,
|
|
2323
|
+
cod_doc: this.m_p_cod_doc,
|
|
2324
|
+
section: this.m_p_section,
|
|
2325
|
+
local_path: this._appservice.LOCAL_PATH,
|
|
2326
|
+
p1: this.m_programma_da_eseguire,
|
|
2327
|
+
});
|
|
2328
|
+
};
|
|
2329
|
+
FHUploadPanelS3Component.prototype.download_all = function (ax) {
|
|
2330
|
+
var _this = this;
|
|
2331
|
+
var p = new FSInput();
|
|
2332
|
+
p.command = "exec_app";
|
|
2333
|
+
p.p1 = "s3_downloader";
|
|
2334
|
+
p.p2 = ax.uiid +
|
|
2335
|
+
"|" +
|
|
2336
|
+
this._appservice.user;
|
|
2337
|
+
this.fileService.doQuery(p).subscribe(function (data) {
|
|
2338
|
+
if (data != null)
|
|
2339
|
+
if (data.result_msg == "OK") {
|
|
2340
|
+
var str_mg = data.msg.split('|');
|
|
2341
|
+
if (str_mg[0] == 'OK')
|
|
2342
|
+
window.open(str_mg[1]);
|
|
2343
|
+
else
|
|
2344
|
+
_this.toastr.error(str_mg[1].split('|').join(' -> '));
|
|
2345
|
+
}
|
|
2346
|
+
});
|
|
2347
|
+
};
|
|
2348
|
+
FHUploadPanelS3Component.prototype.edit_tipo = function (ax) {
|
|
2349
|
+
var _this = this;
|
|
2350
|
+
var p = new QParam();
|
|
2351
|
+
p.sql = this.m_p_tipo;
|
|
2352
|
+
p.types = [];
|
|
2353
|
+
p.values = [];
|
|
2354
|
+
this._dataService.doQuery(p).subscribe(function (data) {
|
|
2355
|
+
if (data != null)
|
|
2356
|
+
if (data.result_msg == "OK") {
|
|
2357
|
+
var dialogRef_1 = _this.dialog.open(FHWinComboSelect);
|
|
2358
|
+
setTimeout(function () {
|
|
2359
|
+
dialogRef_1.componentInstance.set_selection("Tipologia Allegato", data.result_data);
|
|
2360
|
+
});
|
|
2361
|
+
dialogRef_1.afterClosed().subscribe(function (result) {
|
|
2362
|
+
if (result != null) {
|
|
2363
|
+
var p_1 = new QParam();
|
|
2364
|
+
p_1.sql = "UPDATE_ALLEGATI_TIPO";
|
|
2365
|
+
p_1.types = ["int", "string"];
|
|
2366
|
+
p_1.values = [ax.id, result.descrizione_valore];
|
|
2367
|
+
_this._dataService.doQuery(p_1).subscribe(function (data) {
|
|
2368
|
+
if (data != null)
|
|
2369
|
+
if (data.result_msg == "OK") {
|
|
2370
|
+
_this.ref_allegato();
|
|
2371
|
+
}
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
});
|
|
2377
|
+
};
|
|
2378
|
+
FHUploadPanelS3Component.prototype.edit_descri = function (ax) {
|
|
2379
|
+
var _this = this;
|
|
2380
|
+
var dialogRef = this.dialog.open(WinAskTextBigComponent);
|
|
2381
|
+
setTimeout(function () {
|
|
2382
|
+
dialogRef.componentInstance.label = "Descrizione Allegato";
|
|
2383
|
+
dialogRef.componentInstance.valore = ax.description;
|
|
2384
|
+
dialogRef.componentInstance.min_chars = 0;
|
|
2385
|
+
});
|
|
2386
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
2387
|
+
if (result != null) {
|
|
2388
|
+
var p = new QParam();
|
|
2389
|
+
p.sql = "UPDATE_ALLEGATI_DESCRIZIONE_NEW";
|
|
2390
|
+
p.types = ["string", 'string'];
|
|
2391
|
+
p.values = [ax.uiid, result];
|
|
2392
|
+
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
2393
|
+
if (data != null)
|
|
2394
|
+
if (data.result_msg == "OK") {
|
|
2395
|
+
_this.ref_allegato();
|
|
2396
|
+
}
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
});
|
|
2400
|
+
};
|
|
2401
|
+
FHUploadPanelS3Component.prototype.delete = function (ax) {
|
|
2402
|
+
var _this = this;
|
|
2403
|
+
localStorage.setItem(this._appservice.COMPANY_KEY + "title_dialog", "Conferma Operazione");
|
|
2404
|
+
localStorage.setItem(this._appservice.COMPANY_KEY + "msg_dialog", "Confermi l'eliminazione dell'elemento?");
|
|
2405
|
+
var dialogRef = this.dialog.open(FHConfirmComponent);
|
|
2406
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
2407
|
+
if (result) {
|
|
2408
|
+
var p = new QParam();
|
|
2409
|
+
p.sql = "DELETE_ALLEGATO_NEW";
|
|
2410
|
+
p.types = ["string"];
|
|
2411
|
+
p.values = [ax.uiid];
|
|
2412
|
+
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
2413
|
+
if (data != null)
|
|
2414
|
+
if (data.result_msg == "OK") {
|
|
2415
|
+
// this.arr_g = data.result_data;
|
|
2416
|
+
_this.ref_allegato();
|
|
2417
|
+
_this.toastr.info("INFO", "ALLEGATO ELIMINATO", {
|
|
2418
|
+
timeOut: 1000,
|
|
2419
|
+
progressBar: true,
|
|
2420
|
+
});
|
|
2421
|
+
}
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2424
|
+
});
|
|
2425
|
+
};
|
|
2426
|
+
FHUploadPanelS3Component.prototype.ngAfterViewInit = function () {
|
|
2427
|
+
var _this = this;
|
|
2428
|
+
setTimeout(function () {
|
|
2429
|
+
setTimeout(function () {
|
|
2430
|
+
_this.b_initt = true;
|
|
2431
|
+
}, 700);
|
|
2432
|
+
_this.upc.single = false;
|
|
2433
|
+
_this.b_mobile = _this._appservice.getState().pageFullscreen;
|
|
2434
|
+
if (_this.force_en)
|
|
2435
|
+
_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);
|
|
2436
|
+
else
|
|
2437
|
+
_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);
|
|
2438
|
+
_this.ref_allegato();
|
|
2439
|
+
});
|
|
2440
|
+
};
|
|
2441
|
+
FHUploadPanelS3Component.prototype.init = function (p_app, p_k, p_cod_doc, p_section, p_system_type, programma_da_eseguire) {
|
|
2442
|
+
if (programma_da_eseguire === void 0) { programma_da_eseguire = ""; }
|
|
2443
|
+
this.App = p_app;
|
|
2444
|
+
this.K = p_k;
|
|
2445
|
+
this.b_ini = true;
|
|
2446
|
+
this.b_edit_loaded = false;
|
|
2447
|
+
this.m_p_cod_doc = p_cod_doc;
|
|
2448
|
+
this.m_p_section = p_section;
|
|
2449
|
+
this.m_p_system_type = p_system_type;
|
|
2450
|
+
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
2451
|
+
this.ngAfterViewInit();
|
|
2452
|
+
};
|
|
2453
|
+
FHUploadPanelS3Component.prototype.ref_allegato = function () {
|
|
2454
|
+
var _this = this;
|
|
2455
|
+
if (this.App == null)
|
|
2456
|
+
return;
|
|
2457
|
+
if (this.App == "")
|
|
2458
|
+
return;
|
|
2459
|
+
this.image_mode = false;
|
|
2460
|
+
var p = new QParam();
|
|
2461
|
+
p.sql = "SELECT_ALLEGATO_INFO_NEW";
|
|
2462
|
+
p.types = ["string", "string", "string"];
|
|
2463
|
+
p.values = [this.App, this.K, this.m_p_section];
|
|
2464
|
+
this._dataService.doQuery(p).subscribe(function (data) {
|
|
2465
|
+
if (data != null)
|
|
2466
|
+
if (data.result_msg == "OK") {
|
|
2467
|
+
_this.arr_g = data.result_data;
|
|
2468
|
+
_this.arr_g.map(function (v) { if (v.type == 'IMG')
|
|
2469
|
+
_this.image_mode = true; });
|
|
2470
|
+
var iconf = "webinfo";
|
|
2471
|
+
for (var i = 0; i < _this.arr_g.length; i++) {
|
|
2472
|
+
if (_this.arr_g[i].APP != null)
|
|
2473
|
+
_this.arr_g[i].App = _this.arr_g[i].APP;
|
|
2474
|
+
if (_this.arr_g[i].description != null)
|
|
2475
|
+
_this.arr_g[i].descrizione_vis = _this.arr_g[i].description
|
|
2476
|
+
.split("\n")
|
|
2477
|
+
.join("<br>");
|
|
2478
|
+
else
|
|
2479
|
+
_this.arr_g[i].descrizione_vis = '';
|
|
2480
|
+
var arrf = _this.arr_g[i].file_name_orig.split(".");
|
|
2481
|
+
if (_this.sovrascrivi_path == "") {
|
|
2482
|
+
_this.arr_g[i].url =
|
|
2483
|
+
_this._appservice.COMPANY_SITE_ROOT +
|
|
2484
|
+
"/uploads/" +
|
|
2485
|
+
_this.arr_g[i].App +
|
|
2486
|
+
"/" +
|
|
2487
|
+
_this.arr_g[i].K +
|
|
2488
|
+
"/" +
|
|
2489
|
+
_this.arr_g[i].file_name_orig;
|
|
2490
|
+
_this.arr_g[i].url_orig =
|
|
2491
|
+
_this._appservice.COMPANY_SITE_ROOT +
|
|
2492
|
+
"/uploads/" +
|
|
2493
|
+
_this.arr_g[i].App +
|
|
2494
|
+
"/" +
|
|
2495
|
+
_this.arr_g[i].K +
|
|
2496
|
+
"/" +
|
|
2497
|
+
_this.arr_g[i].file_name_orig;
|
|
2498
|
+
}
|
|
2499
|
+
else {
|
|
2500
|
+
_this.arr_g[i].url =
|
|
2501
|
+
_this.sovrascrivi_path +
|
|
2502
|
+
"/uploads/" +
|
|
2503
|
+
_this.arr_g[i].App +
|
|
2504
|
+
"/" +
|
|
2505
|
+
_this.arr_g[i].K +
|
|
2506
|
+
"/" +
|
|
2507
|
+
_this.arr_g[i].file_name_orig;
|
|
2508
|
+
_this.arr_g[i].url_orig =
|
|
2509
|
+
_this.sovrascrivi_path +
|
|
2510
|
+
"/uploads/" +
|
|
2511
|
+
_this.arr_g[i].App +
|
|
2512
|
+
"/" +
|
|
2513
|
+
_this.arr_g[i].K +
|
|
2514
|
+
"/" +
|
|
2515
|
+
_this.arr_g[i].file_name_orig;
|
|
2516
|
+
}
|
|
2517
|
+
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)
|
|
2518
|
+
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
2519
|
+
_this.arr_g[i].icon = iconf + ".svg";
|
|
2520
|
+
if (_this.can_delete_owner) {
|
|
2521
|
+
_this.arr_g[i].can_delete =
|
|
2522
|
+
!_this.access_control ||
|
|
2523
|
+
_this.arr_g[i].idp == _this._appservice.user ||
|
|
2524
|
+
_this.uti.hasRole(_this.ruolo_supervisore);
|
|
2525
|
+
if ("[ZZZ_DIS_CC]" == _this.ruolo_supervisore)
|
|
2526
|
+
_this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
|
|
2527
|
+
else
|
|
2528
|
+
_this.arr_g[i].can_delete_m =
|
|
2529
|
+
_this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
|
|
2530
|
+
}
|
|
2531
|
+
else {
|
|
2532
|
+
_this.arr_g[i].can_delete =
|
|
2533
|
+
!_this.access_control ||
|
|
2534
|
+
_this.uti.hasRole(_this.ruolo_supervisore);
|
|
2535
|
+
if ("[ZZZ_DIS_CC]" == _this.ruolo_supervisore)
|
|
2536
|
+
_this.arr_g[i].can_delete_m = "";
|
|
2537
|
+
else
|
|
2538
|
+
_this.arr_g[i].can_delete_m = "[" + _this.ruolo_supervisore + "]";
|
|
2539
|
+
}
|
|
2540
|
+
_this.arr_g[i].can_edit =
|
|
2541
|
+
!_this.access_control ||
|
|
2542
|
+
_this.arr_g[i].idp == _this._appservice.user ||
|
|
2543
|
+
_this.uti.hasRole(_this.ruolo_supervisore);
|
|
2544
|
+
if ((_this.arr_g[i].file_name_orig.indexOf(".jpg") != -1 ||
|
|
2545
|
+
_this.arr_g[i].file_name_orig.indexOf(".gif") != -1 ||
|
|
2546
|
+
_this.arr_g[i].file_name_orig.indexOf(".png") != -1) &&
|
|
2547
|
+
_this.show_images) {
|
|
2548
|
+
_this.arr_g[i].type = "IMG";
|
|
2549
|
+
_this.arr_g[i].image_original = [_this.arr_g[i].url];
|
|
2550
|
+
if (_this.arr_g[i].preview != null)
|
|
2551
|
+
if (_this.arr_g[i].preview == 1) {
|
|
2552
|
+
var pcs = _this.arr_g[i].url.split(".");
|
|
2553
|
+
var lastPc = pcs.pop();
|
|
2554
|
+
_this.arr_g[i].url = pcs.join(".") + "_preview." + lastPc;
|
|
2555
|
+
}
|
|
2556
|
+
_this.image_type = true;
|
|
2557
|
+
_this.arr_g[i].image_thumbnail = [_this.arr_g[i].url];
|
|
2558
|
+
}
|
|
2559
|
+
else
|
|
2560
|
+
_this.arr_g[i].type = "O";
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
});
|
|
2564
|
+
};
|
|
2565
|
+
FHUploadPanelS3Component.ctorParameters = function () { return [
|
|
2566
|
+
{ type: AppService },
|
|
2567
|
+
{ type: QueryService },
|
|
2568
|
+
{ type: ToastrService },
|
|
2569
|
+
{ type: MatDialog },
|
|
2570
|
+
{ type: FileService },
|
|
2571
|
+
{ type: UtilityService }
|
|
2572
|
+
]; };
|
|
2573
|
+
__decorate([
|
|
2574
|
+
Input(),
|
|
2575
|
+
__metadata("design:type", Boolean)
|
|
2576
|
+
], FHUploadPanelS3Component.prototype, "enabled", void 0);
|
|
2577
|
+
__decorate([
|
|
2578
|
+
Input(),
|
|
2579
|
+
__metadata("design:type", Boolean)
|
|
2580
|
+
], FHUploadPanelS3Component.prototype, "force_en", void 0);
|
|
2581
|
+
__decorate([
|
|
2582
|
+
Input(),
|
|
2583
|
+
__metadata("design:type", String)
|
|
2584
|
+
], FHUploadPanelS3Component.prototype, "label", void 0);
|
|
2585
|
+
__decorate([
|
|
2586
|
+
Input(),
|
|
2587
|
+
__metadata("design:type", String)
|
|
2588
|
+
], FHUploadPanelS3Component.prototype, "sovrascrivi_path", void 0);
|
|
2589
|
+
__decorate([
|
|
2590
|
+
Input(),
|
|
2591
|
+
__metadata("design:type", String)
|
|
2592
|
+
], FHUploadPanelS3Component.prototype, "ruolo_supervisore", void 0);
|
|
2593
|
+
__decorate([
|
|
2594
|
+
Input(),
|
|
2595
|
+
__metadata("design:type", Boolean)
|
|
2596
|
+
], FHUploadPanelS3Component.prototype, "access_control", void 0);
|
|
2597
|
+
__decorate([
|
|
2598
|
+
Input(),
|
|
2599
|
+
__metadata("design:type", Boolean)
|
|
2600
|
+
], FHUploadPanelS3Component.prototype, "show_images", void 0);
|
|
2601
|
+
__decorate([
|
|
2602
|
+
Input(),
|
|
2603
|
+
__metadata("design:type", Boolean)
|
|
2604
|
+
], FHUploadPanelS3Component.prototype, "can_delete_owner", void 0);
|
|
2605
|
+
__decorate([
|
|
2606
|
+
Output(),
|
|
2607
|
+
__metadata("design:type", EventEmitter)
|
|
2608
|
+
], FHUploadPanelS3Component.prototype, "change", void 0);
|
|
2609
|
+
__decorate([
|
|
2610
|
+
Output(),
|
|
2611
|
+
__metadata("design:type", EventEmitter)
|
|
2612
|
+
], FHUploadPanelS3Component.prototype, "call_upload", void 0);
|
|
2613
|
+
__decorate([
|
|
2614
|
+
ViewChild("upc"),
|
|
2615
|
+
__metadata("design:type", FHUploadS3Component)
|
|
2616
|
+
], FHUploadPanelS3Component.prototype, "upc", void 0);
|
|
2617
|
+
FHUploadPanelS3Component = __decorate([
|
|
2618
|
+
Component({
|
|
2619
|
+
selector: "FHUploadPanelS3",
|
|
2620
|
+
template: "\n\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label != ''\">{{ label }}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUploadS3\n [single]=\"b_False\"\n [label_attendere]=\"\n force_en ? 'UPLOADING' : 'ATTENDERE UPLOAD IN CORSO'\n \"\n [fixed_label]=\"\n force_en\n ? 'Attachments description (insert the description here before uploading the file)'\n : ' (INSERISCI QUI LA DESCRIZIONE PRIMA DI CARICARE IL FILE)'\n \"\n [allegato_inserito]=\"\n force_en ? 'Attachment Inserted' : 'ALLEGATO INSERITO'\n \"\n [lista_allegati]=\"arr_g\"\n (change)=\"ref_allegato()\"\n (call_upload)=\"call_up($event)\"\n #upc\n ></FHUploadS3>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">{{ force_en ? \"Name\" : \"Nome\" }}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">\n {{ force_en ? \"Description\" : \"Descrizione\" }}\n </th>\n <th style=\"width:20%\">\n {{ force_en ? \"Version\" : \"Versione\" }}\n </th>\n\n <th *ngIf=\"image_mode\" class=\"actions\"></th>\n <th style=\"width:30%\">{{ force_en ? \"User\" : \"Utente\" }}</th>\n <th style=\"width:240px;text-align:center\">\n {{ force_en ? \"Date\" : \"Data\" }}\n </th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n <td>{{ app.file_name_orig }}</td>\n <td style=\"text-align:center\">{{ app.dim }}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Descrizione\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_descri(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Descrizione consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div\n [innerHTML]=\"app.descrizione_vis\"\n style=\"width:100%\"\n ></div>\n </div>\n </td>\n\n <td>\n {{app.version}}\n </td>\n\n <td *ngIf=\"image_mode\"\n style=\"min-width:400px;min-height: 400px\"\n\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n\n <td>{{ app.nc }}</td>\n <td style=\"text-align:center\">\n {{ app.dt_ins | date: \"dd/MM/yyyy HH:mm:ss\" }}\n </td>\n <td style=\"text-align:center\">\n <button\n mat-icon-button\n matTooltip=\"Download File\"\n (click)=\"download_all(app)\"\n >\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a\n mat-icon-button\n matTooltip=\"Elimina File\"\n *ngIf=\"app.can_delete\"\n (click)=\"delete(app)\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Cancellazione consentita solo a: ' + app.can_delete_m\n \"\n *ngIf=\"!app.can_delete\"\n [disabled]=\"true\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">{{ force_en ? \"Name\" : \"Nome\" }}</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">\n {{ force_en ? \"Description\" : \"Descrizione\" }}\n </th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">\n {{ force_en ? \"Version\" : \"Versione\" }}\n </th>\n <th style=\"width:40%\"></th>\n\n <th style=\"width:10%\">{{ force_en ? \"User\" : \"Utente\" }}</th>\n <th style=\"width:240px;text-align:center\">\n {{ force_en ? \"Date\" : \"Data\" }}\n </th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n\n <td>{{ app.file_name_orig }}</td>\n <td style=\"text-align:center\">{{ app.dim }}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a\n mat-icon-button\n matTooltip=\"Modifica Descrizione\"\n *ngIf=\"app.can_edit\"\n (click)=\"edit_descri(app)\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Modifica Descrizione consentita solo a: ' + app.nc\n \"\n *ngIf=\"!app.can_edit\"\n [disabled]=\"true\"\n >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div\n [innerHTML]=\"app.descrizione_vis\"\n style=\"width:100%\"\n ></div>\n </div>\n </td>\n <td>\n {{app.version}}\n </td>\n\n <td\n style=\"min-width:400px;min-height: 400px\"\n *ngIf=\"app.type == 'IMG'\"\n >\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n </td>\n <td *ngIf=\"app.type != 'IMG'\"></td>\n <td>{{ app.nc }}</td>\n <td style=\"text-align:center\">\n {{ app.dt_ins | date: \"dd/MM/yyyy HH:mm:ss\" }}\n </td>\n <td style=\"text-align:center\">\n <button\n mat-icon-button\n matTooltip=\"Download File\"\n (click)=\"download_all(app)\"\n >\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a\n mat-icon-button\n matTooltip=\"Elimina File\"\n *ngIf=\"app.can_delete\"\n (click)=\"delete(app)\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n\n <a\n mat-icon-button\n [matTooltip]=\"\n 'Cancellazione consentita solo a: ' + app.can_delete_m\n \"\n *ngIf=\"!app.can_delete\"\n [disabled]=\"true\"\n >\n <mat-icon>delete</mat-icon>\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n <tr\n *ngFor=\"let app of arr_g; let odd = odd; let even = even\"\n style=\"font-size: 15px;\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td\n style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\"\n >\n <div\n style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\"\n >\n <img\n src=\"assets/icons/square-o/{{ app.icon }}\"\n style=\"width:28px;height:28px;\"\n />\n </div>\n </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">\n {{ app.file_name_orig }}<br /><br />\n <button\n style=\"background-color: #F5F5F5\"\n (click)=\"download_all(app)\"\n mat-flat-button\n >\n DOWNLOAD\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\">\n\n </div>\n ",
|
|
2621
|
+
styles: [""]
|
|
2622
|
+
}),
|
|
2623
|
+
__metadata("design:paramtypes", [AppService,
|
|
2624
|
+
QueryService,
|
|
2625
|
+
ToastrService,
|
|
2626
|
+
MatDialog,
|
|
2627
|
+
FileService,
|
|
2628
|
+
UtilityService])
|
|
2629
|
+
], FHUploadPanelS3Component);
|
|
2630
|
+
return FHUploadPanelS3Component;
|
|
2631
|
+
}());
|
|
2632
|
+
|
|
2633
|
+
var FHPickListComponent = /** @class */ (function () {
|
|
2634
|
+
function FHPickListComponent(dialogRef, _dataService, toastr, data) {
|
|
2635
|
+
this.dialogRef = dialogRef;
|
|
2636
|
+
this._dataService = _dataService;
|
|
2637
|
+
this.toastr = toastr;
|
|
2638
|
+
this.data = data;
|
|
2639
|
+
this.width = "100%";
|
|
2640
|
+
this.selectedAdd = null;
|
|
2641
|
+
this.selectedRemove = null;
|
|
2642
|
+
this.selval = "-1";
|
|
2643
|
+
this.errorMsg = "";
|
|
2644
|
+
this.valDef = "-1";
|
|
2645
|
+
this.fltr_user = "";
|
|
2646
|
+
this.value_list = new Array();
|
|
2647
|
+
this.single_sel = false;
|
|
2648
|
+
this.vis_buttons = true;
|
|
2649
|
+
this.limit_size = false;
|
|
2650
|
+
this.value_list_sel = new Array();
|
|
2651
|
+
this.types = [];
|
|
2652
|
+
this.values = [];
|
|
2653
|
+
this.value_sel = [];
|
|
2654
|
+
if (data != null) {
|
|
2655
|
+
if (data.value_list != null)
|
|
2656
|
+
this.value_list = data.value_list;
|
|
2657
|
+
if (data.single_sel != null)
|
|
2658
|
+
this.single_sel = data.single_sel;
|
|
2659
|
+
if (data.vis_buttons != null)
|
|
2660
|
+
this.vis_buttons = data.vis_buttons;
|
|
2661
|
+
if (data.limit_size != null)
|
|
2662
|
+
this.limit_size = data.limit_size;
|
|
2663
|
+
if (data.value_sel != null)
|
|
2664
|
+
this.value_sel = data.value_sel;
|
|
2665
|
+
this.fill_list_arr(this.value_list, this.value_sel);
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
FHPickListComponent.prototype.ngAfterViewInit = function () { };
|
|
2669
|
+
FHPickListComponent.prototype.filtra = function () {
|
|
2670
|
+
this.value_list_sel = new Array();
|
|
2671
|
+
// console.log('filtra() '+this.fltr_user.toUpperCase());
|
|
2672
|
+
if (this.fltr_user == "") {
|
|
2673
|
+
for (var i = 0; i < this.value_list.length; i++) {
|
|
2674
|
+
this.value_list_sel.push(this.value_list[i]);
|
|
2675
|
+
if (i == 50 && this.limit_size)
|
|
1806
2676
|
return;
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
else {
|
|
2680
|
+
for (var i = 0; i < this.value_list.length; i++)
|
|
2681
|
+
if (this.value_list[i].descrizione_valore
|
|
2682
|
+
.toUpperCase()
|
|
2683
|
+
.indexOf(this.fltr_user.toUpperCase()) != -1) {
|
|
2684
|
+
var b_found_a = false;
|
|
2685
|
+
for (var z = 0; z < this.value_list_sel.length; z++)
|
|
2686
|
+
if (this.value_list_sel[z].descrizione_valore ==
|
|
2687
|
+
this.value_list[i].descrizione_valore) {
|
|
2688
|
+
b_found_a = true;
|
|
2689
|
+
break;
|
|
2690
|
+
}
|
|
2691
|
+
if (!b_found_a)
|
|
2692
|
+
this.value_list_sel.push(this.value_list[i]);
|
|
2693
|
+
if (this.value_list_sel.length == 50 && this.limit_size)
|
|
2694
|
+
return;
|
|
1807
2695
|
}
|
|
1808
|
-
if (this.valDef == null)
|
|
1809
|
-
this.dis_value = "";
|
|
1810
|
-
else
|
|
1811
|
-
this.dis_value = this.valDef.split("-1").join("");
|
|
1812
|
-
}
|
|
1813
|
-
catch (e) {
|
|
1814
|
-
console.log("errore split -> this.valDef ", this.valDef);
|
|
1815
2696
|
}
|
|
2697
|
+
/*
|
|
2698
|
+
this.value_list_sel =new Array();
|
|
2699
|
+
for(let i:number=0;i<this.value_list.length;i++)
|
|
2700
|
+
{
|
|
2701
|
+
let b_found_a=false;
|
|
2702
|
+
for(let z:number=0;z<this.value_list_sel.length;z++)
|
|
2703
|
+
if(this.value_list_sel[z].descrizione_valore==this.value_list[i].descrizione_valore){b_found_a=true; break;}
|
|
2704
|
+
|
|
2705
|
+
if(!b_found_a && (this.value_list[i].descrizione_valore.toUpperCase().indexOf(this.fltr_user.toUpperCase())!=-1 || this.fltr_user==''))
|
|
2706
|
+
{
|
|
2707
|
+
// console.log(this.value_list[i].username);
|
|
2708
|
+
if(this.value_sel==null) this.value_list_sel.push(this.value_list[i]);
|
|
2709
|
+
else
|
|
2710
|
+
{
|
|
2711
|
+
|
|
2712
|
+
let b_found=false;
|
|
2713
|
+
for(let y:number=0;y<this.value_sel.length;y++)
|
|
2714
|
+
if(this.value_sel[y].descrizione_valore==this.value_list[i].descrizione_valore){b_found=true; break;}
|
|
2715
|
+
if(!b_found)
|
|
2716
|
+
this.value_list_sel.push(this.value_list[i]);
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
}*/
|
|
2720
|
+
// console.log(this.value_list);
|
|
1816
2721
|
};
|
|
1817
|
-
|
|
1818
|
-
this.selval = "-1";
|
|
1819
|
-
this.valDef = "-1";
|
|
1820
|
-
this.update_dis();
|
|
1821
|
-
};
|
|
1822
|
-
FHComboboxComponent.prototype.focus = function () {
|
|
1823
|
-
this.smtr.nativeElement.focus();
|
|
1824
|
-
};
|
|
1825
|
-
FHComboboxComponent.prototype.reset = function () {
|
|
1826
|
-
console.log("reset");
|
|
1827
|
-
this.selval = "-1";
|
|
1828
|
-
this.valDef = "-1";
|
|
1829
|
-
this.myData = new Array();
|
|
1830
|
-
this.update_dis();
|
|
1831
|
-
};
|
|
1832
|
-
FHComboboxComponent.prototype.fillCombo = function () {
|
|
2722
|
+
FHPickListComponent.prototype.fill_list = function (k, arrs) {
|
|
1833
2723
|
var _this = this;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
if (this.sql == null)
|
|
1837
|
-
this.sql = "";
|
|
1838
|
-
if (this.sql.indexOf("|") != -1 && this.sql.indexOf("$") != -1) {
|
|
1839
|
-
this.set_options(this.sql);
|
|
1840
|
-
return;
|
|
1841
|
-
}
|
|
2724
|
+
this.value_sel = [];
|
|
2725
|
+
var ok_op = false;
|
|
1842
2726
|
var p = new QParam();
|
|
1843
|
-
p.sql =
|
|
2727
|
+
p.sql = k;
|
|
1844
2728
|
p.types = this.types;
|
|
1845
2729
|
p.values = this.values;
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
var ok_op = false;
|
|
1867
|
-
if (data != null)
|
|
1868
|
-
if (data.result_msg == "OK") {
|
|
1869
|
-
for (var i = 0; i < data.result_data.length; i++) {
|
|
1870
|
-
if (data.result_data[i].VALORE != null)
|
|
1871
|
-
data.result_data[i].valore = data.result_data[i].VALORE;
|
|
1872
|
-
if (data.result_data[i].DESCRIZIONE_VALORE != null)
|
|
1873
|
-
data.result_data[i].descrizione_valore =
|
|
1874
|
-
data.result_data[i].DESCRIZIONE_VALORE;
|
|
1875
|
-
}
|
|
1876
|
-
_this.resetD(data.result_data);
|
|
1877
|
-
ok_op = true;
|
|
1878
|
-
}
|
|
1879
|
-
if (!ok_op) {
|
|
2730
|
+
this._dataService.doQuery(p).subscribe(function (data) {
|
|
2731
|
+
var ok_op = false;
|
|
2732
|
+
if (data != null)
|
|
2733
|
+
if (data.result_msg == "OK") {
|
|
2734
|
+
_this.value_list = data.result_data;
|
|
2735
|
+
for (var i = 0; i < arrs.length; i++)
|
|
2736
|
+
for (var y = 0; y < data.result_data.length; y++)
|
|
2737
|
+
if (arrs[i] ==
|
|
2738
|
+
data.result_data[y].descrizione_valore) {
|
|
2739
|
+
_this.value_sel.push(data.result_data[y]);
|
|
2740
|
+
}
|
|
2741
|
+
for (var y = 0; y < _this.value_sel.length; y++)
|
|
2742
|
+
for (var i = _this.value_list.length - 1; i >= 0; i--)
|
|
2743
|
+
if (_this.value_list[i].descrizione_valore ==
|
|
2744
|
+
_this.value_sel[y].descrizione_valore) {
|
|
2745
|
+
_this.value_list.splice(i, 1);
|
|
2746
|
+
break;
|
|
2747
|
+
}
|
|
2748
|
+
_this.filtra();
|
|
2749
|
+
ok_op = true;
|
|
1880
2750
|
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
};
|
|
1888
|
-
FHComboboxComponent.prototype.add_option = function (o) {
|
|
1889
|
-
this.myData.push(o);
|
|
2751
|
+
if (!ok_op) {
|
|
2752
|
+
}
|
|
2753
|
+
}, function (err) {
|
|
2754
|
+
_this.errorMsg =
|
|
2755
|
+
"ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
2756
|
+
});
|
|
1890
2757
|
};
|
|
1891
|
-
|
|
1892
|
-
this.
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
2758
|
+
FHPickListComponent.prototype.fill_list_arr = function (k, arrs) {
|
|
2759
|
+
this.value_sel = [];
|
|
2760
|
+
console.log(k, arrs);
|
|
2761
|
+
for (var i = 0; i < arrs.length; i++)
|
|
2762
|
+
for (var y = 0; y < k.length; y++)
|
|
2763
|
+
if (arrs[i] ==
|
|
2764
|
+
k[y].valore) {
|
|
2765
|
+
this.value_sel.push(k[y]);
|
|
2766
|
+
}
|
|
2767
|
+
console.log('value_sel ', this.value_sel);
|
|
2768
|
+
this.value_list = k;
|
|
2769
|
+
for (var y = 0; y < this.value_sel.length; y++)
|
|
2770
|
+
for (var i = this.value_list.length - 1; i >= 0; i--)
|
|
2771
|
+
if (this.value_list[i].descrizione_valore ==
|
|
2772
|
+
this.value_sel[y].descrizione_valore) {
|
|
2773
|
+
this.value_list.splice(i, 1);
|
|
2774
|
+
break;
|
|
2775
|
+
}
|
|
2776
|
+
this.filtra();
|
|
1899
2777
|
};
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
if (this.myData == null)
|
|
1907
|
-
return;
|
|
1908
|
-
if (this.myData.length == 0 || this.myData[0] == null)
|
|
2778
|
+
FHPickListComponent.prototype.do_add = function () {
|
|
2779
|
+
if (this.selectedAdd == null) {
|
|
2780
|
+
this.toastr.error("ERRORE", "Selezionare il valore da aggiungere", {
|
|
2781
|
+
timeOut: 1000,
|
|
2782
|
+
progressBar: true,
|
|
2783
|
+
});
|
|
1909
2784
|
return;
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
this.update_dis();
|
|
1916
|
-
return;
|
|
2785
|
+
}
|
|
2786
|
+
var index = this.value_list.indexOf(this.selectedAdd, 0);
|
|
2787
|
+
if (!this.single_sel)
|
|
2788
|
+
if (index > -1) {
|
|
2789
|
+
this.value_list.splice(index, 1);
|
|
1917
2790
|
}
|
|
1918
|
-
this.
|
|
2791
|
+
if (this.single_sel)
|
|
2792
|
+
this.value_sel = new Array();
|
|
2793
|
+
this.value_sel.push(this.selectedAdd);
|
|
2794
|
+
this.selectedAdd = null;
|
|
2795
|
+
this.filtra();
|
|
2796
|
+
if (this.single_sel)
|
|
2797
|
+
this.ok();
|
|
1919
2798
|
};
|
|
1920
|
-
|
|
1921
|
-
this.
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
2799
|
+
FHPickListComponent.prototype.do_rem = function () {
|
|
2800
|
+
if (this.selectedRemove == null) {
|
|
2801
|
+
this.toastr.error("ERRORE", "Selezionare il valore da rimuovere", {
|
|
2802
|
+
timeOut: 1000,
|
|
2803
|
+
progressBar: true,
|
|
2804
|
+
});
|
|
1926
2805
|
return;
|
|
1927
|
-
if (this.myData.length > ind) {
|
|
1928
|
-
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
1929
2806
|
}
|
|
2807
|
+
var index = this.value_sel.indexOf(this.selectedRemove, 0);
|
|
2808
|
+
if (index > -1) {
|
|
2809
|
+
this.value_sel.splice(index, 1);
|
|
2810
|
+
}
|
|
2811
|
+
this.value_list.push(this.selectedRemove);
|
|
2812
|
+
this.selectedRemove = null;
|
|
2813
|
+
this.filtra();
|
|
1930
2814
|
};
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
return null;
|
|
1936
|
-
else
|
|
1937
|
-
for (var j = 0; j < this.myData.length; j++)
|
|
1938
|
-
if (this.myData[j].valore == this.selval) {
|
|
1939
|
-
return this.myData[j];
|
|
1940
|
-
}
|
|
2815
|
+
FHPickListComponent.prototype.addTo = function (item) {
|
|
2816
|
+
this.option = true;
|
|
2817
|
+
this.selectedAdd = item;
|
|
2818
|
+
this.selectedRemove = null;
|
|
1941
2819
|
};
|
|
1942
|
-
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
// console.log("qui1");
|
|
1954
|
-
if (this.myData.length == 0 || this.myData[0] == null)
|
|
1955
|
-
return;
|
|
1956
|
-
//console.log("qui2");
|
|
1957
|
-
for (var j = 0; j < this.myData.length; j++) {
|
|
1958
|
-
//console.log(this.myData[j].valore +' '+ desc_val);
|
|
1959
|
-
if (this.myData[j].valore == desc_val) {
|
|
1960
|
-
this.selval = "" + this.myData[j].valore;
|
|
1961
|
-
if (this.myData[j].descrizione_valore != null)
|
|
1962
|
-
this.descri_val = this.myData[j].descrizione_valore;
|
|
1963
|
-
this.update_dis();
|
|
1964
|
-
return;
|
|
1965
|
-
}
|
|
2820
|
+
FHPickListComponent.prototype.removeTo = function (item) {
|
|
2821
|
+
this.option = false;
|
|
2822
|
+
this.selectedAdd = null;
|
|
2823
|
+
this.selectedRemove = item;
|
|
2824
|
+
};
|
|
2825
|
+
FHPickListComponent.prototype.getSelStr = function () {
|
|
2826
|
+
var sx = "";
|
|
2827
|
+
for (var i = 0; i < this.value_sel.length; i++) {
|
|
2828
|
+
if (sx != "")
|
|
2829
|
+
sx = sx + ",";
|
|
2830
|
+
sx = sx + this.value_sel[i].descrizione_valore;
|
|
1966
2831
|
}
|
|
1967
|
-
|
|
2832
|
+
return sx;
|
|
1968
2833
|
};
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
if (this.selval == null)
|
|
1972
|
-
return this.valDef;
|
|
1973
|
-
if (this.selval == "-1")
|
|
1974
|
-
return this.valDef;
|
|
1975
|
-
}
|
|
1976
|
-
if (this.selval == null)
|
|
1977
|
-
return "-1";
|
|
1978
|
-
if (this.selval == "-1")
|
|
1979
|
-
return "-1";
|
|
1980
|
-
else
|
|
1981
|
-
for (var j = 0; j < this.myData.length; j++)
|
|
1982
|
-
if (this.myData[j].valore == this.selval) {
|
|
1983
|
-
return this.myData[j].descrizione_valore;
|
|
1984
|
-
}
|
|
2834
|
+
FHPickListComponent.prototype.getSelArr = function () {
|
|
2835
|
+
return this.value_sel;
|
|
1985
2836
|
};
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
if (!this.enabled) {
|
|
1989
|
-
if (this.selval == null)
|
|
1990
|
-
return this.valDef;
|
|
1991
|
-
if (this.selval == "-1")
|
|
1992
|
-
return this.valDef;
|
|
1993
|
-
}
|
|
1994
|
-
if (this.selval == null)
|
|
1995
|
-
return "-1";
|
|
1996
|
-
if (this.selval == "")
|
|
1997
|
-
return "-1";
|
|
1998
|
-
else
|
|
1999
|
-
return this.selval;
|
|
2837
|
+
FHPickListComponent.prototype.ok = function () {
|
|
2838
|
+
this.dialogRef.close(this.getSelArr());
|
|
2000
2839
|
};
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2840
|
+
FHPickListComponent.ctorParameters = function () { return [
|
|
2841
|
+
{ type: MatDialogRef },
|
|
2842
|
+
{ type: QueryService },
|
|
2843
|
+
{ type: ToastrService },
|
|
2844
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2845
|
+
]; };
|
|
2846
|
+
__decorate([
|
|
2847
|
+
Input(),
|
|
2848
|
+
__metadata("design:type", Array)
|
|
2849
|
+
], FHPickListComponent.prototype, "value_list", void 0);
|
|
2850
|
+
__decorate([
|
|
2851
|
+
Input(),
|
|
2852
|
+
__metadata("design:type", Boolean)
|
|
2853
|
+
], FHPickListComponent.prototype, "single_sel", void 0);
|
|
2854
|
+
__decorate([
|
|
2855
|
+
Input(),
|
|
2856
|
+
__metadata("design:type", Boolean)
|
|
2857
|
+
], FHPickListComponent.prototype, "vis_buttons", void 0);
|
|
2858
|
+
__decorate([
|
|
2859
|
+
Input(),
|
|
2860
|
+
__metadata("design:type", Boolean)
|
|
2861
|
+
], FHPickListComponent.prototype, "limit_size", void 0);
|
|
2862
|
+
__decorate([
|
|
2863
|
+
Input(),
|
|
2864
|
+
__metadata("design:type", Array)
|
|
2865
|
+
], FHPickListComponent.prototype, "value_sel", void 0);
|
|
2866
|
+
FHPickListComponent = __decorate([
|
|
2867
|
+
Component({
|
|
2868
|
+
selector: "FHPickList",
|
|
2869
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"18%\"\n 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);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"41%\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table\">\n <thead>\n <tr>\n <th>VALORI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </div>\n ",
|
|
2870
|
+
styles: ["\n .selector {\n cursor: hand;\n }\n "]
|
|
2871
|
+
}),
|
|
2872
|
+
__param(3, Inject(MAT_DIALOG_DATA)),
|
|
2873
|
+
__metadata("design:paramtypes", [MatDialogRef,
|
|
2874
|
+
QueryService,
|
|
2875
|
+
ToastrService, Object])
|
|
2876
|
+
], FHPickListComponent);
|
|
2877
|
+
return FHPickListComponent;
|
|
2878
|
+
}());
|
|
2879
|
+
|
|
2880
|
+
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
2881
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2882
|
+
useExisting: forwardRef(function () { return FHPickFieldComponent; }),
|
|
2883
|
+
multi: true,
|
|
2884
|
+
};
|
|
2885
|
+
var FHPickFieldComponent = /** @class */ (function () {
|
|
2886
|
+
function FHPickFieldComponent(dataservice, dialog) {
|
|
2887
|
+
this.dataservice = dataservice;
|
|
2888
|
+
this.dialog = dialog;
|
|
2889
|
+
this.label = '';
|
|
2890
|
+
this.required = false;
|
|
2891
|
+
this.enabled = true;
|
|
2892
|
+
this.hidden = false;
|
|
2893
|
+
this.sep = ',';
|
|
2894
|
+
this.value_list = new Array();
|
|
2895
|
+
this.single_sel = false;
|
|
2896
|
+
this.vis_buttons = true;
|
|
2897
|
+
this.limit_size = false;
|
|
2898
|
+
this.value_sel = [];
|
|
2899
|
+
this.change = new EventEmitter();
|
|
2900
|
+
this.t_value = "";
|
|
2901
|
+
this.i_value = "";
|
|
2902
|
+
this.selectedUser = [];
|
|
2903
|
+
this.onChange = function (_) { };
|
|
2904
|
+
this.onTouched = function () { };
|
|
2905
|
+
}
|
|
2906
|
+
FHPickFieldComponent.prototype.ngAfterViewInit = function () {
|
|
2907
|
+
var _this = this;
|
|
2908
|
+
setTimeout(function () {
|
|
2909
|
+
if (_this.required)
|
|
2910
|
+
_this.label = _this.label + " *";
|
|
2911
|
+
});
|
|
2912
|
+
};
|
|
2913
|
+
FHPickFieldComponent.prototype.set_by_value = function (v) {
|
|
2914
|
+
if (v == null)
|
|
2915
|
+
this.clear();
|
|
2916
|
+
if (v == '')
|
|
2917
|
+
this.clear();
|
|
2918
|
+
var vx = v.split(this.sep);
|
|
2919
|
+
this.t_value = '';
|
|
2920
|
+
this.i_value = '';
|
|
2921
|
+
this.value_sel = [];
|
|
2922
|
+
for (var ix = 0; ix < vx.length; ix++) {
|
|
2923
|
+
for (var index = 0; index < this.value_list.length; index++) {
|
|
2924
|
+
if (vx[ix] == this.value_list[index].valore) {
|
|
2925
|
+
if (this.t_value != '')
|
|
2926
|
+
this.t_value += this.sep;
|
|
2927
|
+
this.t_value += this.value_list[index].descrizione_valore;
|
|
2928
|
+
if (this.i_value != '')
|
|
2929
|
+
this.i_value += this.sep;
|
|
2930
|
+
this.i_value += this.value_list[index].valore;
|
|
2931
|
+
this.value_sel.push(this.value_list[index].valore);
|
|
2932
|
+
break;
|
|
2933
|
+
}
|
|
2008
2934
|
}
|
|
2009
2935
|
}
|
|
2010
2936
|
};
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
var o = new Object();
|
|
2016
|
-
var av = a[i].split("|");
|
|
2017
|
-
o.valore = av[1];
|
|
2018
|
-
o.descrizione_valore = av[0];
|
|
2019
|
-
this.myData.push(o);
|
|
2937
|
+
FHPickFieldComponent.prototype.writeValue = function (value) {
|
|
2938
|
+
if (value == null) {
|
|
2939
|
+
this.clear();
|
|
2940
|
+
return;
|
|
2020
2941
|
}
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2942
|
+
if (value == '') {
|
|
2943
|
+
this.clear();
|
|
2944
|
+
return;
|
|
2945
|
+
}
|
|
2946
|
+
this.set_by_value(value);
|
|
2024
2947
|
};
|
|
2025
|
-
|
|
2948
|
+
FHPickFieldComponent.prototype.open_pick = function () {
|
|
2026
2949
|
var _this = this;
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2950
|
+
if (!this.enabled)
|
|
2951
|
+
return;
|
|
2952
|
+
var dialogRef = this.dialog.open(FHPickListComponent, {
|
|
2953
|
+
disableClose: true,
|
|
2954
|
+
width: "700px",
|
|
2955
|
+
height: "550px", data: {
|
|
2956
|
+
value_list: JSON.parse(JSON.stringify(this.value_list)),
|
|
2957
|
+
single_sel: this.single_sel,
|
|
2958
|
+
vis_buttons: this.vis_buttons,
|
|
2959
|
+
limit_size: this.limit_size,
|
|
2960
|
+
value_sel: JSON.parse(JSON.stringify(this.value_sel))
|
|
2037
2961
|
}
|
|
2038
|
-
_this.initend.emit();
|
|
2039
2962
|
});
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
descrizione_valore: this.getDescri(),
|
|
2963
|
+
dialogRef.afterClosed().subscribe(function (result) {
|
|
2964
|
+
if (result != null) {
|
|
2965
|
+
_this.set_by_value(result.map(function (v) { return v.valore; }).join(_this.sep));
|
|
2966
|
+
_this.change.emit(result);
|
|
2967
|
+
_this.onChange(_this.i_value);
|
|
2968
|
+
}
|
|
2047
2969
|
});
|
|
2048
2970
|
};
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
FHComboboxComponent.prototype.writeValue = function (value) {
|
|
2054
|
-
this.setByValue(value);
|
|
2971
|
+
FHPickFieldComponent.prototype.clear = function () {
|
|
2972
|
+
this.t_value = '';
|
|
2973
|
+
this.i_value = '';
|
|
2974
|
+
this.onChange('');
|
|
2055
2975
|
};
|
|
2056
|
-
|
|
2976
|
+
FHPickFieldComponent.prototype.registerOnChange = function (fn) {
|
|
2057
2977
|
this.onChange = fn;
|
|
2058
2978
|
};
|
|
2059
|
-
|
|
2979
|
+
FHPickFieldComponent.prototype.registerOnTouched = function (fn) {
|
|
2060
2980
|
this.onTouched = fn;
|
|
2061
2981
|
};
|
|
2062
|
-
|
|
2982
|
+
FHPickFieldComponent.ctorParameters = function () { return [
|
|
2063
2983
|
{ type: QueryService },
|
|
2064
|
-
{ type:
|
|
2984
|
+
{ type: MatDialog }
|
|
2065
2985
|
]; };
|
|
2066
|
-
__decorate([
|
|
2067
|
-
Input(),
|
|
2068
|
-
__metadata("design:type", Boolean)
|
|
2069
|
-
], FHComboboxComponent.prototype, "init_fill", void 0);
|
|
2070
2986
|
__decorate([
|
|
2071
2987
|
Input(),
|
|
2072
2988
|
__metadata("design:type", String)
|
|
2073
|
-
],
|
|
2989
|
+
], FHPickFieldComponent.prototype, "label", void 0);
|
|
2074
2990
|
__decorate([
|
|
2075
2991
|
Input(),
|
|
2076
|
-
__metadata("design:type",
|
|
2077
|
-
],
|
|
2992
|
+
__metadata("design:type", Boolean)
|
|
2993
|
+
], FHPickFieldComponent.prototype, "required", void 0);
|
|
2078
2994
|
__decorate([
|
|
2079
2995
|
Input(),
|
|
2080
|
-
__metadata("design:type",
|
|
2081
|
-
],
|
|
2996
|
+
__metadata("design:type", Boolean)
|
|
2997
|
+
], FHPickFieldComponent.prototype, "enabled", void 0);
|
|
2082
2998
|
__decorate([
|
|
2083
2999
|
Input(),
|
|
2084
3000
|
__metadata("design:type", Boolean)
|
|
2085
|
-
],
|
|
3001
|
+
], FHPickFieldComponent.prototype, "hidden", void 0);
|
|
2086
3002
|
__decorate([
|
|
2087
3003
|
Input(),
|
|
2088
3004
|
__metadata("design:type", String)
|
|
2089
|
-
],
|
|
3005
|
+
], FHPickFieldComponent.prototype, "sep", void 0);
|
|
2090
3006
|
__decorate([
|
|
2091
3007
|
Input(),
|
|
2092
|
-
__metadata("design:type",
|
|
2093
|
-
],
|
|
3008
|
+
__metadata("design:type", Array)
|
|
3009
|
+
], FHPickFieldComponent.prototype, "value_list", void 0);
|
|
2094
3010
|
__decorate([
|
|
2095
3011
|
Input(),
|
|
2096
3012
|
__metadata("design:type", Boolean)
|
|
2097
|
-
],
|
|
3013
|
+
], FHPickFieldComponent.prototype, "single_sel", void 0);
|
|
2098
3014
|
__decorate([
|
|
2099
3015
|
Input(),
|
|
2100
|
-
__metadata("design:type",
|
|
2101
|
-
],
|
|
2102
|
-
__decorate([
|
|
2103
|
-
ViewChild("cmb"),
|
|
2104
|
-
__metadata("design:type", ElementRef)
|
|
2105
|
-
], FHComboboxComponent.prototype, "smtr", void 0);
|
|
2106
|
-
__decorate([
|
|
2107
|
-
Output(),
|
|
2108
|
-
__metadata("design:type", EventEmitter)
|
|
2109
|
-
], FHComboboxComponent.prototype, "fillend", void 0);
|
|
2110
|
-
__decorate([
|
|
2111
|
-
Output(),
|
|
2112
|
-
__metadata("design:type", EventEmitter)
|
|
2113
|
-
], FHComboboxComponent.prototype, "selchange", void 0);
|
|
2114
|
-
__decorate([
|
|
2115
|
-
Output(),
|
|
2116
|
-
__metadata("design:type", EventEmitter)
|
|
2117
|
-
], FHComboboxComponent.prototype, "initend", void 0);
|
|
3016
|
+
__metadata("design:type", Boolean)
|
|
3017
|
+
], FHPickFieldComponent.prototype, "vis_buttons", void 0);
|
|
2118
3018
|
__decorate([
|
|
2119
3019
|
Input(),
|
|
2120
|
-
__metadata("design:type",
|
|
2121
|
-
],
|
|
3020
|
+
__metadata("design:type", Boolean)
|
|
3021
|
+
], FHPickFieldComponent.prototype, "limit_size", void 0);
|
|
2122
3022
|
__decorate([
|
|
2123
3023
|
Input(),
|
|
2124
|
-
__metadata("design:type",
|
|
2125
|
-
],
|
|
2126
|
-
|
|
3024
|
+
__metadata("design:type", Array)
|
|
3025
|
+
], FHPickFieldComponent.prototype, "value_sel", void 0);
|
|
3026
|
+
__decorate([
|
|
3027
|
+
Output(),
|
|
3028
|
+
__metadata("design:type", EventEmitter)
|
|
3029
|
+
], FHPickFieldComponent.prototype, "change", void 0);
|
|
3030
|
+
FHPickFieldComponent = __decorate([
|
|
2127
3031
|
Component({
|
|
2128
|
-
selector: "
|
|
3032
|
+
selector: "FHPickField",
|
|
2129
3033
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
2130
|
-
template: "\n <
|
|
2131
|
-
styles: [""]
|
|
3034
|
+
template: "\n <div fxLayout=\"row\" [hidden]=\"!enabled || hidden\">\n <mat-form-field\n style=\"clickable-field\"\n (click)=\"open_pick()\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n\n <input\n matInput\n [hidden]=\"hidden\"\n type=\"text\"\n [ngModel]=\"t_value\"\n [disabled]=\"false\"\n readonly\n />\n </mat-form-field>\n <button\n mat-icon-button\n matSuffix\n [hidden]=\"selectedUser.length == 0\"\n (click)=\"clear()\"\n >\n <mat-icon>clear</mat-icon>\n </button>\n </div>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"t_value\"\n />\n </mat-form-field>\n ",
|
|
3035
|
+
styles: ["\n .clickable-field {\n border: 1px solid #000000;\n color: #000000;\n }\n\n .clickable-field:focus {\n outline: none;\n }\n\n :host ::ng-deep .mat-input-element {\n cursor: pointer !important;\n }\n "]
|
|
2132
3036
|
}),
|
|
2133
|
-
__metadata("design:paramtypes", [QueryService,
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
3037
|
+
__metadata("design:paramtypes", [QueryService, MatDialog])
|
|
3038
|
+
], FHPickFieldComponent);
|
|
3039
|
+
return FHPickFieldComponent;
|
|
3040
|
+
}());
|
|
3041
|
+
|
|
3042
|
+
var win_show_log_dett = /** @class */ (function () {
|
|
3043
|
+
function win_show_log_dett(dialogRef, data) {
|
|
3044
|
+
this.dialogRef = dialogRef;
|
|
3045
|
+
this.data = data;
|
|
3046
|
+
this.modifiche = [];
|
|
3047
|
+
this.title = "";
|
|
3048
|
+
this.title = data.title.toUpperCase();
|
|
3049
|
+
this.modifiche = JSON.parse(data.dt);
|
|
3050
|
+
}
|
|
3051
|
+
win_show_log_dett.prototype.close = function () {
|
|
3052
|
+
this.dialogRef.close(null);
|
|
3053
|
+
};
|
|
3054
|
+
win_show_log_dett.prototype.ngAfterViewInit = function () { };
|
|
3055
|
+
win_show_log_dett.ctorParameters = function () { return [
|
|
3056
|
+
{ type: MatDialogRef },
|
|
3057
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
3058
|
+
]; };
|
|
3059
|
+
win_show_log_dett = __decorate([
|
|
3060
|
+
Component({
|
|
3061
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n <h2 mat-dialog-title>DETTAGLIO MODIFICA - {{ title }}</h2>\n\n <mat-dialog-content style=\"min-width:700px\">\n <table style=\"width: 90%\" class=\"fh_table\">\n <thead>\n <tr>\n <th style=\"width:20%;\">Operazione</th>\n <th style=\"width:20%;\">Campo</th>\n <th style=\"width:30%;\">Old Value</th>\n <th style=\"width:30%;\">New Value</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of modifiche; let odd = odd; let even = even\"\n [ngClass]=\"{ odd: odd, even: even }\"\n >\n <td>{{ u.op }}</td>\n <td>{{ u.path }}</td>\n <td>{{ u.oldVal }}</td>\n <td>{{ u.val }}</td>\n </tr>\n </tbody>\n </table>\n </mat-dialog-content>\n "
|
|
3062
|
+
}),
|
|
3063
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
3064
|
+
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
3065
|
+
], win_show_log_dett);
|
|
3066
|
+
return win_show_log_dett;
|
|
2137
3067
|
}());
|
|
2138
3068
|
|
|
2139
3069
|
var FHUploadComponent = /** @class */ (function () {
|
|
@@ -2482,75 +3412,6 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
2482
3412
|
return FHUploadComponent;
|
|
2483
3413
|
}());
|
|
2484
3414
|
|
|
2485
|
-
var FileService = /** @class */ (function () {
|
|
2486
|
-
function FileService(http, app_s, toastr) {
|
|
2487
|
-
this.http = http;
|
|
2488
|
-
this.app_s = app_s;
|
|
2489
|
-
this.toastr = toastr;
|
|
2490
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT; // URL to web API this.app_s.API_ENDPOINT
|
|
2491
|
-
}
|
|
2492
|
-
FileService.prototype.doQuery = function (queryp, displayError) {
|
|
2493
|
-
var _this = this;
|
|
2494
|
-
if (displayError === void 0) { displayError = true; }
|
|
2495
|
-
this.headers = new HttpHeaders({
|
|
2496
|
-
"Content-Type": "application/json",
|
|
2497
|
-
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
2498
|
-
});
|
|
2499
|
-
this.url = this.app_s.API_ENDPOINT + this.app_s.FILE_ENDPOINT;
|
|
2500
|
-
// console.log('FileService url: '+ this.url);
|
|
2501
|
-
var post_v = JSON.stringify(queryp);
|
|
2502
|
-
// console.log(post_v);
|
|
2503
|
-
return this.http
|
|
2504
|
-
.post(this.url, post_v, {
|
|
2505
|
-
headers: this.headers,
|
|
2506
|
-
})
|
|
2507
|
-
.pipe(map(function (res) {
|
|
2508
|
-
// Handle errors, display if enabled
|
|
2509
|
-
var r = res;
|
|
2510
|
-
var err;
|
|
2511
|
-
if (!res) {
|
|
2512
|
-
err = new Error("Empty server response");
|
|
2513
|
-
}
|
|
2514
|
-
else if (r.result_msg === "KO") {
|
|
2515
|
-
err = new Error(r.msg);
|
|
2516
|
-
}
|
|
2517
|
-
if (err) {
|
|
2518
|
-
console.error(err);
|
|
2519
|
-
if (displayError) {
|
|
2520
|
-
_this.toastr.error(err.message);
|
|
2521
|
-
}
|
|
2522
|
-
throw new Error(err);
|
|
2523
|
-
}
|
|
2524
|
-
return res || new QGResult();
|
|
2525
|
-
}), catchError(function (err) {
|
|
2526
|
-
// In a real world app, we might use a remote logging infrastructure
|
|
2527
|
-
// We'd also dig deeper into the error to get a better message
|
|
2528
|
-
var errMsg = err.message
|
|
2529
|
-
? err.message
|
|
2530
|
-
: err.status
|
|
2531
|
-
? err.status + " - " + err.statusText
|
|
2532
|
-
: "Server error";
|
|
2533
|
-
console.error(errMsg); // log to console instead
|
|
2534
|
-
throw err;
|
|
2535
|
-
}));
|
|
2536
|
-
};
|
|
2537
|
-
FileService.ctorParameters = function () { return [
|
|
2538
|
-
{ type: HttpClient },
|
|
2539
|
-
{ type: AppService },
|
|
2540
|
-
{ type: ToastrService }
|
|
2541
|
-
]; };
|
|
2542
|
-
FileService.ɵprov = ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(ɵɵinject(HttpClient), ɵɵinject(AppService), ɵɵinject(ToastrService)); }, token: FileService, providedIn: "root" });
|
|
2543
|
-
FileService = __decorate([
|
|
2544
|
-
Injectable({
|
|
2545
|
-
providedIn: "root",
|
|
2546
|
-
}),
|
|
2547
|
-
__metadata("design:paramtypes", [HttpClient,
|
|
2548
|
-
AppService,
|
|
2549
|
-
ToastrService])
|
|
2550
|
-
], FileService);
|
|
2551
|
-
return FileService;
|
|
2552
|
-
}());
|
|
2553
|
-
|
|
2554
3415
|
var AuthenticationService = /** @class */ (function () {
|
|
2555
3416
|
function AuthenticationService(_dataService, toastr, http, router, route, _fileService, app_s, uti_s) {
|
|
2556
3417
|
this._dataService = _dataService;
|
|
@@ -2836,134 +3697,6 @@ var AuthenticationService = /** @class */ (function () {
|
|
|
2836
3697
|
return AuthenticationService;
|
|
2837
3698
|
}());
|
|
2838
3699
|
|
|
2839
|
-
var WinAskTextBigComponent = /** @class */ (function () {
|
|
2840
|
-
function WinAskTextBigComponent(dialogRef, toastr, data) {
|
|
2841
|
-
this.dialogRef = dialogRef;
|
|
2842
|
-
this.toastr = toastr;
|
|
2843
|
-
this.data = data;
|
|
2844
|
-
this.title = "";
|
|
2845
|
-
this.label = "";
|
|
2846
|
-
this.valore = "";
|
|
2847
|
-
this.readonly = false;
|
|
2848
|
-
this.show_annulla = true;
|
|
2849
|
-
this.show_ok = true;
|
|
2850
|
-
this.min_chars = 3;
|
|
2851
|
-
if (data != null) {
|
|
2852
|
-
if (data.title != null)
|
|
2853
|
-
this.title = data.title;
|
|
2854
|
-
if (data.label != null)
|
|
2855
|
-
this.label = data.label;
|
|
2856
|
-
if (data.valore != null)
|
|
2857
|
-
this.valore = data.valore;
|
|
2858
|
-
if (data.readonly != null)
|
|
2859
|
-
this.readonly = data.readonly;
|
|
2860
|
-
if (data.show_annulla != null)
|
|
2861
|
-
this.show_annulla = data.show_annulla;
|
|
2862
|
-
if (data.show_ok != null)
|
|
2863
|
-
this.show_ok = data.show_ok;
|
|
2864
|
-
if (data.min_chars != null)
|
|
2865
|
-
this.min_chars = data.min_chars;
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
WinAskTextBigComponent.prototype.ngAfterViewInit = function () { };
|
|
2869
|
-
WinAskTextBigComponent.prototype.close = function () {
|
|
2870
|
-
this.dialogRef.close(null);
|
|
2871
|
-
};
|
|
2872
|
-
WinAskTextBigComponent.prototype.show = function () { };
|
|
2873
|
-
WinAskTextBigComponent.prototype.hide = function () {
|
|
2874
|
-
this.dialogRef.close(null);
|
|
2875
|
-
};
|
|
2876
|
-
WinAskTextBigComponent.prototype.do_check = function () {
|
|
2877
|
-
if (this.valore.length < this.min_chars) {
|
|
2878
|
-
this.toastr.error("Il valore deve contenere almeno " + this.min_chars + " caratteri");
|
|
2879
|
-
return;
|
|
2880
|
-
}
|
|
2881
|
-
this.dialogRef.close(this.valore);
|
|
2882
|
-
};
|
|
2883
|
-
WinAskTextBigComponent.prototype.chiudi = function () {
|
|
2884
|
-
this.dialogRef.close(null);
|
|
2885
|
-
};
|
|
2886
|
-
WinAskTextBigComponent.ctorParameters = function () { return [
|
|
2887
|
-
{ type: MatDialogRef },
|
|
2888
|
-
{ type: ToastrService },
|
|
2889
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2890
|
-
]; };
|
|
2891
|
-
WinAskTextBigComponent = __decorate([
|
|
2892
|
-
Component({
|
|
2893
|
-
selector: "app-win_ask_text",
|
|
2894
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <h2 mat-dialog-title>{{ title }}</h2>\n <mat-dialog-content style=\"width:630px;font-size: 15px;\">\n <mat-form-field\n appearance=\"outline\"\n floatLabel=\"always\"\n style=\"width:100%\"\n ><mat-label>{{ label }}</mat-label>\n <textarea\n matInput\n [readonly]=\"readonly\"\n [(ngModel)]=\"valore\"\n rows=\"15\"\n required\n ></textarea>\n </mat-form-field>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n style=\"width: 100%\"\n [hidden]=\"readonly\"\n >\n <button\n *ngIf=\"show_ok\"\n mat-flat-button\n color=\"primary\"\n (click)=\"do_check()\"\n >\n OK</button\n > \n <button\n *ngIf=\"show_annulla\"\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n ANNULLA\n </button>\n </div>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n style=\"width: 100%\"\n [hidden]=\"!readonly\"\n >\n <button\n *ngIf=\"show_annulla\"\n mat-flat-button\n color=\"warn\"\n (click)=\"chiudi()\"\n >\n CHIUDI\n </button>\n </div>\n </mat-dialog-actions>\n "
|
|
2895
|
-
}),
|
|
2896
|
-
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
2897
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
2898
|
-
ToastrService, Object])
|
|
2899
|
-
], WinAskTextBigComponent);
|
|
2900
|
-
return WinAskTextBigComponent;
|
|
2901
|
-
}());
|
|
2902
|
-
|
|
2903
|
-
var FHWinComboSelect = /** @class */ (function () {
|
|
2904
|
-
function FHWinComboSelect(dialogRef, toastr, data) {
|
|
2905
|
-
this.dialogRef = dialogRef;
|
|
2906
|
-
this.toastr = toastr;
|
|
2907
|
-
this.data = data;
|
|
2908
|
-
this.label = "";
|
|
2909
|
-
this.width = "100%";
|
|
2910
|
-
this.nota = false;
|
|
2911
|
-
this.nota_val = "";
|
|
2912
|
-
if (data == null)
|
|
2913
|
-
return;
|
|
2914
|
-
if (data != null) {
|
|
2915
|
-
var lab = "";
|
|
2916
|
-
var arrd = [];
|
|
2917
|
-
var nota = false;
|
|
2918
|
-
if (data.label != null)
|
|
2919
|
-
lab = data.label;
|
|
2920
|
-
if (data.arr_option != null)
|
|
2921
|
-
arrd = data.arr_option;
|
|
2922
|
-
if (data.nota != null)
|
|
2923
|
-
nota = data.nota;
|
|
2924
|
-
this.set_selection(lab, arrd, nota);
|
|
2925
|
-
}
|
|
2926
|
-
}
|
|
2927
|
-
FHWinComboSelect.prototype.close = function () {
|
|
2928
|
-
this.dialogRef.close(null);
|
|
2929
|
-
};
|
|
2930
|
-
FHWinComboSelect.prototype.set_selection = function (lab, myD, nota) {
|
|
2931
|
-
if (nota === void 0) { nota = false; }
|
|
2932
|
-
this.nota = nota;
|
|
2933
|
-
this.label = lab;
|
|
2934
|
-
for (var i = 0; i < myD.length; i++)
|
|
2935
|
-
this.cmb_sel.add_option(myD[i]);
|
|
2936
|
-
};
|
|
2937
|
-
FHWinComboSelect.prototype.ok = function () {
|
|
2938
|
-
if (this.cmb_sel.getValue() == "-1") {
|
|
2939
|
-
this.toastr.error("Selezionare un valore");
|
|
2940
|
-
return;
|
|
2941
|
-
}
|
|
2942
|
-
this.cmb_sel.getObj().nota = this.nota_val;
|
|
2943
|
-
this.dialogRef.close(this.cmb_sel.getObj());
|
|
2944
|
-
};
|
|
2945
|
-
FHWinComboSelect.prototype.ngAfterViewInit = function () { };
|
|
2946
|
-
FHWinComboSelect.ctorParameters = function () { return [
|
|
2947
|
-
{ type: MatDialogRef },
|
|
2948
|
-
{ type: ToastrService },
|
|
2949
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
2950
|
-
]; };
|
|
2951
|
-
__decorate([
|
|
2952
|
-
ViewChild("cmb_sel"),
|
|
2953
|
-
__metadata("design:type", FHComboboxComponent)
|
|
2954
|
-
], FHWinComboSelect.prototype, "cmb_sel", void 0);
|
|
2955
|
-
FHWinComboSelect = __decorate([
|
|
2956
|
-
Component({
|
|
2957
|
-
selector: "fhwincomboselect",
|
|
2958
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <div fxLayout=\"column\">\n <mat-dialog-content style=\"font-size: 15px;\">\n <div fxLayout=\"column\">\n <h3>\n {{ label | uppercase }}\n </h3>\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n <mat-form-field *ngIf=\"nota\" appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Nota</mat-label>\n <textarea matInput [(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions\n fxFlex=\"100\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button mat-flat-button color=\"warn\" (click)=\"close()\">ANNULLA</button>\n </mat-dialog-actions>\n </div>\n "
|
|
2959
|
-
}),
|
|
2960
|
-
__param(2, Inject(MAT_DIALOG_DATA)),
|
|
2961
|
-
__metadata("design:paramtypes", [MatDialogRef,
|
|
2962
|
-
ToastrService, Object])
|
|
2963
|
-
], FHWinComboSelect);
|
|
2964
|
-
return FHWinComboSelect;
|
|
2965
|
-
}());
|
|
2966
|
-
|
|
2967
3700
|
var FHUploadPanelComponent = /** @class */ (function () {
|
|
2968
3701
|
function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s, uti) {
|
|
2969
3702
|
this._appservice = _appservice;
|
|
@@ -4975,15 +5708,6 @@ var wkfapp = /** @class */ (function () {
|
|
|
4975
5708
|
return wkfapp;
|
|
4976
5709
|
}());
|
|
4977
5710
|
|
|
4978
|
-
var FSInput = /** @class */ (function () {
|
|
4979
|
-
function FSInput() {
|
|
4980
|
-
this.command = "";
|
|
4981
|
-
this.p1 = "";
|
|
4982
|
-
this.p2 = "";
|
|
4983
|
-
}
|
|
4984
|
-
return FSInput;
|
|
4985
|
-
}());
|
|
4986
|
-
|
|
4987
5711
|
var OfficeOperation = /** @class */ (function () {
|
|
4988
5712
|
function OfficeOperation() {
|
|
4989
5713
|
}
|
|
@@ -16314,7 +17038,7 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
16314
17038
|
win_salva_annulla,
|
|
16315
17039
|
FormBuilderComponent,
|
|
16316
17040
|
FormExecuterComponent,
|
|
16317
|
-
FHTableManager, FHPickFieldComponent
|
|
17041
|
+
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component
|
|
16318
17042
|
],
|
|
16319
17043
|
declarations: [
|
|
16320
17044
|
win_show_log_dett,
|
|
@@ -16392,7 +17116,7 @@ var FluxhubLibModule = /** @class */ (function () {
|
|
|
16392
17116
|
FHTableManager,
|
|
16393
17117
|
win_manage_values,
|
|
16394
17118
|
win_manage_roles,
|
|
16395
|
-
FHComboboxComponentFilter, FHPickFieldComponent
|
|
17119
|
+
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component
|
|
16396
17120
|
],
|
|
16397
17121
|
providers: [HighlightService, DragulaService],
|
|
16398
17122
|
entryComponents: [
|
|
@@ -16633,5 +17357,5 @@ var FSResult = /** @class */ (function () {
|
|
|
16633
17357
|
* Generated bundle index. Do not edit.
|
|
16634
17358
|
*/
|
|
16635
17359
|
|
|
16636
|
-
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
|
|
17360
|
+
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 };
|
|
16637
17361
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|