WorkRecordResponse.cs 2.69 KB
using System.Collections.Generic;

namespace HHECS.WorkHourStatistics.Dtos
{
    public class WorkRecordResponse
    {
        public object QueryParam { get; set; } = new object();

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页数量
        /// </summary>
        public int PageSize { get; set; }

        public bool NeedTotal { get; set; }

        public object SortFields { get; set; } = new object();

        /// <summary>
        /// 总数据条数
        /// </summary>
        public int Total { get; set; }

        public List<WorkRecordDatalist> DataList { get; set; } = new List<WorkRecordDatalist>();
    }

    public class WorkRecordDatalist
    {
        /// <summary>
        /// 所属部门
        /// </summary>
        public string DeptName { get; set; } = null!;

        /// <summary>
        /// 当日打卡信息
        /// </summary>
        public List<Attendancedatalist> AttendanceDataList { get; set; } = new List<Attendancedatalist>();

        /// <summary>
        /// 加班日期
        /// </summary>
        public string CheckDate { get; set; } = null!;

        /// <summary>
        /// 加班时长和审批单差值
        /// </summary>
        public string Diff4WorkAndApprove { get; set; } = null!;

        /// <summary>
        /// 部门层级
        /// </summary>
        public string DeptHierarchy { get; set; } = null!;

        /// <summary>
        /// 姓名
        /// </summary>
        public string PersonName { get; set; } = null!;

        /// <summary>
        /// 工号
        /// </summary>
        public string Number { get; set; } = null!;

        /// <summary>
        /// 加班类型
        /// </summary>
        public string DateType { get; set; } = null!;

        /// <summary>
        /// 加班审批单
        /// </summary>
        public string WorkFlowInfo { get; set; } = null!;

        /// <summary>
        /// 考勤组名称
        /// </summary>
        public string TemplateName { get; set; } = null!;

        /// <summary>
        /// 加班总时长(小时)
        /// </summary>
        public string Total4WorkHours { get; set; } = null!;

        public string Id { get; set; } = null!;

        /// <summary>
        /// 加班原因
        /// </summary>
        public string Remarks { get; set; } = null!;
    }

    public class Attendancedatalist
    {
        /// <summary>
        /// 打卡时间
        /// </summary>
        public string CreateTime { get; set; } = null!;

        /// <summary>
        /// 基准时间
        /// </summary>
        public string BaseCheckTime { get; set; } = null!;
    }
}