@fluxhub/fluxhub-lib 1.0.457 → 1.0.459
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 +210 -73
- 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/fhwinpicklist.js +4 -4
- package/esm2015/lib/controls/win_list_pick.js +8 -4
- package/esm2015/lib/wkf_engine/win_commenti.js +107 -17
- package/esm2015/lib/wkf_engine/win_log.js +104 -66
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +15 -5
- package/esm5/lib/controls/fhwinpicklist.js +2 -2
- package/esm5/lib/controls/win_list_pick.js +5 -2
- package/esm5/lib/wkf_engine/win_commenti.js +108 -13
- package/esm5/lib/wkf_engine/win_log.js +106 -60
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +15 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +212 -87
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +210 -73
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_list_pick.d.ts +1 -0
- package/lib/wkf_engine/win_commenti.d.ts +6 -1
- package/lib/wkf_engine/win_log.d.ts +6 -1
- package/package.json +1 -1
|
@@ -9998,7 +9998,7 @@ class FHPickListComponent {
|
|
|
9998
9998
|
this.value_sel.push(o);
|
|
9999
9999
|
}
|
|
10000
10000
|
/** @type {?} */
|
|
10001
|
-
|
|
10001
|
+
let p = new QParam();
|
|
10002
10002
|
p.sql = k;
|
|
10003
10003
|
p.types = this.types;
|
|
10004
10004
|
p.values = this.values;
|
|
@@ -10145,8 +10145,8 @@ FHPickListComponent.decorators = [
|
|
|
10145
10145
|
selector: 'FHPickList',
|
|
10146
10146
|
template: `
|
|
10147
10147
|
|
|
10148
|
-
<div fxLayout="column" fxLayoutGap="15px" fxFlex
|
|
10149
|
-
<div fxLayout="row"
|
|
10148
|
+
<div fxLayout="column" fxLayoutGap="15px" fxFlex >
|
|
10149
|
+
<div fxLayout="row">
|
|
10150
10150
|
<div fxLayout="column" fxFlex="41%">
|
|
10151
10151
|
|
|
10152
10152
|
|
|
@@ -11138,6 +11138,7 @@ class FHListPick {
|
|
|
11138
11138
|
this.toastr = toastr;
|
|
11139
11139
|
this.m_appService = m_appService;
|
|
11140
11140
|
this.label = "";
|
|
11141
|
+
this.title = "";
|
|
11141
11142
|
this.sql = "";
|
|
11142
11143
|
this.single_sel = false;
|
|
11143
11144
|
this.sel_values = "";
|
|
@@ -11181,8 +11182,9 @@ FHListPick.decorators = [
|
|
|
11181
11182
|
{ type: Component, args: [{
|
|
11182
11183
|
selector: 'fhwincomboselect',
|
|
11183
11184
|
template: `
|
|
11184
|
-
<mat-dialog-
|
|
11185
|
-
|
|
11185
|
+
<h2 mat-dialog-title>{{title}}</h2>
|
|
11186
|
+
<mat-dialog-content style="min-width:700px;min-height:500px;font-size: 12px">
|
|
11187
|
+
<FHList #cmb_sel [label]="label" [single_sel]="single_sel" [label]="" style="width:100%;height:100%" init_fill="false" (selchange)="ok_single()"></FHList>
|
|
11186
11188
|
|
|
11187
11189
|
</mat-dialog-content>
|
|
11188
11190
|
|
|
@@ -11191,7 +11193,7 @@ FHListPick.decorators = [
|
|
|
11191
11193
|
<div fxLayout="row" fxLayoutAlign="center center" style="width: 100%">
|
|
11192
11194
|
|
|
11193
11195
|
<button mat-flat-button color="primary" *ngIf="!single_sel" (click)="ok()">OK</button>
|
|
11194
|
-
<button mat-flat-button
|
|
11196
|
+
<button mat-flat-button style="background-color: #F5F5F5" (click)="dialogRef.close('')">ANNULLA</button>
|
|
11195
11197
|
</div>
|
|
11196
11198
|
</mat-dialog-actions>
|
|
11197
11199
|
`
|
|
@@ -12590,7 +12592,10 @@ class win_commenti {
|
|
|
12590
12592
|
this.toastr = toastr;
|
|
12591
12593
|
this._dataService = _dataService;
|
|
12592
12594
|
this.m_wkf = m_wkf;
|
|
12593
|
-
this.
|
|
12595
|
+
this.notifica_commenti = 1;
|
|
12596
|
+
this.notifica_commenti_obbl = 0;
|
|
12597
|
+
this.not_comm = false;
|
|
12598
|
+
this.not_comm_disabled = false;
|
|
12594
12599
|
this.nota = "";
|
|
12595
12600
|
this.title = "COMMENTI";
|
|
12596
12601
|
this.b_edit = false;
|
|
@@ -12602,6 +12607,15 @@ class win_commenti {
|
|
|
12602
12607
|
this.codice_doc = "";
|
|
12603
12608
|
this.refresh_list();
|
|
12604
12609
|
}
|
|
12610
|
+
/**
|
|
12611
|
+
* @return {?}
|
|
12612
|
+
*/
|
|
12613
|
+
init_v() {
|
|
12614
|
+
if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
|
|
12615
|
+
this.not_comm = true;
|
|
12616
|
+
this.not_comm_disabled = true;
|
|
12617
|
+
}
|
|
12618
|
+
}
|
|
12605
12619
|
/**
|
|
12606
12620
|
* @param {?} event
|
|
12607
12621
|
* @return {?}
|
|
@@ -12651,16 +12665,67 @@ class win_commenti {
|
|
|
12651
12665
|
* @return {?}
|
|
12652
12666
|
*/
|
|
12653
12667
|
ok() {
|
|
12654
|
-
if (!this.
|
|
12668
|
+
if (!this.not_comm) {
|
|
12655
12669
|
this.ok_op();
|
|
12670
|
+
}
|
|
12656
12671
|
else {
|
|
12657
12672
|
if (this.nota == '') {
|
|
12658
12673
|
this.toastr.error("INSERIRE UN COMMENTO");
|
|
12659
12674
|
return;
|
|
12660
12675
|
}
|
|
12661
|
-
this.
|
|
12676
|
+
if (this.notifica_commenti == 1)
|
|
12677
|
+
this.select_destinatari();
|
|
12678
|
+
else
|
|
12679
|
+
this.select_destinatari_grp();
|
|
12662
12680
|
}
|
|
12663
12681
|
}
|
|
12682
|
+
/**
|
|
12683
|
+
* @return {?}
|
|
12684
|
+
*/
|
|
12685
|
+
select_destinatari_grp() {
|
|
12686
|
+
/** @type {?} */
|
|
12687
|
+
let dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
12688
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
12689
|
+
dialo.componentInstance.types = ['string'];
|
|
12690
|
+
dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
12691
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
12692
|
+
dialo.componentInstance.doFill();
|
|
12693
|
+
dialo.afterClosed().subscribe((/**
|
|
12694
|
+
* @param {?} result
|
|
12695
|
+
* @return {?}
|
|
12696
|
+
*/
|
|
12697
|
+
result => {
|
|
12698
|
+
if (result != null) {
|
|
12699
|
+
if (result == '')
|
|
12700
|
+
return;
|
|
12701
|
+
/** @type {?} */
|
|
12702
|
+
let s_users = "";
|
|
12703
|
+
for (let i = 0; i < result.length; i++) {
|
|
12704
|
+
if (s_users != "")
|
|
12705
|
+
s_users = s_users + ",";
|
|
12706
|
+
s_users = s_users + "" + result[i].valore + "";
|
|
12707
|
+
}
|
|
12708
|
+
/** @type {?} */
|
|
12709
|
+
let p = new QParam();
|
|
12710
|
+
p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
|
|
12711
|
+
p.types = ['string'];
|
|
12712
|
+
p.values = [s_users];
|
|
12713
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
12714
|
+
* @param {?} data
|
|
12715
|
+
* @return {?}
|
|
12716
|
+
*/
|
|
12717
|
+
data => {
|
|
12718
|
+
s_users = '';
|
|
12719
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
12720
|
+
if (s_users != "")
|
|
12721
|
+
s_users = s_users + ",";
|
|
12722
|
+
s_users = s_users + "" + data.result_data[i].username + "";
|
|
12723
|
+
}
|
|
12724
|
+
this.ok_op(s_users);
|
|
12725
|
+
}));
|
|
12726
|
+
}
|
|
12727
|
+
}));
|
|
12728
|
+
}
|
|
12664
12729
|
/**
|
|
12665
12730
|
* @return {?}
|
|
12666
12731
|
*/
|
|
@@ -12735,10 +12800,10 @@ class win_commenti {
|
|
|
12735
12800
|
ok_op(sdest = "") {
|
|
12736
12801
|
if (this.b_ins) {
|
|
12737
12802
|
/** @type {?} */
|
|
12738
|
-
|
|
12803
|
+
let p = new QParam();
|
|
12739
12804
|
p.sql = "INSERT_WKF_COMMENTO";
|
|
12740
|
-
p.types = ['string', 'string', 'string', 'string'];
|
|
12741
|
-
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
|
|
12805
|
+
p.types = ['string', 'string', 'string', 'string', 'string'];
|
|
12806
|
+
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user, sdest];
|
|
12742
12807
|
this._dataService.doQuery(p).subscribe((/**
|
|
12743
12808
|
* @param {?} data
|
|
12744
12809
|
* @return {?}
|
|
@@ -12765,10 +12830,10 @@ class win_commenti {
|
|
|
12765
12830
|
}
|
|
12766
12831
|
else {
|
|
12767
12832
|
/** @type {?} */
|
|
12768
|
-
|
|
12833
|
+
let p = new QParam();
|
|
12769
12834
|
p.sql = "UPDATE_WKF_COMMENTO";
|
|
12770
|
-
p.types = ['string', 'string', 'string'
|
|
12771
|
-
p.values = [this.nota, this.edit_id];
|
|
12835
|
+
p.types = ['string', 'string', 'string'];
|
|
12836
|
+
p.values = [this.nota, this.edit_id, sdest];
|
|
12772
12837
|
this._dataService.doQuery(p).subscribe((/**
|
|
12773
12838
|
* @param {?} data
|
|
12774
12839
|
* @return {?}
|
|
@@ -12803,9 +12868,25 @@ class win_commenti {
|
|
|
12803
12868
|
* @return {?}
|
|
12804
12869
|
*/
|
|
12805
12870
|
annulla() {
|
|
12806
|
-
this.
|
|
12807
|
-
this.
|
|
12808
|
-
|
|
12871
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
12872
|
+
localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
|
|
12873
|
+
/** @type {?} */
|
|
12874
|
+
let dialogRef1 = this
|
|
12875
|
+
.m_dialogRef
|
|
12876
|
+
.open(FHConfirmComponent);
|
|
12877
|
+
dialogRef1
|
|
12878
|
+
.afterClosed()
|
|
12879
|
+
.subscribe((/**
|
|
12880
|
+
* @param {?} result
|
|
12881
|
+
* @return {?}
|
|
12882
|
+
*/
|
|
12883
|
+
result => {
|
|
12884
|
+
if (result) {
|
|
12885
|
+
this.nota = '';
|
|
12886
|
+
this.b_edit = false;
|
|
12887
|
+
this.title = 'COMMENTI';
|
|
12888
|
+
}
|
|
12889
|
+
}));
|
|
12809
12890
|
}
|
|
12810
12891
|
/**
|
|
12811
12892
|
* @return {?}
|
|
@@ -12841,10 +12922,10 @@ win_commenti.decorators = [
|
|
|
12841
12922
|
</mat-form-field>
|
|
12842
12923
|
|
|
12843
12924
|
|
|
12844
|
-
<div *ngIf="b_edit">
|
|
12925
|
+
<div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
|
|
12845
12926
|
<button mat-flat-button color="primary" (click)="ok()"> OK</button>
|
|
12846
12927
|
<button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button>
|
|
12847
|
-
<mat-checkbox [(ngModel)]="
|
|
12928
|
+
<mat-checkbox [disabled]="not_comm_disabled" [(ngModel)]="not_comm" [hidden]="notifica_commenti==0 || (notifica_commenti==1 && lettori=='')">
|
|
12848
12929
|
Notifica Interessati
|
|
12849
12930
|
</mat-checkbox>
|
|
12850
12931
|
</div>
|
|
@@ -12856,6 +12937,7 @@ win_commenti.decorators = [
|
|
|
12856
12937
|
<th width="15%">Autore</th>
|
|
12857
12938
|
<th width="15%">Data</th>
|
|
12858
12939
|
<th></th>
|
|
12940
|
+
<th></th>
|
|
12859
12941
|
</tr>
|
|
12860
12942
|
</thead>
|
|
12861
12943
|
<tbody>
|
|
@@ -12865,11 +12947,13 @@ win_commenti.decorators = [
|
|
|
12865
12947
|
<td [innerHTML]="app.v_commento"></td>
|
|
12866
12948
|
<td>{{app.COGNOME + ' ' + app.NOME}}</td>
|
|
12867
12949
|
<td>{{app.v_data_creazione}}</td>
|
|
12950
|
+
<td><mat-icon [matTooltip]="app.dest_notif" *ngIf="app.dest_notif!=null && app.dest_notif!=''">mail</mat-icon></td>
|
|
12868
12951
|
<td>
|
|
12869
12952
|
<mat-icon *ngIf="i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user"
|
|
12870
12953
|
(click)="edit_comm(app)">edit
|
|
12871
12954
|
</mat-icon>
|
|
12872
12955
|
</td>
|
|
12956
|
+
|
|
12873
12957
|
</tr>
|
|
12874
12958
|
</tbody>
|
|
12875
12959
|
</table>
|
|
@@ -12878,7 +12962,7 @@ win_commenti.decorators = [
|
|
|
12878
12962
|
</div>
|
|
12879
12963
|
<br>
|
|
12880
12964
|
|
|
12881
|
-
<div style="width:100%;text-align:center;">
|
|
12965
|
+
<div style="width:100%;text-align:center;" *ngIf="!b_edit">
|
|
12882
12966
|
<button mat-flat-button style="background-color: #F5F5F5" (click)="dialogRef.close('')">CHIUDI</button>
|
|
12883
12967
|
|
|
12884
12968
|
</div>
|
|
@@ -13030,7 +13114,6 @@ class win_log {
|
|
|
13030
13114
|
* @param {?} m_wkf
|
|
13031
13115
|
*/
|
|
13032
13116
|
constructor(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
|
|
13033
|
-
// this.logs = this.m_appService.getState( ).appo_dialog.logs;
|
|
13034
13117
|
this.appService = appService;
|
|
13035
13118
|
this.dialogRef = dialogRef;
|
|
13036
13119
|
this.m_dialogRef = m_dialogRef;
|
|
@@ -13039,16 +13122,19 @@ class win_log {
|
|
|
13039
13122
|
this._dataService = _dataService;
|
|
13040
13123
|
this.m_wkf = m_wkf;
|
|
13041
13124
|
this.ossv = false;
|
|
13125
|
+
this.not_comm = false;
|
|
13126
|
+
this.not_comm_disabled = false;
|
|
13042
13127
|
this.b_flussook = true;
|
|
13043
13128
|
this.logs = new Array();
|
|
13129
|
+
this.notifica_commenti = 1;
|
|
13130
|
+
this.notifica_commenti_obbl = 0;
|
|
13044
13131
|
this.title = "LOG WORKFLOW E COMMENTI";
|
|
13045
13132
|
this.nota = "";
|
|
13046
13133
|
this.commenti_insert = false;
|
|
13047
13134
|
this.b_edit = false;
|
|
13048
13135
|
this.b_ins = false;
|
|
13049
13136
|
this.edit_id = 0;
|
|
13050
|
-
this.lettori =
|
|
13051
|
-
this.not_int = true;
|
|
13137
|
+
this.lettori = '';
|
|
13052
13138
|
this.subject = "";
|
|
13053
13139
|
this.link = "";
|
|
13054
13140
|
this.codice_doc = "";
|
|
@@ -13059,6 +13145,15 @@ class win_log {
|
|
|
13059
13145
|
ric_all() {
|
|
13060
13146
|
this.refresh_list();
|
|
13061
13147
|
}
|
|
13148
|
+
/**
|
|
13149
|
+
* @return {?}
|
|
13150
|
+
*/
|
|
13151
|
+
init_v() {
|
|
13152
|
+
if (this.notifica_commenti > 0 && this.notifica_commenti_obbl == 1) {
|
|
13153
|
+
this.not_comm = true;
|
|
13154
|
+
this.not_comm_disabled = true;
|
|
13155
|
+
}
|
|
13156
|
+
}
|
|
13062
13157
|
/**
|
|
13063
13158
|
* @return {?}
|
|
13064
13159
|
*/
|
|
@@ -13075,7 +13170,6 @@ class win_log {
|
|
|
13075
13170
|
data => {
|
|
13076
13171
|
if (data != null)
|
|
13077
13172
|
if (data.result_msg == "OK") {
|
|
13078
|
-
console.log('data.result_data[0].diagramma_flusso ', data.result_data[0].diagramma_flusso);
|
|
13079
13173
|
if (data.result_data.length > 0)
|
|
13080
13174
|
if (data.result_data[0].diagramma_flusso != null)
|
|
13081
13175
|
if (data.result_data[0].diagramma_flusso != '') {
|
|
@@ -13089,7 +13183,6 @@ class win_log {
|
|
|
13089
13183
|
if (!b_found)
|
|
13090
13184
|
if (this.logs[i].liv_fin != null) {
|
|
13091
13185
|
data.result_data[0].diagramma_flusso = data.result_data[0].diagramma_flusso.split('bpmnElement="STEP_' + this.logs[i].liv_fin + '"').join('bpmnElement="STEP_' + this.logs[i].liv_fin + '" bioc:stroke="#FB8C00" bioc:fill="#FFE0B2"');
|
|
13092
|
-
console.log('this.logs[i].liv_fin ', this.logs[i].liv_fin);
|
|
13093
13186
|
b_found = true;
|
|
13094
13187
|
}
|
|
13095
13188
|
}
|
|
@@ -13099,7 +13192,6 @@ class win_log {
|
|
|
13099
13192
|
* @return {?}
|
|
13100
13193
|
*/
|
|
13101
13194
|
(err) => {
|
|
13102
|
-
console.log('err', err);
|
|
13103
13195
|
if (!err) {
|
|
13104
13196
|
/** @type {?} */
|
|
13105
13197
|
let canvas = this.modeler.get('canvas');
|
|
@@ -13119,9 +13211,25 @@ class win_log {
|
|
|
13119
13211
|
* @return {?}
|
|
13120
13212
|
*/
|
|
13121
13213
|
annulla() {
|
|
13122
|
-
this.
|
|
13123
|
-
this.
|
|
13124
|
-
|
|
13214
|
+
localStorage.setItem(this.appService.COMPANY_KEY + "title_dialog", 'Conferma Operazione');
|
|
13215
|
+
localStorage.setItem(this.appService.COMPANY_KEY + "msg_dialog", "Confermi di voler annullare l'inserimento del commento?");
|
|
13216
|
+
/** @type {?} */
|
|
13217
|
+
let dialogRef1 = this
|
|
13218
|
+
.m_dialogRef
|
|
13219
|
+
.open(FHConfirmComponent);
|
|
13220
|
+
dialogRef1
|
|
13221
|
+
.afterClosed()
|
|
13222
|
+
.subscribe((/**
|
|
13223
|
+
* @param {?} result
|
|
13224
|
+
* @return {?}
|
|
13225
|
+
*/
|
|
13226
|
+
result => {
|
|
13227
|
+
if (result) {
|
|
13228
|
+
this.nota = '';
|
|
13229
|
+
this.b_edit = false;
|
|
13230
|
+
this.title = 'LOG WORKFLOW E COMMENTI';
|
|
13231
|
+
}
|
|
13232
|
+
}));
|
|
13125
13233
|
}
|
|
13126
13234
|
/**
|
|
13127
13235
|
* @return {?}
|
|
@@ -13168,8 +13276,6 @@ class win_log {
|
|
|
13168
13276
|
* @return {?}
|
|
13169
13277
|
*/
|
|
13170
13278
|
data => {
|
|
13171
|
-
/** @type {?} */
|
|
13172
|
-
let ok_op = false;
|
|
13173
13279
|
if (data != null)
|
|
13174
13280
|
if (data.result_msg == "OK") {
|
|
13175
13281
|
this.logs = data.result_data;
|
|
@@ -13182,30 +13288,25 @@ class win_log {
|
|
|
13182
13288
|
});
|
|
13183
13289
|
this.load_graph();
|
|
13184
13290
|
this.ossv = true;
|
|
13185
|
-
ok_op = true;
|
|
13186
13291
|
}
|
|
13187
|
-
if (!ok_op) {
|
|
13188
|
-
this.toastr.error("ERRORE", data.msg);
|
|
13189
|
-
}
|
|
13190
|
-
}), (/**
|
|
13191
|
-
* @param {?} err
|
|
13192
|
-
* @return {?}
|
|
13193
|
-
*/
|
|
13194
|
-
err => {
|
|
13195
13292
|
}));
|
|
13196
13293
|
}
|
|
13197
13294
|
/**
|
|
13198
13295
|
* @return {?}
|
|
13199
13296
|
*/
|
|
13200
13297
|
ok() {
|
|
13201
|
-
if (!this.
|
|
13298
|
+
if (!this.not_comm) {
|
|
13202
13299
|
this.ok_op();
|
|
13300
|
+
}
|
|
13203
13301
|
else {
|
|
13204
13302
|
if (this.nota == '') {
|
|
13205
13303
|
this.toastr.error("INSERIRE UN COMMENTO");
|
|
13206
13304
|
return;
|
|
13207
13305
|
}
|
|
13208
|
-
this.
|
|
13306
|
+
if (this.notifica_commenti == 1)
|
|
13307
|
+
this.select_destinatari();
|
|
13308
|
+
else
|
|
13309
|
+
this.select_destinatari_grp();
|
|
13209
13310
|
}
|
|
13210
13311
|
}
|
|
13211
13312
|
/**
|
|
@@ -13213,7 +13314,7 @@ class win_log {
|
|
|
13213
13314
|
*/
|
|
13214
13315
|
select_destinatari() {
|
|
13215
13316
|
/** @type {?} */
|
|
13216
|
-
|
|
13317
|
+
let p = new QParam();
|
|
13217
13318
|
p.sql = "SELECT_USERS_INFOS_BY_USERNAME_NOREP";
|
|
13218
13319
|
p.types = ['string'];
|
|
13219
13320
|
p.values = ["'" + this.lettori.split(',').join("','") + "'"];
|
|
@@ -13230,7 +13331,6 @@ class win_log {
|
|
|
13230
13331
|
* @return {?}
|
|
13231
13332
|
*/
|
|
13232
13333
|
result => {
|
|
13233
|
-
// this.selectedOption = result;
|
|
13234
13334
|
if (result != null) {
|
|
13235
13335
|
/** @type {?} */
|
|
13236
13336
|
let s_users = "";
|
|
@@ -13242,11 +13342,53 @@ class win_log {
|
|
|
13242
13342
|
this.ok_op(s_users);
|
|
13243
13343
|
}
|
|
13244
13344
|
}));
|
|
13245
|
-
})
|
|
13246
|
-
|
|
13345
|
+
}));
|
|
13346
|
+
}
|
|
13347
|
+
/**
|
|
13348
|
+
* @return {?}
|
|
13349
|
+
*/
|
|
13350
|
+
select_destinatari_grp() {
|
|
13351
|
+
/** @type {?} */
|
|
13352
|
+
let dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
|
|
13353
|
+
dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
|
|
13354
|
+
dialo.componentInstance.types = ['string'];
|
|
13355
|
+
dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
|
|
13356
|
+
dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
|
|
13357
|
+
dialo.componentInstance.doFill();
|
|
13358
|
+
dialo.afterClosed().subscribe((/**
|
|
13359
|
+
* @param {?} result
|
|
13247
13360
|
* @return {?}
|
|
13248
13361
|
*/
|
|
13249
|
-
|
|
13362
|
+
result => {
|
|
13363
|
+
if (result != null) {
|
|
13364
|
+
if (result == '')
|
|
13365
|
+
return;
|
|
13366
|
+
/** @type {?} */
|
|
13367
|
+
let s_users = "";
|
|
13368
|
+
for (let i = 0; i < result.length; i++) {
|
|
13369
|
+
if (s_users != "")
|
|
13370
|
+
s_users = s_users + ",";
|
|
13371
|
+
s_users = s_users + "" + result[i].valore + "";
|
|
13372
|
+
}
|
|
13373
|
+
/** @type {?} */
|
|
13374
|
+
let p = new QParam();
|
|
13375
|
+
p.sql = "SELECT_USERS_BY_IDROLES_NOREP";
|
|
13376
|
+
p.types = ['string'];
|
|
13377
|
+
p.values = [s_users];
|
|
13378
|
+
this._dataService.doQuery(p).subscribe((/**
|
|
13379
|
+
* @param {?} data
|
|
13380
|
+
* @return {?}
|
|
13381
|
+
*/
|
|
13382
|
+
data => {
|
|
13383
|
+
s_users = '';
|
|
13384
|
+
for (let i = 0; i < data.result_data.length; i++) {
|
|
13385
|
+
if (s_users != "")
|
|
13386
|
+
s_users = s_users + ",";
|
|
13387
|
+
s_users = s_users + "" + data.result_data[i].username + "";
|
|
13388
|
+
}
|
|
13389
|
+
this.ok_op(s_users);
|
|
13390
|
+
}));
|
|
13391
|
+
}
|
|
13250
13392
|
}));
|
|
13251
13393
|
}
|
|
13252
13394
|
/**
|
|
@@ -13273,11 +13415,6 @@ class win_log {
|
|
|
13273
13415
|
* @return {?}
|
|
13274
13416
|
*/
|
|
13275
13417
|
data => {
|
|
13276
|
-
}), (/**
|
|
13277
|
-
* @param {?} err
|
|
13278
|
-
* @return {?}
|
|
13279
|
-
*/
|
|
13280
|
-
err => {
|
|
13281
13418
|
}));
|
|
13282
13419
|
}
|
|
13283
13420
|
/**
|
|
@@ -13287,42 +13424,31 @@ class win_log {
|
|
|
13287
13424
|
ok_op(sdest = "") {
|
|
13288
13425
|
if (this.b_ins) {
|
|
13289
13426
|
/** @type {?} */
|
|
13290
|
-
|
|
13427
|
+
let p = new QParam();
|
|
13291
13428
|
p.sql = "INSERT_WKF_COMMENTO";
|
|
13292
|
-
p.types = ['string', 'string', 'string', 'string'];
|
|
13293
|
-
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user];
|
|
13429
|
+
p.types = ['string', 'string', 'string', 'string', 'string'];
|
|
13430
|
+
p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.nota, this.m_appService.getState().wkf_doc_info.curr_user, sdest];
|
|
13294
13431
|
this._dataService.doQuery(p).subscribe((/**
|
|
13295
13432
|
* @param {?} data
|
|
13296
13433
|
* @return {?}
|
|
13297
13434
|
*/
|
|
13298
13435
|
data => {
|
|
13299
|
-
/** @type {?} */
|
|
13300
|
-
let ok_op = false;
|
|
13301
13436
|
if (data != null)
|
|
13302
13437
|
if (data.result_msg == "OK") {
|
|
13303
13438
|
this.toastr.info("INFO", "COMMENTO INSERITO", {
|
|
13304
13439
|
timeOut: 1000,
|
|
13305
13440
|
progressBar: true
|
|
13306
13441
|
});
|
|
13307
|
-
ok_op = true;
|
|
13308
13442
|
this.b_edit = false;
|
|
13309
13443
|
if (sdest != "")
|
|
13310
13444
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject.split("<OP>").join("E' stato inserito un commento"), "<br><br>Commento inserito: <br>" + this.nota.split('\n').join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, '');
|
|
13311
13445
|
this.refresh_list();
|
|
13312
13446
|
}
|
|
13313
|
-
if (!ok_op) {
|
|
13314
|
-
this.toastr.error("ERRORE", data.msg);
|
|
13315
|
-
}
|
|
13316
|
-
}), (/**
|
|
13317
|
-
* @param {?} err
|
|
13318
|
-
* @return {?}
|
|
13319
|
-
*/
|
|
13320
|
-
err => {
|
|
13321
13447
|
}));
|
|
13322
13448
|
}
|
|
13323
13449
|
else {
|
|
13324
13450
|
/** @type {?} */
|
|
13325
|
-
|
|
13451
|
+
let p = new QParam();
|
|
13326
13452
|
p.sql = "UPDATE_WKF_COMMENTO";
|
|
13327
13453
|
p.types = ['string', 'string', 'string', 'string'];
|
|
13328
13454
|
p.values = [this.nota, this.edit_id];
|
|
@@ -13331,28 +13457,17 @@ class win_log {
|
|
|
13331
13457
|
* @return {?}
|
|
13332
13458
|
*/
|
|
13333
13459
|
data => {
|
|
13334
|
-
/** @type {?} */
|
|
13335
|
-
let ok_op = false;
|
|
13336
13460
|
if (data != null)
|
|
13337
13461
|
if (data.result_msg == "OK") {
|
|
13338
13462
|
this.toastr.info("INFO", "COMMENTO AGGIORNATO", {
|
|
13339
13463
|
timeOut: 1000,
|
|
13340
13464
|
progressBar: true
|
|
13341
13465
|
});
|
|
13342
|
-
ok_op = true;
|
|
13343
13466
|
this.b_edit = false;
|
|
13344
13467
|
if (sdest != "")
|
|
13345
13468
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject.split("<OP>").join("E' stato modificato un commento"), "<br><br>Commento modificato: <br>" + this.nota.split('\n').join("<br>"), this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc, this.link, this.codice_doc, '');
|
|
13346
13469
|
this.refresh_list();
|
|
13347
13470
|
}
|
|
13348
|
-
if (!ok_op) {
|
|
13349
|
-
this.toastr.error("ERRORE", data.msg);
|
|
13350
|
-
}
|
|
13351
|
-
}), (/**
|
|
13352
|
-
* @param {?} err
|
|
13353
|
-
* @return {?}
|
|
13354
|
-
*/
|
|
13355
|
-
err => {
|
|
13356
13471
|
}));
|
|
13357
13472
|
}
|
|
13358
13473
|
}
|
|
@@ -13403,10 +13518,10 @@ win_log.decorators = [
|
|
|
13403
13518
|
<textarea matInput [(ngModel)]="nota" rows="12"></textarea>
|
|
13404
13519
|
</mat-form-field>
|
|
13405
13520
|
|
|
13406
|
-
<div *ngIf="b_edit">
|
|
13521
|
+
<div *ngIf="b_edit" fxLayoutAlign="center center" fxLayout="row">
|
|
13407
13522
|
<button mat-flat-button color="primary" (click)="ok()"> OK</button>
|
|
13408
13523
|
<button mat-flat-button style="background-color: #F5F5F5" (click)="annulla()">ANNULLA</button>
|
|
13409
|
-
<mat-checkbox [(ngModel)]="
|
|
13524
|
+
<mat-checkbox [disabled]="not_comm_disabled" [(ngModel)]="not_comm" [hidden]="notifica_commenti==0 || (notifica_commenti==1 && lettori=='')">
|
|
13410
13525
|
Notifica Interessati
|
|
13411
13526
|
</mat-checkbox>
|
|
13412
13527
|
</div>
|
|
@@ -13418,7 +13533,7 @@ win_log.decorators = [
|
|
|
13418
13533
|
<th width="15%">Data</th>
|
|
13419
13534
|
<th width="15%">Utente</th>
|
|
13420
13535
|
<th>Operazione</th>
|
|
13421
|
-
|
|
13536
|
+
<td></td>
|
|
13422
13537
|
<td></td>
|
|
13423
13538
|
</tr>
|
|
13424
13539
|
</thead>
|
|
@@ -13428,7 +13543,7 @@ win_log.decorators = [
|
|
|
13428
13543
|
<td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
|
|
13429
13544
|
<td>{{app.nc}}</td>
|
|
13430
13545
|
<td>{{app.operazione}}</td>
|
|
13431
|
-
|
|
13546
|
+
<td><mat-icon [matTooltip]="app.dest_notif" *ngIf="app.dest_notif!=null && app.dest_notif!=''">mail</mat-icon></td>
|
|
13432
13547
|
<td>
|
|
13433
13548
|
<mat-icon *ngIf="i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user"
|
|
13434
13549
|
(click)="edit_comm(app)">edit
|
|
@@ -15887,11 +16002,16 @@ class dati_aggiuntivi {
|
|
|
15887
16002
|
/** @type {?} */
|
|
15888
16003
|
let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
|
|
15889
16004
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
15890
|
-
|
|
16005
|
+
if (this.m_obj.lettori != null)
|
|
16006
|
+
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
16007
|
+
else
|
|
16008
|
+
dialogRef.componentInstance.lettori = '';
|
|
15891
16009
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
15892
16010
|
dialogRef.componentInstance.codice_doc = this.m_obj.codice;
|
|
15893
|
-
dialogRef.componentInstance.
|
|
16011
|
+
dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
|
|
16012
|
+
dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
|
|
15894
16013
|
dialogRef.componentInstance.commenti_insert = inser_c;
|
|
16014
|
+
dialogRef.componentInstance.init_v();
|
|
15895
16015
|
dialogRef.afterClosed().subscribe((/**
|
|
15896
16016
|
* @param {?} result
|
|
15897
16017
|
* @return {?}
|
|
@@ -15907,10 +16027,15 @@ class dati_aggiuntivi {
|
|
|
15907
16027
|
/** @type {?} */
|
|
15908
16028
|
let dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
|
|
15909
16029
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
15910
|
-
|
|
16030
|
+
if (this.m_obj.lettori != null)
|
|
16031
|
+
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
16032
|
+
else
|
|
16033
|
+
dialogRef.componentInstance.lettori = '';
|
|
15911
16034
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
15912
16035
|
dialogRef.componentInstance.codice_doc = this.m_obj.codice;
|
|
15913
|
-
dialogRef.componentInstance.
|
|
16036
|
+
dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
|
|
16037
|
+
dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
|
|
16038
|
+
dialogRef.componentInstance.init_v();
|
|
15914
16039
|
dialogRef.afterClosed().subscribe((/**
|
|
15915
16040
|
* @param {?} result
|
|
15916
16041
|
* @return {?}
|