@fluxhub/fluxhub-lib 1.0.328 → 1.0.330
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 +288 -228
- 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/docs/components/FHGridComponent.html +141 -2
- package/docs/components/FHUploadPanelComponent.html +0 -3
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +88 -8
- package/esm2015/lib/controls/fhuploadpanel.js +1 -4
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
- package/esm5/lib/controls/fhgrid.js +90 -8
- package/esm5/lib/controls/fhuploadpanel.js +2 -2
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +265 -210
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +288 -228
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +9 -1
- package/package.json +1 -1
|
@@ -3533,14 +3533,11 @@ FHUploadPanelComponent.decorators = [
|
|
|
3533
3533
|
{ type: Component, args: [{
|
|
3534
3534
|
selector: 'FHUploadPanel', template: `
|
|
3535
3535
|
<div fxLayout="column">
|
|
3536
|
-
|
|
3537
3536
|
<h3>{{label}}</h3>
|
|
3538
|
-
|
|
3539
3537
|
<div fxLayout="column">
|
|
3540
3538
|
<div [hidden]="!enabled">
|
|
3541
3539
|
<FHUpload [single]="b_False" [lista_allegati]="arr_g" (change)="ref_allegato()" #upc></FHUpload>
|
|
3542
3540
|
<br></div>
|
|
3543
|
-
|
|
3544
3541
|
<table width="98%" class="fh_table">
|
|
3545
3542
|
<thead *ngIf="!b_mobile">
|
|
3546
3543
|
<tr class="header">
|
|
@@ -5776,6 +5773,205 @@ class wkfapp {
|
|
|
5776
5773
|
}
|
|
5777
5774
|
}
|
|
5778
5775
|
|
|
5776
|
+
/**
|
|
5777
|
+
* @fileoverview added by tsickle
|
|
5778
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5779
|
+
*/
|
|
5780
|
+
class OfficeOperation {
|
|
5781
|
+
}
|
|
5782
|
+
class OfficeAutomatorService {
|
|
5783
|
+
/**
|
|
5784
|
+
* @param {?} dataService
|
|
5785
|
+
* @param {?} fileService
|
|
5786
|
+
* @param {?} toastr
|
|
5787
|
+
*/
|
|
5788
|
+
constructor(dataService, fileService, toastr) {
|
|
5789
|
+
this.dataService = dataService;
|
|
5790
|
+
this.fileService = fileService;
|
|
5791
|
+
this.toastr = toastr;
|
|
5792
|
+
/**
|
|
5793
|
+
* @param commands
|
|
5794
|
+
* @param options
|
|
5795
|
+
* @export
|
|
5796
|
+
*/
|
|
5797
|
+
this.eprog = 0;
|
|
5798
|
+
}
|
|
5799
|
+
/**
|
|
5800
|
+
* @param {?} operazione
|
|
5801
|
+
* @param {?} v1
|
|
5802
|
+
* @param {?} v2
|
|
5803
|
+
* @param {?} ordine
|
|
5804
|
+
* @return {?}
|
|
5805
|
+
*/
|
|
5806
|
+
operation(operazione, v1, v2, ordine) {
|
|
5807
|
+
/** @type {?} */
|
|
5808
|
+
let op = new OfficeOperation();
|
|
5809
|
+
op.op = operazione;
|
|
5810
|
+
op.v1 = v1;
|
|
5811
|
+
op.v2 = v2;
|
|
5812
|
+
op.ord = ordine;
|
|
5813
|
+
return op;
|
|
5814
|
+
}
|
|
5815
|
+
/**
|
|
5816
|
+
* @private
|
|
5817
|
+
* @param {?=} dialogRef_W
|
|
5818
|
+
* @return {?}
|
|
5819
|
+
*/
|
|
5820
|
+
progress_update(dialogRef_W = null) {
|
|
5821
|
+
if (dialogRef_W == null)
|
|
5822
|
+
return;
|
|
5823
|
+
if (dialogRef_W.componentInstance == null)
|
|
5824
|
+
return;
|
|
5825
|
+
this.eprog += 10;
|
|
5826
|
+
if (this.eprog >= 100)
|
|
5827
|
+
this.eprog = 95;
|
|
5828
|
+
dialogRef_W.componentInstance.update_progess(this.eprog);
|
|
5829
|
+
setTimeout((/**
|
|
5830
|
+
* @return {?}
|
|
5831
|
+
*/
|
|
5832
|
+
() => {
|
|
5833
|
+
this.progress_update(dialogRef_W);
|
|
5834
|
+
}), 2000);
|
|
5835
|
+
}
|
|
5836
|
+
/**
|
|
5837
|
+
* @param {?} uiid
|
|
5838
|
+
* @param {?} commands
|
|
5839
|
+
* @param {?} dialogRef_W
|
|
5840
|
+
* @return {?}
|
|
5841
|
+
*/
|
|
5842
|
+
runCommands(uiid, commands, dialogRef_W) {
|
|
5843
|
+
this.eprog = 0;
|
|
5844
|
+
/** @type {?} */
|
|
5845
|
+
const p = new QParam();
|
|
5846
|
+
p.sql = "INSERT_OFFICE_OPERATION";
|
|
5847
|
+
p.types = ['string', 'string'];
|
|
5848
|
+
commands.sort((/**
|
|
5849
|
+
* @param {?} left
|
|
5850
|
+
* @param {?} right
|
|
5851
|
+
* @return {?}
|
|
5852
|
+
*/
|
|
5853
|
+
(left, right) => {
|
|
5854
|
+
if (left.ord < right.ord)
|
|
5855
|
+
return -1;
|
|
5856
|
+
if (left.ord > right.ord)
|
|
5857
|
+
return 1;
|
|
5858
|
+
}));
|
|
5859
|
+
console.log('commands ', commands);
|
|
5860
|
+
p.values = [uiid, JSON.stringify(commands)];
|
|
5861
|
+
return this.dataService.doQuery(p).pipe(flatMap((/**
|
|
5862
|
+
* @param {?} data
|
|
5863
|
+
* @return {?}
|
|
5864
|
+
*/
|
|
5865
|
+
data => {
|
|
5866
|
+
if (data != null) {
|
|
5867
|
+
if (data.result_msg == "OK") {
|
|
5868
|
+
/** @type {?} */
|
|
5869
|
+
const p = new FSInput();
|
|
5870
|
+
p.command = "exec_app";
|
|
5871
|
+
p.p1 = "print_manager";
|
|
5872
|
+
p.p2 = uiid;
|
|
5873
|
+
setTimeout((/**
|
|
5874
|
+
* @return {?}
|
|
5875
|
+
*/
|
|
5876
|
+
() => {
|
|
5877
|
+
this.progress_update(dialogRef_W);
|
|
5878
|
+
}), 2000);
|
|
5879
|
+
return this.fileService.doQuery(p).pipe(flatMap((/**
|
|
5880
|
+
* @param {?} data
|
|
5881
|
+
* @return {?}
|
|
5882
|
+
*/
|
|
5883
|
+
data => {
|
|
5884
|
+
if (data != null && data.result_msg == "OK") {
|
|
5885
|
+
// check the job is done
|
|
5886
|
+
return new Observable((/**
|
|
5887
|
+
* @param {?} subscriber
|
|
5888
|
+
* @return {?}
|
|
5889
|
+
*/
|
|
5890
|
+
subscriber => {
|
|
5891
|
+
/** @type {?} */
|
|
5892
|
+
const self = this;
|
|
5893
|
+
/** @type {?} */
|
|
5894
|
+
let isTimeout = false;
|
|
5895
|
+
/** @type {?} */
|
|
5896
|
+
const timeoutTimer = setTimeout((/**
|
|
5897
|
+
* @return {?}
|
|
5898
|
+
*/
|
|
5899
|
+
() => {
|
|
5900
|
+
isTimeout = true;
|
|
5901
|
+
}), 3 * 60 * 1000);
|
|
5902
|
+
ck_files(uiid);
|
|
5903
|
+
/**
|
|
5904
|
+
* @param {?} uiid
|
|
5905
|
+
* @return {?}
|
|
5906
|
+
*/
|
|
5907
|
+
function ck_files(uiid) {
|
|
5908
|
+
/** @type {?} */
|
|
5909
|
+
const p = new QParam();
|
|
5910
|
+
p.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
|
|
5911
|
+
p.types = ['string'];
|
|
5912
|
+
p.values = [uiid];
|
|
5913
|
+
self.dataService.doQuery(p).subscribe((/**
|
|
5914
|
+
* @param {?} data
|
|
5915
|
+
* @return {?}
|
|
5916
|
+
*/
|
|
5917
|
+
data => {
|
|
5918
|
+
if (data != null && data.result_msg == 'OK') {
|
|
5919
|
+
/** @type {?} */
|
|
5920
|
+
const chunkInfo = data.result_data;
|
|
5921
|
+
if (chunkInfo.length == 1) {
|
|
5922
|
+
console.log('COMPLETE!');
|
|
5923
|
+
subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
|
|
5924
|
+
subscriber.complete();
|
|
5925
|
+
}
|
|
5926
|
+
else {
|
|
5927
|
+
if (!isTimeout) {
|
|
5928
|
+
setTimeout((/**
|
|
5929
|
+
* @return {?}
|
|
5930
|
+
*/
|
|
5931
|
+
() => {
|
|
5932
|
+
ck_files(uiid);
|
|
5933
|
+
}), 3000); // 3 sec default check interval
|
|
5934
|
+
}
|
|
5935
|
+
else {
|
|
5936
|
+
console.log('Timeout');
|
|
5937
|
+
subscriber.error('Timeout');
|
|
5938
|
+
self.toastr.error('Timeout');
|
|
5939
|
+
}
|
|
5940
|
+
}
|
|
5941
|
+
}
|
|
5942
|
+
else {
|
|
5943
|
+
if (!isTimeout) {
|
|
5944
|
+
setTimeout((/**
|
|
5945
|
+
* @return {?}
|
|
5946
|
+
*/
|
|
5947
|
+
() => {
|
|
5948
|
+
ck_files(uiid);
|
|
5949
|
+
}), 3000); // 3 sec default check interval
|
|
5950
|
+
}
|
|
5951
|
+
}
|
|
5952
|
+
}));
|
|
5953
|
+
}
|
|
5954
|
+
})); // Observable
|
|
5955
|
+
}
|
|
5956
|
+
})));
|
|
5957
|
+
}
|
|
5958
|
+
}
|
|
5959
|
+
})));
|
|
5960
|
+
}
|
|
5961
|
+
}
|
|
5962
|
+
OfficeAutomatorService.decorators = [
|
|
5963
|
+
{ type: Injectable, args: [{
|
|
5964
|
+
providedIn: 'root',
|
|
5965
|
+
},] }
|
|
5966
|
+
];
|
|
5967
|
+
/** @nocollapse */
|
|
5968
|
+
OfficeAutomatorService.ctorParameters = () => [
|
|
5969
|
+
{ type: QueryService },
|
|
5970
|
+
{ type: FileService },
|
|
5971
|
+
{ type: ToastrService }
|
|
5972
|
+
];
|
|
5973
|
+
/** @nocollapse */ OfficeAutomatorService.ngInjectableDef = defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(inject(QueryService), inject(FileService), inject(ToastrService)); }, token: OfficeAutomatorService, providedIn: "root" });
|
|
5974
|
+
|
|
5779
5975
|
/**
|
|
5780
5976
|
* @fileoverview added by tsickle
|
|
5781
5977
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -5789,8 +5985,10 @@ class FHGridComponent {
|
|
|
5789
5985
|
* @param {?} slimLoadingBarService
|
|
5790
5986
|
* @param {?} m_dialog
|
|
5791
5987
|
* @param {?} uti_s
|
|
5988
|
+
* @param {?} officeService
|
|
5989
|
+
* @param {?} _fileService
|
|
5792
5990
|
*/
|
|
5793
|
-
constructor(_gridservice, _toast, _dataService, m_appService, slimLoadingBarService, m_dialog, uti_s) {
|
|
5991
|
+
constructor(_gridservice, _toast, _dataService, m_appService, slimLoadingBarService, m_dialog, uti_s, officeService, _fileService) {
|
|
5794
5992
|
this._gridservice = _gridservice;
|
|
5795
5993
|
this._toast = _toast;
|
|
5796
5994
|
this._dataService = _dataService;
|
|
@@ -5798,6 +5996,8 @@ class FHGridComponent {
|
|
|
5798
5996
|
this.slimLoadingBarService = slimLoadingBarService;
|
|
5799
5997
|
this.m_dialog = m_dialog;
|
|
5800
5998
|
this.uti_s = uti_s;
|
|
5999
|
+
this.officeService = officeService;
|
|
6000
|
+
this._fileService = _fileService;
|
|
5801
6001
|
this.end_point = null;
|
|
5802
6002
|
this.tbl_name = '';
|
|
5803
6003
|
this.count_tbl_name = '';
|
|
@@ -6210,6 +6410,8 @@ class FHGridComponent {
|
|
|
6210
6410
|
this.errorMsg = "";
|
|
6211
6411
|
this.innerWidth = 750;
|
|
6212
6412
|
this.show_pulisci_filtri = false;
|
|
6413
|
+
this.uiid_stampa = '';
|
|
6414
|
+
this.xxopx = 0;
|
|
6213
6415
|
this.num_r = 0;
|
|
6214
6416
|
this.ready = false;
|
|
6215
6417
|
this.ckk_ed = false;
|
|
@@ -6220,10 +6422,6 @@ class FHGridComponent {
|
|
|
6220
6422
|
this.fix_flt_temp = "";
|
|
6221
6423
|
if (this.m_appService.getState().grid_obj == null)
|
|
6222
6424
|
this.m_appService.getState().grid_obj = new Object();
|
|
6223
|
-
// this.gridOptions = <GridOptions>{};
|
|
6224
|
-
// console.log( this.gridOptions);
|
|
6225
|
-
//console.log("INIZIALIZZO SERVIZIO");
|
|
6226
|
-
//console.log(this);
|
|
6227
6425
|
}
|
|
6228
6426
|
/**
|
|
6229
6427
|
* @param {?} o
|
|
@@ -6683,6 +6881,60 @@ class FHGridComponent {
|
|
|
6683
6881
|
this.gridOptions.api.setFilterModel(null);
|
|
6684
6882
|
this.show_pulisci_filtri = false;
|
|
6685
6883
|
}
|
|
6884
|
+
/**
|
|
6885
|
+
* @return {?}
|
|
6886
|
+
*/
|
|
6887
|
+
export_excel() {
|
|
6888
|
+
this.uiid_stampa = this.uti_s.newGuid();
|
|
6889
|
+
this.xxopx = 0;
|
|
6890
|
+
this.dialogRef_W = this.m_dialog.open(WinWait, {
|
|
6891
|
+
disableClose: true
|
|
6892
|
+
});
|
|
6893
|
+
this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
|
|
6894
|
+
/** @type {?} */
|
|
6895
|
+
let cmds = [];
|
|
6896
|
+
if (this.curr_filter == '') {
|
|
6897
|
+
this._toast.error('Selezionare almeno un filtro');
|
|
6898
|
+
return;
|
|
6899
|
+
}
|
|
6900
|
+
/** @type {?} */
|
|
6901
|
+
let str_fields = "";
|
|
6902
|
+
for (let i = 0; i < this.columnDefs.length; i++) {
|
|
6903
|
+
if (str_fields != '')
|
|
6904
|
+
str_fields += ',';
|
|
6905
|
+
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
6906
|
+
}
|
|
6907
|
+
cmds.push(this.officeService.operation("EXCEL_APRI_EXP_GRID", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
6908
|
+
cmds.push(this.officeService.operation("EXCEL_CREA_TABELLA_FROM_DB_EXP_GRID", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "", this.xxopx++));
|
|
6909
|
+
cmds.push(this.officeService.operation("EXCEL_SALVA_EXP_GRID", "" + this.uiid_stampa + "_" + this.m_appService.user + ".xlsx", "", this.xxopx++));
|
|
6910
|
+
this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe((/**
|
|
6911
|
+
* @param {?} data
|
|
6912
|
+
* @return {?}
|
|
6913
|
+
*/
|
|
6914
|
+
(data) => {
|
|
6915
|
+
this.dialogRef_W.componentInstance.update_progess(100);
|
|
6916
|
+
/** @type {?} */
|
|
6917
|
+
let p = new FSInput();
|
|
6918
|
+
p.p1 =
|
|
6919
|
+
this.m_appService.LOCAL_PATH + "grid_reports\\" + this.uiid_stampa + "_" + this.m_appService.user +
|
|
6920
|
+
".xlsx";
|
|
6921
|
+
p.command = "check_file";
|
|
6922
|
+
this._fileService.doQuery(p).subscribe((/**
|
|
6923
|
+
* @param {?} data
|
|
6924
|
+
* @return {?}
|
|
6925
|
+
*/
|
|
6926
|
+
data => {
|
|
6927
|
+
if (data != null)
|
|
6928
|
+
if (data.msg == "N")
|
|
6929
|
+
this._toast.error(data.result_msg);
|
|
6930
|
+
else {
|
|
6931
|
+
window.open(this.m_appService.COMPANY_SITE_ROOT + "/exp_grid/" +
|
|
6932
|
+
this.uiid_stampa + "_" + this.m_appService.user +
|
|
6933
|
+
".xlsx");
|
|
6934
|
+
}
|
|
6935
|
+
}));
|
|
6936
|
+
}));
|
|
6937
|
+
}
|
|
6686
6938
|
/**
|
|
6687
6939
|
* @private
|
|
6688
6940
|
* @return {?}
|
|
@@ -7240,7 +7492,7 @@ class FHGridComponent {
|
|
|
7240
7492
|
FHGridComponent.decorators = [
|
|
7241
7493
|
{ type: Component, args: [{
|
|
7242
7494
|
selector: 'FHGrid',
|
|
7243
|
-
template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon> \r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t \t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n
|
|
7495
|
+
template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon> \r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t \t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n \r\n <img src=\"assets/icons/square-o/xlsx.svg\" style=\"width:24px;height: 24px;cursor: hand\" (click)=\"export_excel()\" alt=\"Export Excel\">\r\n</div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
|
|
7244
7496
|
styles: [`
|
|
7245
7497
|
|
|
7246
7498
|
`]
|
|
@@ -7254,7 +7506,9 @@ FHGridComponent.ctorParameters = () => [
|
|
|
7254
7506
|
{ type: AppService },
|
|
7255
7507
|
{ type: SlimLoadingBarService },
|
|
7256
7508
|
{ type: MatDialog },
|
|
7257
|
-
{ type: UtilityService }
|
|
7509
|
+
{ type: UtilityService },
|
|
7510
|
+
{ type: OfficeAutomatorService },
|
|
7511
|
+
{ type: FileService }
|
|
7258
7512
|
];
|
|
7259
7513
|
FHGridComponent.propDecorators = {
|
|
7260
7514
|
end_point: [{ type: Input }],
|
|
@@ -12853,205 +13107,6 @@ win_log.propDecorators = {
|
|
|
12853
13107
|
zz: [{ type: ViewChild, args: ['zz',] }]
|
|
12854
13108
|
};
|
|
12855
13109
|
|
|
12856
|
-
/**
|
|
12857
|
-
* @fileoverview added by tsickle
|
|
12858
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12859
|
-
*/
|
|
12860
|
-
class OfficeOperation {
|
|
12861
|
-
}
|
|
12862
|
-
class OfficeAutomatorService {
|
|
12863
|
-
/**
|
|
12864
|
-
* @param {?} dataService
|
|
12865
|
-
* @param {?} fileService
|
|
12866
|
-
* @param {?} toastr
|
|
12867
|
-
*/
|
|
12868
|
-
constructor(dataService, fileService, toastr) {
|
|
12869
|
-
this.dataService = dataService;
|
|
12870
|
-
this.fileService = fileService;
|
|
12871
|
-
this.toastr = toastr;
|
|
12872
|
-
/**
|
|
12873
|
-
* @param commands
|
|
12874
|
-
* @param options
|
|
12875
|
-
* @export
|
|
12876
|
-
*/
|
|
12877
|
-
this.eprog = 0;
|
|
12878
|
-
}
|
|
12879
|
-
/**
|
|
12880
|
-
* @param {?} operazione
|
|
12881
|
-
* @param {?} v1
|
|
12882
|
-
* @param {?} v2
|
|
12883
|
-
* @param {?} ordine
|
|
12884
|
-
* @return {?}
|
|
12885
|
-
*/
|
|
12886
|
-
operation(operazione, v1, v2, ordine) {
|
|
12887
|
-
/** @type {?} */
|
|
12888
|
-
let op = new OfficeOperation();
|
|
12889
|
-
op.op = operazione;
|
|
12890
|
-
op.v1 = v1;
|
|
12891
|
-
op.v2 = v2;
|
|
12892
|
-
op.ord = ordine;
|
|
12893
|
-
return op;
|
|
12894
|
-
}
|
|
12895
|
-
/**
|
|
12896
|
-
* @private
|
|
12897
|
-
* @param {?=} dialogRef_W
|
|
12898
|
-
* @return {?}
|
|
12899
|
-
*/
|
|
12900
|
-
progress_update(dialogRef_W = null) {
|
|
12901
|
-
if (dialogRef_W == null)
|
|
12902
|
-
return;
|
|
12903
|
-
if (dialogRef_W.componentInstance == null)
|
|
12904
|
-
return;
|
|
12905
|
-
this.eprog += 10;
|
|
12906
|
-
if (this.eprog >= 100)
|
|
12907
|
-
this.eprog = 95;
|
|
12908
|
-
dialogRef_W.componentInstance.update_progess(this.eprog);
|
|
12909
|
-
setTimeout((/**
|
|
12910
|
-
* @return {?}
|
|
12911
|
-
*/
|
|
12912
|
-
() => {
|
|
12913
|
-
this.progress_update(dialogRef_W);
|
|
12914
|
-
}), 2000);
|
|
12915
|
-
}
|
|
12916
|
-
/**
|
|
12917
|
-
* @param {?} uiid
|
|
12918
|
-
* @param {?} commands
|
|
12919
|
-
* @param {?} dialogRef_W
|
|
12920
|
-
* @return {?}
|
|
12921
|
-
*/
|
|
12922
|
-
runCommands(uiid, commands, dialogRef_W) {
|
|
12923
|
-
this.eprog = 0;
|
|
12924
|
-
/** @type {?} */
|
|
12925
|
-
const p = new QParam();
|
|
12926
|
-
p.sql = "INSERT_OFFICE_OPERATION";
|
|
12927
|
-
p.types = ['string', 'string'];
|
|
12928
|
-
commands.sort((/**
|
|
12929
|
-
* @param {?} left
|
|
12930
|
-
* @param {?} right
|
|
12931
|
-
* @return {?}
|
|
12932
|
-
*/
|
|
12933
|
-
(left, right) => {
|
|
12934
|
-
if (left.ord < right.ord)
|
|
12935
|
-
return -1;
|
|
12936
|
-
if (left.ord > right.ord)
|
|
12937
|
-
return 1;
|
|
12938
|
-
}));
|
|
12939
|
-
console.log('commands ', commands);
|
|
12940
|
-
p.values = [uiid, JSON.stringify(commands)];
|
|
12941
|
-
return this.dataService.doQuery(p).pipe(flatMap((/**
|
|
12942
|
-
* @param {?} data
|
|
12943
|
-
* @return {?}
|
|
12944
|
-
*/
|
|
12945
|
-
data => {
|
|
12946
|
-
if (data != null) {
|
|
12947
|
-
if (data.result_msg == "OK") {
|
|
12948
|
-
/** @type {?} */
|
|
12949
|
-
const p = new FSInput();
|
|
12950
|
-
p.command = "exec_app";
|
|
12951
|
-
p.p1 = "print_manager";
|
|
12952
|
-
p.p2 = uiid;
|
|
12953
|
-
setTimeout((/**
|
|
12954
|
-
* @return {?}
|
|
12955
|
-
*/
|
|
12956
|
-
() => {
|
|
12957
|
-
this.progress_update(dialogRef_W);
|
|
12958
|
-
}), 2000);
|
|
12959
|
-
return this.fileService.doQuery(p).pipe(flatMap((/**
|
|
12960
|
-
* @param {?} data
|
|
12961
|
-
* @return {?}
|
|
12962
|
-
*/
|
|
12963
|
-
data => {
|
|
12964
|
-
if (data != null && data.result_msg == "OK") {
|
|
12965
|
-
// check the job is done
|
|
12966
|
-
return new Observable((/**
|
|
12967
|
-
* @param {?} subscriber
|
|
12968
|
-
* @return {?}
|
|
12969
|
-
*/
|
|
12970
|
-
subscriber => {
|
|
12971
|
-
/** @type {?} */
|
|
12972
|
-
const self = this;
|
|
12973
|
-
/** @type {?} */
|
|
12974
|
-
let isTimeout = false;
|
|
12975
|
-
/** @type {?} */
|
|
12976
|
-
const timeoutTimer = setTimeout((/**
|
|
12977
|
-
* @return {?}
|
|
12978
|
-
*/
|
|
12979
|
-
() => {
|
|
12980
|
-
isTimeout = true;
|
|
12981
|
-
}), 3 * 60 * 1000);
|
|
12982
|
-
ck_files(uiid);
|
|
12983
|
-
/**
|
|
12984
|
-
* @param {?} uiid
|
|
12985
|
-
* @return {?}
|
|
12986
|
-
*/
|
|
12987
|
-
function ck_files(uiid) {
|
|
12988
|
-
/** @type {?} */
|
|
12989
|
-
const p = new QParam();
|
|
12990
|
-
p.sql = "SELECT_OFFICE_OPERATION_FINISCHED";
|
|
12991
|
-
p.types = ['string'];
|
|
12992
|
-
p.values = [uiid];
|
|
12993
|
-
self.dataService.doQuery(p).subscribe((/**
|
|
12994
|
-
* @param {?} data
|
|
12995
|
-
* @return {?}
|
|
12996
|
-
*/
|
|
12997
|
-
data => {
|
|
12998
|
-
if (data != null && data.result_msg == 'OK') {
|
|
12999
|
-
/** @type {?} */
|
|
13000
|
-
const chunkInfo = data.result_data;
|
|
13001
|
-
if (chunkInfo.length == 1) {
|
|
13002
|
-
console.log('COMPLETE!');
|
|
13003
|
-
subscriber.next({ message: chunkInfo[0].result_message, result: chunkInfo[0].result });
|
|
13004
|
-
subscriber.complete();
|
|
13005
|
-
}
|
|
13006
|
-
else {
|
|
13007
|
-
if (!isTimeout) {
|
|
13008
|
-
setTimeout((/**
|
|
13009
|
-
* @return {?}
|
|
13010
|
-
*/
|
|
13011
|
-
() => {
|
|
13012
|
-
ck_files(uiid);
|
|
13013
|
-
}), 3000); // 3 sec default check interval
|
|
13014
|
-
}
|
|
13015
|
-
else {
|
|
13016
|
-
console.log('Timeout');
|
|
13017
|
-
subscriber.error('Timeout');
|
|
13018
|
-
self.toastr.error('Timeout');
|
|
13019
|
-
}
|
|
13020
|
-
}
|
|
13021
|
-
}
|
|
13022
|
-
else {
|
|
13023
|
-
if (!isTimeout) {
|
|
13024
|
-
setTimeout((/**
|
|
13025
|
-
* @return {?}
|
|
13026
|
-
*/
|
|
13027
|
-
() => {
|
|
13028
|
-
ck_files(uiid);
|
|
13029
|
-
}), 3000); // 3 sec default check interval
|
|
13030
|
-
}
|
|
13031
|
-
}
|
|
13032
|
-
}));
|
|
13033
|
-
}
|
|
13034
|
-
})); // Observable
|
|
13035
|
-
}
|
|
13036
|
-
})));
|
|
13037
|
-
}
|
|
13038
|
-
}
|
|
13039
|
-
})));
|
|
13040
|
-
}
|
|
13041
|
-
}
|
|
13042
|
-
OfficeAutomatorService.decorators = [
|
|
13043
|
-
{ type: Injectable, args: [{
|
|
13044
|
-
providedIn: 'root',
|
|
13045
|
-
},] }
|
|
13046
|
-
];
|
|
13047
|
-
/** @nocollapse */
|
|
13048
|
-
OfficeAutomatorService.ctorParameters = () => [
|
|
13049
|
-
{ type: QueryService },
|
|
13050
|
-
{ type: FileService },
|
|
13051
|
-
{ type: ToastrService }
|
|
13052
|
-
];
|
|
13053
|
-
/** @nocollapse */ OfficeAutomatorService.ngInjectableDef = defineInjectable({ factory: function OfficeAutomatorService_Factory() { return new OfficeAutomatorService(inject(QueryService), inject(FileService), inject(ToastrService)); }, token: OfficeAutomatorService, providedIn: "root" });
|
|
13054
|
-
|
|
13055
13110
|
/**
|
|
13056
13111
|
* @fileoverview added by tsickle
|
|
13057
13112
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -15913,7 +15968,7 @@ class dati_aggiuntivi {
|
|
|
15913
15968
|
let descris = "";
|
|
15914
15969
|
for (let i = 0; i < this.livs.length; i++) {
|
|
15915
15970
|
if (lvlb == this.livs[i].livello && (can == "" || this.livs[i].canale)) {
|
|
15916
|
-
if ((this.livs[i].email_ospiti == 1 && this.livs[i].notifica == 1) || (this.
|
|
15971
|
+
if ((this.livs[i].email_ospiti == 1 && this.livs[i].notifica == 1) || (this.livs[i].email_partecipanti == 1 && this.livs[i].notifica == 0)) {
|
|
15917
15972
|
if (s_notif != "")
|
|
15918
15973
|
s_notif = s_notif + ",";
|
|
15919
15974
|
s_notif = s_notif + this.livs[i].idp;
|