scheduler-node-models 1.2.60 → 1.2.62
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/package.json
CHANGED
|
@@ -24,6 +24,7 @@ class ExcelRowIngest {
|
|
|
24
24
|
if (this.files.length > 0) {
|
|
25
25
|
const allfiles = this.files.map(async (file, f) => {
|
|
26
26
|
const results = await this.processFile(file);
|
|
27
|
+
console.log(results.length);
|
|
27
28
|
result.push(...results);
|
|
28
29
|
});
|
|
29
30
|
await Promise.allSettled(allfiles);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Employee } from "../employees";
|
|
1
|
+
import { Employee, IEmployee } from "../employees";
|
|
2
2
|
import { ILaborCode, LaborCode } from "../labor";
|
|
3
3
|
import { CofSReport, ICofSReport } from "./reports/cofsReport";
|
|
4
4
|
import { Forecast, IForecast } from "./reports/forecast";
|
|
@@ -15,6 +15,7 @@ export interface ISite {
|
|
|
15
15
|
laborCodes?: ILaborCode[];
|
|
16
16
|
forecasts?: IForecast[];
|
|
17
17
|
cofs?: ICofSReport[];
|
|
18
|
+
employees?: IEmployee[];
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* This class implements the Site interface data members and actions.
|
package/scheduler/sites/site.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Site = void 0;
|
|
4
|
+
const employees_1 = require("../employees");
|
|
4
5
|
const labor_1 = require("../labor");
|
|
5
6
|
const cofsReport_1 = require("./reports/cofsReport");
|
|
6
7
|
const forecast_1 = require("./reports/forecast");
|
|
@@ -52,6 +53,14 @@ class Site {
|
|
|
52
53
|
this.cofs.sort((a, b) => a.compareTo(b));
|
|
53
54
|
}
|
|
54
55
|
this.employees = [];
|
|
56
|
+
if (site && site.employees) {
|
|
57
|
+
site.employees.forEach(emp => {
|
|
58
|
+
if (this.employees) {
|
|
59
|
+
this.employees.push(new employees_1.Employee(emp));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
this.employees.sort((a, b) => a.compareTo(b));
|
|
63
|
+
}
|
|
55
64
|
}
|
|
56
65
|
/**
|
|
57
66
|
* This function is used for sorting sites
|