@fluxhub/fluxhub-lib 10.0.740 → 10.0.742

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.
@@ -16365,7 +16365,7 @@
16365
16365
  }());
16366
16366
  win_select_level_v2.decorators = [
16367
16367
  { type: i0.Component, args: [{
16368
- template: "\n<div\u00A0fxLayout=\"column\">\n<div\u00A0\u00A0fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0\u00A0\u00A0class=\"dialog_header\">\u00A0\n\n<div\u00A0fxLayout=\"row\"\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0fxFlex=\"90\"><div>{{title|translate}}</div></div>\u00A0\n\n<div\u00A0\u00A0\u00A0fxFlex=\"10\"\u00A0fxLayout=\"row\"\u00A0fxLayoutAlign=\"end\u00A0center\">\n <div><img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"dialogRef.close(null)\"\u00A0/>\u00A0\u00A0</div>\n</div>\n\n</div>\n\n\n<mat-dialog-content>\n<hr\u00A0width=\"100%\"\u00A0size=\"0.5\"\u00A0color=\"#DDDDDD\">\n\n <br />\n <div\u00A0fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div *ngFor=\"let app of trans\">\n <button mat-raised-button [style.background-color]=\"app.color\" (click)=\"sel(app)\"\n [style.color]=\"app.color_font\" style=\"font-weight:bold;font-size:18px;min-width:300px\">\n <i *ngIf=\"app.icon!=null && app.icon!=''\" class=\"fa {{app.icon}}\" aria-hidden=\"true\"></i>\n\n{{ app.description|translate}}</button>\n<br><br>\n\n\n</div>\n </div>\n</mat-dialog-content>\n\n\n "
16368
+ template: "\n<div fxLayout=\"column\">\n<div fxFlex=\"100\" fxLayout=\"row\" fxLayoutAlign=\"start center\" class=\"dialog_header\">\n\n<div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxFlex=\"90\"><div>{{title|translate}}</div></div>\n\n<div fxFlex=\"10\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <div><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"dialogRef.close(null)\" /> </div>\n</div>\n\n</div>\n\n\n<mat-dialog-content>\n<hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <br />\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div *ngFor=\"let app of trans\">\n <button mat-raised-button [style.background-color]=\"app.color\" (click)=\"sel(app)\"\n [style.color]=\"app.color_font\" style=\"font-weight:bold;font-size:18px;min-width:300px\">\n <i *ngIf=\"app.icon!=null && app.icon!=''\" class=\"fa {{app.icon}}\" aria-hidden=\"true\"></i>\n\n{{ app.description|translate}}</button>\n<br><br>\n\n\n</div>\n </div>\n</mat-dialog-content>\n\n\n "
16369
16369
  },] }
16370
16370
  ];
16371
16371
  win_select_level_v2.ctorParameters = function () { return [
@@ -23253,16 +23253,19 @@
23253
23253
  }
23254
23254
  else {
23255
23255
  liv = this.m_obj.stato;
23256
+ console.log('this.m_obj.canale ', this.m_obj.canale, liv);
23256
23257
  if (this.m_obj.canale != null && this.m_obj.canale != '')
23257
23258
  for (var i = 0; i < this.livs.length; i++)
23258
- if (this.livs[i].step == liv)
23259
+ if (this.livs[i].step == liv) {
23260
+ console.log(" liv " + this.livs[i]);
23259
23261
  if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase()) {
23260
- // console.log(this.c_canale+" "+this.livs[i].context);
23262
+ console.log(this.m_obj.canale + " " + this.livs[i].context);
23261
23263
  if (this.m_obj.canale == this.livs[i].context) {
23262
23264
  this.clevel = this.livs[i];
23263
23265
  break;
23264
23266
  }
23265
23267
  }
23268
+ }
23266
23269
  if (this.clevel == null)
23267
23270
  for (var i = 0; i < this.livs.length; i++) {
23268
23271
  if (this.livs[i].username == null)
@@ -23318,83 +23321,6 @@
23318
23321
  this.clevel = this.check_n_levels(this.clevel);
23319
23322
  this.calcolanextandjump();
23320
23323
  };
23321
- /*
23322
- selectLevel() {
23323
- let p: QParam = new QParam();
23324
- p.sql = "SELECT_TRANSAZIONI_FROM_LVL";
23325
- p.values = [this.id_applicativo, this.clevel.step];
23326
- p.types = ["string", "int"];
23327
- this.m_dataService.doQuery(p).subscribe((data) => {
23328
- if(data.result_data.length==0){
23329
- this.alert('Nessuna transizione definita',1);
23330
- return;
23331
- }
23332
-
23333
-
23334
-
23335
- });
23336
-
23337
- this.app_s.getState().wkf_doc_info.livs = this.livs;
23338
- this.app_s.getState().wkf_doc_info.cl = this.clevel;
23339
-
23340
- let dialogRef = this.m_dialog.open(win_select_level_v2, {
23341
- disableClose: true,
23342
- });
23343
-
23344
- dialogRef.afterClosed().subscribe((result) => {
23345
- if (result == null) {
23346
- this.edit_b(true);
23347
- return;
23348
- }
23349
- let liv: number = result;
23350
- if (result.descri_livello == "Prosegui a step successivo") {
23351
- this.calcolanextandjump();
23352
- return;
23353
- }
23354
-
23355
- if (result.descri_livello == "Prosegui a chiusura") {
23356
- liv = 0;
23357
- for (var i: number = 0; i < this.livs.length; i++)
23358
- if (
23359
- this.livs[i].step < 900 &&
23360
- this.livs[i].step > liv &&
23361
- this.livs[i].notifica == 0
23362
- ) {
23363
- this.clevel = this.livs[i];
23364
- liv = this.livs[i].step;
23365
- }
23366
- this.calcolanextandjump();
23367
- return;
23368
- }
23369
-
23370
- liv = this.wkf_rule(liv);
23371
- var bfound: Boolean = false;
23372
- for (var i: number = 0; i < this.livs.length; i++)
23373
- if (
23374
- this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase() &&
23375
- this.livs[i].notifica == 0
23376
- )
23377
- if (this.livs[i].step == liv) {
23378
- this.nlevel = this.livs[i];
23379
- liv = this.livs[i].step;
23380
-
23381
- bfound = true;
23382
- }
23383
-
23384
- if (!bfound) {
23385
- for (var i: number = 0; i < this.livs.length; i++)
23386
- if (this.livs[i].step == liv && this.livs[i].notifica == 0) {
23387
- this.nlevel = this.livs[i];
23388
- liv = this.livs[i].step;
23389
-
23390
- break;
23391
- }
23392
- }
23393
-
23394
- // this.doJump();
23395
- });
23396
- }
23397
- */
23398
23324
  dati_aggiuntivi_v2.prototype.wkf_rule_before = function (transazioni, step, context) {
23399
23325
  return transazioni;
23400
23326
  };
@@ -23419,7 +23345,7 @@
23419
23345
  }
23420
23346
  else {
23421
23347
  var dialogRef = _this.m_dialog.open(win_select_level_v2, {
23422
- disableClose: true, data: transazioni, width: '800px'
23348
+ disableClose: true, data: transazioni
23423
23349
  });
23424
23350
  dialogRef.afterClosed().subscribe(function (result) {
23425
23351
  console.log('ris select level', result);