@fluxhub/fluxhub-lib 10.0.435 → 10.0.437

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.
@@ -7031,42 +7031,49 @@ class wkfapp {
7031
7031
  this._toastr.error("Selezionare il documento");
7032
7032
  return;
7033
7033
  }
7034
- let p = new QParam();
7035
- p.sql = "SELECT_WKF_SELECT_USER_MIN";
7036
- p.types = ["string", "string"];
7037
- p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
7038
- this.m_dataService.doQuery(p).subscribe((data) => {
7039
- let b_found = false;
7040
- let livello = 0;
7041
- let descri_livello = '';
7042
- for (let i = 0; i < data.result_data.length; i++) {
7043
- if (data.result_data[i].idp == this.app_s.user) {
7044
- livello = data.result_data[i].livello;
7045
- descri_livello = data.result_data[i].descri_livello;
7046
- b_found = true;
7047
- break;
7048
- }
7049
- }
7050
- if (b_found) {
7051
- if (livello != this.get_grid().sRow.stato) {
7052
- this._toastr.error('Il documento non è in stato Bozza');
7053
- return;
7054
- }
7034
+ let dialogRef = this.dialog.open(fh_win_confirm, {
7035
+ disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
7036
+ });
7037
+ dialogRef.afterClosed().subscribe((result) => {
7038
+ if (result) {
7055
7039
  let p = new QParam();
7056
- p.sql = "UPDATE_WKF_STATO_BOZZA";
7057
- p.types = ["string", "string", "int", 'string'];
7058
- p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
7040
+ p.sql = "SELECT_WKF_SELECT_USER_MIN";
7041
+ p.types = ["string", "string"];
7042
+ p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
7059
7043
  this.m_dataService.doQuery(p).subscribe((data) => {
7060
- if (data != null)
7061
- if (data.result_msg == "OK") {
7062
- this._toastr.info('Documento aggiornato');
7063
- this.get_grid().doFill("");
7044
+ let b_found = false;
7045
+ let livello = 0;
7046
+ let descri_livello = '';
7047
+ for (let i = 0; i < data.result_data.length; i++) {
7048
+ if (data.result_data[i].idp == this.app_s.user) {
7049
+ livello = data.result_data[i].livello;
7050
+ descri_livello = data.result_data[i].descri_livello;
7051
+ b_found = true;
7052
+ break;
7064
7053
  }
7054
+ }
7055
+ if (b_found) {
7056
+ if (livello != this.get_grid().sRow.stato) {
7057
+ this._toastr.error('Il documento non è in stato Bozza');
7058
+ return;
7059
+ }
7060
+ let p = new QParam();
7061
+ p.sql = "UPDATE_WKF_STATO_BOZZA";
7062
+ p.types = ["string", "string", "int", 'string'];
7063
+ p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
7064
+ this.m_dataService.doQuery(p).subscribe((data) => {
7065
+ if (data != null)
7066
+ if (data.result_msg == "OK") {
7067
+ this._toastr.info('Documento aggiornato');
7068
+ this.get_grid().doFill("");
7069
+ }
7070
+ });
7071
+ }
7072
+ else {
7073
+ this._toastr.error('L\'utente non è configurato per lo step BOZZA');
7074
+ }
7065
7075
  });
7066
7076
  }
7067
- else {
7068
- this._toastr.error('L\'utente non è configurato per lo step BOZZA');
7069
- }
7070
7077
  });
7071
7078
  }
7072
7079
  recupera_richiesta() {
@@ -14930,12 +14937,10 @@ class FHGridJSONComponent {
14930
14937
  this.res_columns(true);
14931
14938
  }
14932
14939
  edit_config() {
14933
- localStorage.setItem(this.m_appService.COMPANY_KEY + "title_dialog", "Conferma Operazione");
14934
- localStorage.setItem(this.m_appService.COMPANY_KEY + "msg_dialog", "Confermi di voler sovrascrivere la configurazione " +
14935
- this.gf.getDescri() +
14936
- "?");
14937
14940
  let dialogRef = this.m_dialog.open(fh_win_confirm, {
14938
- disableClose: true,
14941
+ disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler sovrascrivere la configurazione " +
14942
+ this.gf.getDescri() +
14943
+ "?" }
14939
14944
  });
14940
14945
  dialogRef.afterClosed().subscribe((result) => {
14941
14946
  if (result) {
@@ -15756,6 +15761,7 @@ FHGridToolBarComponent.decorators = [
15756
15761
  { type: Component, args: [{
15757
15762
  selector: "FHGridToolBar",
15758
15763
  template: `
15764
+ SROW: {{sRow | json}}
15759
15765
  <div
15760
15766
  *ngIf="type == 'WKF_NO_EDIT'"
15761
15767
  fxLayoutGap="3px"
@@ -25596,42 +25602,49 @@ class wkfapp_v2 {
25596
25602
  this._toastr.error("Selezionare il documento");
25597
25603
  return;
25598
25604
  }
25599
- let p = new QParam();
25600
- p.sql = "SELECT_WKF2_SELECT_USER_MIN";
25601
- p.types = ["string", "string"];
25602
- p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
25603
- this.m_dataService.doQuery(p).subscribe((data) => {
25604
- let b_found = false;
25605
- let livello = 0;
25606
- let descri_livello = '';
25607
- for (let i = 0; i < data.result_data.length; i++) {
25608
- if (data.result_data[i].username == this.app_s.user) {
25609
- livello = data.result_data[i].step;
25610
- descri_livello = data.result_data[i].des_step;
25611
- b_found = true;
25612
- break;
25613
- }
25614
- }
25615
- if (b_found) {
25616
- if (livello != this.get_grid().sRow.stato) {
25617
- this._toastr.error('Il documento non è in stato Bozza');
25618
- return;
25619
- }
25605
+ let dialogRef = this.dialog.open(fh_win_confirm, {
25606
+ disableClose: true, data: { title_dialog: "Conferma Operazione", msg_dialog: "Confermi di voler assegnarti il documento?" }
25607
+ });
25608
+ dialogRef.afterClosed().subscribe((result) => {
25609
+ if (result) {
25620
25610
  let p = new QParam();
25621
- p.sql = "UPDATE_WKF_STATO_BOZZA";
25622
- p.types = ["string", "string", "int", 'string'];
25623
- p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
25611
+ p.sql = "SELECT_WKF2_SELECT_USER_MIN";
25612
+ p.types = ["string", "string"];
25613
+ p.values = [this.id_applicativo, this.get_grid().sRow.uiid];
25624
25614
  this.m_dataService.doQuery(p).subscribe((data) => {
25625
- if (data != null)
25626
- if (data.result_msg == "OK") {
25627
- this._toastr.info('Documento aggiornato');
25628
- this.get_grid().doFill("");
25615
+ let b_found = false;
25616
+ let livello = 0;
25617
+ let descri_livello = '';
25618
+ for (let i = 0; i < data.result_data.length; i++) {
25619
+ if (data.result_data[i].username == this.app_s.user) {
25620
+ livello = data.result_data[i].step;
25621
+ descri_livello = data.result_data[i].des_step;
25622
+ b_found = true;
25623
+ break;
25624
+ }
25625
+ }
25626
+ if (b_found) {
25627
+ if (livello != this.get_grid().sRow.stato) {
25628
+ this._toastr.error('Il documento non è in stato Bozza');
25629
+ return;
25629
25630
  }
25631
+ let p = new QParam();
25632
+ p.sql = "UPDATE_WKF_STATO_BOZZA";
25633
+ p.types = ["string", "string", "int", 'string'];
25634
+ p.values = [this.id_applicativo, this.get_grid().sRow.uiid, livello, descri_livello];
25635
+ this.m_dataService.doQuery(p).subscribe((data) => {
25636
+ if (data != null)
25637
+ if (data.result_msg == "OK") {
25638
+ this._toastr.info('Documento aggiornato');
25639
+ this.get_grid().doFill("");
25640
+ }
25641
+ });
25642
+ }
25643
+ else {
25644
+ this._toastr.error('L\'utente non è configurato per lo step BOZZA');
25645
+ }
25630
25646
  });
25631
25647
  }
25632
- else {
25633
- this._toastr.error('L\'utente non è configurato per lo step BOZZA');
25634
- }
25635
25648
  });
25636
25649
  }
25637
25650
  sostituisci_utente() {