init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
52
Kreta.BusinessLogic/Classes/ExcelHelpers/ExcelDataSource.cs
Normal file
52
Kreta.BusinessLogic/Classes/ExcelHelpers/ExcelDataSource.cs
Normal file
|
@ -0,0 +1,52 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue