scheduler-node-models 1.1.37 → 1.1.44
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 +6 -6
- package/general/emailer.d.ts +0 -1
- package/general/emailer.js +0 -31
- package/general/general.d.ts +0 -12
- package/general/general.js +0 -2
- package/general/index.d.ts +0 -5
- package/general/index.js +0 -21
- package/general/logger.d.ts +0 -10
- package/general/logger.js +0 -90
- package/general/report.d.ts +0 -25
- package/general/report.js +0 -76
- package/general/reportStyle.d.ts +0 -0
- package/general/reportStyle.js +0 -1
- package/general/viewstate.d.ts +0 -5
- package/general/viewstate.js +0 -9
- package/index.d.ts +0 -0
- package/index.js +0 -1
- package/metrics/images.d.ts +0 -22
- package/metrics/images.js +0 -33
- package/metrics/index.d.ts +0 -5
- package/metrics/index.js +0 -21
- package/metrics/mission.d.ts +0 -47
- package/metrics/mission.js +0 -81
- package/metrics/missionSensorOutage.d.ts +0 -11
- package/metrics/missionSensorOutage.js +0 -14
- package/metrics/missionsensor.d.ts +0 -67
- package/metrics/missionsensor.js +0 -128
- package/metrics/outage.d.ts +0 -43
- package/metrics/outage.js +0 -55
- package/metrics/reports/drawSummary.d.ts +0 -24
- package/metrics/reports/drawSummary.js +0 -311
- package/metrics/reports/index.d.ts +0 -5
- package/metrics/reports/index.js +0 -21
- package/metrics/reports/missionDay.d.ts +0 -8
- package/metrics/reports/missionDay.js +0 -23
- package/metrics/reports/missionSummary.d.ts +0 -25
- package/metrics/reports/missionSummary.js +0 -421
- package/metrics/reports/missionType.d.ts +0 -20
- package/metrics/reports/missionType.js +0 -314
- package/metrics/reports/outageDay.d.ts +0 -8
- package/metrics/reports/outageDay.js +0 -23
- package/metrics/systemdata/classifications.d.ts +0 -18
- package/metrics/systemdata/classifications.js +0 -23
- package/metrics/systemdata/communications.d.ts +0 -21
- package/metrics/systemdata/communications.js +0 -40
- package/metrics/systemdata/dcgs.d.ts +0 -19
- package/metrics/systemdata/dcgs.js +0 -29
- package/metrics/systemdata/exploitations.d.ts +0 -18
- package/metrics/systemdata/exploitations.js +0 -23
- package/metrics/systemdata/groundSystems.d.ts +0 -86
- package/metrics/systemdata/groundSystems.js +0 -143
- package/metrics/systemdata/index.d.ts +0 -7
- package/metrics/systemdata/index.js +0 -23
- package/metrics/systemdata/platform.d.ts +0 -124
- package/metrics/systemdata/platform.js +0 -176
- package/metrics/systemdata/systeminfo.d.ts +0 -28
- package/metrics/systemdata/systeminfo.js +0 -64
- package/scheduler/employees/assignment.d.ts +0 -139
- package/scheduler/employees/assignment.js +0 -304
- package/scheduler/employees/balance.d.ts +0 -35
- package/scheduler/employees/balance.js +0 -39
- package/scheduler/employees/companyinfo.d.ts +0 -16
- package/scheduler/employees/companyinfo.js +0 -6
- package/scheduler/employees/contact.d.ts +0 -36
- package/scheduler/employees/contact.js +0 -40
- package/scheduler/employees/employee.d.ts +0 -427
- package/scheduler/employees/employee.js +0 -1887
- package/scheduler/employees/employeename.d.ts +0 -48
- package/scheduler/employees/employeename.js +0 -97
- package/scheduler/employees/index.d.ts +0 -14
- package/scheduler/employees/index.js +0 -30
- package/scheduler/employees/labor.d.ts +0 -31
- package/scheduler/employees/labor.js +0 -39
- package/scheduler/employees/leave.d.ts +0 -58
- package/scheduler/employees/leave.js +0 -73
- package/scheduler/employees/leaverequest.d.ts +0 -105
- package/scheduler/employees/leaverequest.js +0 -226
- package/scheduler/employees/specialty.d.ts +0 -35
- package/scheduler/employees/specialty.js +0 -40
- package/scheduler/employees/variation.d.ts +0 -80
- package/scheduler/employees/variation.js +0 -132
- package/scheduler/employees/web.d.ts +0 -6
- package/scheduler/employees/web.js +0 -2
- package/scheduler/employees/work.d.ts +0 -96
- package/scheduler/employees/work.js +0 -133
- package/scheduler/employees/workday.d.ts +0 -91
- package/scheduler/employees/workday.js +0 -170
- package/scheduler/labor/index.d.ts +0 -2
- package/scheduler/labor/index.js +0 -18
- package/scheduler/labor/laborcode.d.ts +0 -33
- package/scheduler/labor/laborcode.js +0 -55
- package/scheduler/labor/workcode.d.ts +0 -28
- package/scheduler/labor/workcode.js +0 -35
- package/scheduler/reports/chargeStatus.d.ts +0 -66
- package/scheduler/reports/chargeStatus.js +0 -752
- package/scheduler/reports/cofsReports.d.ts +0 -11
- package/scheduler/reports/cofsReports.js +0 -36
- package/scheduler/reports/enterpriseSchedule.d.ts +0 -18
- package/scheduler/reports/enterpriseSchedule.js +0 -159
- package/scheduler/reports/index.d.ts +0 -6
- package/scheduler/reports/index.js +0 -22
- package/scheduler/reports/leaveReport.d.ts +0 -52
- package/scheduler/reports/leaveReport.js +0 -755
- package/scheduler/reports/leaves.d.ts +0 -24
- package/scheduler/reports/leaves.js +0 -110
- package/scheduler/reports/scheduleReport.d.ts +0 -17
- package/scheduler/reports/scheduleReport.js +0 -311
- package/scheduler/sites/index.d.ts +0 -1
- package/scheduler/sites/index.js +0 -17
- package/scheduler/sites/reports/cofsReport.d.ts +0 -41
- package/scheduler/sites/reports/cofsReport.js +0 -104
- package/scheduler/sites/reports/forecast.d.ts +0 -57
- package/scheduler/sites/reports/forecast.js +0 -205
- package/scheduler/sites/reports/index.d.ts +0 -4
- package/scheduler/sites/reports/index.js +0 -20
- package/scheduler/sites/reports/period.d.ts +0 -11
- package/scheduler/sites/reports/period.js +0 -27
- package/scheduler/sites/reports/section.d.ts +0 -63
- package/scheduler/sites/reports/section.js +0 -186
- package/scheduler/sites/site.d.ts +0 -39
- package/scheduler/sites/site.js +0 -68
- package/scheduler/sites/workcenters/index.d.ts +0 -3
- package/scheduler/sites/workcenters/index.js +0 -19
- package/scheduler/sites/workcenters/position.d.ts +0 -27
- package/scheduler/sites/workcenters/position.js +0 -36
- package/scheduler/sites/workcenters/shift.d.ts +0 -32
- package/scheduler/sites/workcenters/shift.js +0 -47
- package/scheduler/sites/workcenters/workcenter.d.ts +0 -43
- package/scheduler/sites/workcenters/workcenter.js +0 -123
- package/scheduler/teams/company/company.d.ts +0 -99
- package/scheduler/teams/company/company.js +0 -256
- package/scheduler/teams/company/holiday.d.ts +0 -61
- package/scheduler/teams/company/holiday.js +0 -116
- package/scheduler/teams/company/index.d.ts +0 -3
- package/scheduler/teams/company/index.js +0 -19
- package/scheduler/teams/company/modperiod.d.ts +0 -21
- package/scheduler/teams/company/modperiod.js +0 -24
- package/scheduler/teams/contact.d.ts +0 -18
- package/scheduler/teams/contact.js +0 -23
- package/scheduler/teams/index.d.ts +0 -3
- package/scheduler/teams/index.js +0 -19
- package/scheduler/teams/specialty.d.ts +0 -18
- package/scheduler/teams/specialty.js +0 -23
- package/scheduler/teams/team.d.ts +0 -95
- package/scheduler/teams/team.js +0 -351
- package/users/index.d.ts +0 -2
- package/users/index.js +0 -18
- package/users/user.d.ts +0 -130
- package/users/user.js +0 -256
- package/users/web.d.ts +0 -48
- package/users/web.js +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import AdmZip from "adm-zip";
|
|
2
|
-
import { IEmployee } from "../employees";
|
|
3
|
-
import { Workcode } from "../labor";
|
|
4
|
-
import { ISite } from "../sites";
|
|
5
|
-
/**
|
|
6
|
-
* This report formatter will be used by the application to compile the site's Certificate
|
|
7
|
-
* of service reports into a single zip file to be passed/downloaded for use.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CofSReports {
|
|
10
|
-
create(isite: ISite, iemployees: IEmployee[], workcodes: Map<string, Workcode>, start: Date): AdmZip;
|
|
11
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CofSReports = void 0;
|
|
7
|
-
const adm_zip_1 = __importDefault(require("adm-zip"));
|
|
8
|
-
const employees_1 = require("../employees");
|
|
9
|
-
const sites_1 = require("../sites");
|
|
10
|
-
/**
|
|
11
|
-
* This report formatter will be used by the application to compile the site's Certificate
|
|
12
|
-
* of service reports into a single zip file to be passed/downloaded for use.
|
|
13
|
-
*/
|
|
14
|
-
class CofSReports {
|
|
15
|
-
create(isite, iemployees, workcodes, start) {
|
|
16
|
-
const zip = new adm_zip_1.default();
|
|
17
|
-
const startDate = new Date(Date.UTC(start.getFullYear(), start.getMonth(), 1));
|
|
18
|
-
const endDate = new Date(Date.UTC(start.getFullYear(), start.getMonth() + 1, 1));
|
|
19
|
-
const site = new sites_1.Site(isite);
|
|
20
|
-
const employees = [];
|
|
21
|
-
iemployees.forEach(iEmp => {
|
|
22
|
-
const emp = new employees_1.Employee(iEmp);
|
|
23
|
-
if (emp.atSite(site.id, startDate, endDate)) {
|
|
24
|
-
employees.push(emp);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
site.cofs.forEach(async (cofs) => {
|
|
28
|
-
if (cofs.use(startDate, endDate)) {
|
|
29
|
-
const file = cofs.create(startDate, endDate, workcodes, employees);
|
|
30
|
-
await zip.addFile(file.name, Buffer.from(await file.arrayBuffer()));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return zip;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.CofSReports = CofSReports;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Workbook, Worksheet } from "exceljs";
|
|
2
|
-
import { Report } from "../../general";
|
|
3
|
-
import { User } from "../../users";
|
|
4
|
-
import { Workcode } from "../labor";
|
|
5
|
-
import { Employee, IEmployee } from "../employees";
|
|
6
|
-
export declare class EnterpriseSchedule extends Report {
|
|
7
|
-
private fonts;
|
|
8
|
-
private fills;
|
|
9
|
-
private borders;
|
|
10
|
-
private alignments;
|
|
11
|
-
private workcodes;
|
|
12
|
-
constructor(workcodes: Map<string, Workcode>);
|
|
13
|
-
create(user: User, year: number, site: string, iEmps: IEmployee[]): Workbook;
|
|
14
|
-
createStyles(): void;
|
|
15
|
-
addMonth(workbook: Workbook, start: Date, site: string, iEmps: IEmployee[]): void;
|
|
16
|
-
createEmployeeRow(sheet: Worksheet, start: Date, end: Date, row: number, emp: Employee): void;
|
|
17
|
-
getDateValue(code: string, hours: number): string;
|
|
18
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnterpriseSchedule = void 0;
|
|
4
|
-
const exceljs_1 = require("exceljs");
|
|
5
|
-
const general_1 = require("../../general");
|
|
6
|
-
const employees_1 = require("../employees");
|
|
7
|
-
class EnterpriseSchedule extends general_1.Report {
|
|
8
|
-
fonts;
|
|
9
|
-
fills;
|
|
10
|
-
borders;
|
|
11
|
-
alignments;
|
|
12
|
-
workcodes;
|
|
13
|
-
constructor(workcodes) {
|
|
14
|
-
super();
|
|
15
|
-
this.fonts = new Map();
|
|
16
|
-
this.fills = new Map();
|
|
17
|
-
this.borders = new Map();
|
|
18
|
-
this.alignments = new Map();
|
|
19
|
-
this.workcodes = workcodes;
|
|
20
|
-
}
|
|
21
|
-
create(user, year, site, iEmps) {
|
|
22
|
-
const workbook = new exceljs_1.Workbook();
|
|
23
|
-
workbook.creator = user.getFullName();
|
|
24
|
-
workbook.created = new Date();
|
|
25
|
-
this.createStyles();
|
|
26
|
-
let start = new Date(Date.UTC(year, 0, 1));
|
|
27
|
-
const end = new Date(Date.UTC(year, 11, 31, 59, 59, 59));
|
|
28
|
-
while (start.getTime() < end.getTime()) {
|
|
29
|
-
this.addMonth(workbook, start, site, iEmps);
|
|
30
|
-
start = new Date(Date.UTC(start.getFullYear(), start.getMonth() + 1, 1));
|
|
31
|
-
}
|
|
32
|
-
const sheet = workbook.getWorksheet('Sheet1');
|
|
33
|
-
if (sheet) {
|
|
34
|
-
workbook.removeWorksheet(sheet.id);
|
|
35
|
-
}
|
|
36
|
-
return workbook;
|
|
37
|
-
}
|
|
38
|
-
createStyles() {
|
|
39
|
-
// set fonts
|
|
40
|
-
this.fonts.set("bold11", { bold: true, size: 11, color: { argb: 'ff000000' } });
|
|
41
|
-
this.fonts.set("bold11white", { bold: true, size: 11, color: { argb: 'ffffffff' } });
|
|
42
|
-
// set fills
|
|
43
|
-
this.fills.set('evenday', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffc0c0c0' } });
|
|
44
|
-
this.fills.set('weekend', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffccffff' } });
|
|
45
|
-
this.fills.set('evenend', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ff00e6e6' } });
|
|
46
|
-
this.fills.set('weekday', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffffffff' } });
|
|
47
|
-
this.fills.set('month', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ffde5d12' } });
|
|
48
|
-
this.fills.set('wkctr', { type: 'pattern', pattern: 'solid', fgColor: { argb: 'ff000000' } });
|
|
49
|
-
// set borders
|
|
50
|
-
this.borders.set('blackthin', {
|
|
51
|
-
top: { style: 'thin', color: { argb: 'ff000000' } },
|
|
52
|
-
left: { style: 'thin', color: { argb: 'ff000000' } },
|
|
53
|
-
bottom: { style: 'thin', color: { argb: 'ff000000' } },
|
|
54
|
-
right: { style: 'thin', color: { argb: 'ff000000' } }
|
|
55
|
-
});
|
|
56
|
-
// set alignments
|
|
57
|
-
this.alignments.set('center', { horizontal: 'center', vertical: 'middle', wrapText: true });
|
|
58
|
-
}
|
|
59
|
-
addMonth(workbook, start, site, iEmps) {
|
|
60
|
-
const startDate = new Date(Date.UTC(start.getFullYear(), start.getMonth(), 1));
|
|
61
|
-
const endDate = new Date(Date.UTC(start.getFullYear(), start.getMonth() + 1, 1));
|
|
62
|
-
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
|
|
63
|
-
'Nov', 'Dec'];
|
|
64
|
-
const weekdays = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
|
|
65
|
-
const sheetLabel = `${months[startDate.getMonth()]}`
|
|
66
|
-
+ `${startDate.getFullYear().toString().substring(2)}`;
|
|
67
|
-
const employees = [];
|
|
68
|
-
iEmps.forEach(iEmp => {
|
|
69
|
-
const emp = new employees_1.Employee(iEmp);
|
|
70
|
-
if (emp.atSite(site, startDate, endDate)) {
|
|
71
|
-
employees.push(emp);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
employees.sort((a, b) => a.compareTo(b));
|
|
75
|
-
// add a worksheet to the workbook and set the page options (landscape, etc)
|
|
76
|
-
const sheet = workbook.addWorksheet(sheetLabel, {
|
|
77
|
-
pageSetup: {
|
|
78
|
-
paperSize: undefined,
|
|
79
|
-
orientation: 'landscape',
|
|
80
|
-
fitToHeight: 1,
|
|
81
|
-
fitToWidth: 1,
|
|
82
|
-
blackAndWhite: false,
|
|
83
|
-
fitToPage: true,
|
|
84
|
-
showGridLines: false,
|
|
85
|
-
horizontalCentered: true,
|
|
86
|
-
verticalCentered: true
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
sheet.properties.defaultColWidth = 5.0;
|
|
90
|
-
sheet.properties.defaultRowHeight = 20;
|
|
91
|
-
// set the widths of the columns: 1 = 17.0 and the rest are 4.0
|
|
92
|
-
let current = new Date(startDate);
|
|
93
|
-
sheet.getColumn(1).width = 17.0;
|
|
94
|
-
while (current.getTime() < endDate.getTime()) {
|
|
95
|
-
sheet.getColumn(current.getDate() + 1).width = 4.0;
|
|
96
|
-
current = new Date(current.getTime() + (24 * 3600000));
|
|
97
|
-
}
|
|
98
|
-
// label the first three rows with data
|
|
99
|
-
let style = {
|
|
100
|
-
border: this.borders.get('blackthin'),
|
|
101
|
-
fill: this.fills.get('weekday'),
|
|
102
|
-
font: this.fonts.get('bold11'),
|
|
103
|
-
alignment: this.alignments.get('center')
|
|
104
|
-
};
|
|
105
|
-
current = new Date(startDate);
|
|
106
|
-
while (current.getTime() < endDate.getTime()) {
|
|
107
|
-
this.setCell(sheet, this.getCellID(current.getDate(), 1), this.getCellID(current.getDate(), 1), style, months[current.getMonth()]);
|
|
108
|
-
this.setCell(sheet, this.getCellID(current.getDate(), 2), this.getCellID(current.getDate(), 2), style, weekdays[current.getDay()]);
|
|
109
|
-
this.setCell(sheet, this.getCellID(current.getDate(), 3), this.getCellID(current.getDate(), 3), style, current.getDate());
|
|
110
|
-
current = new Date(current.getTime() + (24 * 3600000));
|
|
111
|
-
}
|
|
112
|
-
let row = 3;
|
|
113
|
-
employees.forEach(emp => {
|
|
114
|
-
row++;
|
|
115
|
-
this.createEmployeeRow(sheet, startDate, endDate, row, emp);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
createEmployeeRow(sheet, start, end, row, emp) {
|
|
119
|
-
let style = {
|
|
120
|
-
border: this.borders.get('blackthin'),
|
|
121
|
-
fill: this.fills.get('weekday'),
|
|
122
|
-
font: this.fonts.get('bold11'),
|
|
123
|
-
alignment: this.alignments.get('center')
|
|
124
|
-
};
|
|
125
|
-
this.setCell(sheet, this.getCellID(0, row), this.getCellID(0, row), style, emp.name.getFirstLast());
|
|
126
|
-
let current = new Date(start);
|
|
127
|
-
while (current.getTime() < end.getTime()) {
|
|
128
|
-
const wd = emp.getWorkday(current, 'general');
|
|
129
|
-
const cell = this.getCellID(current.getDate(), row);
|
|
130
|
-
let code = '';
|
|
131
|
-
if (wd && wd.code !== '') {
|
|
132
|
-
code = this.getDateValue(wd.code, wd.hours);
|
|
133
|
-
}
|
|
134
|
-
this.setCell(sheet, cell, cell, style, code);
|
|
135
|
-
current = new Date(current.getTime() + (24 * 3600000));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
getDateValue(code, hours) {
|
|
139
|
-
const letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
140
|
-
let answer = '';
|
|
141
|
-
if (code !== '') {
|
|
142
|
-
const wc = this.workcodes.get(code);
|
|
143
|
-
if (wc) {
|
|
144
|
-
if (wc.isLeave && wc.altcode) {
|
|
145
|
-
answer = wc.altcode;
|
|
146
|
-
}
|
|
147
|
-
else if (!wc.isLeave) {
|
|
148
|
-
answer = wc.start.toString().padStart(2, '0');
|
|
149
|
-
const iHours = Math.floor(hours);
|
|
150
|
-
if (iHours > 0) {
|
|
151
|
-
answer += letters.substring(iHours - 1, iHours);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return answer;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
exports.EnterpriseSchedule = EnterpriseSchedule;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./cofsReports"), exports);
|
|
18
|
-
__exportStar(require("./enterpriseSchedule"), exports);
|
|
19
|
-
__exportStar(require("./scheduleReport"), exports);
|
|
20
|
-
__exportStar(require("./chargeStatus"), exports);
|
|
21
|
-
__exportStar(require("./leaveReport"), exports);
|
|
22
|
-
__exportStar(require("./leaves"), exports);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Workbook, Worksheet } from "exceljs";
|
|
2
|
-
import { Report } from "../../general";
|
|
3
|
-
import { Employee, IEmployee } from "../employees";
|
|
4
|
-
import { IHoliday } from "../teams/company";
|
|
5
|
-
import { User } from "../../users";
|
|
6
|
-
import { IWorkcode } from "../labor";
|
|
7
|
-
export declare class LeaveReport extends Report {
|
|
8
|
-
private employees;
|
|
9
|
-
private holidays;
|
|
10
|
-
private fonts;
|
|
11
|
-
private fills;
|
|
12
|
-
private borders;
|
|
13
|
-
private alignments;
|
|
14
|
-
private numformats;
|
|
15
|
-
private workcodes;
|
|
16
|
-
constructor(holidays: IHoliday[], workcodes: IWorkcode[]);
|
|
17
|
-
/**
|
|
18
|
-
* This method is used to start the workbook creation and will call the other functional
|
|
19
|
-
* sheets to create the report.
|
|
20
|
-
* @param user The user object for the employee who is creating the report
|
|
21
|
-
* @param iEmps A list of employee objects to use in creating the report
|
|
22
|
-
* @param site A string value for the site identifier for the report
|
|
23
|
-
* @param company A string value for the company identifier
|
|
24
|
-
* @param reqDate A date object for the requested date
|
|
25
|
-
* @returns The workbook object with the report data.
|
|
26
|
-
*/
|
|
27
|
-
create(user: User, iEmps: IEmployee[], site: string, company: string, reqDate: Date): Workbook;
|
|
28
|
-
/**
|
|
29
|
-
* This function will create the basic style information to be used within the sheet
|
|
30
|
-
* cells, which consists for font styles, cell fill styles, borders, and alignments for
|
|
31
|
-
* the text within the cell. Plus a late addition of the various number formats to
|
|
32
|
-
* present.
|
|
33
|
-
*/
|
|
34
|
-
createStyles(): void;
|
|
35
|
-
/**
|
|
36
|
-
* This function will create the PTO/Holiday Section
|
|
37
|
-
* @param workbook The report object in which a sheet is created into.
|
|
38
|
-
* @param year the integer value for the year of the report
|
|
39
|
-
*/
|
|
40
|
-
createLeaveListing(workbook: Workbook, year: number, showHolidays: boolean): void;
|
|
41
|
-
/**
|
|
42
|
-
* This function will create the employee's Holidays and PTO report section
|
|
43
|
-
* @param sheet The worksheet object in which to add this employee's section
|
|
44
|
-
* @param emp The employee object used to determine the information about the section
|
|
45
|
-
* @param row The numeric value for the beginning of the section
|
|
46
|
-
* @param year The numeric value year the report is for.
|
|
47
|
-
* @param showHoliday A boolean value on whether to show the holidays for not.
|
|
48
|
-
* @returns the numeric value for the last row of this employee's section
|
|
49
|
-
*/
|
|
50
|
-
employeePTOHolidaySection(sheet: Worksheet, emp: Employee, row: number, year: number, showHoliday: boolean): number;
|
|
51
|
-
createMonthlyListing(workbook: Workbook, year: number, bAll?: boolean): void;
|
|
52
|
-
}
|