scheduler-node-models 1.0.8 → 1.0.10
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/general/report.js
CHANGED
package/package.json
CHANGED
@@ -51,7 +51,7 @@ class ScheduleReport extends general_1.Report {
|
|
51
51
|
this.styles.set(wc.id, style);
|
52
52
|
}
|
53
53
|
});
|
54
|
-
|
54
|
+
let style = {
|
55
55
|
fill: { type: 'pattern', pattern: 'solid', fgColor: { argb: `ffc0c0c0` } },
|
56
56
|
font: { bold: true, size: 11, color: { argb: `ff000000` } },
|
57
57
|
alignment: { horizontal: 'center', vertical: 'middle', wrapText: true },
|
@@ -61,7 +61,8 @@ class ScheduleReport extends general_1.Report {
|
|
61
61
|
bottom: { style: 'thin', color: { argb: 'ff000000' } },
|
62
62
|
right: { style: 'thin', color: { argb: 'ff000000' } }
|
63
63
|
}
|
64
|
-
}
|
64
|
+
};
|
65
|
+
this.styles.set('evenday', style);
|
65
66
|
this.styles.set('oddday', {
|
66
67
|
fill: { type: 'pattern', pattern: 'solid', fgColor: { argb: `ffffffff` } },
|
67
68
|
font: { bold: true, size: 11, color: { argb: `ff000000` } },
|
@@ -193,7 +194,6 @@ class ScheduleReport extends general_1.Report {
|
|
193
194
|
// and days of the month at 4.0
|
194
195
|
sheet.getColumn(1).width = 17.0;
|
195
196
|
const endofMonth = (new Date(endDate.getTime() - (24 * 3600000))).getDate();
|
196
|
-
console.log(endofMonth);
|
197
197
|
for (let i = 0; i < endofMonth; i++) {
|
198
198
|
sheet.getColumn(2 + i).width = 4.0;
|
199
199
|
}
|
@@ -220,7 +220,6 @@ class ScheduleReport extends general_1.Report {
|
|
220
220
|
cellID = this.getCellID(current.getDate(), 2);
|
221
221
|
this.setCell(sheet, cellID, cellID, style, current.getDate());
|
222
222
|
current = new Date(current.getTime() + (24 * 3600000));
|
223
|
-
console.log(current);
|
224
223
|
}
|
225
224
|
// now add row for workcenter header, then the employees under that workcenter
|
226
225
|
let row = 2;
|
@@ -282,6 +281,7 @@ class ScheduleReport extends general_1.Report {
|
|
282
281
|
}
|
283
282
|
}
|
284
283
|
style = this.styles.get(stID);
|
284
|
+
console.log(style);
|
285
285
|
const cellID = this.getCellID(current.getDate(), row);
|
286
286
|
this.setCell(sheet, cellID, cellID, style, code);
|
287
287
|
current = new Date(current.getTime() + (24 * 3600000));
|