|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
public class ParserExcelInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sheet详情列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<ParserSheetInfo> sheetList { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// sheet合计
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int totalSheet { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// sheet名称组
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string[] sheetNameArgs { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单元总数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int totalCell { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ParserSheetInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sheet名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string sheetName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单元详情
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<ParserCellInfo> cellList { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列标题
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<ParserColsInfo> colsList { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主要保存解析的非Table内容,例如标题。
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<ParserCellInfo> otherList { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否Table混合标题
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool isMutipleTableCols { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ParserCellInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 序号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int sort { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int colsIndx { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int rowIndx { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string colsName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单元值
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string cellVal { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ParserColsInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int sort { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列标
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int colsIndx { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string colsName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 上层列标题
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<ParserColsInfo> aboveColsList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|