@fluxhub/fluxhub-lib 1.0.319 → 1.0.320
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 +51 -18
- 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/wkf_engine/wkfdatiaggiuntivi.js +42 -9
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +52 -19
- package/fesm2015/fluxhub-fluxhub-lib.js +42 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +52 -19
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
37
37
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
38
38
|
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';
|
|
39
39
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
40
|
-
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input,
|
|
40
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
41
41
|
import { Http } from '@angular/http';
|
|
42
42
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
43
43
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -15691,9 +15691,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15691
15691
|
/** @type {?} */
|
|
15692
15692
|
var nomi_autori = "";
|
|
15693
15693
|
for (var i = 0; i < this.arrUsersSelected.length; i++) {
|
|
15694
|
-
if (this.
|
|
15695
|
-
|
|
15696
|
-
|
|
15694
|
+
if (this.nlevel.email_partecipanti == 1) {
|
|
15695
|
+
if (this.m_danotificare != "")
|
|
15696
|
+
this.m_danotificare = this.m_danotificare + ",";
|
|
15697
|
+
this.m_danotificare = this.m_danotificare + this.arrUsersSelected[i].idp;
|
|
15698
|
+
}
|
|
15697
15699
|
if (this.m_lettori.toLowerCase().indexOf(this.arrUsersSelected[i].idp.toLowerCase()) == -1) {
|
|
15698
15700
|
if (this.m_lettori != "")
|
|
15699
15701
|
this.m_lettori = this.m_lettori + ",";
|
|
@@ -15762,14 +15764,14 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15762
15764
|
}
|
|
15763
15765
|
/** @type {?} */
|
|
15764
15766
|
var ccan = "$$";
|
|
15765
|
-
for (var
|
|
15766
|
-
if (this.livs[
|
|
15767
|
+
for (var i = 0; i < this.livs.length; i++) {
|
|
15768
|
+
if (this.livs[i].livello == this.clevel.livello && this.livs[i].idp == this.app_s.user) {
|
|
15767
15769
|
if (ccan != "$$") {
|
|
15768
15770
|
ccan = "$$";
|
|
15769
15771
|
break;
|
|
15770
15772
|
}
|
|
15771
15773
|
else
|
|
15772
|
-
ccan = this.livs[
|
|
15774
|
+
ccan = this.livs[i].gruppo_parallelo;
|
|
15773
15775
|
}
|
|
15774
15776
|
}
|
|
15775
15777
|
/** @type {?} */
|
|
@@ -15780,7 +15782,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15780
15782
|
a = new Array(this.m_autori, "", this.m_liv, this.m_statox, this.m_autori_paralleli, this.m_obj.assegnati_paralleli, this.getLvlDescri(String(this.m_liv), this.m_statox), this.getUsersList(this.m_autori, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento, ccan);
|
|
15781
15783
|
/** @type {?} */
|
|
15782
15784
|
var t = new Array();
|
|
15783
|
-
for (var
|
|
15785
|
+
for (var i = 0; i < a.length; i++)
|
|
15784
15786
|
t.push('string');
|
|
15785
15787
|
this.m_crea_att = 1;
|
|
15786
15788
|
if (this.m_liv >= 900)
|
|
@@ -15913,11 +15915,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15913
15915
|
if (data.result_msg == "OK") {
|
|
15914
15916
|
/** @type {?} */
|
|
15915
15917
|
var lista_p = _this.user_idp;
|
|
15916
|
-
for (var
|
|
15917
|
-
if (lista_p.indexOf(data.result_data[
|
|
15918
|
-
console.log('username:', data.result_data[
|
|
15918
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
15919
|
+
if (lista_p.indexOf(data.result_data[i].username) == -1) {
|
|
15920
|
+
console.log('username:', data.result_data[i].username);
|
|
15919
15921
|
lista_p += ',';
|
|
15920
|
-
lista_p += data.result_data[
|
|
15922
|
+
lista_p += data.result_data[i].username;
|
|
15921
15923
|
}
|
|
15922
15924
|
console.log('lista_p ', lista_p);
|
|
15923
15925
|
_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);
|
|
@@ -15939,11 +15941,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15939
15941
|
if (data.result_msg == "OK") {
|
|
15940
15942
|
/** @type {?} */
|
|
15941
15943
|
var lista_p = _this.user_idp;
|
|
15942
|
-
for (var
|
|
15943
|
-
if (lista_p.indexOf(data.result_data[
|
|
15944
|
-
console.log('username:', data.result_data[
|
|
15944
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
15945
|
+
if (lista_p.indexOf(data.result_data[i].username) == -1) {
|
|
15946
|
+
console.log('username:', data.result_data[i].username);
|
|
15945
15947
|
lista_p += ',';
|
|
15946
|
-
lista_p += data.result_data[
|
|
15948
|
+
lista_p += data.result_data[i].username;
|
|
15947
15949
|
}
|
|
15948
15950
|
_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);
|
|
15949
15951
|
}
|
|
@@ -16673,10 +16675,21 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16673
16675
|
/** @type {?} */
|
|
16674
16676
|
var s = "";
|
|
16675
16677
|
/** @type {?} */
|
|
16678
|
+
var s_notif = "";
|
|
16679
|
+
/** @type {?} */
|
|
16680
|
+
var oggetto_email = "";
|
|
16681
|
+
/** @type {?} */
|
|
16676
16682
|
var s_auto = "";
|
|
16677
16683
|
/** @type {?} */
|
|
16678
16684
|
var descris = "";
|
|
16679
|
-
for (var i = 0; i < this.livs.length; i++)
|
|
16685
|
+
for (var i = 0; i < this.livs.length; i++) {
|
|
16686
|
+
if (lvlb == this.livs[i].livello && (can == "" || this.livs[i].canale)) {
|
|
16687
|
+
if ((this.livs[i].email_ospiti == 1 && this.livs[i].notifica == 1) || (this.nlevel.email_partecipanti == 1 && this.livs[i].notifica == 0)) {
|
|
16688
|
+
if (s_notif != "")
|
|
16689
|
+
s_notif = s_notif + ",";
|
|
16690
|
+
s_notif = s_notif + this.livs[i].idp;
|
|
16691
|
+
}
|
|
16692
|
+
}
|
|
16680
16693
|
if (lvlb == this.livs[i].livello && this.livs[i].notifica == 0 && (can == "" || this.livs[i].canale)) {
|
|
16681
16694
|
if (s != "")
|
|
16682
16695
|
s = s + ',';
|
|
@@ -16685,7 +16698,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16685
16698
|
s_auto = s_auto + ',';
|
|
16686
16699
|
s_auto = s_auto + this.livs[i].nc;
|
|
16687
16700
|
descris = this.livs[i].descri_livello;
|
|
16701
|
+
if (this.livs[i].oggetto_email != null)
|
|
16702
|
+
if (this.livs[i].oggetto_email != "")
|
|
16703
|
+
oggetto_email = this.livs[i].oggetto_email;
|
|
16688
16704
|
}
|
|
16705
|
+
}
|
|
16689
16706
|
if (s == "") {
|
|
16690
16707
|
return "NESSUN UTENTE CONFIGURATO STEP: " + lvlb + " CANALE: " + can;
|
|
16691
16708
|
}
|
|
@@ -16768,8 +16785,24 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
16768
16785
|
function (err) {
|
|
16769
16786
|
_this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
|
|
16770
16787
|
}));
|
|
16771
|
-
if (b_send_email) {
|
|
16772
|
-
|
|
16788
|
+
if (b_send_email && s_notif != "") {
|
|
16789
|
+
/** @type {?} */
|
|
16790
|
+
var s_ogg = oggetto_email;
|
|
16791
|
+
for (var prop in this.m_obj)
|
|
16792
|
+
if (this.m_obj[prop] != null) {
|
|
16793
|
+
console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
|
|
16794
|
+
if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
|
|
16795
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
|
|
16796
|
+
}
|
|
16797
|
+
else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
|
|
16798
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
|
|
16799
|
+
else
|
|
16800
|
+
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
16801
|
+
}
|
|
16802
|
+
if (s_ogg == "")
|
|
16803
|
+
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, "");
|
|
16804
|
+
else
|
|
16805
|
+
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, "");
|
|
16773
16806
|
}
|
|
16774
16807
|
else
|
|
16775
16808
|
this.goto_edit_doc();
|