@fluxhub/fluxhub-lib 1.0.459 → 1.0.460

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.
@@ -13131,13 +13131,14 @@ var WkfService = /** @class */ (function () {
13131
13131
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13132
13132
  */
13133
13133
  var win_commenti = /** @class */ (function () {
13134
- function win_commenti(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13134
+ function win_commenti(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
13135
13135
  this.dialogRef = dialogRef;
13136
13136
  this.m_dialogRef = m_dialogRef;
13137
13137
  this.m_appService = m_appService;
13138
13138
  this.toastr = toastr;
13139
13139
  this._dataService = _dataService;
13140
13140
  this.m_wkf = m_wkf;
13141
+ this.m_file = m_file;
13141
13142
  this.notifica_commenti = 1;
13142
13143
  this.notifica_commenti_obbl = 0;
13143
13144
  this.not_comm = false;
@@ -13407,6 +13408,12 @@ var win_commenti = /** @class */ (function () {
13407
13408
  timeOut: 1000,
13408
13409
  progressBar: true
13409
13410
  });
13411
+ /** @type {?} */
13412
+ var p_1 = new FSInput();
13413
+ p_1.command = "exec_app";
13414
+ p_1.p1 = "insert_update_comment";
13415
+ p_1.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc;
13416
+ _this.m_file.doQuery(p_1);
13410
13417
  ok_op = true;
13411
13418
  _this.b_edit = false;
13412
13419
  if (sdest != "")
@@ -13437,6 +13444,12 @@ var win_commenti = /** @class */ (function () {
13437
13444
  timeOut: 1000,
13438
13445
  progressBar: true
13439
13446
  });
13447
+ /** @type {?} */
13448
+ var p_2 = new FSInput();
13449
+ p_2.command = "exec_app";
13450
+ p_2.p1 = "insert_update_comment";
13451
+ p_2.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc + '|' + _this.edit_id;
13452
+ _this.m_file.doQuery(p_2);
13440
13453
  ok_op = true;
13441
13454
  _this.b_edit = false;
13442
13455
  if (sdest != "")
@@ -13515,7 +13528,8 @@ var win_commenti = /** @class */ (function () {
13515
13528
  { type: AppService },
13516
13529
  { type: ToastrService },
13517
13530
  { type: QueryService },
13518
- { type: WkfService }
13531
+ { type: WkfService },
13532
+ { type: FileService }
13519
13533
  ]; };
13520
13534
  return win_commenti;
13521
13535
  }());
@@ -13570,7 +13584,7 @@ var win_info_doc = /** @class */ (function () {
13570
13584
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13571
13585
  */
13572
13586
  var win_log = /** @class */ (function () {
13573
- function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13587
+ function win_log(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
13574
13588
  this.appService = appService;
13575
13589
  this.dialogRef = dialogRef;
13576
13590
  this.m_dialogRef = m_dialogRef;
@@ -13578,6 +13592,7 @@ var win_log = /** @class */ (function () {
13578
13592
  this.toastr = toastr;
13579
13593
  this._dataService = _dataService;
13580
13594
  this.m_wkf = m_wkf;
13595
+ this.m_file = m_file;
13581
13596
  this.ossv = false;
13582
13597
  this.not_comm = false;
13583
13598
  this.not_comm_disabled = false;
@@ -13765,6 +13780,8 @@ var win_log = /** @class */ (function () {
13765
13780
  if (data != null)
13766
13781
  if (data.result_msg == "OK") {
13767
13782
  _this.logs = data.result_data;
13783
+ for (var i = 0; i < _this.logs.length; i++)
13784
+ _this.logs[i].v_commento = '<b>' + _this.logs[i].operazione.replace(/\n/g, '<br/>') + '</b>';
13768
13785
  if (!_this.ossv)
13769
13786
  _this.modeler = new NavigatedViewer({
13770
13787
  container: '#canvas',
@@ -13958,6 +13975,12 @@ var win_log = /** @class */ (function () {
13958
13975
  timeOut: 1000,
13959
13976
  progressBar: true
13960
13977
  });
13978
+ /** @type {?} */
13979
+ var p_1 = new FSInput();
13980
+ p_1.command = "exec_app";
13981
+ p_1.p1 = "insert_update_comment";
13982
+ p_1.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc;
13983
+ _this.m_file.doQuery(p_1);
13961
13984
  _this.b_edit = false;
13962
13985
  if (sdest != "")
13963
13986
  _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, '');
@@ -13982,6 +14005,12 @@ var win_log = /** @class */ (function () {
13982
14005
  timeOut: 1000,
13983
14006
  progressBar: true
13984
14007
  });
14008
+ /** @type {?} */
14009
+ var p_2 = new FSInput();
14010
+ p_2.command = "exec_app";
14011
+ p_2.p1 = "insert_update_comment";
14012
+ p_2.p2 = _this.m_appService.getState().wkf_doc_info.uiid_app + '|' + _this.m_appService.getState().wkf_doc_info.uiid_doc + '|' + _this.edit_id;
14013
+ _this.m_file.doQuery(p_2);
13985
14014
  _this.b_edit = false;
13986
14015
  if (sdest != "")
13987
14016
  _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, '');
@@ -13992,7 +14021,7 @@ var win_log = /** @class */ (function () {
13992
14021
  };
13993
14022
  win_log.decorators = [
13994
14023
  { type: Component, args: [{
13995
- template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
14024
+ template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\" fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [disabled]=\"not_comm_disabled\" [(ngModel)]=\"not_comm\" [hidden]=\"notifica_commenti==0 || (notifica_commenti==1 && lettori=='')\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\" style=\"width:90%\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n <td></td>\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.v_commento}}</td>\n <td><mat-icon [matTooltip]=\"app.dest_notif\" *ngIf=\"app.dest_notif!=null && app.dest_notif!=''\">mail</mat-icon></td>\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n \n ",
13996
14025
  styles: ["\n\n\n "]
13997
14026
  }] }
13998
14027
  ];
@@ -14004,7 +14033,8 @@ var win_log = /** @class */ (function () {
14004
14033
  { type: AppService },
14005
14034
  { type: ToastrService },
14006
14035
  { type: QueryService },
14007
- { type: WkfService }
14036
+ { type: WkfService },
14037
+ { type: FileService }
14008
14038
  ]; };
14009
14039
  win_log.propDecorators = {
14010
14040
  zz: [{ type: ViewChild, args: ['zz',] }]