@fluxhub/fluxhub-lib 10.0.389 → 10.0.390
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +47 -41
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +47 -41
- package/fesm2015/fluxhub-fluxhub-lib.js +46 -40
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -22941,6 +22941,48 @@ class dati_aggiuntivi_v2 {
|
|
|
22941
22941
|
this.b_valid = true;
|
|
22942
22942
|
this.s_uto = "";
|
|
22943
22943
|
this.b_apprf = false;
|
|
22944
|
+
setTimeout(() => {
|
|
22945
|
+
let px = new QParam();
|
|
22946
|
+
px.sql = "SELECT_ROLES_WKF_V2";
|
|
22947
|
+
px.values = [this.id_applicativo];
|
|
22948
|
+
px.types = ["string"];
|
|
22949
|
+
console.log('start SELECT_ROLES_WKF_V2', new Date());
|
|
22950
|
+
this.m_dataService.doQuery(px).subscribe((data) => {
|
|
22951
|
+
if (data != null)
|
|
22952
|
+
if (data.result_msg == "OK") {
|
|
22953
|
+
console.log('end SELECT_ROLES_WKF_V2', new Date());
|
|
22954
|
+
data.result_data.map((v) => {
|
|
22955
|
+
this.wkf_users_roles += v.name;
|
|
22956
|
+
});
|
|
22957
|
+
}
|
|
22958
|
+
});
|
|
22959
|
+
});
|
|
22960
|
+
this.m_route.params.subscribe((params) => {
|
|
22961
|
+
this.onResize();
|
|
22962
|
+
var id = params["op"];
|
|
22963
|
+
this.id_applicativo = params["idapp"];
|
|
22964
|
+
this.id_documento = params["id_doc"];
|
|
22965
|
+
let p = new QParam();
|
|
22966
|
+
p.sql = "SELECT_WKF_APP_INFO_BYUID";
|
|
22967
|
+
p.types = ["string"];
|
|
22968
|
+
p.values = [this.id_applicativo];
|
|
22969
|
+
console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
22970
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
22971
|
+
if (data != null)
|
|
22972
|
+
if (data.result_msg == "OK") {
|
|
22973
|
+
console.log(data.result_data.length);
|
|
22974
|
+
if (data.result_data.length > 0) {
|
|
22975
|
+
console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
22976
|
+
// this.app_info=data.result_data[0];
|
|
22977
|
+
this.setta_info_app(data.result_data[0]);
|
|
22978
|
+
}
|
|
22979
|
+
else
|
|
22980
|
+
this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
|
|
22981
|
+
//this.stabilimento.setByValue(this.obj.stabilimento);
|
|
22982
|
+
//this.userRole.setByValue(this.obj.id_application);
|
|
22983
|
+
}
|
|
22984
|
+
});
|
|
22985
|
+
});
|
|
22944
22986
|
}
|
|
22945
22987
|
hasRole(s, b_check_admin = true) {
|
|
22946
22988
|
if (this.wkf_users_roles === null)
|
|
@@ -24410,22 +24452,6 @@ class dati_aggiuntivi_v2 {
|
|
|
24410
24452
|
this.id_applicativo = params["idapp"];
|
|
24411
24453
|
this.id_documento = params["id_doc"];
|
|
24412
24454
|
this.init_app_wkf();
|
|
24413
|
-
setTimeout(() => {
|
|
24414
|
-
let px = new QParam();
|
|
24415
|
-
px.sql = "SELECT_ROLES_WKF_V2";
|
|
24416
|
-
px.values = [this.id_applicativo];
|
|
24417
|
-
px.types = ["string"];
|
|
24418
|
-
console.log('start SELECT_ROLES_WKF_V2', new Date());
|
|
24419
|
-
this.m_dataService.doQuery(px).subscribe((data) => {
|
|
24420
|
-
if (data != null)
|
|
24421
|
-
if (data.result_msg == "OK") {
|
|
24422
|
-
console.log('end SELECT_ROLES_WKF_V2', new Date());
|
|
24423
|
-
data.result_data.map((v) => {
|
|
24424
|
-
this.wkf_users_roles += v.name;
|
|
24425
|
-
});
|
|
24426
|
-
}
|
|
24427
|
-
});
|
|
24428
|
-
}, 6000);
|
|
24429
24455
|
this.b_edit = id != "new" ? true : false;
|
|
24430
24456
|
if (!this.b_edit)
|
|
24431
24457
|
if (this.id_applicativo.indexOf("_") > -1) {
|
|
@@ -24440,30 +24466,10 @@ class dati_aggiuntivi_v2 {
|
|
|
24440
24466
|
});
|
|
24441
24467
|
}
|
|
24442
24468
|
init_app_wkf() {
|
|
24443
|
-
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
|
|
24447
|
-
console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
24448
|
-
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
24449
|
-
if (data != null)
|
|
24450
|
-
if (data.result_msg == "OK") {
|
|
24451
|
-
console.log(data.result_data.length);
|
|
24452
|
-
if (data.result_data.length > 0) {
|
|
24453
|
-
console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
24454
|
-
// this.app_info=data.result_data[0];
|
|
24455
|
-
this.setta_info_app(data.result_data[0]);
|
|
24456
|
-
if (!this.b_edit)
|
|
24457
|
-
this.insert_doc();
|
|
24458
|
-
else
|
|
24459
|
-
this.edit_doc();
|
|
24460
|
-
}
|
|
24461
|
-
else
|
|
24462
|
-
this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
|
|
24463
|
-
//this.stabilimento.setByValue(this.obj.stabilimento);
|
|
24464
|
-
//this.userRole.setByValue(this.obj.id_application);
|
|
24465
|
-
}
|
|
24466
|
-
});
|
|
24469
|
+
if (!this.b_edit)
|
|
24470
|
+
this.insert_doc();
|
|
24471
|
+
else
|
|
24472
|
+
this.edit_doc();
|
|
24467
24473
|
}
|
|
24468
24474
|
ngAfterViewInit() {
|
|
24469
24475
|
setTimeout(() => {
|