@fluxhub/fluxhub-lib 10.0.746 → 10.0.747

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.
@@ -24251,7 +24251,7 @@ class dati_aggiuntivi_v2 {
24251
24251
  this.m_obj = {};
24252
24252
  this.sort_field = "";
24253
24253
  this.in_carico = false;
24254
- this.wkf_users_roles = '';
24254
+ this.wkf_users_roles = "";
24255
24255
  this.b_rip_pulsanti = true;
24256
24256
  this.save_alreadypressed = false;
24257
24257
  this.b_respingi = false;
@@ -24332,7 +24332,7 @@ class dati_aggiuntivi_v2 {
24332
24332
  px.sql = "SELECT_ROLES_WKF_V2";
24333
24333
  px.values = [this.id_applicativo];
24334
24334
  px.types = ["string"];
24335
- console.log('start SELECT_ROLES_WKF_V2', new Date());
24335
+ console.log("start SELECT_ROLES_WKF_V2", new Date());
24336
24336
  this.m_dataService.doQuery(px).subscribe((data) => {
24337
24337
  if (data != null)
24338
24338
  if (data.result_msg == "OK") {
@@ -24352,13 +24352,13 @@ class dati_aggiuntivi_v2 {
24352
24352
  p.sql = "SELECT_WKF_APP_INFO_BYUID";
24353
24353
  p.types = ["string"];
24354
24354
  p.values = [this.id_applicativo];
24355
- console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
24355
+ console.log("start SELECT_WKF_APP_INFO_BYUID", new Date());
24356
24356
  this.m_dataService.doQuery(p).subscribe((data) => {
24357
24357
  if (data != null)
24358
24358
  if (data.result_msg == "OK") {
24359
24359
  console.log(data.result_data.length);
24360
24360
  if (data.result_data.length > 0) {
24361
- console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
24361
+ console.log("end SELECT_WKF_APP_INFO_BYUID", new Date());
24362
24362
  // this.app_info=data.result_data[0];
24363
24363
  this.setta_info_app(data.result_data[0]);
24364
24364
  this.init_engine();
@@ -24370,14 +24370,14 @@ class dati_aggiuntivi_v2 {
24370
24370
  });
24371
24371
  }
24372
24372
  ripristina_imp() {
24373
- if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
24373
+ if (localStorage.getItem(this.app_s.COMPANY_KEY + "_imp_user") == null) {
24374
24374
  this.user_idp = this.app_s.user;
24375
24375
  this.user_nome = this.app_s.user_name;
24376
24376
  this.user_cognome = this.app_s.user_surname;
24377
24377
  this.user_email = this.app_s.user_email;
24378
24378
  return;
24379
24379
  }
24380
- let obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
24380
+ let obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + "_imp_user")));
24381
24381
  if (obj == null) {
24382
24382
  this.user_idp = this.app_s.user;
24383
24383
  this.user_nome = this.app_s.user_name;
@@ -24417,7 +24417,8 @@ class dati_aggiuntivi_v2 {
24417
24417
  this.app_s.getState().wkf_doc_info = {};
24418
24418
  this.app_s.getState().wkf_doc_info.curr_user = this.user_idp;
24419
24419
  this.app_s.getState().wkf_doc_info.codice = this.m_obj.codice;
24420
- this.app_s.getState().wkf_doc_info.data_richiesta = this.m_obj.data_richiesta;
24420
+ this.app_s.getState().wkf_doc_info.data_richiesta =
24421
+ this.m_obj.data_richiesta;
24421
24422
  this.app_s.getState().wkf_doc_info.richiedente =
24422
24423
  this.m_obj.nc + " (" + this.m_obj.richiesta_da + ")";
24423
24424
  this.app_s.getState().wkf_doc_info.in_carico_a = this.m_obj.in_carico_a;
@@ -24437,20 +24438,30 @@ class dati_aggiuntivi_v2 {
24437
24438
  prendi_in_carico() {
24438
24439
  this.in_carico = false;
24439
24440
  if (this.m_obj.assegnati_paralleli != null)
24440
- if (this.m_obj.assegnati_paralleli.split(',').length != 1)
24441
+ if (this.m_obj.assegnati_paralleli.split(",").length != 1)
24441
24442
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
24442
24443
  this.b_assengna_a = true;
24443
24444
  this.update_status(true, null, this.in_carico, this.b_assengna_a, 1);
24444
24445
  this.m_obj.autori = this.app_s.user;
24445
24446
  let p = new QParam();
24446
24447
  p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
24447
- p.types = ['string', 'string', 'string'];
24448
- p.values = [this.id_applicativo, this.id_documento, this.app_s.user_surname + ' ' + this.app_s.user_name];
24448
+ p.types = ["string", "string", "string"];
24449
+ p.values = [
24450
+ this.id_applicativo,
24451
+ this.id_documento,
24452
+ this.app_s.user_surname + " " + this.app_s.user_name,
24453
+ ];
24449
24454
  this.m_dataService.doQuery(p).subscribe();
24450
24455
  p = new QParam();
24451
24456
  p.sql = "INSERT_WORKFLOW_LOG";
24452
- p.types = ['string', 'string', 'string', 'string', 'string'];
24453
- p.values = [this.id_applicativo, this.app_s.user, 'Presa in carico', this.m_obj.stat_stato, this.id_documento];
24457
+ p.types = ["string", "string", "string", "string", "string"];
24458
+ p.values = [
24459
+ this.id_applicativo,
24460
+ this.app_s.user,
24461
+ "Presa in carico",
24462
+ this.m_obj.stat_stato,
24463
+ this.id_documento,
24464
+ ];
24454
24465
  this.m_dataService.doQuery(p).subscribe();
24455
24466
  }
24456
24467
  salva() {
@@ -24487,32 +24498,32 @@ class dati_aggiuntivi_v2 {
24487
24498
  }
24488
24499
  else {
24489
24500
  liv = this.m_obj.stato;
24490
- console.log('this.m_obj.canale ', this.m_obj.canale, liv);
24491
- if (this.m_obj.canale != null && this.m_obj.canale != '')
24501
+ console.log("this.m_obj.canale ", this.m_obj.canale, liv);
24502
+ if (this.m_obj.canale != null && this.m_obj.canale != "")
24492
24503
  for (let i = 0; i < this.livs.length; i++)
24493
24504
  if (this.livs[i].step == liv) {
24494
24505
  console.log(" liv ", this.livs[i]);
24495
24506
  if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase()) {
24496
24507
  console.log(this.m_obj.canale + " " + this.livs[i].context);
24497
24508
  if (this.m_obj.canale == this.livs[i].context) {
24498
- console.log('clevel 1 ', this.livs[i]);
24509
+ console.log("clevel 1 ", this.livs[i]);
24499
24510
  this.clevel = this.livs[i];
24500
24511
  break;
24501
24512
  }
24502
24513
  }
24503
24514
  }
24504
- console.log('clevel 2 ', this.clevel);
24515
+ console.log("clevel 2 ", this.clevel);
24505
24516
  if (this.clevel == null)
24506
24517
  for (let i = 0; i < this.livs.length; i++) {
24507
24518
  if (this.livs[i].username == null)
24508
- this.livs[i].username = 'ZZZ';
24519
+ this.livs[i].username = "ZZZ";
24509
24520
  if (this.livs[i].step == liv) {
24510
24521
  if (this.livs[i].context == "*ALLUSERS" ||
24511
24522
  this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase()) {
24512
- if ((this.c_canale == "" ||
24523
+ if (this.c_canale == "" ||
24513
24524
  this.livs[i].context == "" ||
24514
24525
  this.c_canale == this.livs[i].context ||
24515
- this.livs[i].context == "*ALLUSERS")) {
24526
+ this.livs[i].context == "*ALLUSERS") {
24516
24527
  this.clevel = this.livs[i];
24517
24528
  break;
24518
24529
  }
@@ -24520,9 +24531,9 @@ class dati_aggiuntivi_v2 {
24520
24531
  }
24521
24532
  }
24522
24533
  }
24523
- console.log('clevel 2 ', this.clevel);
24534
+ console.log("clevel 2 ", this.clevel);
24524
24535
  this.clevel = this.check_n_levels(this.clevel);
24525
- if (this.clevel == null || this.clevel == '') {
24536
+ if (this.clevel == null || this.clevel == "") {
24526
24537
  this.alert("Errore di configurazione pratica contattare ufficio IT [0x002]", 1);
24527
24538
  return;
24528
24539
  }
@@ -24532,7 +24543,8 @@ class dati_aggiuntivi_v2 {
24532
24543
  if (this.clevel.salto_iniziale == 1) {
24533
24544
  liv = this.clevel.livello;
24534
24545
  for (let i = 0; i < this.livs.length; i++)
24535
- if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase() &&
24546
+ if (this.user_idp.toUpperCase() ==
24547
+ this.livs[i].username.toUpperCase() &&
24536
24548
  this.livs[i].notifica == 0)
24537
24549
  if (this.livs[i].step > liv &&
24538
24550
  liv != 0 &&
@@ -24570,10 +24582,10 @@ class dati_aggiuntivi_v2 {
24570
24582
  if (data != null)
24571
24583
  if (data.result_msg == "OK") {
24572
24584
  let transazioni = data.result_data;
24573
- console.log('transazioni ', transazioni);
24585
+ console.log("transazioni ", transazioni);
24574
24586
  transazioni = this.wkf_rule_before(transazioni, this.clevel.step, this.clevel.context);
24575
24587
  if (transazioni.length == 0) {
24576
- this.alert('Nessuna transizione definita dallo step: ' + this.clevel.step, 1);
24588
+ this.alert("Nessuna transizione definita dallo step: " + this.clevel.step, 1);
24577
24589
  return;
24578
24590
  }
24579
24591
  if (transazioni.length == 1) {
@@ -24582,10 +24594,10 @@ class dati_aggiuntivi_v2 {
24582
24594
  else {
24583
24595
  let dialogRef = this.m_dialog.open(win_select_level_v2, {
24584
24596
  disableClose: true,
24585
- data: transazioni
24597
+ data: transazioni,
24586
24598
  });
24587
24599
  dialogRef.afterClosed().subscribe((result) => {
24588
- console.log('ris select level', result);
24600
+ console.log("ris select level", result);
24589
24601
  if (result == null) {
24590
24602
  this.update_status(true, null, null, null, 2);
24591
24603
  return;
@@ -24597,20 +24609,20 @@ class dati_aggiuntivi_v2 {
24597
24609
  });
24598
24610
  }
24599
24611
  calcolanextandjump2(o) {
24600
- console.log('calcolanextandjump2', o);
24612
+ console.log("calcolanextandjump2", o);
24601
24613
  this.transizione_info = o;
24602
24614
  let cliv = 0;
24603
24615
  let liv = 0;
24604
24616
  for (let i = 0; i < this.livs.length; i++)
24605
- if ((o.step_d == this.livs[i].step)) {
24617
+ if (o.step_d == this.livs[i].step) {
24606
24618
  this.nlevel = this.livs[i];
24607
24619
  cliv = this.livs[i].step;
24608
24620
  }
24609
24621
  liv = this.wkf_rule(cliv);
24610
24622
  let bfound = false;
24611
24623
  for (let i = 0; i < this.livs.length; i++)
24612
- if ((this.clevel.context == "" ||
24613
- this.clevel.context == this.livs[i].context))
24624
+ if (this.clevel.context == "" ||
24625
+ this.clevel.context == this.livs[i].context)
24614
24626
  if (this.livs[i].step == liv) {
24615
24627
  this.nlevel = this.livs[i];
24616
24628
  liv = this.livs[i].step;
@@ -24647,7 +24659,7 @@ class dati_aggiuntivi_v2 {
24647
24659
  }
24648
24660
  }
24649
24661
  calcola_destinari(o) {
24650
- console.log('this. this.transizione_info ', o);
24662
+ console.log("this. this.transizione_info ", o);
24651
24663
  if (this.nlevel == null) {
24652
24664
  this.alert("problema di configurazione passaggio avanti dal livello " +
24653
24665
  this.clevel.descri_livello +
@@ -24656,7 +24668,7 @@ class dati_aggiuntivi_v2 {
24656
24668
  }
24657
24669
  //let arrayNexl: Array<any> = new Array();
24658
24670
  let arrAutori = new Array();
24659
- if (this.clevel.context == '') {
24671
+ if (this.clevel.context == "") {
24660
24672
  for (let i = 0; i < this.livs.length; i++)
24661
24673
  if (this.livs[i].step == this.nlevel.step)
24662
24674
  arrAutori.push(this.livs[i]);
@@ -24664,14 +24676,14 @@ class dati_aggiuntivi_v2 {
24664
24676
  else {
24665
24677
  let b_canale = false;
24666
24678
  for (let i = 0; i < this.livs.length; i++)
24667
- if (this.livs[i].step == this.nlevel.step &&
24668
- this.livs[i].context != "")
24679
+ if (this.livs[i].step == this.nlevel.step && this.livs[i].context != "")
24669
24680
  b_canale = true;
24670
24681
  console.log("canale: " + this.clevel.context);
24671
24682
  for (let i = 0; i < this.livs.length; i++)
24672
24683
  if (this.livs[i].step == this.nlevel.step) {
24673
24684
  if (this.clevel.context == this.livs[i].context ||
24674
- (!b_canale || this.livs[i].context == '*SYSTEM')) {
24685
+ !b_canale ||
24686
+ this.livs[i].context == "*SYSTEM") {
24675
24687
  arrAutori.push(this.livs[i]);
24676
24688
  this.nlevel = this.livs[i];
24677
24689
  }
@@ -24687,7 +24699,7 @@ class dati_aggiuntivi_v2 {
24687
24699
  let att_autor = [];
24688
24700
  //console.log('this.m_obj.creatore ',this.m_obj.creatore);
24689
24701
  if (this.m_obj.creatore != null)
24690
- if (this.m_obj.creatore != '')
24702
+ if (this.m_obj.creatore != "")
24691
24703
  arrAutori.map((v) => {
24692
24704
  // console.log('v ',v);
24693
24705
  if (v.username == this.m_obj.creatore) {
@@ -24706,16 +24718,16 @@ class dati_aggiuntivi_v2 {
24706
24718
  let dialogRef = this.m_dialog.open(win_assegna_v2, {
24707
24719
  disableClose: true,
24708
24720
  data: {
24709
- title: this.tsr.instant('Conferma Assegnazione'),
24721
+ title: this.tsr.instant("Conferma Assegnazione"),
24710
24722
  lbl: o.description,
24711
- commento_default: '',
24723
+ commento_default: "",
24712
24724
  comm_notrequired: o.comments_opt,
24713
24725
  utenti: arrAutori,
24714
- user_sel: o.pre_assegna_req == 0 ? [] : att_autor
24726
+ user_sel: o.pre_assegna_req == 0 ? [] : att_autor,
24715
24727
  },
24716
24728
  });
24717
24729
  dialogRef.afterClosed().subscribe((result) => {
24718
- if (result == '' || result == null) {
24730
+ if (result == "" || result == null) {
24719
24731
  this.update_status(true, false, null, null, 4);
24720
24732
  if (this.respingi_enabled)
24721
24733
  this.update_status(true, true, null, null, 5);
@@ -24728,7 +24740,7 @@ class dati_aggiuntivi_v2 {
24728
24740
  let sp = "";
24729
24741
  arrAutori.map((v) => {
24730
24742
  if (v.nc == null)
24731
- v.nc = v.value.split('*').join('');
24743
+ v.nc = v.value.split("*").join("");
24732
24744
  });
24733
24745
  let arr_aut = [];
24734
24746
  let arr_aut_all = JSON.parse(JSON.stringify(arrAutori));
@@ -24738,7 +24750,7 @@ class dati_aggiuntivi_v2 {
24738
24750
  if (v.default_value == 1)
24739
24751
  b_f = true;
24740
24752
  });
24741
- console.log('b_f ', b_f);
24753
+ console.log("b_f ", b_f);
24742
24754
  if (b_f) {
24743
24755
  arrAutori.map((v) => {
24744
24756
  if (v.default_value != null)
@@ -24747,7 +24759,7 @@ class dati_aggiuntivi_v2 {
24747
24759
  });
24748
24760
  arrAutori = JSON.parse(JSON.stringify(arr_aut));
24749
24761
  }
24750
- console.log('arrAutori ', arrAutori); //qui6
24762
+ console.log("arrAutori ", arrAutori); //qui6
24751
24763
  for (let i = 0; i < arrAutori.length; i++)
24752
24764
  if (arrAutori[i].nc != null)
24753
24765
  if (sp.indexOf(arrAutori[i].nc) == -1) {
@@ -24755,16 +24767,16 @@ class dati_aggiuntivi_v2 {
24755
24767
  sp = sp + ";";
24756
24768
  sp = sp + arrAutori[i].nc;
24757
24769
  }
24758
- console.log(' sp ', sp);
24770
+ console.log(" sp ", sp);
24759
24771
  let dialogRef = this.m_dialog.open(win_conferma_v2, {
24760
24772
  disableClose: true,
24761
24773
  data: {
24762
- title: 'Conferma Avanzamento',
24774
+ title: "Conferma Avanzamento",
24763
24775
  lbl: o.description,
24764
24776
  icon: o.icon,
24765
24777
  color_font: o.color_font,
24766
24778
  color: o.color,
24767
- commento_default: '',
24779
+ commento_default: "",
24768
24780
  comm_notrequired: o.comments_opt,
24769
24781
  utenti: sp,
24770
24782
  },
@@ -24780,86 +24792,86 @@ class dati_aggiuntivi_v2 {
24780
24792
  });
24781
24793
  }
24782
24794
  /*
24783
- if (!this.transizione_info.manual_assignment) {
24784
- this.app_s.getState().wkf_doc_info.title = "Avanzamento";
24785
- let sp: string = "";
24786
- for (let i: number = 0; i < arrAutori.length; i++)
24787
- if (arrAutori[i].nc != null)
24788
- if (sp.indexOf(arrAutori[i].nc) == -1) {
24789
- if (sp != "") sp = sp + ";";
24790
- sp = sp + arrAutori[i].nc;
24791
- }
24792
- this.app_s.getState().wkf_doc_info.utenti = "";
24793
- if (this.nlevel.step < 900)
24794
- this.app_s.getState().wkf_doc_info.lbl =
24795
- "" + this.nlevel.description;
24796
- else
24797
- this.app_s.getState().wkf_doc_info.lbl =
24798
- "" + this.nlevel.description;
24799
- this.app_s.getState().wkf_doc_info.utenti = sp;
24800
- this.app_s.getState().wkf_doc_info.comm_notrequired = this.transizione_info.comments_opt;
24801
-
24802
- let dialogRef = this.m_dialog.open(win_conferma_v2, {
24803
- disableClose: true,
24804
- data: {
24805
- commento_default: this.app_s.temp_var4,
24806
- comm_notrequired: this.transizione_info.comments_opt,
24807
- },
24808
- });
24809
- this.app_s.temp_var4 = "";
24810
-
24811
- dialogRef.afterClosed().subscribe((result) => {
24812
- if (result == "abort") {
24813
- this.edit_b(true);
24814
- if (this.respingi_enabled) this.resp_b(true);
24815
- return;
24795
+ if (!this.transizione_info.manual_assignment) {
24796
+ this.app_s.getState().wkf_doc_info.title = "Avanzamento";
24797
+ let sp: string = "";
24798
+ for (let i: number = 0; i < arrAutori.length; i++)
24799
+ if (arrAutori[i].nc != null)
24800
+ if (sp.indexOf(arrAutori[i].nc) == -1) {
24801
+ if (sp != "") sp = sp + ";";
24802
+ sp = sp + arrAutori[i].nc;
24816
24803
  }
24817
- this.arrUsersSelected = arrAutori;
24818
- this.nota = result;
24819
- this.OKCOM();
24820
- });
24821
- } else {
24822
- this.app_s.getState().wkf_doc_info.title = "Assegnazione";
24823
-
24824
- this.app_s.getState().wkf_doc_info.comm_notrequired = this.transizione_info.comments_opt;
24825
-
24826
- this.app_s.getState().wkf_doc_info.arrAutori = arrAutori.sort(
24827
- (n1, n2) => {
24828
- if (n1.nc > n2.nc) {
24829
- return 1;
24830
- }
24831
-
24832
- if (n1.nc < n2.nc) {
24833
- return -1;
24834
- }
24835
-
24836
- return 0;
24804
+ this.app_s.getState().wkf_doc_info.utenti = "";
24805
+ if (this.nlevel.step < 900)
24806
+ this.app_s.getState().wkf_doc_info.lbl =
24807
+ "" + this.nlevel.description;
24808
+ else
24809
+ this.app_s.getState().wkf_doc_info.lbl =
24810
+ "" + this.nlevel.description;
24811
+ this.app_s.getState().wkf_doc_info.utenti = sp;
24812
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.transizione_info.comments_opt;
24813
+
24814
+ let dialogRef = this.m_dialog.open(win_conferma_v2, {
24815
+ disableClose: true,
24816
+ data: {
24817
+ commento_default: this.app_s.temp_var4,
24818
+ comm_notrequired: this.transizione_info.comments_opt,
24819
+ },
24820
+ });
24821
+ this.app_s.temp_var4 = "";
24822
+
24823
+ dialogRef.afterClosed().subscribe((result) => {
24824
+ if (result == "abort") {
24825
+ this.edit_b(true);
24826
+ if (this.respingi_enabled) this.resp_b(true);
24827
+ return;
24828
+ }
24829
+ this.arrUsersSelected = arrAutori;
24830
+ this.nota = result;
24831
+ this.OKCOM();
24832
+ });
24833
+ } else {
24834
+ this.app_s.getState().wkf_doc_info.title = "Assegnazione";
24835
+
24836
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.transizione_info.comments_opt;
24837
+
24838
+ this.app_s.getState().wkf_doc_info.arrAutori = arrAutori.sort(
24839
+ (n1, n2) => {
24840
+ if (n1.nc > n2.nc) {
24841
+ return 1;
24837
24842
  }
24838
- );
24839
- if (this.app_s.temp_var4 == null) this.app_s.temp_var4 = "";
24840
-
24841
- let dialogRef = this.m_dialog.open(win_assegna_v2, {
24842
- disableClose: true,
24843
- data: {
24844
- commento_default: this.app_s.temp_var4,
24845
- comm_notrequired: this.transizione_info.comments_opt,
24846
- },
24847
- });
24848
- this.app_s.temp_var4 = "";
24849
- dialogRef.afterClosed().subscribe((result) => {
24850
- if (result == "" || result == null) {
24851
- this.edit_b(true);
24852
- if (this.respingi_enabled) this.resp_b(true);
24853
- return;
24843
+
24844
+ if (n1.nc < n2.nc) {
24845
+ return -1;
24854
24846
  }
24855
- this.arrUsersSelected = result.arrsel;
24856
- this.nota = result.nota;
24857
- this.OKCOM();
24858
- });
24859
- }*/
24847
+
24848
+ return 0;
24849
+ }
24850
+ );
24851
+ if (this.app_s.temp_var4 == null) this.app_s.temp_var4 = "";
24852
+
24853
+ let dialogRef = this.m_dialog.open(win_assegna_v2, {
24854
+ disableClose: true,
24855
+ data: {
24856
+ commento_default: this.app_s.temp_var4,
24857
+ comm_notrequired: this.transizione_info.comments_opt,
24858
+ },
24859
+ });
24860
+ this.app_s.temp_var4 = "";
24861
+ dialogRef.afterClosed().subscribe((result) => {
24862
+ if (result == "" || result == null) {
24863
+ this.edit_b(true);
24864
+ if (this.respingi_enabled) this.resp_b(true);
24865
+ return;
24866
+ }
24867
+ this.arrUsersSelected = result.arrsel;
24868
+ this.nota = result.nota;
24869
+ this.OKCOM();
24870
+ });
24871
+ }*/
24860
24872
  }
24861
24873
  assegna_a() {
24862
- let arx = this.m_obj.assegnati_paralleli.split(',');
24874
+ let arx = this.m_obj.assegnati_paralleli.split(",");
24863
24875
  let arrAutori = [];
24864
24876
  for (let x = 0; x < arx.length; x++)
24865
24877
  for (let y = 0; y < this.livs.length; y++) {
@@ -24878,36 +24890,40 @@ class dati_aggiuntivi_v2 {
24878
24890
  }
24879
24891
  return 0;
24880
24892
  });
24881
- const dialogRef = this.m_dialog.open(win_assegna_a, { 'disableClose': true, width: '800px', data: {
24882
- title: this.tsr.instant('Conferma Assegnazione'),
24883
- lbl: '',
24884
- commento_default: '',
24885
- comm_notrequired: '',
24893
+ const dialogRef = this.m_dialog.open(win_assegna_a, {
24894
+ disableClose: true,
24895
+ width: "800px",
24896
+ data: {
24897
+ title: this.tsr.instant("Conferma Assegnazione"),
24898
+ lbl: "",
24899
+ commento_default: "",
24900
+ comm_notrequired: "",
24886
24901
  utenti: arrAutori,
24887
- prendi_in_carico: this.m_obj.autori != this.app_s.user
24888
- } });
24889
- dialogRef.afterClosed().subscribe(result => {
24902
+ prendi_in_carico: this.m_obj.autori != this.app_s.user,
24903
+ },
24904
+ });
24905
+ dialogRef.afterClosed().subscribe((result) => {
24890
24906
  if (result) {
24891
24907
  if (result.arrsel.length == 0) {
24892
24908
  this.alert("Impossibile riassegnare", 1);
24893
24909
  return;
24894
24910
  }
24895
24911
  // console.log(' result.arrsel ', result.arrsel);
24896
- let arr_new_arr = '';
24897
- this.m_obj.autori = '';
24898
- this.m_obj.pers_int = '';
24912
+ let arr_new_arr = "";
24913
+ this.m_obj.autori = "";
24914
+ this.m_obj.pers_int = "";
24899
24915
  let b_edit = false;
24900
24916
  result.arrsel.map((v) => {
24901
- if (arr_new_arr != '')
24902
- arr_new_arr += ',';
24917
+ if (arr_new_arr != "")
24918
+ arr_new_arr += ",";
24903
24919
  arr_new_arr += v.username;
24904
24920
  if (this.m_obj.autori.indexOf(v.username) == -1) {
24905
- console.log('VVV ', v);
24906
- if (this.m_obj.autori != '')
24907
- this.m_obj.autori = this.m_obj.autori + ',';
24921
+ console.log("VVV ", v);
24922
+ if (this.m_obj.autori != "")
24923
+ this.m_obj.autori = this.m_obj.autori + ",";
24908
24924
  this.m_obj.autori = this.m_obj.autori + v.username;
24909
- if (this.m_obj.pers_int != '')
24910
- this.m_obj.pers_int = this.m_obj.pers_int + ',';
24925
+ if (this.m_obj.pers_int != "")
24926
+ this.m_obj.pers_int = this.m_obj.pers_int + ",";
24911
24927
  this.m_obj.pers_int = this.m_obj.pers_int + v.nc;
24912
24928
  }
24913
24929
  if (v.username == this.app_info.user)
@@ -24915,12 +24931,12 @@ class dati_aggiuntivi_v2 {
24915
24931
  });
24916
24932
  this.in_carico = false;
24917
24933
  if (this.m_obj.autori != null)
24918
- if (this.m_obj.autori.split(',').length != 1)
24934
+ if (this.m_obj.autori.split(",").length != 1)
24919
24935
  this.in_carico = true;
24920
24936
  console.log(this.m_obj.autori, this.in_carico);
24921
24937
  this.b_assengna_a = false;
24922
24938
  if (this.m_obj.assegnati_paralleli != null)
24923
- if (this.m_obj.assegnati_paralleli.split(',').length != 1)
24939
+ if (this.m_obj.assegnati_paralleli.split(",").length != 1)
24924
24940
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
24925
24941
  this.b_assengna_a = true;
24926
24942
  // console.log('this.m_obj.autori ',this.m_obj.autori, this.in_carico, this.b_assengna_a);
@@ -24929,19 +24945,34 @@ class dati_aggiuntivi_v2 {
24929
24945
  this.update_status(b_edit, true, this.in_carico, this.b_assengna_a, 19);
24930
24946
  let p = new QParam();
24931
24947
  p.sql = "UPDATE_WKF_DOC_AUTHOR";
24932
- p.values = [this.id_applicativo, this.id_documento, this.m_obj.autori, this.m_obj.pers_int];
24948
+ p.values = [
24949
+ this.id_applicativo,
24950
+ this.id_documento,
24951
+ this.m_obj.autori,
24952
+ this.m_obj.pers_int,
24953
+ ];
24933
24954
  p.types = ["string", "string", "string", "string"];
24934
24955
  this.m_dataService.doQuery(p).subscribe((data) => {
24935
24956
  if (data != null)
24936
24957
  if (data.result_msg == "OK") {
24937
- this.m_dataService.doQuery({ sql: 'INSERT_WORKFLOW_LOG',
24938
- values: [this.id_applicativo, this.user_idp, 'DOCUMENTO RIASSEGNATO', 'DOCUMENTO RIASSEGNATO A: ' + arr_new_arr, this.id_documento],
24939
- types: ['string', 'string', 'string', 'string', 'string'], names: [] }).subscribe((data) => {
24940
- });
24941
- if (result.op == 'C') {
24958
+ this.m_dataService
24959
+ .doQuery({
24960
+ sql: "INSERT_WORKFLOW_LOG",
24961
+ values: [
24962
+ this.id_applicativo,
24963
+ this.user_idp,
24964
+ "DOCUMENTO RIASSEGNATO",
24965
+ "DOCUMENTO RIASSEGNATO A: " + arr_new_arr,
24966
+ this.id_documento,
24967
+ ],
24968
+ types: ["string", "string", "string", "string", "string"],
24969
+ names: [],
24970
+ })
24971
+ .subscribe((data) => { });
24972
+ if (result.op == "C") {
24942
24973
  this.update_status(true, this.respingi_enabled, this.in_carico, this.b_assengna_a, 18);
24943
24974
  }
24944
- if (result.op == 'A') {
24975
+ if (result.op == "A") {
24945
24976
  let oggetto_email = this.app_info.descrizione_breve +
24946
24977
  ", Ti è stato assegnato il documento numero: " +
24947
24978
  this.m_obj.codice +
@@ -24961,57 +24992,61 @@ class dati_aggiuntivi_v2 {
24961
24992
  if (this.app_info.body_riassegna != null)
24962
24993
  if (this.app_info.body_riassegna != "")
24963
24994
  body_email = this.app_info.body_riassegna;
24964
- oggetto_email = oggetto_email.split('{{TRANSITION_DESCRI}}').join(this.getLvlDescri(String(this.m_liv), this.m_statox));
24965
- body_email = body_email.split('{{TRANSITION_DESCRI}}').join(this.getLvlDescri(String(this.m_liv), this.m_statox));
24995
+ oggetto_email = oggetto_email
24996
+ .split("{{TRANSITION_DESCRI}}")
24997
+ .join(this.getLvlDescri(String(this.m_liv), this.m_statox));
24998
+ body_email = body_email
24999
+ .split("{{TRANSITION_DESCRI}}")
25000
+ .join(this.getLvlDescri(String(this.m_liv), this.m_statox));
24966
25001
  /* for (let prop in this.m_obj)
24967
- if (this.m_obj[prop] != null) {
24968
-
24969
- if (
24970
- Object.prototype.toString.call(this.m_obj[prop]) ===
24971
- "[object Date]"
24972
- ) {
24973
- oggetto_email = oggetto_email
24974
- .split("{{" + prop + "}}")
24975
- .join(this.uti_s.date2String(this.m_obj[prop]));
24976
- } else if (
24977
- ("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
24978
- )
24979
- oggetto_email = oggetto_email
24980
- .split("{{" + prop + "}}")
24981
- .join(this.m_obj[prop]);
24982
- else
24983
- oggetto_email = oggetto_email
24984
- .split("{{" + prop + "}}")
24985
- .join(
24986
- this.uti_s.date2String(
24987
- this.uti_s.string2date(this.m_obj[prop], 2)
24988
- )
24989
- );
24990
-
24991
-
24992
-
24993
- if (
24994
- Object.prototype.toString.call(this.m_obj[prop]) ===
24995
- "[object Date]"
24996
- ) {
24997
- body_email = body_email
24998
- .split("{{" + prop + "}}")
24999
- .join(this.uti_s.date2String(this.m_obj[prop]));
25000
- } else if (
25001
- ("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
25002
- )
25003
- body_email = body_email
25004
- .split("{{" + prop + "}}")
25005
- .join(this.m_obj[prop]);
25006
- else
25007
- body_email = body_email
25008
- .split("{{" + prop + "}}")
25009
- .join(
25010
- this.uti_s.date2String(
25011
- this.uti_s.string2date(this.m_obj[prop], 2)
25012
- )
25013
- );
25014
- }*/
25002
+ if (this.m_obj[prop] != null) {
25003
+
25004
+ if (
25005
+ Object.prototype.toString.call(this.m_obj[prop]) ===
25006
+ "[object Date]"
25007
+ ) {
25008
+ oggetto_email = oggetto_email
25009
+ .split("{{" + prop + "}}")
25010
+ .join(this.uti_s.date2String(this.m_obj[prop]));
25011
+ } else if (
25012
+ ("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
25013
+ )
25014
+ oggetto_email = oggetto_email
25015
+ .split("{{" + prop + "}}")
25016
+ .join(this.m_obj[prop]);
25017
+ else
25018
+ oggetto_email = oggetto_email
25019
+ .split("{{" + prop + "}}")
25020
+ .join(
25021
+ this.uti_s.date2String(
25022
+ this.uti_s.string2date(this.m_obj[prop], 2)
25023
+ )
25024
+ );
25025
+
25026
+
25027
+
25028
+ if (
25029
+ Object.prototype.toString.call(this.m_obj[prop]) ===
25030
+ "[object Date]"
25031
+ ) {
25032
+ body_email = body_email
25033
+ .split("{{" + prop + "}}")
25034
+ .join(this.uti_s.date2String(this.m_obj[prop]));
25035
+ } else if (
25036
+ ("" + this.m_obj[prop]).indexOf("T00:00:00") == -1
25037
+ )
25038
+ body_email = body_email
25039
+ .split("{{" + prop + "}}")
25040
+ .join(this.m_obj[prop]);
25041
+ else
25042
+ body_email = body_email
25043
+ .split("{{" + prop + "}}")
25044
+ .join(
25045
+ this.uti_s.date2String(
25046
+ this.uti_s.string2date(this.m_obj[prop], 2)
25047
+ )
25048
+ );
25049
+ }*/
25015
25050
  this.sendEMail_ex(this.user_idp, arr_new_arr, oggetto_email, body_email, this.id_applicativo, this.id_documento, this.app_info.COMPANY_SITE_ROOT +
25016
25051
  "#/" +
25017
25052
  this.app_info.modulo_swf +
@@ -25019,40 +25054,41 @@ class dati_aggiuntivi_v2 {
25019
25054
  this.id_applicativo +
25020
25055
  "/" +
25021
25056
  this.id_documento +
25022
- "/edit", this.m_obj.codice, "", true, "", false, '');
25057
+ "/edit", this.m_obj.codice, "", true, "", false, "");
25023
25058
  }
25024
25059
  /* else
25025
- this.sendEMail_ex(
25026
- this.user_idp,
25027
- arr_new_arr,
25028
- this.app_info.descrizione_breve +
25029
- ", Ti è stato assegnato il documento numero: " +
25030
- this.m_obj.codice +
25031
- " " +
25032
- this.getTitle() +
25033
- " - " +
25034
- this.getLvlDescri(String(this.m_liv), this.m_statox),
25035
- "<br>Attività:" +
25036
- this.getLvlDescri(String(this.m_liv), this.m_statox) +
25037
- "<br>" +
25038
- this.m_statox +
25039
- "<br>" +
25040
- this.getDescri(),
25041
- this.id_applicativo,
25042
- this.id_documento,
25043
- this.app_info.COMPANY_SITE_ROOT +
25044
- "#/" +
25045
- this.app_info.modulo_swf +
25046
- "/" +
25047
- this.id_applicativo +
25048
- "/" +
25049
- this.id_documento +
25050
- "/edit",
25051
- this.m_obj.codice,
25052
- "",
25053
- true,
25054
- "",false
25055
- );*/ }
25060
+ this.sendEMail_ex(
25061
+ this.user_idp,
25062
+ arr_new_arr,
25063
+ this.app_info.descrizione_breve +
25064
+ ", Ti è stato assegnato il documento numero: " +
25065
+ this.m_obj.codice +
25066
+ " " +
25067
+ this.getTitle() +
25068
+ " - " +
25069
+ this.getLvlDescri(String(this.m_liv), this.m_statox),
25070
+ "<br>Attività:" +
25071
+ this.getLvlDescri(String(this.m_liv), this.m_statox) +
25072
+ "<br>" +
25073
+ this.m_statox +
25074
+ "<br>" +
25075
+ this.getDescri(),
25076
+ this.id_applicativo,
25077
+ this.id_documento,
25078
+ this.app_info.COMPANY_SITE_ROOT +
25079
+ "#/" +
25080
+ this.app_info.modulo_swf +
25081
+ "/" +
25082
+ this.id_applicativo +
25083
+ "/" +
25084
+ this.id_documento +
25085
+ "/edit",
25086
+ this.m_obj.codice,
25087
+ "",
25088
+ true,
25089
+ "",false
25090
+ );*/
25091
+ }
25056
25092
  });
25057
25093
  }
25058
25094
  });
@@ -25062,11 +25098,12 @@ class dati_aggiuntivi_v2 {
25062
25098
  if (this.app_s.dev_mode != null)
25063
25099
  if (this.app_s.dev_mode == "1")
25064
25100
  dev_mode = true;
25065
- console.log('exec_wkf ', arrdest, assegnati_paralleli);
25101
+ console.log("exec_wkf ", arrdest, assegnati_paralleli);
25066
25102
  if (crea_ver == null)
25067
25103
  crea_ver = false;
25068
25104
  this.dialogRef_ww = this.m_dialog.open(fh_win_wait, {
25069
- disableClose: true, data: { label: this.tsr.instant('Attendere') }
25105
+ disableClose: true,
25106
+ data: { label: this.tsr.instant("Attendere") },
25070
25107
  });
25071
25108
  this.ttw = 0;
25072
25109
  if (assegnati_paralleli == null)
@@ -25074,15 +25111,17 @@ class dati_aggiuntivi_v2 {
25074
25111
  let fs = new FSInput();
25075
25112
  fs.command = "exec_app";
25076
25113
  if (!crea_ver)
25077
- fs.p1 = 'exec_wkf';
25114
+ fs.p1 = "exec_wkf";
25078
25115
  else
25079
- fs.p1 = 'create_ver';
25116
+ fs.p1 = "create_ver";
25080
25117
  let uiid_op = this.uti_s.newGuid();
25081
25118
  fs.p2 = uiid_op;
25082
25119
  let p = new QParam();
25083
25120
  p.sql = "INSERT_WKF_OP";
25084
25121
  if (!crea_ver)
25085
- p.values = [uiid_op, JSON.stringify({
25122
+ p.values = [
25123
+ uiid_op,
25124
+ JSON.stringify({
25086
25125
  transizione: trans,
25087
25126
  destinatari: arrdest,
25088
25127
  commento: comm,
@@ -25092,20 +25131,29 @@ class dati_aggiuntivi_v2 {
25092
25131
  username: this.app_s.user,
25093
25132
  title: this.getTitle().split('"').join("_doppiap_"),
25094
25133
  descri: this.getDescri().split('"').join("_doppiap_"),
25095
- dev_mode: dev_mode ? 1 : 0
25096
- })];
25134
+ dev_mode: dev_mode ? 1 : 0,
25135
+ }),
25136
+ ];
25097
25137
  else
25098
- p.values = [uiid_op, JSON.stringify({
25099
- transizione: { uiid_wkf: trans.uiid_wkf, uiid: trans.uiid, step_d: trans.step_d, step_o: trans.step_o },
25138
+ p.values = [
25139
+ uiid_op,
25140
+ JSON.stringify({
25141
+ transizione: {
25142
+ uiid_wkf: trans.uiid_wkf,
25143
+ uiid: trans.uiid,
25144
+ step_d: trans.step_d,
25145
+ step_o: trans.step_o,
25146
+ },
25100
25147
  commento: comm,
25101
25148
  id_applicazione: this.id_applicativo,
25102
25149
  id_documento: this.id_documento,
25103
- username: this.app_s.user
25104
- })];
25150
+ username: this.app_s.user,
25151
+ }),
25152
+ ];
25105
25153
  p.types = ["string", "string"];
25106
25154
  this.m_dataService.doQuery(p).subscribe((data) => {
25107
25155
  this.reset_updw();
25108
- this.m_fileservice.doQuery(fs).subscribe(data => {
25156
+ this.m_fileservice.doQuery(fs).subscribe((data) => {
25109
25157
  console.log(data);
25110
25158
  if (trans.step_d >= 900)
25111
25159
  this.doEnd(trans.step_d);
@@ -25123,31 +25171,34 @@ class dati_aggiuntivi_v2 {
25123
25171
  if (this.dialogRef_ww != null)
25124
25172
  if (this.dialogRef_ww.componentInstance != null)
25125
25173
  this.dialogRef_ww.componentInstance.update_progess(this.ttw);
25126
- setTimeout(() => { this.reset_updw(); }, 800);
25174
+ setTimeout(() => {
25175
+ this.reset_updw();
25176
+ }, 800);
25127
25177
  }
25128
25178
  back(edit_button) {
25129
25179
  let arrd = this.uti_s.get_diff_doc(this.old_doc, this.getfieldvalues());
25130
25180
  console.log(arrd);
25131
25181
  let flt = [];
25132
25182
  for (let i = 0; i < arrd.length; i++) {
25133
- if (arrd[i].val == '-1')
25134
- arrd[i].val = '';
25135
- if (arrd[i].oldVal == '-1')
25136
- arrd[i].oldVal = '';
25137
- if (arrd[i].val == ' ')
25138
- arrd[i].val = '';
25139
- if (arrd[i].oldVal == ' ')
25140
- arrd[i].oldVal = '';
25183
+ if (arrd[i].val == "-1")
25184
+ arrd[i].val = "";
25185
+ if (arrd[i].oldVal == "-1")
25186
+ arrd[i].oldVal = "";
25187
+ if (arrd[i].val == " ")
25188
+ arrd[i].val = "";
25189
+ if (arrd[i].oldVal == " ")
25190
+ arrd[i].oldVal = "";
25141
25191
  if (arrd[i].val instanceof Number && arrd[i].oldVal instanceof String) {
25142
- arrd[i].oldVal = Number(arrd[i].oldVal.split(',').join('.'));
25192
+ arrd[i].oldVal = Number(arrd[i].oldVal.split(",").join("."));
25143
25193
  }
25144
25194
  }
25145
25195
  for (let i = 0; i < arrd.length; i++)
25146
- if (!(arrd[i].op == 'update' && (arrd[i].val == 'date' || arrd[i].val == 'string')))
25147
- if (!(arrd[i].op == 'add' && arrd[i].val == null && arrd[i].oldVal == ''))
25196
+ if (!(arrd[i].op == "update" &&
25197
+ (arrd[i].val == "date" || arrd[i].val == "string")))
25198
+ if (!(arrd[i].op == "add" && arrd[i].val == null && arrd[i].oldVal == ""))
25148
25199
  if (!(arrd[i].val == arrd[i].oldVal))
25149
- if (!(arrd[i].val == '' && arrd[i].oldVal == '0'))
25150
- if (!(arrd[i].val == '0' && arrd[i].oldVal == null))
25200
+ if (!(arrd[i].val == "" && arrd[i].oldVal == "0"))
25201
+ if (!(arrd[i].val == "0" && arrd[i].oldVal == null))
25151
25202
  if (!(arrd[i].val instanceof Date))
25152
25203
  flt.push(arrd[i]);
25153
25204
  for (let i = 0; i < arrd.length; i++)
@@ -25177,7 +25228,7 @@ class dati_aggiuntivi_v2 {
25177
25228
  if (this.app_s.dev_mode == "1")
25178
25229
  dev_mode = true;
25179
25230
  let obj_r = {
25180
- destinatari: to.split(','),
25231
+ destinatari: to.split(","),
25181
25232
  commento: commento,
25182
25233
  id_applicazione: idapp,
25183
25234
  id_documento: iddoc,
@@ -25188,13 +25239,13 @@ class dati_aggiuntivi_v2 {
25188
25239
  };
25189
25240
  let fs = new FSInput();
25190
25241
  fs.command = "exec_app";
25191
- fs.p1 = 'send_email';
25242
+ fs.p1 = "send_email";
25192
25243
  let uiid_op = this.uti_s.newGuid();
25193
25244
  fs.p2 = uiid_op;
25194
25245
  let p = new QParam();
25195
25246
  p.sql = "INSERT_WKF_OP";
25196
25247
  p.values = [uiid_op, JSON.stringify(obj_r)];
25197
- p.types = ['string', 'string'];
25248
+ p.types = ["string", "string"];
25198
25249
  this.m_dataService.doQuery(p).subscribe((data) => {
25199
25250
  this.m_fileservice.doQuery(fs).subscribe((data) => {
25200
25251
  if (b_exit)
@@ -25263,13 +25314,13 @@ class dati_aggiuntivi_v2 {
25263
25314
  this.salva();
25264
25315
  }
25265
25316
  open_wkf(em, inser_c = false, edit_c = true) {
25266
- console.log('inser_c = false,edit_c=true ', inser_c, edit_c);
25317
+ console.log("inser_c = false,edit_c=true ", inser_c, edit_c);
25267
25318
  let s_h = this.app_s.getState().body_h - 40 + "px";
25268
25319
  let dialogRef = this.m_dialog.open(win_log_v2, {
25269
25320
  disableClose: true,
25270
25321
  width: "95%",
25271
25322
  height: s_h,
25272
- data: { edit_c: edit_c }
25323
+ data: { edit_c: edit_c },
25273
25324
  });
25274
25325
  setTimeout(() => {
25275
25326
  dialogRef.componentInstance.subject =
@@ -25292,15 +25343,17 @@ class dati_aggiuntivi_v2 {
25292
25343
  this.id_documento +
25293
25344
  "/edit";
25294
25345
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
25295
- dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
25296
- dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
25346
+ dialogRef.componentInstance.notifica_commenti =
25347
+ this.app_info.notifica_commenti;
25348
+ dialogRef.componentInstance.notifica_commenti_obbl =
25349
+ this.app_info.notifica_commenti_obbl;
25297
25350
  dialogRef.componentInstance.commenti_insert = inser_c;
25298
25351
  dialogRef.componentInstance.init_v();
25299
25352
  });
25300
25353
  dialogRef.afterClosed().subscribe((result) => {
25301
25354
  if (result == null)
25302
- if (result == 'i') {
25303
- console.log('inserito commento');
25355
+ if (result == "i") {
25356
+ console.log("inserito commento");
25304
25357
  em.emit();
25305
25358
  }
25306
25359
  this.r_count();
@@ -25332,24 +25385,31 @@ class dati_aggiuntivi_v2 {
25332
25385
  this.id_documento +
25333
25386
  "/edit";
25334
25387
  dialogRef.componentInstance.codice_doc = this.m_obj.codice;
25335
- dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
25336
- dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
25388
+ dialogRef.componentInstance.notifica_commenti =
25389
+ this.app_info.notifica_commenti;
25390
+ dialogRef.componentInstance.notifica_commenti_obbl =
25391
+ this.app_info.notifica_commenti_obbl;
25337
25392
  dialogRef.componentInstance.init_v();
25338
25393
  });
25339
25394
  dialogRef.afterClosed().subscribe((result) => {
25340
25395
  if (result != null)
25341
- if (result == 'i') {
25396
+ if (result == "i") {
25342
25397
  em.emit();
25343
- console.log('emetto insert');
25398
+ console.log("emetto insert");
25344
25399
  }
25345
25400
  this.r_count();
25346
25401
  });
25347
25402
  }
25348
25403
  open_upload(sovra_path = "", admin_role = "[ZZZ_DIS_CC]") {
25349
- console.log('open_upload ', sovra_path, admin_role);
25404
+ console.log("open_upload ", sovra_path, admin_role);
25350
25405
  let dialogRef = this.m_dialog.open(win_uploads_v2, {
25351
25406
  disableClose: true,
25352
- width: "90%", data: { admin_role: admin_role, App: this.id_applicativo, K: this.id_documento }
25407
+ width: "90%",
25408
+ data: {
25409
+ admin_role: admin_role,
25410
+ App: this.id_applicativo,
25411
+ K: this.id_documento,
25412
+ },
25353
25413
  });
25354
25414
  setTimeout(() => {
25355
25415
  dialogRef.componentInstance.sovrascrivi_path = sovra_path;
@@ -25372,10 +25432,20 @@ class dati_aggiuntivi_v2 {
25372
25432
  this.m_wkf.doQuery(p).subscribe((data) => {
25373
25433
  if (data != null)
25374
25434
  if (data.result_msg == "OK") {
25375
- this.m_dataService.doQuery({ sql: 'INSERT_WORKFLOW_LOG',
25376
- values: [this.id_applicativo, this.user_idp, 'INSERIMENTO', 'INSERIMENTO DOCUMENTO', this.id_documento],
25377
- types: ['string', 'string', 'string', 'string', 'string'], names: [] }).subscribe((data) => {
25378
- });
25435
+ this.m_dataService
25436
+ .doQuery({
25437
+ sql: "INSERT_WORKFLOW_LOG",
25438
+ values: [
25439
+ this.id_applicativo,
25440
+ this.user_idp,
25441
+ "INSERIMENTO",
25442
+ "INSERIMENTO DOCUMENTO",
25443
+ this.id_documento,
25444
+ ],
25445
+ types: ["string", "string", "string", "string", "string"],
25446
+ names: [],
25447
+ })
25448
+ .subscribe((data) => { });
25379
25449
  this.save_agg();
25380
25450
  }
25381
25451
  });
@@ -25421,9 +25491,9 @@ class dati_aggiuntivi_v2 {
25421
25491
  arr[i].values = "dbnull";
25422
25492
  }
25423
25493
  if (arr[i].types == "datetime") {
25424
- console.log('typeof ', typeof (arr[i].values), arr[i].values);
25494
+ console.log("typeof ", typeof arr[i].values, arr[i].values);
25425
25495
  arr[i].values = this.uti_s.sql_date_time(arr[i].values);
25426
- console.log('arr[i].values ', arr[i].values);
25496
+ console.log("arr[i].values ", arr[i].values);
25427
25497
  if (arr[i].values.split("0").join("") == "NaN-NaN-NaN NaN:NaN")
25428
25498
  arr[i].values = "dbnull";
25429
25499
  }
@@ -25477,7 +25547,9 @@ class dati_aggiuntivi_v2 {
25477
25547
  }
25478
25548
  load_document() {
25479
25549
  if (this.app_info == null) {
25480
- setTimeout(() => { this.load_document(); }, 200);
25550
+ setTimeout(() => {
25551
+ this.load_document();
25552
+ }, 200);
25481
25553
  return;
25482
25554
  }
25483
25555
  let p = new QParam();
@@ -25502,65 +25574,88 @@ class dati_aggiuntivi_v2 {
25502
25574
  }, (err) => { });
25503
25575
  }
25504
25576
  ok_load_document(o) {
25505
- this.m_obj = (JSON.parse(JSON.stringify(o)));
25577
+ this.m_obj = JSON.parse(JSON.stringify(o));
25506
25578
  if (this.m_obj.assegnati_paralleli != null)
25507
- if (this.m_obj.assegnati_paralleli.split(',').length != 1)
25579
+ if (this.m_obj.assegnati_paralleli.split(",").length != 1)
25508
25580
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
25509
25581
  this.b_assengna_a = true;
25510
25582
  this.in_carico = false;
25511
25583
  if (this.b_assengna_a) {
25512
25584
  if (this.m_obj.autori == null)
25513
25585
  this.in_carico = true;
25514
- else if (this.m_obj.autori == '')
25586
+ else if (this.m_obj.autori == "")
25515
25587
  this.in_carico = true;
25516
- else if (this.m_obj.autori.split(',').length != 1)
25588
+ else if (this.m_obj.autori.split(",").length != 1)
25517
25589
  this.in_carico = true;
25518
25590
  }
25519
25591
  this.update_status(false, null, this.b_assengna_a && this.in_carico, this.b_assengna_a, 14);
25520
25592
  this.save_to_app_state();
25521
25593
  let p = new QParam();
25522
25594
  p.sql = "SELECT_WLIVELLIV2_2";
25523
- p.types = ['string'];
25595
+ p.types = ["string"];
25524
25596
  p.values = [this.id_applicativo];
25525
- this.m_dataService.doQuery(p).subscribe(data => {
25597
+ this.m_dataService.doQuery(p).subscribe((data) => {
25526
25598
  if (data != null)
25527
25599
  if (data.result_msg == "OK") {
25528
- console.log('end SELECT_WLIVELLIV2_2', new Date());
25600
+ console.log("end SELECT_WLIVELLIV2_2", new Date());
25529
25601
  if (this.override_livs != null)
25530
25602
  if (data.result_data != null)
25531
25603
  for (var y = 0; y < this.override_livs.length; y++)
25532
25604
  for (var i = 0; i < data.result_data.length; i++)
25533
25605
  if (data.result_data[i].id_Applicativo != null)
25534
- if (data.result_data[i].id_Applicativo == this.override_livs[y].id_Applicativo) {
25606
+ if (data.result_data[i].id_Applicativo ==
25607
+ this.override_livs[y].id_Applicativo) {
25535
25608
  data.result_data[i].idp = this.override_livs[y].idp;
25536
- data.result_data[i].context = this.override_livs[y].context;
25609
+ data.result_data[i].context =
25610
+ this.override_livs[y].context;
25537
25611
  data.result_data[i].nc = this.override_livs[y].nc;
25538
25612
  }
25539
- data.result_data.map((v) => { if (v.username == null)
25540
- v.username = 'SYSTEM'; });
25613
+ data.result_data.map((v) => {
25614
+ if (v.username == null)
25615
+ v.username = "SYSTEM";
25616
+ });
25541
25617
  let p = new QParam();
25542
25618
  p.sql = "SELECT_WKF_VARIABILES_V2";
25543
- p.types = ['string'];
25619
+ p.types = ["string"];
25544
25620
  p.values = [this.id_documento];
25545
- this.m_dataService.doQuery(p).subscribe(datav => {
25621
+ this.m_dataService.doQuery(p).subscribe((datav) => {
25546
25622
  if (datav != null)
25547
25623
  if (datav.result_msg == "OK") {
25624
+ datav.result_data.push({
25625
+ k: "*CURRENT_USER",
25626
+ v: this.app_s.user,
25627
+ nc: this.app_s.user_surname + " " + this.app_s.user_name,
25628
+ });
25629
+ if (this.m_obj.stato == null || this.m_obj.stato <= 10)
25630
+ datav.result_data.push({
25631
+ k: "*ALLUSERS",
25632
+ v: this.app_s.user,
25633
+ nc: this.app_s.user_surname + " " + this.app_s.user_name,
25634
+ });
25635
+ else
25636
+ datav.result_data.map((v1) => {
25637
+ if ("REQUESTER" == v1.k.split("CREATOR").join("REQUESTER"))
25638
+ datav.result_data.push({
25639
+ k: "*ALLUSERS",
25640
+ v: v1.v,
25641
+ nc: v1.nc,
25642
+ });
25643
+ });
25644
+ console.log("Var speciali ", datav.result_data);
25548
25645
  data.result_data.map((v) => {
25549
- if (v.value.indexOf('*') == 0) {
25646
+ if (v.value.indexOf("*") == 0) {
25550
25647
  v.context = this.m_obj.canale;
25551
- v.description = '';
25552
- v.name = '';
25553
- if (this.m_obj.stato == null || this.m_obj.stato <= 10)
25554
- datav.result_data.push({ k: '*ALLUSERS', v: this.app_s.user, nc: this.app_s.user_surname + ' ' + this.app_s.user_name });
25555
- datav.result_data.push({
25556
- k: '*CURRENT_USER',
25557
- v: this.app_s.user,
25558
- nc: this.app_s.user_surname + ' ' + this.app_s.user_name
25559
- });
25648
+ v.description = "";
25649
+ v.name = "";
25560
25650
  datav.result_data.map((v1) => {
25561
- if (v.value.split('CREATOR').join('REQUESTER') == v1.k.split('CREATOR').join('REQUESTER')) {
25651
+ if (v.value.split("CREATOR").join("REQUESTER") ==
25652
+ v1.k.split("CREATOR").join("REQUESTER")) {
25562
25653
  if (this.m_obj.stato != null || this.m_obj.stato > 10)
25563
- datav.result_data.push({ k: '*ALLUSERS', v: v1.v, nc: v1.nc });
25654
+ datav.result_data.push({
25655
+ k: "*ALLUSERS",
25656
+ v: v1.v,
25657
+ nc: v1.nc,
25658
+ });
25564
25659
  v.username = v1.v;
25565
25660
  v.nc = v1.nc;
25566
25661
  v.ncx = v1.nc;
@@ -25631,7 +25726,7 @@ class dati_aggiuntivi_v2 {
25631
25726
  over_canale_iniz() {
25632
25727
  if (this.forza_canale == null)
25633
25728
  return;
25634
- if (this.forza_canale == '')
25729
+ if (this.forza_canale == "")
25635
25730
  return;
25636
25731
  let min_liv = 0;
25637
25732
  for (let i = 0; i < this.livs.length; i++)
@@ -25646,20 +25741,20 @@ class dati_aggiuntivi_v2 {
25646
25741
  this.c_canale = this.forza_canale;
25647
25742
  }
25648
25743
  ck_canale_multiplo() {
25649
- console.log('ck_canale_multiplo ', this.livs);
25744
+ console.log("ck_canale_multiplo ", this.livs);
25650
25745
  let min_liv = 0;
25651
25746
  for (let i = 0; i < this.livs.length; i++)
25652
25747
  if (this.livs[i].step < min_liv || min_liv == 0) {
25653
25748
  this.clevel = this.livs[i];
25654
25749
  min_liv = this.livs[i].step;
25655
25750
  }
25656
- console.log('min_liv ', min_liv);
25751
+ console.log("min_liv ", min_liv);
25657
25752
  let sv = [];
25658
25753
  for (let i = 0; i < this.livs.length; i++)
25659
25754
  if (this.livs[i].step == min_liv &&
25660
25755
  this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() ==
25661
25756
  this.livs[i].username.toUpperCase()) {
25662
- console.log(' this.livs[i].step ', this.livs[i].step, this.livs[i].username.toUpperCase(), this.livs[i].context);
25757
+ console.log(" this.livs[i].step ", this.livs[i].step, this.livs[i].username.toUpperCase(), this.livs[i].context);
25663
25758
  let b_found = false;
25664
25759
  for (let y = 0; y < this.livs.length; y++)
25665
25760
  if (this.livs[y].context == this.livs[i].context) {
@@ -25692,7 +25787,7 @@ class dati_aggiuntivi_v2 {
25692
25787
  dialogRef.afterClosed().subscribe((result) => {
25693
25788
  if (result == null)
25694
25789
  return;
25695
- if (result == '')
25790
+ if (result == "")
25696
25791
  return;
25697
25792
  this.c_canale = result;
25698
25793
  this.create_new_document();
@@ -25706,7 +25801,7 @@ class dati_aggiuntivi_v2 {
25706
25801
  }
25707
25802
  }
25708
25803
  open_info() {
25709
- this.s_uto = '';
25804
+ this.s_uto = "";
25710
25805
  let aut = this.m_obj.autori.split(",");
25711
25806
  for (let i = 0; i < aut.length; i++)
25712
25807
  for (let y = 0; y < this.livs.length; y++)
@@ -25718,9 +25813,10 @@ class dati_aggiuntivi_v2 {
25718
25813
  }
25719
25814
  this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
25720
25815
  this.m_obj.s_uto = this.s_uto;
25721
- console.log('this.m_obj ', this.m_obj);
25816
+ console.log("this.m_obj ", this.m_obj);
25722
25817
  let dialogRef = this.m_dialog.open(win_info_doc_v2, {
25723
- disableClose: true, data: this.m_obj
25818
+ disableClose: true,
25819
+ data: this.m_obj,
25724
25820
  });
25725
25821
  setTimeout(() => {
25726
25822
  dialogRef.componentInstance.hide_richiedente = this.hide_richiedente;
@@ -25859,27 +25955,33 @@ class dati_aggiuntivi_v2 {
25859
25955
  if (data != null)
25860
25956
  if (data.result_msg == "OK") {
25861
25957
  if (b_send_email && s_notif != "") {
25862
- oggetto_email = this.app_info.descrizione_breve +
25863
- ", Ti è stato assegnato il documento numero: " +
25864
- this.m_obj.codice +
25865
- " " +
25866
- this.getTitle() +
25867
- " - " +
25868
- this.getLvlDescri(String(this.m_liv), this.m_statox);
25869
- body_email = "<br>Attività:" +
25870
- this.getLvlDescri(String(this.m_liv), this.m_statox) +
25871
- "<br>" +
25872
- this.m_statox +
25873
- "<br>" +
25874
- this.getDescri();
25958
+ oggetto_email =
25959
+ this.app_info.descrizione_breve +
25960
+ ", Ti è stato assegnato il documento numero: " +
25961
+ this.m_obj.codice +
25962
+ " " +
25963
+ this.getTitle() +
25964
+ " - " +
25965
+ this.getLvlDescri(String(this.m_liv), this.m_statox);
25966
+ body_email =
25967
+ "<br>Attività:" +
25968
+ this.getLvlDescri(String(this.m_liv), this.m_statox) +
25969
+ "<br>" +
25970
+ this.m_statox +
25971
+ "<br>" +
25972
+ this.getDescri();
25875
25973
  if (this.app_info.subject_riassegna != null)
25876
25974
  if (this.app_info.subject_riassegna != "")
25877
25975
  oggetto_email = this.app_info.subject_riassegna;
25878
25976
  if (this.app_info.body_riassegna != null)
25879
25977
  if (this.app_info.body_riassegna != "")
25880
25978
  body_email = this.app_info.body_riassegna;
25881
- oggetto_email = oggetto_email.split('{{TRANSITION_DESCRI}}').join(this.getLvlDescri(String(this.m_liv), this.m_statox));
25882
- body_email = body_email.split('{{TRANSITION_DESCRI}}').join(this.getLvlDescri(String(this.m_liv), this.m_statox));
25979
+ oggetto_email = oggetto_email
25980
+ .split("{{TRANSITION_DESCRI}}")
25981
+ .join(this.getLvlDescri(String(this.m_liv), this.m_statox));
25982
+ body_email = body_email
25983
+ .split("{{TRANSITION_DESCRI}}")
25984
+ .join(this.getLvlDescri(String(this.m_liv), this.m_statox));
25883
25985
  this.sendEMail_ex(this.user_idp, s_notif, oggetto_email, body_email, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
25884
25986
  "#/" +
25885
25987
  this.app_info.modulo_swf +
@@ -25887,7 +25989,7 @@ class dati_aggiuntivi_v2 {
25887
25989
  this.id_applicativo +
25888
25990
  "/" +
25889
25991
  this.id_documento +
25890
- "/edit", this.m_obj.codice, "", true, "", true, '');
25992
+ "/edit", this.m_obj.codice, "", true, "", true, "");
25891
25993
  }
25892
25994
  else
25893
25995
  this.goto_edit_doc();
@@ -25956,8 +26058,12 @@ class dati_aggiuntivi_v2 {
25956
26058
  this.btnApprova_label = this.tsr.instant("APPROVA");
25957
26059
  this.btnAssegna_label = this.tsr.instant("Assegna");
25958
26060
  this.btnRespingi_label = this.tsr.instant("RESPINGI");
25959
- this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) + " - " + this.tsr.instant("Nuova Richiesta"));
25960
- this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) + " - " + this.tsr.instant("Nuova Richiesta"));
26061
+ this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
26062
+ " - " +
26063
+ this.tsr.instant("Nuova Richiesta"));
26064
+ this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
26065
+ " - " +
26066
+ this.tsr.instant("Nuova Richiesta"));
25961
26067
  this.reset_counters_int(0, 0);
25962
26068
  /*
25963
26069
  dati_aggiuntivi.id_doc=id_documento;
@@ -25992,7 +26098,7 @@ class dati_aggiuntivi_v2 {
25992
26098
  //console.log('this.user_idp.toUpperCase() ',this.user_idp.toUpperCase());
25993
26099
  //console.log('this.livs[i].username.toUpperCase() ',this.livs[i].username.toUpperCase() );
25994
26100
  if (this.livs[i].username == null)
25995
- this.livs[i].username = 'ZZZ';
26101
+ this.livs[i].username = "ZZZ";
25996
26102
  if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase() ||
25997
26103
  this.livs[i].context == "*ALLUSERS") {
25998
26104
  // if (this.livs[i].abilita_indietro == 1) this.respingi_enabled = true;
@@ -26004,7 +26110,10 @@ class dati_aggiuntivi_v2 {
26004
26110
  }
26005
26111
  after_save() { }
26006
26112
  before_save() { }
26007
- can_save() { console.log('can_save interno'); return true; }
26113
+ can_save() {
26114
+ console.log("can_save interno");
26115
+ return true;
26116
+ }
26008
26117
  edit_doc() {
26009
26118
  this.load_document();
26010
26119
  }
@@ -26020,13 +26129,13 @@ class dati_aggiuntivi_v2 {
26020
26129
  if (this.m_obj.autori == null)
26021
26130
  this.m_obj.autori = "";
26022
26131
  if (("," + this.m_obj.autori.toLowerCase() + ",").indexOf("," + this.user_idp.toLowerCase() + ",") != -1) {
26023
- console.log('this.m_obj.autori ', this.m_obj.autori);
26132
+ console.log("this.m_obj.autori ", this.m_obj.autori);
26024
26133
  if (this.m_obj.autori != null)
26025
- if (this.m_obj.autori.split(',').length != 1)
26134
+ if (this.m_obj.autori.split(",").length != 1)
26026
26135
  this.in_carico = true;
26027
26136
  // if(!this.in_carico){
26028
26137
  if (this.m_obj.assegnati_paralleli != null)
26029
- if (this.m_obj.assegnati_paralleli.split(',').length != 1)
26138
+ if (this.m_obj.assegnati_paralleli.split(",").length != 1)
26030
26139
  if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
26031
26140
  this.b_assengna_a = true;
26032
26141
  // }
@@ -26035,7 +26144,7 @@ class dati_aggiuntivi_v2 {
26035
26144
  this.update_status(null, true, this.in_carico, this.b_assengna_a, 17);
26036
26145
  }
26037
26146
  this.r_count();
26038
- this.s_uto = '';
26147
+ this.s_uto = "";
26039
26148
  let aut = this.m_obj.autori.split(",");
26040
26149
  for (let i = 0; i < aut.length; i++)
26041
26150
  for (let y = 0; y < this.livs.length; y++)
@@ -26058,7 +26167,9 @@ class dati_aggiuntivi_v2 {
26058
26167
  else
26059
26168
  this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
26060
26169
  " " +
26061
- this.m_obj.codice + "/" + this.m_obj.v +
26170
+ this.m_obj.codice +
26171
+ "/" +
26172
+ this.m_obj.v +
26062
26173
  " - " +
26063
26174
  this.tsr.instant(this.m_obj.stat_stato));
26064
26175
  this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
@@ -26066,35 +26177,39 @@ class dati_aggiuntivi_v2 {
26066
26177
  this.m_obj.codice +
26067
26178
  " - " +
26068
26179
  this.tsr.instant(this.m_obj.stat_stato));
26069
- this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
26180
+ this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
26070
26181
  //+' ('+s_uto+')');
26071
26182
  }
26072
26183
  reset_form_v(t) {
26073
- console.log('reset_form_v ', this.loaded);
26184
+ console.log("reset_form_v ", this.loaded);
26074
26185
  if (!this.loaded) {
26075
- setTimeout(() => { this.reset_form_v(t); return; }, 500);
26186
+ setTimeout(() => {
26187
+ this.reset_form_v(t);
26188
+ return;
26189
+ }, 500);
26076
26190
  return;
26077
26191
  }
26078
26192
  this.reset_form(t);
26079
- this.old_doc = (JSON.parse(JSON.stringify(this.getfieldvalues())));
26193
+ this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
26080
26194
  }
26081
26195
  revisione() {
26082
26196
  let dialogRef = this.m_dialog.open(fh_win_confirm, {
26083
- disableClose: true, data: {
26197
+ disableClose: true,
26198
+ data: {
26084
26199
  title_dialog: this.tsr.instant("Conferma Operazione"),
26085
- msg_dialog: this.tsr.instant("Confermi di voler revisionare il documento?")
26086
- }
26200
+ msg_dialog: this.tsr.instant("Confermi di voler revisionare il documento?"),
26201
+ },
26087
26202
  });
26088
26203
  dialogRef.afterClosed().subscribe((result) => {
26089
26204
  if (result) {
26090
26205
  let p = new QParam();
26091
26206
  p.sql = "UPDATE_DOCUMENTO_REV";
26092
26207
  p.values = [this.id_applicativo, this.id_documento];
26093
- p.types = ['string', 'string'];
26208
+ p.types = ["string", "string"];
26094
26209
  this.m_dataService.doQuery(p).subscribe((data) => {
26095
26210
  if (data != null)
26096
26211
  if (data.result_msg == "OK") {
26097
- this.alert(this.tsr.instant('Revisione generata'), 0);
26212
+ this.alert(this.tsr.instant("Revisione generata"), 0);
26098
26213
  window.location.reload();
26099
26214
  }
26100
26215
  });
@@ -26105,20 +26220,20 @@ class dati_aggiuntivi_v2 {
26105
26220
  init_engine() {
26106
26221
  if (this.app_s.user != null)
26107
26222
  this.user_idp = this.app_s.user;
26108
- console.log('this.user_idp == null || this.m_route.params==null ', this.user_idp, this.m_route.params, new Date());
26223
+ console.log("this.user_idp == null || this.m_route.params==null ", this.user_idp, this.m_route.params, new Date());
26109
26224
  if (this.user_idp == null || this.m_route.params == null) {
26110
26225
  setTimeout(() => {
26111
26226
  this.init_engine();
26112
26227
  }, 500);
26113
26228
  return;
26114
26229
  }
26115
- console.log('init_engine', new Date());
26230
+ console.log("init_engine", new Date());
26116
26231
  this.init_user_i();
26117
26232
  this.m_route.params.subscribe((params) => {
26118
26233
  var id = params["op"];
26119
26234
  this.id_applicativo = params["idapp"];
26120
26235
  this.id_documento = params["id_doc"];
26121
- console.log('qui!');
26236
+ console.log("qui!");
26122
26237
  this.b_edit = id != "new" ? true : false;
26123
26238
  this.init_app_wkf();
26124
26239
  if (!this.b_edit)
@@ -26134,7 +26249,7 @@ class dati_aggiuntivi_v2 {
26134
26249
  });
26135
26250
  }
26136
26251
  init_app_wkf() {
26137
- console.log('init_app_wkf ', this.b_edit);
26252
+ console.log("init_app_wkf ", this.b_edit);
26138
26253
  if (!this.b_edit)
26139
26254
  this.insert_doc();
26140
26255
  else