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

namespace APT.MS.Domain.Entities.PC
{
    /// <summary>
    /// 四色图颜色配置
    /// </summary>
    [Description("四色图颜色配置")]
    public class T_PC_COLORSET : MesEntityBase
    {
        /// <summary>
        /// 名称 系统直接给
        /// </summary>
        [Description("名称")]
        [DataFieldLength(50)]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public string NAME { get; set; }

        /// <summary>
        /// 填充色 RGBCOLOR
        /// </summary>
        [Description("填充色")]
        [DataFieldLength(50)]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public string CODE { get; set; }

        /// <summary>
        /// 风险等级 SKEvaluateLevelEnum  10-40  10为红色  20橙色 30黄色 40蓝色
        /// </summary>
        [Description("风险等级")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public SKEvaluateLevelEnum LEVEL { get; set; }

        /// <summary>
        /// 启用标志  0启用1停用
        /// </summary>
        [Description("启用标志")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public FMEnableStatusEnum ENABLE_STATUS { get; set; } = FMEnableStatusEnum.启用;

        /// <summary>
        /// 重大隐患 最多数量
        /// </summary>
        [Description("重大隐患 最多数量")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public int? COUNTMAX_HIGH { get; set; }

        /// <summary>
        /// 重大隐患 最少数量
        /// </summary>
        [Description("重大隐患 最少数量")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public int? COUNTMIN_HIGH { get; set; }

        /// <summary>
        /// 非重大隐患 最大数量
        /// </summary>
        [Description("非重大隐患 最大数量")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public int? COUNTMAX_LOW { get; set; }

        /// <summary>
        /// 非重大隐患 最少数量
        /// </summary>
        [Description("非重大隐患 最少数量")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public int? COUNTMIN_LOW { get; set; }

        /// <summary>
        /// 按工作等级票取值 没有值 就不判断 true 取值
        /// </summary>
        [Description("按工作等级票取值")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public bool? IS_JOBLEVEL { get; set; } = true;

        /// <summary>
        /// 按区域风险取值 没有值 就不判断 true 取值
        /// </summary>
        [Description("按区域风险取值")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public bool? IS_AREAEVEL { get; set; } = true;
    }
}