@fluxhub/fluxhub-lib 10.0.502 → 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.
@@ -9604,18 +9604,15 @@
9604
9604
  }
9605
9605
  };
9606
9606
  FHNumericFieldComponent.prototype.click_select_allf = function (element) {
9607
- var _this = this;
9608
- setTimeout(function () {
9609
- if (!_this.b_already_f)
9610
- _this.el.nativeElement.select();
9611
- _this.b_already_f = true;
9612
- setTimeout(function () { _this.b_already_f = false; }, 1000);
9613
- }, 200);
9607
+ this.select_allf(element);
9614
9608
  };
9615
9609
  FHNumericFieldComponent.prototype.select_allf = function (element) {
9616
9610
  var _this = this;
9611
+ console.log('this.b_already_f ', this.b_already_f);
9617
9612
  if (!this.b_already_f)
9618
9613
  this.el.nativeElement.select();
9614
+ else
9615
+ console.log('SALTO FOCUS ALL');
9619
9616
  this.b_already_f = true;
9620
9617
  setTimeout(function () { _this.b_already_f = false; }, 1000);
9621
9618
  };
@@ -17965,26 +17962,6 @@
17965
17962
  this.m_lettori = this.m_lettori + this.livs[i].idp;
17966
17963
  }
17967
17964
  }
17968
- if (this.nlevel.livello >= 900) {
17969
- var ltn = this.getLvlInfo(this.nlevel.livello);
17970
- /*
17971
- if(ltn!=null){
17972
-
17973
- if(ltn.crea_revisione==1)
17974
- myRPC.archivia_revisioni(id_applicativo, id_documento,user.IDP.toUpperCase(), m_obj.codice);
17975
- }
17976
- */
17977
- this.doEnd(this.nlevel.livello);
17978
- var p_1 = new QParam();
17979
- p_1.sql = "UPDATE_DATA_CHIUSURA";
17980
- p_1.values = [this.id_applicativo, this.id_documento];
17981
- p_1.types = ["string", "string"];
17982
- this.m_dataService.doQuery(p_1).subscribe(function (data) {
17983
- if (data != null)
17984
- if (data.result_msg == "OK") {
17985
- }
17986
- });
17987
- }
17988
17965
  var ccan = "$$";
17989
17966
  for (var i = 0; i < this.livs.length; i++) {
17990
17967
  if (this.livs[i].livello == this.clevel.livello &&
@@ -18074,22 +18051,42 @@
18074
18051
  var ok_op = false;
18075
18052
  if (data != null)
18076
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) { });
18077
18085
  }
18078
18086
  });
18079
- p = new QParam();
18080
- p.sql = "exec_app_workflow";
18081
- p.values = [
18082
- this.app_info.codice_documento,
18083
- this.id_documento,
18084
- "" + this.clevel.livello,
18085
- "" + this.nlevel.livello,
18086
- this.user_idp,
18087
- ];
18088
- var ok_op = false;
18089
- this.m_wkf.doQuery(p).subscribe(function (data) { });
18090
18087
  var ical = null;
18091
18088
  var comm = "";
18092
- console.log('QUI COMMMM');
18089
+ // console.log('QUI COMMMM');
18093
18090
  if (this.nota != "")
18094
18091
  comm = "<br>Commento: <br>" + this.nota;
18095
18092
  if (this.nlevel.ical == 1) {
@@ -18185,7 +18182,6 @@
18185
18182
  this.m_statox +
18186
18183
  "<br>" +
18187
18184
  this.getDescri() +
18188
- "<br>Commenti:" +
18189
18185
  comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
18190
18186
  "#/" +
18191
18187
  this.app_info.modulo_swf +
@@ -18218,7 +18214,8 @@
18218
18214
  else
18219
18215
  obj_mail_body = this.getDescri().split('NOSTD|').join('');
18220
18216
  if (this.nlevel.oggetto_email == null)
18221
- this.sendEMail_ex(this.user_idp, this.m_danotificare, obj_mail, obj_mail_body, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
18217
+ this.sendEMail_ex(this.user_idp, this.m_danotificare, obj_mail, obj_mail_body +
18218
+ comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
18222
18219
  "#/" +
18223
18220
  this.app_info.modulo_swf +
18224
18221
  "/" +
@@ -18227,7 +18224,8 @@
18227
18224
  this.id_documento +
18228
18225
  "/edit", this.m_obj.codice, this.nota, true, ical);
18229
18226
  else if (this.nlevel.oggetto_email == "")
18230
- this.sendEMail_ex(this.user_idp, this.m_danotificare, obj_mail, obj_mail_body, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
18227
+ this.sendEMail_ex(this.user_idp, this.m_danotificare, obj_mail, obj_mail_body +
18228
+ comm, this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT +
18231
18229
  "#/" +
18232
18230
  this.app_info.modulo_swf +
18233
18231
  "/" +
@@ -18974,7 +18972,7 @@
18974
18972
  "" + lvlb,
18975
18973
  ];
18976
18974
  _this.insert_wkf_variabile(_this.id_applicativo, _this.id_documento, _this.m_obj.stato + "_PLAYER", _this.user_idp);
18977
- var ok_op_1 = false;
18975
+ var ok_op_2 = false;
18978
18976
  _this.m_wkf.doQuery(p_4).subscribe(function (data) {
18979
18977
  var ok_op = false;
18980
18978
  if (data != null)
@@ -19052,7 +19050,7 @@
19052
19050
  _this.goto_edit_doc();
19053
19051
  }
19054
19052
  });
19055
- ok_op_1 = true;
19053
+ ok_op_2 = true;
19056
19054
  }
19057
19055
  if (!ok_op) {
19058
19056
  _this.alert(data.msg, 1);