fix: export module in daftar gangguan dialihkan ke posko lain

This commit is contained in:
kur0nek-o
2024-03-20 16:42:24 +07:00
parent 9fb2c6bbb1
commit 61fd7a9fa3
3 changed files with 547 additions and 522 deletions

17
src/report/utils/xlsx.ts Normal file
View File

@ -0,0 +1,17 @@
export const setHeaderStyle = (
worksheet: any,
row: number,
column: number,
value: string,
horizontalAlignment: boolean = false
) => {
const cell = worksheet.getRow(row).getCell(column)
cell.value = value
cell.alignment = { vertical: 'middle' }
cell.font = { bold: true }
if (horizontalAlignment) {
cell.alignment.horizontal = 'center'
}
}