@fluxhub/fluxhub-lib 10.0.388 → 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
|
@@ -19557,6 +19557,7 @@
|
|
|
19557
19557
|
|
|
19558
19558
|
var dati_aggiuntivi_v2 = /** @class */ (function () {
|
|
19559
19559
|
function dati_aggiuntivi_v2(app_s, m_dataService, m_router, m_dialog, m_route, m_wkf, uti_s, m_fileservice, tsr) {
|
|
19560
|
+
var _this = this;
|
|
19560
19561
|
this.app_s = app_s;
|
|
19561
19562
|
this.m_dataService = m_dataService;
|
|
19562
19563
|
this.m_router = m_router;
|
|
@@ -19640,6 +19641,48 @@
|
|
|
19640
19641
|
this.b_valid = true;
|
|
19641
19642
|
this.s_uto = "";
|
|
19642
19643
|
this.b_apprf = false;
|
|
19644
|
+
setTimeout(function () {
|
|
19645
|
+
var px = new QParam();
|
|
19646
|
+
px.sql = "SELECT_ROLES_WKF_V2";
|
|
19647
|
+
px.values = [_this.id_applicativo];
|
|
19648
|
+
px.types = ["string"];
|
|
19649
|
+
console.log('start SELECT_ROLES_WKF_V2', new Date());
|
|
19650
|
+
_this.m_dataService.doQuery(px).subscribe(function (data) {
|
|
19651
|
+
if (data != null)
|
|
19652
|
+
if (data.result_msg == "OK") {
|
|
19653
|
+
console.log('end SELECT_ROLES_WKF_V2', new Date());
|
|
19654
|
+
data.result_data.map(function (v) {
|
|
19655
|
+
_this.wkf_users_roles += v.name;
|
|
19656
|
+
});
|
|
19657
|
+
}
|
|
19658
|
+
});
|
|
19659
|
+
});
|
|
19660
|
+
this.m_route.params.subscribe(function (params) {
|
|
19661
|
+
_this.onResize();
|
|
19662
|
+
var id = params["op"];
|
|
19663
|
+
_this.id_applicativo = params["idapp"];
|
|
19664
|
+
_this.id_documento = params["id_doc"];
|
|
19665
|
+
var p = new QParam();
|
|
19666
|
+
p.sql = "SELECT_WKF_APP_INFO_BYUID";
|
|
19667
|
+
p.types = ["string"];
|
|
19668
|
+
p.values = [_this.id_applicativo];
|
|
19669
|
+
console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
19670
|
+
_this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
19671
|
+
if (data != null)
|
|
19672
|
+
if (data.result_msg == "OK") {
|
|
19673
|
+
console.log(data.result_data.length);
|
|
19674
|
+
if (data.result_data.length > 0) {
|
|
19675
|
+
console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
19676
|
+
// this.app_info=data.result_data[0];
|
|
19677
|
+
_this.setta_info_app(data.result_data[0]);
|
|
19678
|
+
}
|
|
19679
|
+
else
|
|
19680
|
+
_this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
|
|
19681
|
+
//this.stabilimento.setByValue(this.obj.stabilimento);
|
|
19682
|
+
//this.userRole.setByValue(this.obj.id_application);
|
|
19683
|
+
}
|
|
19684
|
+
});
|
|
19685
|
+
});
|
|
19643
19686
|
}
|
|
19644
19687
|
dati_aggiuntivi_v2.prototype.hasRole = function (s, b_check_admin) {
|
|
19645
19688
|
if (b_check_admin === void 0) { b_check_admin = true; }
|
|
@@ -21144,22 +21187,6 @@
|
|
|
21144
21187
|
_this.id_applicativo = params["idapp"];
|
|
21145
21188
|
_this.id_documento = params["id_doc"];
|
|
21146
21189
|
_this.init_app_wkf();
|
|
21147
|
-
setTimeout(function () {
|
|
21148
|
-
var px = new QParam();
|
|
21149
|
-
px.sql = "SELECT_ROLES_WKF_V2";
|
|
21150
|
-
px.values = [_this.id_applicativo];
|
|
21151
|
-
px.types = ["string"];
|
|
21152
|
-
console.log('start SELECT_ROLES_WKF_V2', new Date());
|
|
21153
|
-
_this.m_dataService.doQuery(px).subscribe(function (data) {
|
|
21154
|
-
if (data != null)
|
|
21155
|
-
if (data.result_msg == "OK") {
|
|
21156
|
-
console.log('end SELECT_ROLES_WKF_V2', new Date());
|
|
21157
|
-
data.result_data.map(function (v) {
|
|
21158
|
-
_this.wkf_users_roles += v.name;
|
|
21159
|
-
});
|
|
21160
|
-
}
|
|
21161
|
-
});
|
|
21162
|
-
}, 2000);
|
|
21163
21190
|
_this.b_edit = id != "new" ? true : false;
|
|
21164
21191
|
if (!_this.b_edit)
|
|
21165
21192
|
if (_this.id_applicativo.indexOf("_") > -1) {
|
|
@@ -21174,31 +21201,10 @@
|
|
|
21174
21201
|
});
|
|
21175
21202
|
};
|
|
21176
21203
|
dati_aggiuntivi_v2.prototype.init_app_wkf = function () {
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
|
|
21181
|
-
p.values = [this.id_applicativo];
|
|
21182
|
-
console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
21183
|
-
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
21184
|
-
if (data != null)
|
|
21185
|
-
if (data.result_msg == "OK") {
|
|
21186
|
-
console.log(data.result_data.length);
|
|
21187
|
-
if (data.result_data.length > 0) {
|
|
21188
|
-
console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
|
|
21189
|
-
// this.app_info=data.result_data[0];
|
|
21190
|
-
_this.setta_info_app(data.result_data[0]);
|
|
21191
|
-
if (!_this.b_edit)
|
|
21192
|
-
_this.insert_doc();
|
|
21193
|
-
else
|
|
21194
|
-
_this.edit_doc();
|
|
21195
|
-
}
|
|
21196
|
-
else
|
|
21197
|
-
_this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
|
|
21198
|
-
//this.stabilimento.setByValue(this.obj.stabilimento);
|
|
21199
|
-
//this.userRole.setByValue(this.obj.id_application);
|
|
21200
|
-
}
|
|
21201
|
-
});
|
|
21204
|
+
if (!this.b_edit)
|
|
21205
|
+
this.insert_doc();
|
|
21206
|
+
else
|
|
21207
|
+
this.edit_doc();
|
|
21202
21208
|
};
|
|
21203
21209
|
dati_aggiuntivi_v2.prototype.ngAfterViewInit = function () {
|
|
21204
21210
|
var _this = this;
|