using APT.BaseData.Domain.Enums;
using APT.Infrastructure.Core;
using APT.MS.Domain.Entities.BS;
using APT.MS.Domain.Entities.SC.SC;
using APT.MS.Domain.Enums;
using APT.MS.Domain.Enums.SK;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace APT.MS.Domain.Entities.SK
{
    [Description("企业库检查内容表")]
    public class T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT : MesEntityBase
    {
        /// <summary>
        /// 企业库管控措施表
        /// </summary>
        [Description("企业库管控措施表")]
        [DataFieldForeignKey("Nav_LibraryDetail", "Nav_DetailContents")]
        public Guid ENTERPRISE_LIBRARY_DETAIL_ID { get; set; }

        /// <summary>
        /// 导航属性：企业库管控措施表
        /// </summary>
        [Description("导航属性：企业库管控措施表")]
        public T_SK_ENTERPRISE_LIBRARY_DETAIL Nav_LibraryDetail { get; set; }

        /// <summary>
        /// 检查内容
        /// </summary>
        [Description("检查内容")]
        [DataFieldForeignKey("Nav_Contents")]
        public Guid? CHECK_CONTENTS_ID { get; set; }

        /// <summary>
        /// 检查内容
        /// </summary>
        [Description("检查内容")]
        public virtual T_SK_CHECK_CONTENTS Nav_Contents { get; set; }
        /// <summary>
        /// 检查内容
        /// </summary>
        [Description("检查内容")]
        public string CHECK_CONTENT { get; set; }

        /// <summary>
        /// 检查依据
        /// </summary>
        [Description("检查依据")]
        public string CHECK_BASIC { get; set; }

        /// <summary>
        /// 判定标准
        /// </summary>
        [Description("判定标准")]
        public string CHECK_STANDARD { get; set; }

        /// <summary>
        /// 顺序
        /// </summary>
        [Description("顺序")]
        public int? NUM { get; set; }

        /// <summary>
        /// 导航属性：检查部门表
        /// </summary>
        [Description("检查部门表")]
        [FormFieldEdit]
        public ICollection<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART> Nav_DetailDeparts { get; set; }
        /// <summary>
        /// 导航属性：隐患表
        /// </summary>
        [Description("隐患表")]
        [FormFieldEdit]
        public ICollection<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_HIDDEN> Nav_DetailHiddens { get; set; }
        /// <summary>
        /// 生产单元
        /// </summary>
        [DataFieldIngore]
        public SKProductionUnit MineType { get; set; }

        [DataFieldIngore]
        public Guid? PRODUCTION_UNIT_ID { get; set; }
        /// <summary>
        /// 辨识区域
        /// </summary>
        [DataFieldIngore]

        public Guid? AREA_ID { get; set; }

        [DataFieldIngore]

        public string AREA_NAME { get; set; }
        [DataFieldIngore]

        public T_SK_RISK_AREA Nav_Area { get; set; }

        /// <summary>
        /// 导航属性：检查依据
        /// </summary>
        [Description("检查依据")]
        [FormFieldEdit]
        public ICollection<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_BASIC> Nav_DetailBasics { get; set; }

        [DataFieldIngore]

        public string RISK_NAME { get; set; }

        [Description("顺序")]
        public int? ROW_NO { get; set; }
    }
}
