@fluxhub/fluxhub-lib 1.0.220 → 1.0.222
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 +114 -97
- 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/classes/dati_aggiuntivi.html +16 -1
- package/docs/classes/wkfapp.html +37 -0
- package/docs/components/FHGridComponent.html +14 -2
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +8 -2
- package/esm2015/lib/wkf_engine/wkfapp.js +32 -38
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +57 -44
- package/esm5/lib/controls/fhgrid.js +2 -3
- package/esm5/lib/wkf_engine/wkfapp.js +43 -45
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +71 -56
- package/fesm2015/fluxhub-fluxhub-lib.js +94 -78
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +112 -97
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkfapp.d.ts +2 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4021,7 +4021,6 @@
|
|
|
4021
4021
|
floatingFilter: true,
|
|
4022
4022
|
enableRangeSelection: true,
|
|
4023
4023
|
defaultColDef: { resizable: true, sortable: true },
|
|
4024
|
-
alwaysShowVerticalScroll: true,
|
|
4025
4024
|
rowSelection: 'multiple',
|
|
4026
4025
|
rowDeselection: false,
|
|
4027
4026
|
// getContextMenuItems: () => this.getContextMenuItems(),
|
|
@@ -5310,7 +5309,7 @@
|
|
|
5310
5309
|
{ type: i0.Component, args: [{
|
|
5311
5310
|
selector: 'FHGrid',
|
|
5312
5311
|
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\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\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",
|
|
5313
|
-
styles: ["\n\n\t"]
|
|
5312
|
+
styles: ["\n .ag-theme-balham .ag-header-cell-label .ag-header-cell-text {\n text-overflow: clip;\n overflow: visible;\n white-space: normal;\n height: auto;\n padding: 0px;\n }\n\n\t"]
|
|
5314
5313
|
}] }
|
|
5315
5314
|
];
|
|
5316
5315
|
/** @nocollapse */
|
|
@@ -13901,6 +13900,7 @@
|
|
|
13901
13900
|
this.b_initd = false;
|
|
13902
13901
|
this.nota_wax = "";
|
|
13903
13902
|
this.imp = "";
|
|
13903
|
+
this.m_cod_documento = '';
|
|
13904
13904
|
this.sort_field = '';
|
|
13905
13905
|
if (!m_service.checkCredentials()) {
|
|
13906
13906
|
return;
|
|
@@ -14505,22 +14505,37 @@
|
|
|
14505
14505
|
* @return {?}
|
|
14506
14506
|
*/
|
|
14507
14507
|
function (cod_documento, id_Doc) {
|
|
14508
|
+
this.m_id_Doc = id_Doc;
|
|
14509
|
+
this.m_cod_documento = cod_documento;
|
|
14510
|
+
this.do_init();
|
|
14511
|
+
};
|
|
14512
|
+
/**
|
|
14513
|
+
* @private
|
|
14514
|
+
* @return {?}
|
|
14515
|
+
*/
|
|
14516
|
+
wkfapp.prototype.do_init = /**
|
|
14517
|
+
* @private
|
|
14518
|
+
* @return {?}
|
|
14519
|
+
*/
|
|
14520
|
+
function () {
|
|
14508
14521
|
var _this = this;
|
|
14509
14522
|
if (this.app_s.user_ori != null)
|
|
14510
14523
|
this.imp = 'ANN. IMP: ' + this.app_s.user_name + ' ' + this.app_s.user_surname;
|
|
14511
14524
|
if (this.app_s.getState().wkf_obj != null)
|
|
14512
|
-
if (this.app_s.getState().wkf_obj.codice_app ==
|
|
14525
|
+
if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
|
|
14513
14526
|
this.restore_state_wkf();
|
|
14514
14527
|
return;
|
|
14515
14528
|
}
|
|
14516
14529
|
this.user_idp = this.app_s.user;
|
|
14530
|
+
if (this.user_idp == null) {
|
|
14531
|
+
setTimeout(function () { _this.do_init(), 1000; });
|
|
14532
|
+
return;
|
|
14533
|
+
}
|
|
14517
14534
|
/** @type {?} */
|
|
14518
14535
|
var p = new QParam();
|
|
14519
14536
|
p.sql = "SELECT_WKF_APP_INFO";
|
|
14520
14537
|
p.types = ['string'];
|
|
14521
|
-
p.values = [
|
|
14522
|
-
/** @type {?} */
|
|
14523
|
-
var ok_op = false;
|
|
14538
|
+
p.values = [this.m_cod_documento];
|
|
14524
14539
|
this
|
|
14525
14540
|
.m_dataService
|
|
14526
14541
|
.doQuery(p)
|
|
@@ -14529,8 +14544,6 @@
|
|
|
14529
14544
|
if (data.result_msg == "OK") {
|
|
14530
14545
|
/** @type {?} */
|
|
14531
14546
|
var a_conf = data.result_data;
|
|
14532
|
-
ok_op = true;
|
|
14533
|
-
_this.m_id_Doc = id_Doc;
|
|
14534
14547
|
_this.id_applicativo = a_conf[0].id_gruppo;
|
|
14535
14548
|
_this.app_root = a_conf[0].modulo_swf;
|
|
14536
14549
|
_this.codice_app = a_conf[0].codice_documento; //codice documento
|
|
@@ -14545,16 +14558,15 @@
|
|
|
14545
14558
|
_this.user_email = _this.app_s.user_email;
|
|
14546
14559
|
_this.app_s.getState().topnavTitle = _this.att_panelcat;
|
|
14547
14560
|
/** @type {?} */
|
|
14548
|
-
var
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14561
|
+
var p_1 = new QParam();
|
|
14562
|
+
p_1.sql = "SELECT_UTENTE_WKF_ADMIN";
|
|
14563
|
+
p_1.types = ['string', 'string'];
|
|
14564
|
+
p_1.values = [
|
|
14552
14565
|
_this.id_applicativo, _this.app_s.user
|
|
14553
14566
|
];
|
|
14554
|
-
ok_op = false;
|
|
14555
14567
|
_this
|
|
14556
14568
|
.m_dataService
|
|
14557
|
-
.doQuery(
|
|
14569
|
+
.doQuery(p_1)
|
|
14558
14570
|
.subscribe(function (data) {
|
|
14559
14571
|
if (data != null)
|
|
14560
14572
|
if (data.result_msg == "OK") {
|
|
@@ -14567,39 +14579,23 @@
|
|
|
14567
14579
|
if (a[0].tipo == "1")
|
|
14568
14580
|
_this.is_Admin = true;
|
|
14569
14581
|
}
|
|
14570
|
-
ok_op = true;
|
|
14571
14582
|
/** @type {?} */
|
|
14572
|
-
var
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
ok_op = false;
|
|
14583
|
+
var p_2 = new QParam();
|
|
14584
|
+
p_2.sql = "SELECT_WLIVELLIV2";
|
|
14585
|
+
p_2.types = ['string', 'string'];
|
|
14586
|
+
p_2.values = [_this.id_applicativo, ''];
|
|
14577
14587
|
_this
|
|
14578
14588
|
.m_dataService
|
|
14579
|
-
.doQuery(
|
|
14589
|
+
.doQuery(p_2)
|
|
14580
14590
|
.subscribe(function (data) {
|
|
14581
14591
|
if (data != null)
|
|
14582
14592
|
if (data.result_msg == "OK") {
|
|
14583
14593
|
_this.ok_conf_s(data.result_data);
|
|
14584
|
-
ok_op = true;
|
|
14585
14594
|
}
|
|
14586
|
-
if (!ok_op) {
|
|
14587
|
-
console.error(data.msg);
|
|
14588
|
-
}
|
|
14589
|
-
}, function (err) {
|
|
14590
|
-
console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
14591
14595
|
});
|
|
14592
14596
|
}
|
|
14593
|
-
}, function (err) {
|
|
14594
|
-
console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
14595
14597
|
});
|
|
14596
|
-
ok_op = true;
|
|
14597
14598
|
}
|
|
14598
|
-
if (!ok_op) {
|
|
14599
|
-
console.error(data.msg);
|
|
14600
|
-
}
|
|
14601
|
-
}, function (err) {
|
|
14602
|
-
console.error("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
|
|
14603
14599
|
});
|
|
14604
14600
|
};
|
|
14605
14601
|
/**
|
|
@@ -14615,15 +14611,16 @@
|
|
|
14615
14611
|
this.is_Ins = false;
|
|
14616
14612
|
for (var i = 0; i < this.livs.length; i++)
|
|
14617
14613
|
if (this.livs[i].idp != null)
|
|
14618
|
-
if (
|
|
14619
|
-
if (this.livs[i].
|
|
14620
|
-
this.
|
|
14621
|
-
|
|
14622
|
-
this.livs[i].gruppo_parallelo
|
|
14623
|
-
|
|
14614
|
+
if (this.user_idp != null)
|
|
14615
|
+
if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
|
|
14616
|
+
if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
|
|
14617
|
+
this.is_Ins = true;
|
|
14618
|
+
if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
|
|
14619
|
+
this.livs[i].gruppo_parallelo = "";
|
|
14620
|
+
this.livs[i].idp = this.user_idp;
|
|
14621
|
+
}
|
|
14622
|
+
break;
|
|
14624
14623
|
}
|
|
14625
|
-
break;
|
|
14626
|
-
}
|
|
14627
14624
|
this.save_state_wkf();
|
|
14628
14625
|
// Alert.show(tbl_name);
|
|
14629
14626
|
this.parse_url();
|
|
@@ -15236,22 +15233,13 @@
|
|
|
15236
15233
|
*/
|
|
15237
15234
|
this.doEnd(this.nlevel.livello);
|
|
15238
15235
|
/** @type {?} */
|
|
15239
|
-
var
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
|
|
15243
|
-
this.m_dataService.doQuery(
|
|
15244
|
-
/** @type {?} */
|
|
15245
|
-
var ok_op = false;
|
|
15236
|
+
var p_1 = new QParam();
|
|
15237
|
+
p_1.sql = "UPDATE_DATA_CHIUSURA";
|
|
15238
|
+
p_1.values = [this.id_applicativo, this.id_documento];
|
|
15239
|
+
p_1.types = ['string', 'string'];
|
|
15240
|
+
this.m_dataService.doQuery(p_1).subscribe(function (data) {
|
|
15246
15241
|
if (data != null)
|
|
15247
|
-
if (data.result_msg == "OK")
|
|
15248
|
-
ok_op = true;
|
|
15249
|
-
}
|
|
15250
|
-
if (!ok_op) {
|
|
15251
|
-
_this.alert(data.msg, 1);
|
|
15252
|
-
}
|
|
15253
|
-
}, function (err) {
|
|
15254
|
-
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
15242
|
+
if (data.result_msg == "OK") ;
|
|
15255
15243
|
});
|
|
15256
15244
|
}
|
|
15257
15245
|
/** @type {?} */
|
|
@@ -15289,59 +15277,37 @@
|
|
|
15289
15277
|
this.getDescri(), this.user_idp, this.m_statox, this.m_oper, this.id_applicativo, this.id_documento, '' + this.m_crea_att, '' + this.m_send_email, '' + this.clevel.livello, '' + this.nlevel.livello];
|
|
15290
15278
|
this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.clevel.livello + "_PLAYER", this.user_idp);
|
|
15291
15279
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
15292
|
-
/** @type {?} */
|
|
15293
|
-
var ok_op = false;
|
|
15294
15280
|
if (data != null)
|
|
15295
|
-
if (data.result_msg == "OK")
|
|
15296
|
-
ok_op = true;
|
|
15297
|
-
}
|
|
15298
|
-
if (!ok_op) {
|
|
15299
|
-
_this.alert(data.msg, 1);
|
|
15300
|
-
}
|
|
15301
|
-
}, function (err) {
|
|
15302
|
-
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
15281
|
+
if (data.result_msg == "OK") ;
|
|
15303
15282
|
});
|
|
15304
|
-
|
|
15305
|
-
var p = new QParam();
|
|
15283
|
+
p = new QParam();
|
|
15306
15284
|
p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
|
|
15307
15285
|
p.values = a;
|
|
15308
15286
|
p.types = t;
|
|
15309
15287
|
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
15310
|
-
/** @type {?} */
|
|
15311
|
-
var ok_op = false;
|
|
15312
15288
|
if (data != null)
|
|
15313
|
-
if (data.result_msg == "OK")
|
|
15314
|
-
ok_op = true;
|
|
15315
|
-
}
|
|
15316
|
-
if (!ok_op) {
|
|
15317
|
-
_this.alert(data.msg, 1);
|
|
15318
|
-
}
|
|
15319
|
-
}, function (err) {
|
|
15320
|
-
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
15289
|
+
if (data.result_msg == "OK") ;
|
|
15321
15290
|
});
|
|
15322
15291
|
//myRPC.query("UPDATE_FLAG_CARICO",new Array("0",id_applicativo, id_documento,''));
|
|
15323
15292
|
if (this.m_danotificare != "") {
|
|
15324
15293
|
/** @type {?} */
|
|
15325
|
-
var
|
|
15294
|
+
var comm_1 = "";
|
|
15326
15295
|
if (this.nota != "")
|
|
15327
|
-
|
|
15296
|
+
comm_1 = "<br>Commento: " + this.nota;
|
|
15328
15297
|
if (this.clevel.ccn_mittente == 1) {
|
|
15329
15298
|
if (this.m_danotificare != "")
|
|
15330
15299
|
this.m_danotificare = this.m_danotificare + ",";
|
|
15331
15300
|
this.m_danotificare = this.m_danotificare + this.user_idp;
|
|
15332
15301
|
}
|
|
15333
|
-
|
|
15334
|
-
var p = new QParam();
|
|
15302
|
+
p = new QParam();
|
|
15335
15303
|
p.sql = "exec_app_workflow";
|
|
15336
15304
|
p.values = [this.app_info.codice_documento, this.id_documento, '' + this.clevel.livello, '' + this.nlevel.livello, this.user_idp];
|
|
15337
15305
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
15338
|
-
}, function (err) {
|
|
15339
15306
|
});
|
|
15340
15307
|
if (this.nlevel.approvazione_email == 1) ;
|
|
15341
15308
|
else {
|
|
15342
|
-
console.log('this.nlevel.ical ', this.nlevel.ical);
|
|
15343
15309
|
/** @type {?} */
|
|
15344
|
-
var
|
|
15310
|
+
var ical_1 = null;
|
|
15345
15311
|
if (this.nlevel.ical == 1) {
|
|
15346
15312
|
if (this.m_obj.ical_dt_ini == null) {
|
|
15347
15313
|
this.alert('Attenzione ical non configurato ical_dt_ini', 1);
|
|
@@ -15350,25 +15316,23 @@
|
|
|
15350
15316
|
this.alert('Attenzione ical non configurato ical_dt_fin', 1);
|
|
15351
15317
|
}
|
|
15352
15318
|
else
|
|
15353
|
-
|
|
15319
|
+
ical_1 = {
|
|
15354
15320
|
start: this.m_obj.ical_dt_ini,
|
|
15355
15321
|
end: this.m_obj.ical_dt_fin,
|
|
15356
15322
|
summary: this.app_info.descrizione_breve + " " + this.getTitle(),
|
|
15357
|
-
description: this.getDescri() +
|
|
15323
|
+
description: this.getDescri() + comm_1 + "<br>" + this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
|
|
15358
15324
|
organizer: this.user_nome + ' ' + this.user_cognome + ' <' + this.user_email + '>',
|
|
15359
15325
|
url: this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit"
|
|
15360
15326
|
};
|
|
15361
15327
|
}
|
|
15362
15328
|
if (this.nlevel.email_partecipanti == 1 || this.nlevel.email_ospiti == 1) {
|
|
15363
15329
|
if (this.b_respingi)
|
|
15364
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, "Respinta " + this.getTitle() + "-[" + this.m_obj.codice + "]", "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + "<br>Commenti:" +
|
|
15330
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, "Respinta " + this.getTitle() + "-[" + this.m_obj.codice + "]", "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + "<br>Commenti:" + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
|
|
15365
15331
|
else {
|
|
15366
|
-
console.log("--------------this.clevel.oggetto_text----------------------");
|
|
15367
|
-
console.log(this.nlevel.oggetto_email);
|
|
15368
15332
|
if (this.nlevel.oggetto_email == null)
|
|
15369
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() +
|
|
15333
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
|
|
15370
15334
|
else if (this.nlevel.oggetto_email == "")
|
|
15371
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() +
|
|
15335
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
|
|
15372
15336
|
else {
|
|
15373
15337
|
/** @type {?} */
|
|
15374
15338
|
var s_ogg = this.nlevel.oggetto_email;
|
|
@@ -15383,12 +15347,59 @@
|
|
|
15383
15347
|
else
|
|
15384
15348
|
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
15385
15349
|
}
|
|
15386
|
-
this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() +
|
|
15350
|
+
this.sendEMail_ex(this.user_idp, this.m_danotificare, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1);
|
|
15387
15351
|
}
|
|
15388
15352
|
}
|
|
15389
15353
|
}
|
|
15390
15354
|
else
|
|
15391
15355
|
this.goto_edit_doc();
|
|
15356
|
+
if (this.nlevel.tipo_notifica_aggiuntiva != 0) {
|
|
15357
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 1)
|
|
15358
|
+
this.sendEMail_ex(this.user_idp, this.m_obj.creatore, this.app_info.descrizione_breve + ", Il documento numero: " + this.m_obj.codice + " è passato allo STEP: " + this.nlevel.descri_livello + " " + this.getTitle(), this.m_statox + "<br>" + this.getDescri() + comm_1, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, ical_1, false);
|
|
15359
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 2) {
|
|
15360
|
+
/** @type {?} */
|
|
15361
|
+
var p_2 = new QParam();
|
|
15362
|
+
p_2.sql = "SELECT_PARTECIPANTI_DOC";
|
|
15363
|
+
p_2.values = [this.id_applicativo, this.id_documento];
|
|
15364
|
+
p_2.types = ['string', 'string'];
|
|
15365
|
+
this.m_dataService.doQuery(p_2).subscribe(function (data) {
|
|
15366
|
+
if (data != null)
|
|
15367
|
+
if (data.result_msg == "OK") {
|
|
15368
|
+
/** @type {?} */
|
|
15369
|
+
var lista_p = _this.user_idp;
|
|
15370
|
+
for (var i_3 = 0; i_3 < data.result_data.length; i_3++)
|
|
15371
|
+
if (lista_p.indexOf(data.result_data[i_3].username) == -1) {
|
|
15372
|
+
console.log('username:', data.result_data[i_3].username);
|
|
15373
|
+
lista_p += ',';
|
|
15374
|
+
lista_p += data.result_data[i_3].username;
|
|
15375
|
+
}
|
|
15376
|
+
console.log('lista_p ', lista_p);
|
|
15377
|
+
_this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
15378
|
+
}
|
|
15379
|
+
});
|
|
15380
|
+
}
|
|
15381
|
+
if (this.nlevel.tipo_notifica_aggiuntiva == 3) {
|
|
15382
|
+
/** @type {?} */
|
|
15383
|
+
var p_3 = new QParam();
|
|
15384
|
+
p_3.sql = "SELECT_ALL_USERS_DOC";
|
|
15385
|
+
p_3.values = [this.id_applicativo, this.id_documento];
|
|
15386
|
+
p_3.types = ['string', 'string'];
|
|
15387
|
+
this.m_dataService.doQuery(p_3).subscribe(function (data) {
|
|
15388
|
+
if (data != null)
|
|
15389
|
+
if (data.result_msg == "OK") {
|
|
15390
|
+
/** @type {?} */
|
|
15391
|
+
var lista_p = _this.user_idp;
|
|
15392
|
+
for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
|
|
15393
|
+
if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
|
|
15394
|
+
console.log('username:', data.result_data[i_4].username);
|
|
15395
|
+
lista_p += ',';
|
|
15396
|
+
lista_p += data.result_data[i_4].username;
|
|
15397
|
+
}
|
|
15398
|
+
_this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
|
|
15399
|
+
}
|
|
15400
|
+
});
|
|
15401
|
+
}
|
|
15402
|
+
}
|
|
15392
15403
|
}
|
|
15393
15404
|
}
|
|
15394
15405
|
};
|
|
@@ -15404,6 +15415,7 @@
|
|
|
15404
15415
|
* @param {?} nota
|
|
15405
15416
|
* @param {?=} notif_av
|
|
15406
15417
|
* @param {?=} ical
|
|
15418
|
+
* @param {?=} b_exit
|
|
15407
15419
|
* @return {?}
|
|
15408
15420
|
*/
|
|
15409
15421
|
dati_aggiuntivi.prototype.sendEMail_ex = /**
|
|
@@ -15418,9 +15430,10 @@
|
|
|
15418
15430
|
* @param {?} nota
|
|
15419
15431
|
* @param {?=} notif_av
|
|
15420
15432
|
* @param {?=} ical
|
|
15433
|
+
* @param {?=} b_exit
|
|
15421
15434
|
* @return {?}
|
|
15422
15435
|
*/
|
|
15423
|
-
function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical) {
|
|
15436
|
+
function (mit, to, ogg, descri, idapp, iddoc, link, cc, nota, notif_av, ical, b_exit) {
|
|
15424
15437
|
var _this = this;
|
|
15425
15438
|
if (notif_av === void 0) {
|
|
15426
15439
|
notif_av = true;
|
|
@@ -15428,6 +15441,9 @@
|
|
|
15428
15441
|
if (ical === void 0) {
|
|
15429
15442
|
ical = '';
|
|
15430
15443
|
}
|
|
15444
|
+
if (b_exit === void 0) {
|
|
15445
|
+
b_exit = true;
|
|
15446
|
+
}
|
|
15431
15447
|
/** @type {?} */
|
|
15432
15448
|
var p = new QParam();
|
|
15433
15449
|
p.sql = "send_wkf_mail";
|
|
@@ -15441,7 +15457,8 @@
|
|
|
15441
15457
|
ical = JSON.stringify(ical);
|
|
15442
15458
|
p.values = [mit, to, ogg, descri, idapp, iddoc, link, cc, nota, ical];
|
|
15443
15459
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
15444
|
-
|
|
15460
|
+
if (b_exit)
|
|
15461
|
+
_this.goto_edit_doc(notif_av);
|
|
15445
15462
|
});
|
|
15446
15463
|
};
|
|
15447
15464
|
/**
|