|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
|
|
|
|
|
|
#region 文件说明
|
|
|
|
|
|
/*-----------------------------------------------------
|
|
|
|
|
|
* 版权所有 (c) 2024 jdfcd
|
|
|
|
|
|
* CLR版本 4.0.30319.42000
|
|
|
|
|
|
* 命名空间 DQ.Construction.NewLook.DataManager
|
|
|
|
|
|
*
|
|
|
|
|
|
* 创建者:pnpe
|
|
|
|
|
|
* 电子邮件:pnpe@qq.com
|
|
|
|
|
|
* 创建时间:2024/7/24 9:17:09
|
|
|
|
|
|
*/
|
|
|
|
|
|
#endregion 文件说明
|
|
|
|
|
|
namespace DQ.Construction.NewLook.DataManager
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The import result.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class ImportResult
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the import class type.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ImpClsType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the import result details.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public List<ImportResultDetail> ImpResDetails { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The import result detail.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class ImportResultDetail
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the key.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the row.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Row { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the remark.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the import result type.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ImportResultType ImpResType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the error solve type.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ImportErrorSolveType ErrorSolveType { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The import result type.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum ImportResultType
|
|
|
|
|
|
{
|
|
|
|
|
|
记录重复,
|
|
|
|
|
|
基础不存在,
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The import result type.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum ImportErrorSolveType
|
|
|
|
|
|
{
|
|
|
|
|
|
拦截,
|
|
|
|
|
|
追加,
|
|
|
|
|
|
覆盖,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum ResultStatus
|
|
|
|
|
|
{
|
|
|
|
|
|
成功,
|
|
|
|
|
|
部分成功,
|
|
|
|
|
|
失败,
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 读取结果类
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class LoadDataResult
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the data table.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DataTable dataTable { get; set; }
|
|
|
|
|
|
public int recordCount { get; set; }
|
|
|
|
|
|
public ResultStatus status { get; set; }
|
|
|
|
|
|
public string msg { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|