@fluxhub/fluxhub-lib 9.0.117 → 9.0.119
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 +92 -45
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcurrencyfield.js +83 -41
- package/esm2015/lib/controls/fhdatepicker.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +7 -2
- package/esm2015/lib/controls/fhupload.js +4 -5
- package/esm2015/lib/services/localstorage.service.js +17 -5
- package/esm2015/lib/services/utility.service.js +5 -4
- package/esm2015/lib/wkf_engine/win_assegna.js +1 -2
- package/esm2015/lib/wkf_engine/win_conferma.js +16 -8
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -5
- package/esm5/lib/controls/fhcurrencyfield.js +51 -30
- package/esm5/lib/controls/fhdatepicker.js +2 -2
- package/esm5/lib/controls/fhgrid.js +7 -2
- package/esm5/lib/controls/fhupload.js +2 -2
- package/esm5/lib/services/localstorage.service.js +17 -5
- package/esm5/lib/services/utility.service.js +5 -4
- package/esm5/lib/wkf_engine/win_assegna.js +1 -2
- package/esm5/lib/wkf_engine/win_conferma.js +16 -8
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +126 -59
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +92 -45
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcurrencyfield.d.ts +5 -3
- package/lib/services/utility.service.d.ts +2 -3
- package/lib/wkf_engine/win_conferma.d.ts +2 -1
- package/package.json +1 -1
|
@@ -332,7 +332,6 @@
|
|
|
332
332
|
var UtilityService = /** @class */ (function () {
|
|
333
333
|
function UtilityService(app_s) {
|
|
334
334
|
this.app_s = app_s;
|
|
335
|
-
this.simpleCrypt = new ngxSimpleCrypt.SimpleCrypt();
|
|
336
335
|
}
|
|
337
336
|
UtilityService_1 = UtilityService;
|
|
338
337
|
UtilityService.prototype.set_home_title = function (s) {
|
|
@@ -856,10 +855,12 @@
|
|
|
856
855
|
return enc;
|
|
857
856
|
};
|
|
858
857
|
UtilityService.prototype.encrypt_v2 = function (s) {
|
|
859
|
-
|
|
858
|
+
var simpleCrypt = new ngxSimpleCrypt.SimpleCrypt();
|
|
859
|
+
return simpleCrypt.encode("prologika_fluxhub_etjda", s);
|
|
860
860
|
};
|
|
861
861
|
UtilityService.prototype.decrypt_v2 = function (s) {
|
|
862
|
-
|
|
862
|
+
var simpleCrypt = new ngxSimpleCrypt.SimpleCrypt();
|
|
863
|
+
return simpleCrypt.decode("prologika_fluxhub_etjda", s);
|
|
863
864
|
};
|
|
864
865
|
UtilityService.prototype.string_sqlvalue = function (s) {
|
|
865
866
|
if (s == null)
|
|
@@ -2179,7 +2180,7 @@
|
|
|
2179
2180
|
FHUploadComponent = __decorate([
|
|
2180
2181
|
core.Component({
|
|
2181
2182
|
selector: 'FHUpload',
|
|
2182
|
-
template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox> \n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\" (click)=\"call_up()\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path 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\"/></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button> \n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\">\n <label>{{label}}:</label>{{descrizione}}
|
|
2183
|
+
template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox> \n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\" (click)=\"call_up()\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path 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\"/></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button> \n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{label}}:</label><div *ngIf=\"label!=descrizione\">{{descrizione}}</div>\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px;background-color: #F5F5F5\">{{label_b}}</button>\n </div>\n\n ",
|
|
2183
2184
|
styles: ["\n\n "]
|
|
2184
2185
|
}),
|
|
2185
2186
|
__metadata("design:paramtypes", [QueryService, ngxToastr.ToastrService, dialog.MatDialog, AppService])
|
|
@@ -5619,7 +5620,12 @@
|
|
|
5619
5620
|
for (var j = 0; j < p_col.length; j++) {
|
|
5620
5621
|
if (str_fields != '')
|
|
5621
5622
|
str_fields += ',';
|
|
5622
|
-
|
|
5623
|
+
if (p_col[j].getColDef().headerName == null)
|
|
5624
|
+
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
5625
|
+
else if (p_col[j].getColDef().headerName == null)
|
|
5626
|
+
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
5627
|
+
else
|
|
5628
|
+
str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
|
|
5623
5629
|
}
|
|
5624
5630
|
if (this.fields.indexOf('DISTINCT') != -1)
|
|
5625
5631
|
str_fields = 'DISTINCT ' + str_fields;
|
|
@@ -7973,7 +7979,7 @@
|
|
|
7973
7979
|
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter },
|
|
7974
7980
|
{ provide: core$1.MAT_DATE_LOCALE, useValue: 'it-IT' },
|
|
7975
7981
|
],
|
|
7976
|
-
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch($event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n
|
|
7982
|
+
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch($event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n [min]=\"min_date\" [max]=\"max_date\" (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",
|
|
7977
7983
|
styles: ["\n .lb_small_grigia {\n font-size: 15px;\n color: #B8B8B8;\n }\n\n .label_dis {\n font-size: 14px;\n font-weight: bold;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-input-element,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-label {\n color: #f44336;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-underline,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-ripple {\n background-color: #f44336;\n }\n "]
|
|
7978
7984
|
}),
|
|
7979
7985
|
__metadata("design:paramtypes", [core$1.DateAdapter, UtilityService])
|
|
@@ -8824,32 +8830,28 @@
|
|
|
8824
8830
|
return FHLogPanelComponent;
|
|
8825
8831
|
}());
|
|
8826
8832
|
|
|
8827
|
-
var noop$6 = function () {
|
|
8828
|
-
};
|
|
8833
|
+
var noop$6 = function () { };
|
|
8829
8834
|
var ɵ0$6 = noop$6;
|
|
8830
8835
|
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
|
|
8831
8836
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
8832
8837
|
useExisting: core.forwardRef(function () { return FHCurrencyFieldComponent; }),
|
|
8833
|
-
multi: true
|
|
8838
|
+
multi: true,
|
|
8834
8839
|
};
|
|
8835
8840
|
var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
8836
8841
|
function FHCurrencyFieldComponent() {
|
|
8837
8842
|
this.decimal = 2;
|
|
8838
|
-
this.label =
|
|
8843
|
+
this.label = "";
|
|
8839
8844
|
this.required = false;
|
|
8840
8845
|
this.enabled = true;
|
|
8841
8846
|
this.hidden = false;
|
|
8842
|
-
this.color =
|
|
8843
|
-
this.m_color =
|
|
8847
|
+
this.color = "";
|
|
8848
|
+
this.m_color = "";
|
|
8844
8849
|
this.label_width = "";
|
|
8845
8850
|
this.change = new core.EventEmitter();
|
|
8846
8851
|
this.enter_pressed = new core.EventEmitter();
|
|
8847
|
-
this.
|
|
8848
|
-
this.
|
|
8849
|
-
|
|
8850
|
-
this.onTouched = function () {
|
|
8851
|
-
};
|
|
8852
|
-
this.formattedAmount = '0,00';
|
|
8852
|
+
this.onChange = function (_) { };
|
|
8853
|
+
this.onTouched = function () { };
|
|
8854
|
+
this.formattedAmount = "0,00";
|
|
8853
8855
|
this.value = 0;
|
|
8854
8856
|
}
|
|
8855
8857
|
FHCurrencyFieldComponent.prototype.kd = function (event) {
|
|
@@ -8857,6 +8859,15 @@
|
|
|
8857
8859
|
this.enter_pressed.emit();
|
|
8858
8860
|
}
|
|
8859
8861
|
};
|
|
8862
|
+
FHCurrencyFieldComponent.prototype.click_select_allf = function (element) {
|
|
8863
|
+
var _this = this;
|
|
8864
|
+
setTimeout(function () {
|
|
8865
|
+
_this.el.nativeElement.select();
|
|
8866
|
+
}, 200);
|
|
8867
|
+
};
|
|
8868
|
+
FHCurrencyFieldComponent.prototype.select_allf = function (element) {
|
|
8869
|
+
this.el.nativeElement.select();
|
|
8870
|
+
};
|
|
8860
8871
|
FHCurrencyFieldComponent.prototype.getStyle_color = function () {
|
|
8861
8872
|
return this.m_color;
|
|
8862
8873
|
};
|
|
@@ -8869,15 +8880,23 @@
|
|
|
8869
8880
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8870
8881
|
var _this = this;
|
|
8871
8882
|
setTimeout(function () {
|
|
8872
|
-
_this.value = parseFloat(_this.formattedAmount.split(
|
|
8883
|
+
_this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
|
|
8884
|
+
console.log('onChange ', _this.value);
|
|
8873
8885
|
_this.onChange(_this.value);
|
|
8874
8886
|
}, 50);
|
|
8875
8887
|
};
|
|
8876
8888
|
FHCurrencyFieldComponent.prototype.writeValue = function (value) {
|
|
8889
|
+
if (this.value == parseFloat(this.formattedAmount.split(".").join("").split(",").join("."))) {
|
|
8890
|
+
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8891
|
+
return;
|
|
8892
|
+
}
|
|
8877
8893
|
if (value == null)
|
|
8878
8894
|
value = 0;
|
|
8879
8895
|
// if (value !== this.innerValue) {
|
|
8880
|
-
|
|
8896
|
+
if (typeof (value) == 'string') {
|
|
8897
|
+
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8898
|
+
}
|
|
8899
|
+
console.log('value ', value);
|
|
8881
8900
|
this.value = value;
|
|
8882
8901
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8883
8902
|
//}
|
|
@@ -8895,7 +8914,7 @@
|
|
|
8895
8914
|
// if (typeof (element.target.value) !== 'number')
|
|
8896
8915
|
// this.formattedAmount = this.currencyPipe.transform(this.value);
|
|
8897
8916
|
setTimeout(function () {
|
|
8898
|
-
_this.value = parseFloat(_this.formattedAmount.split(
|
|
8917
|
+
_this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
|
|
8899
8918
|
// this.writeValue(this.value);
|
|
8900
8919
|
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8901
8920
|
}, 50);
|
|
@@ -8909,13 +8928,21 @@
|
|
|
8909
8928
|
};
|
|
8910
8929
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8911
8930
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8931
|
+
console.log('b', typeof (value));
|
|
8932
|
+
if (typeof (value) == 'string') {
|
|
8933
|
+
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8934
|
+
}
|
|
8935
|
+
console.log('a', typeof (value));
|
|
8936
|
+
var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8937
|
+
console.log('transform ', value);
|
|
8938
|
+
fraction =
|
|
8939
|
+
fractionSize > 0
|
|
8940
|
+
? "," + (fraction + "000000").substring(0, fractionSize)
|
|
8941
|
+
: "";
|
|
8942
|
+
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
8943
|
+
if (integer == "")
|
|
8944
|
+
integer = "0";
|
|
8945
|
+
console.log('transform end ', integer + fraction);
|
|
8919
8946
|
return integer + fraction;
|
|
8920
8947
|
};
|
|
8921
8948
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
@@ -8942,7 +8969,7 @@
|
|
|
8942
8969
|
});
|
|
8943
8970
|
};
|
|
8944
8971
|
__decorate([
|
|
8945
|
-
core.ViewChild(
|
|
8972
|
+
core.ViewChild("el"),
|
|
8946
8973
|
__metadata("design:type", core.ElementRef)
|
|
8947
8974
|
], FHCurrencyFieldComponent.prototype, "el", void 0);
|
|
8948
8975
|
__decorate([
|
|
@@ -8987,10 +9014,10 @@
|
|
|
8987
9014
|
], FHCurrencyFieldComponent.prototype, "value", void 0);
|
|
8988
9015
|
FHCurrencyFieldComponent = __decorate([
|
|
8989
9016
|
core.Component({
|
|
8990
|
-
selector:
|
|
9017
|
+
selector: "FHCurrencyField",
|
|
8991
9018
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
|
|
8992
|
-
template: "\n <mat-form-field
|
|
8993
|
-
styles: ["
|
|
9019
|
+
template: "\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 style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (focusout)=\"chg()\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n\n (click)=\"click_select_allf($event)\"\n (focus)=\"removeCurrencyPipeFormat($event); select_allf($event)\"\n\n />\n </mat-form-field>\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 style=\"text-align:right\"\n [style.color]=\"getStyle_color()\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n />\n </mat-form-field>\n ",
|
|
9020
|
+
styles: [""]
|
|
8994
9021
|
}),
|
|
8995
9022
|
__metadata("design:paramtypes", [])
|
|
8996
9023
|
], FHCurrencyFieldComponent);
|
|
@@ -9474,7 +9501,6 @@
|
|
|
9474
9501
|
this.nota = data.commento_default;
|
|
9475
9502
|
if (data.comm_notrequired != null)
|
|
9476
9503
|
this.comm_notrequired = data.comm_notrequired;
|
|
9477
|
-
this.m_appService.temp_var4 = '';
|
|
9478
9504
|
}
|
|
9479
9505
|
}
|
|
9480
9506
|
win_assegna.prototype.close = function () { this.dialogRef.close(null); };
|
|
@@ -9523,11 +9549,12 @@
|
|
|
9523
9549
|
}());
|
|
9524
9550
|
|
|
9525
9551
|
var win_conferma = /** @class */ (function () {
|
|
9526
|
-
function win_conferma(dialogRef, m_appService, toastr, _dataService) {
|
|
9552
|
+
function win_conferma(dialogRef, m_appService, toastr, _dataService, data) {
|
|
9527
9553
|
this.dialogRef = dialogRef;
|
|
9528
9554
|
this.m_appService = m_appService;
|
|
9529
9555
|
this.toastr = toastr;
|
|
9530
9556
|
this._dataService = _dataService;
|
|
9557
|
+
this.data = data;
|
|
9531
9558
|
this.utenti = "";
|
|
9532
9559
|
this.lbl = "";
|
|
9533
9560
|
this.nota = "";
|
|
@@ -9536,13 +9563,18 @@
|
|
|
9536
9563
|
this.comm_notrequired = 0;
|
|
9537
9564
|
this.mobile = false;
|
|
9538
9565
|
this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
|
|
9539
|
-
console.log(' this.comm_notrequired ', this.comm_notrequired);
|
|
9540
9566
|
this.title = this.m_appService.getState().wkf_doc_info.title;
|
|
9541
9567
|
this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
|
|
9542
9568
|
this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
|
|
9543
9569
|
if (this.comm_notrequired == 2)
|
|
9544
9570
|
this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
|
|
9545
9571
|
this.mobile = this.m_appService.getState().pageFullscreen;
|
|
9572
|
+
if (data != null) {
|
|
9573
|
+
if (data.commento_default != null)
|
|
9574
|
+
this.nota = data.commento_default;
|
|
9575
|
+
if (data.comm_notrequired != null)
|
|
9576
|
+
this.comm_notrequired = data.comm_notrequired;
|
|
9577
|
+
}
|
|
9546
9578
|
}
|
|
9547
9579
|
win_conferma.prototype.ok = function () {
|
|
9548
9580
|
if (this.comm_notrequired == 0)
|
|
@@ -9564,13 +9596,15 @@
|
|
|
9564
9596
|
{ type: dialog.MatDialogRef },
|
|
9565
9597
|
{ type: AppService },
|
|
9566
9598
|
{ type: ngxToastr.ToastrService },
|
|
9567
|
-
{ type: QueryService }
|
|
9599
|
+
{ type: QueryService },
|
|
9600
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
9568
9601
|
]; };
|
|
9569
9602
|
win_conferma = __decorate([
|
|
9570
9603
|
core.Component({
|
|
9571
9604
|
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired==1\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">ANNULLA</button>\n </div>\n\n "
|
|
9572
9605
|
}),
|
|
9573
|
-
|
|
9606
|
+
__param(4, core.Inject(dialog.MAT_DIALOG_DATA)),
|
|
9607
|
+
__metadata("design:paramtypes", [dialog.MatDialogRef, AppService, ngxToastr.ToastrService, QueryService, Object])
|
|
9574
9608
|
], win_conferma);
|
|
9575
9609
|
return win_conferma;
|
|
9576
9610
|
}());
|
|
@@ -10468,7 +10502,14 @@
|
|
|
10468
10502
|
}
|
|
10469
10503
|
if (crypt) {
|
|
10470
10504
|
if (json_format) {
|
|
10471
|
-
|
|
10505
|
+
try {
|
|
10506
|
+
resolve(JSON.parse(_this.uti.decrypt_v2(localStorage.getItem(key))));
|
|
10507
|
+
}
|
|
10508
|
+
catch (e) {
|
|
10509
|
+
console.log(e, 'Errore JSON ' + ' ' + _this.uti.decrypt_v2(localStorage.getItem(key)));
|
|
10510
|
+
resolve({});
|
|
10511
|
+
return;
|
|
10512
|
+
}
|
|
10472
10513
|
return;
|
|
10473
10514
|
}
|
|
10474
10515
|
else {
|
|
@@ -10478,7 +10519,14 @@
|
|
|
10478
10519
|
}
|
|
10479
10520
|
else {
|
|
10480
10521
|
if (json_format) {
|
|
10481
|
-
|
|
10522
|
+
try {
|
|
10523
|
+
resolve(JSON.parse('' + localStorage.getItem(key)));
|
|
10524
|
+
}
|
|
10525
|
+
catch (e) {
|
|
10526
|
+
console.log(e, 'Errore JSON ' + localStorage.getItem(key));
|
|
10527
|
+
resolve({});
|
|
10528
|
+
return;
|
|
10529
|
+
}
|
|
10482
10530
|
return;
|
|
10483
10531
|
}
|
|
10484
10532
|
else {
|
|
@@ -10486,8 +10534,6 @@
|
|
|
10486
10534
|
return;
|
|
10487
10535
|
}
|
|
10488
10536
|
}
|
|
10489
|
-
resolve(null);
|
|
10490
|
-
return;
|
|
10491
10537
|
});
|
|
10492
10538
|
};
|
|
10493
10539
|
LocalDBService.prototype.write = function (k, obj, crypt, json_format) {
|
|
@@ -11935,8 +11981,9 @@
|
|
|
11935
11981
|
this.app_s.getState().wkf_doc_info.utenti = sp;
|
|
11936
11982
|
this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
|
|
11937
11983
|
var dialogRef = this.m_dialog.open(win_conferma, {
|
|
11938
|
-
disableClose: true
|
|
11984
|
+
disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
11939
11985
|
});
|
|
11986
|
+
this.app_s.temp_var4 = '';
|
|
11940
11987
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11941
11988
|
if (result == "abort") {
|
|
11942
11989
|
_this.edit_b(true);
|
|
@@ -11964,10 +12011,10 @@
|
|
|
11964
12011
|
;
|
|
11965
12012
|
if (this.app_s.temp_var4 == null)
|
|
11966
12013
|
this.app_s.temp_var4 = '';
|
|
11967
|
-
console.log('this.app_s.temp_var4 ', this.app_s.temp_var4);
|
|
11968
12014
|
var dialogRef = this.m_dialog.open(win_assegna, {
|
|
11969
12015
|
disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
11970
12016
|
});
|
|
12017
|
+
this.app_s.temp_var4 = '';
|
|
11971
12018
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11972
12019
|
if (result == "" || result == null) {
|
|
11973
12020
|
_this.edit_b(true);
|
|
@@ -12833,8 +12880,8 @@
|
|
|
12833
12880
|
console.log('min_liv ', min_liv);
|
|
12834
12881
|
for (var i = 0; i < this.livs.length; i++)
|
|
12835
12882
|
if (min_liv == this.livs[i].livello) {
|
|
12836
|
-
console.log('this.user_idp.toUpperCase() ',
|
|
12837
|
-
console.log('this.livs[i].idp.toUpperCase() ',
|
|
12883
|
+
//console.log('this.user_idp.toUpperCase() ',this.user_idp.toUpperCase());
|
|
12884
|
+
//console.log('this.livs[i].idp.toUpperCase() ',this.livs[i].idp.toUpperCase() );
|
|
12838
12885
|
if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
|
|
12839
12886
|
if (this.livs[i].abilita_indietro == 1)
|
|
12840
12887
|
this.respingi_enabled = true;
|