Add github action script and fixbug

This commit is contained in:
Suphonchai Phoonsawat 2023-04-06 16:38:26 +07:00
parent f2dcf9bb49
commit 4c0ae730df
49 changed files with 6687 additions and 338 deletions

View file

@ -0,0 +1,19 @@
using OfficeOpenXml;
using System;
using System.Collections.Generic;
namespace BMA.EHR.Recruit.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();
}
}
}