using YBEE.EQM.Core;

namespace YBEE.EQM.Application;

/// <summary>
/// 监测机构输出参数
/// </summary>
public class ExamOrgOutput
{
    /// <summary>
    /// 主键
    /// </summary>
    [Required]
    public int Id { get; set; }
    /// <summary>
    /// 监测计划ID
    /// </summary>
    [Required]
    public int ExamPlanId { get; set; }
    /// <summary>
    /// 监测机构ID
    /// </summary>
    [Required]
    public short SysOrgId { get; set; }

    /// <summary>
    /// 是否参与监测
    /// </summary>
    [Required]
    public bool IsRequiredExam { get; set; }

    ///// <summary>
    ///// 监测方案下载次数
    ///// </summary>
    //[Required]
    //public int ExamSampleDownloadCount { get; set; }
    ///// <summary>
    ///// 监测方案首次下载时间
    ///// </summary>
    //public DateTime? ExamSampleDownloadTime { get; set; }
    ///// <summary>
    ///// 下载人用户ID
    ///// </summary>
    //public int? ExamSampleDownloadSysUserId { get; set; }


    /// <summary>
    /// 机构
    /// </summary>
    public SysOrgLiteOutput SysOrg { get; set; }

    /// <summary>
    /// 上报状态
    /// </summary>
    public Dictionary<short, DataReportStatus> DataReports { get; set; } = new();
    /// <summary>
    /// 上报列表
    /// </summary>
    public List<ExamOrgDataReportOutput> DataReportList { get; set; } = new();
}
