biz9-logic 3.5.24 → 3.5.28
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/biz9_config +1 -1
- package/index.js +13 -1
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ License GNU General Public License v3.0
|
|
|
5
5
|
Description: BiZ9 Framework: Logic-JS
|
|
6
6
|
*/
|
|
7
7
|
const { get_new_item_main,get_data_config_main,get_cloud_url_main,get_biz_item_main,get_cloud_filter_obj_main,get_title_url_main } = require('./main');
|
|
8
|
-
const {Log,Test,Str} = require('biz9-utility');
|
|
8
|
+
const {Log,Test,Str,DateTime} = require('biz9-utility');
|
|
9
9
|
class Message {
|
|
10
10
|
static SUCCESS="Update Success";
|
|
11
11
|
static LOGIN_GOOD="Login Success";
|
|
@@ -365,8 +365,20 @@ class Stock {
|
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
+
|
|
368
369
|
}
|
|
370
|
+
class Schedule {
|
|
371
|
+
static get_start_date_time_by_list = (list) =>{
|
|
372
|
+
for(a=0;a<list.length;a++){
|
|
373
|
+
list[a].start_date = DateTime.get_full_date_by_date_time(list[a].date,list[a].time);
|
|
374
|
+
list[a].start_time = DateTime.get_full_time_by_date_time(list[a].date,list[a].time);
|
|
375
|
+
list[a].start_date_time = DateTime.get_full_date_time_by_date_time(list[a].date,list[a].time);
|
|
376
|
+
}
|
|
377
|
+
return list;
|
|
378
|
+
}
|
|
379
|
+
};
|
|
369
380
|
module.exports = {
|
|
381
|
+
Schedule,
|
|
370
382
|
Stock,
|
|
371
383
|
DataType,
|
|
372
384
|
DataItem,
|