@fluxhub/fluxhub-lib 10.0.383 → 10.0.385

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.
@@ -21147,12 +21147,14 @@
21147
21147
  px.sql = "SELECT_ROLES_WKF_V2";
21148
21148
  px.values = [_this.id_applicativo];
21149
21149
  px.types = ["string"];
21150
+ console.log('start SELECT_ROLES_WKF_V2', new Date());
21150
21151
  _this.m_dataService.doQuery(px).subscribe(function (data) {
21151
21152
  if (data != null)
21152
21153
  if (data.result_msg == "OK") {
21153
21154
  console.log('end SELECT_ROLES_WKF_V2', new Date());
21154
21155
  data.result_data.map(function (v) {
21155
21156
  _this.wkf_users_roles += v.name;
21157
+ _this.init_app_wkf();
21156
21158
  });
21157
21159
  }
21158
21160
  });
@@ -21167,34 +21169,32 @@
21167
21169
  _this.alert("PARAMETRO APPLICAZIONE NON VALIDO", 2);
21168
21170
  return;
21169
21171
  }
21170
- var p = new QParam();
21171
- p.sql = "SELECT_WKF_APP_INFO_BYUID";
21172
- p.types = ["string"];
21173
- p.values = [_this.id_applicativo];
21174
- var ok_op = false;
21175
- _this.m_dataService.doQuery(p).subscribe(function (data) {
21176
- var ok_op = false;
21177
- if (data != null)
21178
- if (data.result_msg == "OK") {
21179
- if (data.result_data.length > 0) {
21180
- console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
21181
- // this.app_info=data.result_data[0];
21182
- _this.setta_info_app(data.result_data[0]);
21183
- if (!_this.b_edit)
21184
- _this.insert_doc();
21185
- else
21186
- _this.edit_doc();
21187
- }
21172
+ });
21173
+ };
21174
+ dati_aggiuntivi_v2.prototype.init_app_wkf = function () {
21175
+ var _this = this;
21176
+ var p = new QParam();
21177
+ p.sql = "SELECT_WKF_APP_INFO_BYUID";
21178
+ p.types = ["string"];
21179
+ p.values = [this.id_applicativo];
21180
+ console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
21181
+ this.m_dataService.doQuery(p).subscribe(function (data) {
21182
+ if (data != null)
21183
+ if (data.result_msg == "OK") {
21184
+ if (data.result_data.length > 0) {
21185
+ console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
21186
+ // this.app_info=data.result_data[0];
21187
+ _this.setta_info_app(data.result_data[0]);
21188
+ if (!_this.b_edit)
21189
+ _this.insert_doc();
21188
21190
  else
21189
- _this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
21190
- //this.stabilimento.setByValue(this.obj.stabilimento);
21191
- ok_op = true;
21192
- //this.userRole.setByValue(this.obj.id_application);
21191
+ _this.edit_doc();
21193
21192
  }
21194
- if (!ok_op) {
21195
- _this.alert(data.msg, 2);
21193
+ else
21194
+ _this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
21195
+ //this.stabilimento.setByValue(this.obj.stabilimento);
21196
+ //this.userRole.setByValue(this.obj.id_application);
21196
21197
  }
21197
- }, function (err) { });
21198
21198
  });
21199
21199
  };
21200
21200
  dati_aggiuntivi_v2.prototype.ngAfterViewInit = function () {