using System; using System.Collections.Generic; namespace NPP.SmartSchedue.Api.Contracts.Services.Time.Output; /// /// 员工请假状态检查结果 /// 用于智能分配系统的人员可用性检查 /// public class EmployeeLeaveStatusResult { /// /// 是否在请假期间 /// public bool IsOnLeave { get; set; } /// /// 请假类型(如果在请假期间) /// public string LeaveType { get; set; } /// /// 请假开始时间(如果在请假期间) /// public DateTime? LeaveStartTime { get; set; } /// /// 请假结束时间(如果在请假期间) /// public DateTime? LeaveEndTime { get; set; } /// /// 请假原因(如果在请假期间) /// public string LeaveReason { get; set; } /// /// 请假记录ID(如果在请假期间) /// public long? LeaveRecordId { get; set; } /// /// 检查日期 /// public DateTime CheckDate { get; set; } /// /// 相关的请假记录列表(可能有多个重叠的请假) /// public List LeaveRecords { get; set; } = new(); } /// /// 员工请假信息简化版 /// public class EmployeeLeaveInfo { public long Id { get; set; } public string LeaveType { get; set; } public DateTime StartTime { get; set; } public DateTime EndTime { get; set; } public string Reason { get; set; } }