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

namespace APT.MS.Domain.Entities.CM
{
    /// <summary>
    /// 应急模块基础配置（每天跑一次 跑了记录 LASTRUNDATE 每天不重复跑）
    /// 每个日期有基础日期 可修改
    /// </summary>
    [Description("应急模块基础配置")]
    public class T_CM_CONFIG : MesEntityBase
    {
        /// <summary>
        /// 年度应急演练计划触发时间（1月1日 安环部的负责人）
        /// </summary>
        [Description("年度应急演练计划触发时间")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime? DRILL_PLAN_TRIGGER_TIME { get; set; }


        /// <summary>
        /// 召开潜在紧急事件讨论会触发时间（3月1日 安环部的负责人）
        /// </summary>
        [Description("潜在紧急事件清单触发日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime? URGENT_EVENT_TRIGGER_TIME { get; set; }

        /// <summary>
        /// 应急装备需求调查发起时间
        /// </summary>
        [Description("潜在紧急事件清单触发日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime? EQUIPMENT_DEMAND_SURVEY_START_TIME { get; set; }

        /// <summary>
        /// 应急装备需求调查截至时间
        /// </summary>
        [Description("潜在紧急事件清单触发日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime? EQUIPMENT_DEMAND_SURVEY_END_TIME { get; set; }

        /// <summary>
        /// 潜在紧急事件清单触发时间
        /// </summary>
        [Description("潜在紧急事件清单触发日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime? URGENT_EVENT_LIST_START_TIME { get; set; }

        /// <summary>
        /// 应急装备需求调查触发日期
        /// </summary>
        [Description("应急装备需求调查触发日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]

        public DateTime? DEMAND_SURVEY_START_TIME { get; set; }

        /// <summary>
        /// 应急装备需求调查结束日期
        /// </summary>
        [Description("应急装备需求调查结束日期")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public DateTime? DEMAND_SURVEY_END_TIME { get; set; }

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

        /// <summary>
        /// 接收部门
        /// </summary>
        [Description("接收部门")]
        [DataFieldForeignKey("Nav_Department")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public Guid? DEPARTMENT_ID { get; set; }

        /// <summary>
        /// 接收部门
        /// </summary>
        [Description("接收部门")]
        public virtual T_FM_DEPARTMENT Nav_Department { get; set; }

        /// <summary>
        /// 接收岗位
        /// </summary>
        [Description("接收岗位")]
        [DataFieldForeignKey("Nav_Post")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public Guid? POST_ID { get; set; }

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

    }
}