using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model
{
    /// <summary>
    /// 上班时间表
    /// </summary>
    public class Sys_WorkTimes : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 工作开始时间
        /// </summary>
        public string workstarttimes { get; set; } 
        /// <summary>
        /// 工作结束时间
        /// </summary>
        public string workendtimes { get; set; } 
        /// <summary>
        /// 坐席组编号
        /// </summary>
        public string groupcode { get; set; }
        /// <summary>
        /// 类型 0 全天，1 上午，2下午
        /// </summary>
        public int type { get; set; } = 0;
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 是否删除：0未删除，1已删除
        /// </summary>
        public bool isdelete { get; set; } = false;
    }

    /// <summary>
    /// 上下班时间段:0 全天，1 上午，2下午
    /// </summary>
    public enum EnumTimeType
    {
        /// <summary>
        /// 全天
        /// </summary>
        day=0,
        /// <summary>
        /// 上午
        /// </summary>
        am=1,
        /// <summary>
        /// 下午
        /// </summary>
        pm=2
    }
}
