using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace wispro.sp.entity
{
    public class Staff
    {
        public Staff()
        {
            Customers = new HashSet<Customer>();
            ItemStaffs = new HashSet<ItemStaff>();
        }

        
        public int Id { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public string Password { get; set; }

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

        /// <summary>
        /// 
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 是否核算绩效
        /// </summary>
        public bool IsCalPerformsnce { get; set; }

        /// <summary>
        /// 代理人等级Id
        /// </summary>
        public int StaffGradeId { get; set; }

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

        /// <summary>
        /// 工作地
        /// </summary>
        public string WorkPlace { get; set; }

        /// <summary>
        /// 入职日期
        /// </summary>
        public DateTime? EntyDate { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Mail { get; set; }

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

        /// <summary>
        /// 代理人等级
        /// </summary>
        public virtual StaffGrade StaffGrade { get; set; }

        /// <summary>
        /// 负责客户
        /// </summary>
        public virtual ICollection<Customer> Customers { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public virtual ICollection<ItemStaff> ItemStaffs { get; set; }


        [JsonIgnore]
        /// <summary>
        /// 核稿记录
        /// </summary>
        public virtual ICollection<PerformanceItem> ReviewerItems { get; set; }

    }
}
