@xuda.io/xuda-worker-bundle-min 1.3.292 → 1.3.294
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/index.js +69 -41
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3861,7 +3861,35 @@ func.datasource.get_value = async function (
|
|
|
3861
3861
|
}
|
|
3862
3862
|
|
|
3863
3863
|
if (glb.GLOBAL_VARS[fieldIdP]) {
|
|
3864
|
-
|
|
3864
|
+
if (!_ds.data_system) {
|
|
3865
|
+
_ds.data_system = {};
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
if (dsSessionP > 0) {
|
|
3869
|
+
_ds.data_system["SYS_STR_ACTIVE_ROW_ID"] = _ds.currentRecordId;
|
|
3870
|
+
_ds.data_system["SYS_STR_PROG_DS_SESSION"] = dsSessionP;
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3873
|
+
// set system time
|
|
3874
|
+
if (glb.SYS_DATE_ARR.includes(fieldIdP)) {
|
|
3875
|
+
var _ds_0 = SESSION_OBJ[SESSION_ID].DS_GLB[0];
|
|
3876
|
+
|
|
3877
|
+
if (_ds_0) {
|
|
3878
|
+
if (!_ds_0.data_system) {
|
|
3879
|
+
_ds_0.data_system = {};
|
|
3880
|
+
}
|
|
3881
|
+
const ts = await func.utils.get_dateTime(SESSION_ID, "SYS_DATE_VALUE");
|
|
3882
|
+
for (const val of glb.SYS_DATE_ARR) {
|
|
3883
|
+
_ds_0.data_system[val] = await func.utils.get_dateTime(
|
|
3884
|
+
SESSION_ID,
|
|
3885
|
+
val,
|
|
3886
|
+
ts
|
|
3887
|
+
);
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
// await func.datasource.set_system_vars(SESSION_ID, dsSessionP);
|
|
3865
3893
|
if (typeof _ds?.data_system?.[fieldIdP] !== "undefined") {
|
|
3866
3894
|
return await return_value_system(fieldIdP, _ds?.data_system?.[fieldIdP]);
|
|
3867
3895
|
}
|
|
@@ -3989,48 +4017,48 @@ func.datasource.reset_jobs = function (SESSION_ID, dsSessionP, sourceP, errP) {
|
|
|
3989
4017
|
null
|
|
3990
4018
|
);
|
|
3991
4019
|
};
|
|
3992
|
-
func.datasource.set_system_vars = async function (SESSION_ID, dsSessionP) {
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
if (!_ds.data_system) {
|
|
3997
|
-
_ds.data_system = {};
|
|
3998
|
-
}
|
|
3999
|
-
|
|
4000
|
-
if (dsSessionP > 0) {
|
|
4001
|
-
_ds.data_system["SYS_STR_ACTIVE_ROW_ID"] = _ds.currentRecordId;
|
|
4002
|
-
_ds.data_system["SYS_STR_PROG_DS_SESSION"] = dsSessionP;
|
|
4003
|
-
}
|
|
4020
|
+
// func.datasource.set_system_vars = async function (SESSION_ID, dsSessionP) {
|
|
4021
|
+
// var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dsSessionP];
|
|
4022
|
+
// if (!_ds) return;
|
|
4004
4023
|
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
// last_row_id: _ds.lastRecordId,
|
|
4009
|
-
// query_from_segments_json: _ds.filter_from,
|
|
4010
|
-
// query_to_segments_json: _ds.filter_from,
|
|
4011
|
-
// locate_query_from_segments_json: _ds.locate_from,
|
|
4012
|
-
// locate_query_to_segments_json: _ds.locate_to,
|
|
4013
|
-
// first_row_segments_json: _ds.firstRecordKey_object,
|
|
4014
|
-
// last_row_segments_json: _ds.lastRecordKey_object,
|
|
4015
|
-
// rowid: _ds.currentRecordId,
|
|
4016
|
-
// };
|
|
4024
|
+
// if (!_ds.data_system) {
|
|
4025
|
+
// _ds.data_system = {};
|
|
4026
|
+
// }
|
|
4017
4027
|
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
// }
|
|
4023
|
-
var _ds_0 = SESSION_OBJ[SESSION_ID].DS_GLB[0];
|
|
4024
|
-
if (!_ds_0) return;
|
|
4028
|
+
// if (dsSessionP > 0) {
|
|
4029
|
+
// _ds.data_system["SYS_STR_ACTIVE_ROW_ID"] = _ds.currentRecordId;
|
|
4030
|
+
// _ds.data_system["SYS_STR_PROG_DS_SESSION"] = dsSessionP;
|
|
4031
|
+
// }
|
|
4025
4032
|
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4033
|
+
// // _ds.data_system["SYS_OBJ_DS_INFO"] = {
|
|
4034
|
+
// // rows: _ds.rows_found,
|
|
4035
|
+
// // first_row_id: _ds.firstRecordId,
|
|
4036
|
+
// // last_row_id: _ds.lastRecordId,
|
|
4037
|
+
// // query_from_segments_json: _ds.filter_from,
|
|
4038
|
+
// // query_to_segments_json: _ds.filter_from,
|
|
4039
|
+
// // locate_query_from_segments_json: _ds.locate_from,
|
|
4040
|
+
// // locate_query_to_segments_json: _ds.locate_to,
|
|
4041
|
+
// // first_row_segments_json: _ds.firstRecordKey_object,
|
|
4042
|
+
// // last_row_segments_json: _ds.lastRecordKey_object,
|
|
4043
|
+
// // rowid: _ds.currentRecordId,
|
|
4044
|
+
// // };
|
|
4045
|
+
|
|
4046
|
+
// // if (!_ds.data_system["SYS_OBJ_DS_DATA"] && dsSessionP == 0) {
|
|
4047
|
+
// // _ds.data_system["SYS_OBJ_DS_DATA"] = {
|
|
4048
|
+
// // value: _.cloneDeep(_ds.data_system),
|
|
4049
|
+
// // };
|
|
4050
|
+
// // }
|
|
4051
|
+
// var _ds_0 = SESSION_OBJ[SESSION_ID].DS_GLB[0];
|
|
4052
|
+
// if (!_ds_0) return;
|
|
4053
|
+
|
|
4054
|
+
// if (!_ds_0.data_system) {
|
|
4055
|
+
// _ds_0.data_system = {};
|
|
4056
|
+
// }
|
|
4057
|
+
// const ts = await func.utils.get_dateTime(SESSION_ID, "SYS_DATE_VALUE");
|
|
4058
|
+
// for (const val of glb.SYS_DATE_ARR) {
|
|
4059
|
+
// _ds_0.data_system[val] = await func.utils.get_dateTime(SESSION_ID, val, ts);
|
|
4060
|
+
// }
|
|
4061
|
+
// };
|
|
4034
4062
|
func.datasource.get_currentRecordId = function (
|
|
4035
4063
|
SESSION_ID,
|
|
4036
4064
|
dsSessionP,
|
|
@@ -6043,7 +6071,7 @@ func.utils.alerts.invoke = async function (
|
|
|
6043
6071
|
[SESSION_ID, alert_type, alertDisplay, message]
|
|
6044
6072
|
);
|
|
6045
6073
|
}
|
|
6046
|
-
|
|
6074
|
+
const sys_alerts_obj = func.utils.get_system_error_msg();
|
|
6047
6075
|
if (sys_alerts_obj[paramsP]) {
|
|
6048
6076
|
var str = paramsP + " " + title + " " + message;
|
|
6049
6077
|
if (sys_alerts_obj[paramsP].alert_type === "error") {
|