using APT.BaseData.Domain.Entities.FM;
using APT.Infrastructure.Core;
using APT.MS.Domain.Entities.HM;
using APT.MS.Domain.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APT.MS.Domain.Entities.OH
{
    /// <summary>
    /// 职业卫生基础配置
    /// </summary>
    [Description("职业卫生基础配置")]
    public class T_OH_RUNCONFIG : MesEntityBase
    {
        /// <summary>
        /// 配置类型
        /// </summary>
        [Description("配置类型")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public ConfigType CONFIGTYPE { get; set; }

        /// <summary>
        /// 待办日期
        /// </summary>
        [Description("待办日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime DATE { get; set; }


        /// <summary>
        /// 待办日期
        /// </summary>
        [Description("待办日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        [DataFieldIngore]
        public string STRDATE { get; set; }
        /// <summary>
        /// 任务接收岗位
        /// </summary>
        [Description("体检计划接收岗位")]
        [FormFieldTable]
        [FormFieldEdit]
        [DataFieldForeignKey("Nav_Post")]
        public Guid? POST_ID { get; set; }

        /// <summary>
        /// 导航：岗位
        /// </summary>
        [Description("导航：岗位")]
        public virtual T_FM_USER_POST Nav_Post { get; set; }

        /// <summary>
        /// 是否单人接收
        /// </summary>
        [FormFieldTable]
        [FormFieldEdit]
        [Description("是否单人接收")]
        public bool ISONLY { get; set; } = true;

        /// <summary>
        /// 最后跑批日期 
        /// </summary>
        [Description("最后跑批日期")]
        [FormFieldTable]
        public DateTime LASTRUNDATE { get; set; }

    }
}
