namespace YBEE.EQM.Application;
///
/// 监测数据上报类型上传输出参数
///
public class UploadExamDataOutput where T : UploadExamDataBase
{
///
/// 表格结构是否符合要求
///
public bool StructureCorrect { get; set; } = false;
///
/// 错误消息
///
public List ErrorMessage { get; set; } = new();
///
/// 总行数
///
public int TotalRowCount { get; set; } = 0;
///
/// 错误行数
///
public int ErrorRowCount { get; set; } = 0;
///
/// 成功行数
///
public int SuccessRowCount => TotalRowCount - ErrorRowCount;
///
/// 行数据
///
public List Rows { get; set; } = new();
}
///
/// 导入数据行基类
///
public abstract class UploadExamDataBase
{
///
/// ID
///
[Required]
public int RowNumber { get; set; }
///
/// 是否成功
///
public bool IsSuccess { get; set; } = false;
///
/// 错误消息
///
public List ErrorMessage { get; set; } = new();
}