apiคนพิการ

This commit is contained in:
Kittapath 2023-04-29 10:26:03 +07:00
parent be27aa4d33
commit 1d4043a50e
37 changed files with 9794 additions and 298 deletions

View file

@ -0,0 +1,19 @@
using OfficeOpenXml;
using System;
using System.Collections.Generic;
namespace BMA.EHR.Recurit.Exam.Service.Extensions
{
public static class ExcelWorksheetExtension
{
public static string[] GetHeaderColumns(this ExcelWorksheet sheet, int row = 1)
{
List<string> columnNames = new List<string>();
foreach (var firstRowCell in sheet.Cells[row, sheet.Dimension.Start.Column, 1, sheet.Dimension.End.Column])
columnNames.Add(firstRowCell.Text);
return columnNames.ToArray();
}
}
}