Add github action script and fixbug
This commit is contained in:
parent
f2dcf9bb49
commit
4c0ae730df
49 changed files with 6687 additions and 338 deletions
19
Extensions/ExcelWorksheetExtension.cs
Normal file
19
Extensions/ExcelWorksheetExtension.cs
Normal 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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue