namespace Tiobon.Core.Model;

public class Ghre_OpenClassScore
{

    public string Id { get; set; }

    /// <summary>
    /// 工号
    /// </summary>
    public string StaffNo { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    public string StaffName { get; set; }

    /// <summary>
    /// 部门
    /// </summary>
    public string DeptName { get; set; }

    /// <summary>
    /// 出席状态
    /// </summary>
    public string AttendStatus { get; set; }

    /// <summary>
    /// 缺席原因
    /// </summary>
    public string AbsenceReason { get; set; }

    /// <summary>
    /// 打卡时间
    /// </summary>
    public string CheckInTime { get; set; }

    /// <summary>
    /// 线上得分
    /// </summary>
    public decimal? Score { get; set; } = 0;

    /// <summary>
    /// 调整分
    /// </summary>
    public decimal? AdjustScore { get; set; } = 0;

    /// <summary>
    /// 考试分数
    /// </summary>
    public decimal? TotalScore { get; set; } = 0;

    /// <summary>
    /// 实操分
    /// </summary>
    public decimal? ActualScore { get; set; } = 0;

    /// <summary>
    /// 卷面合格
    /// </summary>
    public bool? IsPass { get; set; }

    /// <summary>
    /// 卷面合格
    /// </summary>
    public string IsPassLabel { get; set; }

    /// <summary>
    /// 最终是否合格	
    /// </summary>
    public bool? FinallyIsPass { get; set; }

    /// <summary>
    /// 最终是否合格	
    /// </summary>
    public string FinallyIsPassLabel { get; set; }

    /// <summary>
    /// 重考次数	
    /// </summary>
    public int? RetakeTimes { get; set; } = 0;

    /// <summary>
    /// 批改评语	
    /// </summary>
    public string Comment { get; set; }
}


public class Ghre_OpenClassSchedule1
{
    public string SceneName { get; set; }
    /// <summary>
    /// 是否可以签到
    /// </summary>
    public bool IsCheckIn { get; set; } = false;
    /// <summary>
    /// 是否可以签退
    /// </summary>
    public bool IsCheckOut { get; set; } = false;

    public string Status { get; set; }
    public string AttendType { get; set; }

    public List<Ghre_OpenClassScheduleDeatil> Details { get; set; }

}


public class Ghre_OpenClassScheduleDeatil
{

    public long? Id { get; set; }

    /// <summary>
    /// 课程ID
    /// </summary>
    public long? CourseId { get; set; }

    /// <summary>
    /// 讲师ID
    /// </summary>
    public long? TeacherId { get; set; }

    /// <summary>
    /// 培训地点
    /// </summary>
    public string Address { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime1 { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime1 { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string RemarkSz { get; set; }

    /// <summary>
    /// 时间
    /// </summary>
    public string Time { get; set; }

    /// <summary>
    /// 课程名称
    /// </summary>
    public string CourseName { get; set; }
    public DateTime? CheckInTime { get; set; }
    public DateTime? CheckOutTime { get; set; }

    /// <summary>
    /// 状态，缺席：Absence，出席：Attend，当前课程：Current，待开课：WaitStart
    /// </summary>
    public string Status { get; set; } = "Absence";
}