2023-10-13 21:09:48 +04:00
|
|
|
|
namespace COP.Info
|
|
|
|
|
{
|
2023-10-24 01:43:07 +04:00
|
|
|
|
public class ExcelTableInfo<T> where T: class
|
2023-10-13 21:09:48 +04:00
|
|
|
|
{
|
2023-10-24 01:43:07 +04:00
|
|
|
|
public string FilePath { get; set; } = string.Empty;
|
2023-10-13 21:09:48 +04:00
|
|
|
|
public string DocumentTitle { get; set; } = string.Empty;
|
2023-10-24 01:43:07 +04:00
|
|
|
|
public List<T>? Data;
|
|
|
|
|
public Dictionary<string, ((List<string>, List<string>), List<int>)> Headers { get; set; }
|
2023-10-13 21:09:48 +04:00
|
|
|
|
|
2023-10-24 01:43:07 +04:00
|
|
|
|
public ExcelTableInfo (string filePath, string documentTitle, List<T> data, Dictionary<string, ((List<string>, List<string>), List<int>)> headers)
|
2023-10-13 21:09:48 +04:00
|
|
|
|
{
|
|
|
|
|
FilePath = filePath;
|
|
|
|
|
DocumentTitle = documentTitle;
|
|
|
|
|
Data = data;
|
2023-10-24 01:43:07 +04:00
|
|
|
|
Headers = headers;
|
|
|
|
|
}
|
2023-10-13 21:09:48 +04:00
|
|
|
|
}
|
|
|
|
|
}
|