@fluxhub/fluxhub-lib 10.0.503 → 10.0.504

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.
@@ -17962,26 +17962,6 @@
17962
17962
  this.m_lettori = this.m_lettori + this.livs[i].idp;
17963
17963
  }
17964
17964
  }
17965
- if (this.nlevel.livello >= 900) {
17966
- var ltn = this.getLvlInfo(this.nlevel.livello);
17967
- /*
17968
- if(ltn!=null){
17969
-
17970
- if(ltn.crea_revisione==1)
17971
- myRPC.archivia_revisioni(id_applicativo, id_documento,user.IDP.toUpperCase(), m_obj.codice);
17972
- }
17973
- */
17974
- this.doEnd(this.nlevel.livello);
17975
- var p_1 = new QParam();
17976
- p_1.sql = "UPDATE_DATA_CHIUSURA";
17977
- p_1.values = [this.id_applicativo, this.id_documento];
17978
- p_1.types = ["string", "string"];
17979
- this.m_dataService.doQuery(p_1).subscribe(function (data) {
17980
- if (data != null)
17981
- if (data.result_msg == "OK") {
17982
- }
17983
- });
17984
- }
17985
17965
  var ccan = "$$";
17986
17966
  for (var i = 0; i < this.livs.length; i++) {
17987
17967
  if (this.livs[i].livello == this.clevel.livello &&
@@ -18071,22 +18051,42 @@
18071
18051
  var ok_op = false;
18072
18052
  if (data != null)
18073
18053
  if (data.result_msg == "OK") {
18054
+ if (_this.nlevel.livello >= 900) {
18055
+ // let ltn: any = this.getLvlInfo(this.nlevel.livello);
18056
+ /*
18057
+ if(ltn!=null){
18058
+
18059
+ if(ltn.crea_revisione==1)
18060
+ myRPC.archivia_revisioni(id_applicativo, id_documento,user.IDP.toUpperCase(), m_obj.codice);
18061
+ }
18062
+ */
18063
+ _this.doEnd(_this.nlevel.livello);
18064
+ var p_1 = new QParam();
18065
+ p_1.sql = "UPDATE_DATA_CHIUSURA";
18066
+ p_1.values = [_this.id_applicativo, _this.id_documento];
18067
+ p_1.types = ["string", "string"];
18068
+ _this.m_dataService.doQuery(p_1).subscribe(function (data) {
18069
+ if (data != null)
18070
+ if (data.result_msg == "OK") {
18071
+ }
18072
+ });
18073
+ }
18074
+ p = new QParam();
18075
+ p.sql = "exec_app_workflow";
18076
+ p.values = [
18077
+ _this.app_info.codice_documento,
18078
+ _this.id_documento,
18079
+ "" + _this.clevel.livello,
18080
+ "" + _this.nlevel.livello,
18081
+ _this.user_idp,
18082
+ ];
18083
+ var ok_op_1 = false;
18084
+ _this.m_wkf.doQuery(p).subscribe(function (data) { });
18074
18085
  }
18075
18086
  });
18076
- p = new QParam();
18077
- p.sql = "exec_app_workflow";
18078
- p.values = [
18079
- this.app_info.codice_documento,
18080
- this.id_documento,
18081
- "" + this.clevel.livello,
18082
- "" + this.nlevel.livello,
18083
- this.user_idp,
18084
- ];
18085
- var ok_op = false;
18086
- this.m_wkf.doQuery(p).subscribe(function (data) { });
18087
18087
  var ical = null;
18088
18088
  var comm = "";
18089
- console.log('QUI COMMMM');
18089
+ // console.log('QUI COMMMM');
18090
18090
  if (this.nota != "")
18091
18091
  comm = "<br>Commento: <br>" + this.nota;
18092
18092
  if (this.nlevel.ical == 1) {
@@ -18972,7 +18972,7 @@
18972
18972
  "" + lvlb,
18973
18973
  ];
18974
18974
  _this.insert_wkf_variabile(_this.id_applicativo, _this.id_documento, _this.m_obj.stato + "_PLAYER", _this.user_idp);
18975
- var ok_op_1 = false;
18975
+ var ok_op_2 = false;
18976
18976
  _this.m_wkf.doQuery(p_4).subscribe(function (data) {
18977
18977
  var ok_op = false;
18978
18978
  if (data != null)
@@ -19050,7 +19050,7 @@
19050
19050
  _this.goto_edit_doc();
19051
19051
  }
19052
19052
  });
19053
- ok_op_1 = true;
19053
+ ok_op_2 = true;
19054
19054
  }
19055
19055
  if (!ok_op) {
19056
19056
  _this.alert(data.msg, 1);