@fluxhub/fluxhub-lib 1.0.458 → 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.
@@ -12584,14 +12584,16 @@ class win_commenti {
12584
12584
  * @param {?} toastr
12585
12585
  * @param {?} _dataService
12586
12586
  * @param {?} m_wkf
12587
+ * @param {?} m_file
12587
12588
  */
12588
- constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
12589
+ constructor(dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
12589
12590
  this.dialogRef = dialogRef;
12590
12591
  this.m_dialogRef = m_dialogRef;
12591
12592
  this.m_appService = m_appService;
12592
12593
  this.toastr = toastr;
12593
12594
  this._dataService = _dataService;
12594
12595
  this.m_wkf = m_wkf;
12596
+ this.m_file = m_file;
12595
12597
  this.notifica_commenti = 1;
12596
12598
  this.notifica_commenti_obbl = 0;
12597
12599
  this.not_comm = false;
@@ -12632,7 +12634,7 @@ class win_commenti {
12632
12634
  */
12633
12635
  refresh_list() {
12634
12636
  /** @type {?} */
12635
- var p = new QParam();
12637
+ let p = new QParam();
12636
12638
  p.sql = "SELECT_COMMENTI_DOCUMENTO";
12637
12639
  p.types = ['string', 'string'];
12638
12640
  p.values = [this.m_appService.getState().wkf_doc_info.uiid_app, this.m_appService.getState().wkf_doc_info.uiid_doc];
@@ -12665,7 +12667,7 @@ class win_commenti {
12665
12667
  * @return {?}
12666
12668
  */
12667
12669
  ok() {
12668
- if (!this.notifica_commenti) {
12670
+ if (!this.not_comm) {
12669
12671
  this.ok_op();
12670
12672
  }
12671
12673
  else {
@@ -12817,6 +12819,12 @@ class win_commenti {
12817
12819
  timeOut: 1000,
12818
12820
  progressBar: true
12819
12821
  });
12822
+ /** @type {?} */
12823
+ const p = new FSInput();
12824
+ p.command = "exec_app";
12825
+ p.p1 = "insert_update_comment";
12826
+ p.p2 = this.m_appService.getState().wkf_doc_info.uiid_app + '|' + this.m_appService.getState().wkf_doc_info.uiid_doc;
12827
+ this.m_file.doQuery(p);
12820
12828
  ok_op = true;
12821
12829
  this.b_edit = false;
12822
12830
  if (sdest != "")
@@ -12847,6 +12855,12 @@ class win_commenti {
12847
12855
  timeOut: 1000,
12848
12856
  progressBar: true
12849
12857
  });
12858
+ /** @type {?} */
12859
+ const p = new FSInput();
12860
+ p.command = "exec_app";
12861
+ p.p1 = "insert_update_comment";
12862
+ p.p2 = this.m_appService.getState().wkf_doc_info.uiid_app + '|' + this.m_appService.getState().wkf_doc_info.uiid_doc + '|' + this.edit_id;
12863
+ this.m_file.doQuery(p);
12850
12864
  ok_op = true;
12851
12865
  this.b_edit = false;
12852
12866
  if (sdest != "")
@@ -12983,7 +12997,8 @@ win_commenti.ctorParameters = () => [
12983
12997
  { type: AppService },
12984
12998
  { type: ToastrService },
12985
12999
  { type: QueryService },
12986
- { type: WkfService }
13000
+ { type: WkfService },
13001
+ { type: FileService }
12987
13002
  ];
12988
13003
 
12989
13004
  /**
@@ -13112,8 +13127,9 @@ class win_log {
13112
13127
  * @param {?} toastr
13113
13128
  * @param {?} _dataService
13114
13129
  * @param {?} m_wkf
13130
+ * @param {?} m_file
13115
13131
  */
13116
- constructor(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf) {
13132
+ constructor(appService, dialogRef, m_dialogRef, m_appService, toastr, _dataService, m_wkf, m_file) {
13117
13133
  this.appService = appService;
13118
13134
  this.dialogRef = dialogRef;
13119
13135
  this.m_dialogRef = m_dialogRef;
@@ -13121,6 +13137,7 @@ class win_log {
13121
13137
  this.toastr = toastr;
13122
13138
  this._dataService = _dataService;
13123
13139
  this.m_wkf = m_wkf;
13140
+ this.m_file = m_file;
13124
13141
  this.ossv = false;
13125
13142
  this.not_comm = false;
13126
13143
  this.not_comm_disabled = false;
@@ -13279,6 +13296,8 @@ class win_log {
13279
13296
  if (data != null)
13280
13297
  if (data.result_msg == "OK") {
13281
13298
  this.logs = data.result_data;
13299
+ for (let i = 0; i < this.logs.length; i++)
13300
+ this.logs[i].v_commento = '<b>' + this.logs[i].operazione.replace(/\n/g, '<br/>') + '</b>';
13282
13301
  if (!this.ossv)
13283
13302
  this.modeler = new NavigatedViewer({
13284
13303
  container: '#canvas',
@@ -13295,7 +13314,7 @@ class win_log {
13295
13314
  * @return {?}
13296
13315
  */
13297
13316
  ok() {
13298
- if (!this.notifica_commenti) {
13317
+ if (!this.not_comm) {
13299
13318
  this.ok_op();
13300
13319
  }
13301
13320
  else {
@@ -13439,6 +13458,12 @@ class win_log {
13439
13458
  timeOut: 1000,
13440
13459
  progressBar: true
13441
13460
  });
13461
+ /** @type {?} */
13462
+ const p = new FSInput();
13463
+ p.command = "exec_app";
13464
+ p.p1 = "insert_update_comment";
13465
+ p.p2 = this.m_appService.getState().wkf_doc_info.uiid_app + '|' + this.m_appService.getState().wkf_doc_info.uiid_doc;
13466
+ this.m_file.doQuery(p);
13442
13467
  this.b_edit = false;
13443
13468
  if (sdest != "")
13444
13469
  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, '');
@@ -13463,6 +13488,12 @@ class win_log {
13463
13488
  timeOut: 1000,
13464
13489
  progressBar: true
13465
13490
  });
13491
+ /** @type {?} */
13492
+ const p = new FSInput();
13493
+ p.command = "exec_app";
13494
+ p.p1 = "insert_update_comment";
13495
+ p.p2 = this.m_appService.getState().wkf_doc_info.uiid_app + '|' + this.m_appService.getState().wkf_doc_info.uiid_doc + '|' + this.edit_id;
13496
+ this.m_file.doQuery(p);
13466
13497
  this.b_edit = false;
13467
13498
  if (sdest != "")
13468
13499
  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, '');
@@ -13542,7 +13573,7 @@ win_log.decorators = [
13542
13573
 
13543
13574
  <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
13544
13575
  <td>{{app.nc}}</td>
13545
- <td>{{app.operazione}}</td>
13576
+ <td>{{app.v_commento}}</td>
13546
13577
  <td><mat-icon [matTooltip]="app.dest_notif" *ngIf="app.dest_notif!=null && app.dest_notif!=''">mail</mat-icon></td>
13547
13578
  <td>
13548
13579
  <mat-icon *ngIf="i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user"
@@ -13576,7 +13607,8 @@ win_log.ctorParameters = () => [
13576
13607
  { type: AppService },
13577
13608
  { type: ToastrService },
13578
13609
  { type: QueryService },
13579
- { type: WkfService }
13610
+ { type: WkfService },
13611
+ { type: FileService }
13580
13612
  ];
13581
13613
  win_log.propDecorators = {
13582
13614
  zz: [{ type: ViewChild, args: ['zz',] }]