using APT.Infrastructure.Core;
using APT.MS.Domain.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace APT.MS.Domain.Entities.HM
{
    /// <summary>
    /// 任务分析详情表
    /// </summary>
    [Description("任务分析详情表")]
    public class T_HM_TASK_ANALYZE_DETAIL : MesEntityBase
    {
        /// <summary>
        /// 作业任务识别表
        /// </summary>
        [Description("任务识别表")]
        [DataFieldForeignKey("Nav_TaskAnalyze", "Nav_AnalyzeDetails")]

        public Guid TASK_ANALYZE_ID { get; set; }
        /// <summary>
        /// 导航属性：任务识别表
        /// </summary>
        [Description("导航属性：任务识别表")]
        public T_HM_TASK_ANALYZE Nav_TaskAnalyze { get; set; }

        /// <summary>
        /// 作业任务(环节)表
        /// </summary>
        [Description("作业任务(环节)表")]
        [DataFieldForeignKey("Nav_OperationLink")]
        public Guid OPERATION_LINK_ID { get; set; }
        /// <summary>
        /// 导航属性：作业任务(环节)表
        /// </summary>
        [Description("导航属性：作业任务(环节)表")]
        public T_HM_OPERATION_LINK Nav_OperationLink { get; set; }

        ///// <summary>
        ///// 导航属性：作业前安全确认
        ///// </summary>
        //[Description("作业前安全确认")]
        //[FormFieldEdit]
        //public ICollection<T_HM_OPERATION_TASK_ANALYZE_SAFE_CONFIRM> Nav_SafeConfirms { get; set; }

        ///// <summary>
        ///// 导航属性：作业流程及安全措施
        ///// </summary>
        //[Description("作业流程及安全措施")]
        //[FormFieldEdit]
        //public ICollection<T_HM_OPERATION_TASK_ANALYZE_SAFE_MEASURE> Nav_SafeMeasures { get; set; }

        ///// <summary>
        ///// 导航属性：作业后处理措施
        ///// </summary>
        //[Description("作业后处理措施")]
        //[FormFieldEdit]
        //public ICollection<T_HM_OPERATION_TASK_ANALYZE_DEAL_MEASURE> Nav_DealMeasures { get; set; }

        /// <summary>
        /// 审批级别
        /// </summary>
        [Description("任务分析类型")]
        [EnumName("HMTaskLevelEnum")]
        [FormFieldEdit]
        public HMTaskLevelEnum OPERATION_TASK_AUDIT { get; set; }

        /// <summary>
        /// 许可作业审批层级
        /// </summary>
        [Description("许可作业审批层级")]
        [EnumName("HMOperationTaskAuditEnum")]
        [FormFieldEdit]
        public HMOperationTaskAuditEnum AUDIT_LEVEL { get; set; }
    

        /// <summary>
        /// 导航：任务识别明细附件表
        /// </summary>
        [Description("导航：任务识别明细附件表")]
        public virtual ICollection<T_HM_TASK_ANALYZE_DETAIL_FILE> Nav_TaskAnalyzeDetailFiles { get; set; }


    }
}
