using Edu.Common.Enum.User;
using Edu.Model.Entity.User;
using System;
using VT.FW.DB;

namespace Edu.Model.ViewModel.User
{
    /// <summary>
    /// 考勤记录扩展实体类
    /// </summary>    
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Attendance_Record_Extend : RB_Attendance_Record
    {
        #region 扩展字段
        /// <summary>
        /// 员工姓名
        /// </summary>
        public string EmName { get; set; }
        /// <summary>
        /// 入职时间
        /// </summary>
        public DateTime? EmEntry { get; set; }
        /// <summary>
        /// 离职时间
        /// </summary>
        public DateTime? EmLeave { get; set; }
        /// <summary>
        /// 是否离职
        /// </summary>
        public int IsLeave { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PostName { get; set; }

        /// <summary>
        /// 打卡日期
        /// </summary>
        public string DateStr { get; set; }

        /// <summary>
        /// 上班打卡结果
        /// </summary>
        public string BeOnResult { get; set; }

        /// <summary>
        /// 下班打卡结果
        /// </summary>
        public string OffResult { get; set; }

        /// <summary>
        /// 出勤天数
        /// </summary>
        public int CQDay { get; set; }

        /// <summary>
        /// 休息天数
        /// </summary>
        public int XXDay { get; set; }
        /// <summary>
        /// 总的请假天数
        /// </summary>
        public Double QJDay { get; set; }

        /// <summary>
        /// 年假请假天数
        /// </summary>
        public Double NJDay { get; set; }
        /// <summary>
        /// 病假请假天数
        /// </summary>
        public Double BJDay { get; set; }
        /// <summary>
        /// 事假请假天数
        /// </summary>
        public Double SJDay { get; set; }
        /// <summary>
        /// 婚假请假天数
        /// </summary>
        public Double HJDay { get; set; }

        /// <summary>
        /// 剩余年假天数
        /// </summary>
        public double AnnualLeaveDay { get; set; }

        /// <summary>
        /// 一档迟到次数
        /// </summary>
        public int OneCDNum { get; set; }
        /// <summary>
        /// 二档迟到次数
        /// </summary>
        public int TwoCDNum { get; set; }

        /// <summary>
        /// 销售收客数量
        /// </summary>
        public int GuestNum { get; set; }

        /// <summary>
        /// 迟到次数
        /// </summary>
        public int CDNum { get; set; }

        /// <summary>
        /// 迟到时间 （分钟）
        /// </summary>
        public int CDTime { get; set; }

        /// <summary>
        /// 上班缺卡次数
        /// </summary>
        public int SBQK { get; set; }

        /// <summary>
        /// 下班缺卡
        /// </summary>
        public int XBQK { get; set; }

        /// <summary>
        /// 全体旷工
        /// </summary>
        public int QTKG { get; set; }
        /// <summary>
        /// 年假时长
        /// </summary>
        public Double AnnualLeaveSum { get; set; }
        /// <summary>
        /// 事假时长
        /// </summary>
        public Double AffairLeaveSum { get; set; }
        /// <summary>
        /// 病假时长
        /// </summary>
        public Double SickLeaveSum { get; set; }
        /// <summary>
        /// 申请单id
        /// </summary>
        public int? WorkFlowId { get; set; }
        /// <summary>
        /// 申请单类型
        /// </summary>
        public int? TemplateType { get; set; }

        /// <summary>
        /// 考勤状态枚举
        /// </summary>
        public AttendanceEnum StatusEnum { get; set; }

        #endregion
    }
}