kreta/Kreta.BusinessLogic/Classes/ExcelHelpers/ExcelDataSource.cs
2024-03-13 00:33:46 +01:00

52 lines
1.3 KiB
C#

using System.Collections.Generic;
namespace Kreta.BusinessLogic.Classes.ExcelHelpers
{
public class ExcelDataSource
{
#region Entities
public int? LevelIndex { get; set; }
public Dictionary<int, List<Column>> AllMultiLevelColumns { get; set; }
public List<Column> Columns;
public List<Row> Rows;
public ExcelDataSource(int? levelIndex = null)
{
LevelIndex = levelIndex;
Rows = new List<Row>();
Columns = new List<Column>();
}
public class Row
{
public Row()
{
Cells = new List<Column>();
LevelIDs = new List<int>();
}
public int ID;
public List<Column> Cells;
public List<int> LevelIDs { get; set; }
public ExcelDataSource ChildDataSource;
public List<Column> RowSubItems { get; set; }
}
public class Column
{
public int LevelIndex { get; set; }
public string Name;
public string Value;
public ColumnType Type;
public ExcelDataSource ComboDataSource;
}
public enum ColumnType
{
String,
Combo,
Checkbox,
Formula
}
#endregion
}
}