@fluxhub/fluxhub-lib 1.0.319 → 1.0.321
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 +89 -21
- 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/wkfapp.html +32 -0
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/wkf_engine/wkfapp.js +48 -4
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +42 -9
- package/esm5/lib/wkf_engine/wkfapp.js +47 -4
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +52 -19
- package/fesm2015/fluxhub-fluxhub-lib.js +82 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +91 -22
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkfapp.d.ts +4 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
36
36
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
37
37
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
38
38
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
39
|
-
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input,
|
|
39
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
|
|
40
40
|
import { Http } from '@angular/http';
|
|
41
41
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
42
42
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -4898,8 +4898,9 @@ class wkfapp {
|
|
|
4898
4898
|
* @param {?} _toastr
|
|
4899
4899
|
* @param {?} dialog
|
|
4900
4900
|
* @param {?} m_wkf
|
|
4901
|
+
* @param {?} m_uti
|
|
4901
4902
|
*/
|
|
4902
|
-
constructor(app_s, m_service, m_dataService, m_fservice, m_router, _toastr, dialog, m_wkf) {
|
|
4903
|
+
constructor(app_s, m_service, m_dataService, m_fservice, m_router, _toastr, dialog, m_wkf, m_uti) {
|
|
4903
4904
|
this.app_s = app_s;
|
|
4904
4905
|
this.m_service = m_service;
|
|
4905
4906
|
this.m_dataService = m_dataService;
|
|
@@ -4908,8 +4909,10 @@ class wkfapp {
|
|
|
4908
4909
|
this._toastr = _toastr;
|
|
4909
4910
|
this.dialog = dialog;
|
|
4910
4911
|
this.m_wkf = m_wkf;
|
|
4912
|
+
this.m_uti = m_uti;
|
|
4911
4913
|
this.b_editing = false;
|
|
4912
4914
|
this.is_Supervisor = false;
|
|
4915
|
+
this.is_Visor = false;
|
|
4913
4916
|
this.is_Admin = false;
|
|
4914
4917
|
this.is_Ins = false;
|
|
4915
4918
|
this.id_applicativo = "";
|
|
@@ -5401,6 +5404,11 @@ class wkfapp {
|
|
|
5401
5404
|
.getState()
|
|
5402
5405
|
.wkf_obj
|
|
5403
5406
|
.is_Supervisor = this.is_Supervisor;
|
|
5407
|
+
this
|
|
5408
|
+
.app_s
|
|
5409
|
+
.getState()
|
|
5410
|
+
.wkf_obj
|
|
5411
|
+
.is_Visor = this.is_Visor;
|
|
5404
5412
|
this
|
|
5405
5413
|
.app_s
|
|
5406
5414
|
.getState()
|
|
@@ -5481,6 +5489,11 @@ class wkfapp {
|
|
|
5481
5489
|
.getState()
|
|
5482
5490
|
.wkf_obj
|
|
5483
5491
|
.b_editing;
|
|
5492
|
+
this.is_Visor = this
|
|
5493
|
+
.app_s
|
|
5494
|
+
.getState()
|
|
5495
|
+
.wkf_obj
|
|
5496
|
+
.is_Visor;
|
|
5484
5497
|
this.is_Supervisor = this
|
|
5485
5498
|
.app_s
|
|
5486
5499
|
.getState()
|
|
@@ -5660,8 +5673,32 @@ class wkfapp {
|
|
|
5660
5673
|
data => {
|
|
5661
5674
|
if (data != null)
|
|
5662
5675
|
if (data.result_msg == "OK") {
|
|
5663
|
-
|
|
5664
|
-
|
|
5676
|
+
/** @type {?} */
|
|
5677
|
+
let p = new QParam();
|
|
5678
|
+
p.sql = "SELECT_ROLES_VISORI";
|
|
5679
|
+
p.types = ['string'];
|
|
5680
|
+
p.values = [this.id_applicativo];
|
|
5681
|
+
this
|
|
5682
|
+
.m_dataService
|
|
5683
|
+
.doQuery(p)
|
|
5684
|
+
.subscribe((/**
|
|
5685
|
+
* @param {?} data
|
|
5686
|
+
* @return {?}
|
|
5687
|
+
*/
|
|
5688
|
+
data => {
|
|
5689
|
+
if (data != null)
|
|
5690
|
+
if (data.result_msg == "OK") {
|
|
5691
|
+
this.is_Visor = false;
|
|
5692
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
5693
|
+
if (this.m_uti.hasRole(data.result_data[i], false)) {
|
|
5694
|
+
this.is_Visor = true;
|
|
5695
|
+
break;
|
|
5696
|
+
}
|
|
5697
|
+
}
|
|
5698
|
+
this.init_grid();
|
|
5699
|
+
this.ok_conf_s(data.result_data);
|
|
5700
|
+
}
|
|
5701
|
+
}));
|
|
5665
5702
|
}
|
|
5666
5703
|
}));
|
|
5667
5704
|
}
|
|
@@ -14991,10 +15028,12 @@ class dati_aggiuntivi {
|
|
|
14991
15028
|
this.m_autori = "";
|
|
14992
15029
|
/** @type {?} */
|
|
14993
15030
|
let nomi_autori = "";
|
|
14994
|
-
for (
|
|
14995
|
-
if (this.
|
|
14996
|
-
|
|
14997
|
-
|
|
15031
|
+
for (let i = 0; i < this.arrUsersSelected.length; i++) {
|
|
15032
|
+
if (this.nlevel.email_partecipanti == 1) {
|
|
15033
|
+
if (this.m_danotificare != "")
|
|
15034
|
+
this.m_danotificare = this.m_danotificare + ",";
|
|
15035
|
+
this.m_danotificare = this.m_danotificare + this.arrUsersSelected[i].idp;
|
|
15036
|
+
}
|
|
14998
15037
|
if (this.m_lettori.toLowerCase().indexOf(this.arrUsersSelected[i].idp.toLowerCase()) == -1) {
|
|
14999
15038
|
if (this.m_lettori != "")
|
|
15000
15039
|
this.m_lettori = this.m_lettori + ",";
|
|
@@ -15023,7 +15062,7 @@ class dati_aggiuntivi {
|
|
|
15023
15062
|
else
|
|
15024
15063
|
this.insert_wkf_variabile(this.id_applicativo, this.id_documento, "REQUESTER", this.m_obj.creatore);
|
|
15025
15064
|
}
|
|
15026
|
-
for (
|
|
15065
|
+
for (let i = 0; i < this.livs.length; i++)
|
|
15027
15066
|
if (this.livs[i].livello == this.m_liv && this.livs[i].notifica == 1) {
|
|
15028
15067
|
if (this.livs[i].email_ospiti == 1) {
|
|
15029
15068
|
if (this.m_danotificare != "")
|
|
@@ -15854,10 +15893,21 @@ class dati_aggiuntivi {
|
|
|
15854
15893
|
/** @type {?} */
|
|
15855
15894
|
let s = "";
|
|
15856
15895
|
/** @type {?} */
|
|
15896
|
+
let s_notif = "";
|
|
15897
|
+
/** @type {?} */
|
|
15898
|
+
let oggetto_email = "";
|
|
15899
|
+
/** @type {?} */
|
|
15857
15900
|
let s_auto = "";
|
|
15858
15901
|
/** @type {?} */
|
|
15859
15902
|
let descris = "";
|
|
15860
|
-
for (let i = 0; i < this.livs.length; i++)
|
|
15903
|
+
for (let i = 0; i < this.livs.length; i++) {
|
|
15904
|
+
if (lvlb == this.livs[i].livello && (can == "" || this.livs[i].canale)) {
|
|
15905
|
+
if ((this.livs[i].email_ospiti == 1 && this.livs[i].notifica == 1) || (this.nlevel.email_partecipanti == 1 && this.livs[i].notifica == 0)) {
|
|
15906
|
+
if (s_notif != "")
|
|
15907
|
+
s_notif = s_notif + ",";
|
|
15908
|
+
s_notif = s_notif + this.livs[i].idp;
|
|
15909
|
+
}
|
|
15910
|
+
}
|
|
15861
15911
|
if (lvlb == this.livs[i].livello && this.livs[i].notifica == 0 && (can == "" || this.livs[i].canale)) {
|
|
15862
15912
|
if (s != "")
|
|
15863
15913
|
s = s + ',';
|
|
@@ -15866,7 +15916,11 @@ class dati_aggiuntivi {
|
|
|
15866
15916
|
s_auto = s_auto + ',';
|
|
15867
15917
|
s_auto = s_auto + this.livs[i].nc;
|
|
15868
15918
|
descris = this.livs[i].descri_livello;
|
|
15919
|
+
if (this.livs[i].oggetto_email != null)
|
|
15920
|
+
if (this.livs[i].oggetto_email != "")
|
|
15921
|
+
oggetto_email = this.livs[i].oggetto_email;
|
|
15869
15922
|
}
|
|
15923
|
+
}
|
|
15870
15924
|
if (s == "") {
|
|
15871
15925
|
return "NESSUN UTENTE CONFIGURATO STEP: " + lvlb + " CANALE: " + can;
|
|
15872
15926
|
}
|
|
@@ -15949,8 +16003,24 @@ class dati_aggiuntivi {
|
|
|
15949
16003
|
err => {
|
|
15950
16004
|
this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
15951
16005
|
}));
|
|
15952
|
-
if (b_send_email) {
|
|
15953
|
-
|
|
16006
|
+
if (b_send_email && s_notif != "") {
|
|
16007
|
+
/** @type {?} */
|
|
16008
|
+
let s_ogg = oggetto_email;
|
|
16009
|
+
for (let prop in this.m_obj)
|
|
16010
|
+
if (this.m_obj[prop] != null) {
|
|
16011
|
+
console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
|
|
16012
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
|
|
16013
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
|
|
16014
|
+
}
|
|
16015
|
+
else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
|
|
16016
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
|
|
16017
|
+
else
|
|
16018
|
+
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
16019
|
+
}
|
|
16020
|
+
if (s_ogg == "")
|
|
16021
|
+
this.sendEMail_ex(this.user_idp, s_notif, 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(), 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, '', true, "");
|
|
16022
|
+
else
|
|
16023
|
+
this.sendEMail_ex(this.user_idp, s_notif, s_ogg, "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri(), 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, '', true, "");
|
|
15954
16024
|
}
|
|
15955
16025
|
else
|
|
15956
16026
|
this.goto_edit_doc();
|