using APT.BaseData.Domain.Enums;
using APT.Infrastructure.Core;
using APT.MS.Domain.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using static APT.MS.Domain.Enums.BI.BIEnums;

namespace APT.MS.Domain.Entities.BI
{
    /// <summary>
    /// 首页隐患原因 等
    /// </summary>
    [Description("首页隐患原因")]
    public class T_BI_HOME_BSRISKREASON : MesEntityBase
    {
        /// <summary>
        /// 组织层级
        /// </summary>
        public FMDepartmentType DEPARTMENT_TYPE { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public BSCaculateType TYPE { get; set; }

        /// <summary>
        /// 变更号
        /// </summary>
        [DataFieldLength(50)]
        [DataFieldIngore]
        public string CODE { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        public int YEAR { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public int MONTH { get; set; }

        /// <summary>
        /// 组织ID
        /// </summary>
        public Guid DEPARTMENT_ID { get; set; }

        /// <summary>
        /// 组织ID
        /// </summary>
        [DataFieldIngore]
        [DataFieldLength(200)]
        public string DEPARTMENTNAME { get; set; }

        /// <summary>
        /// 部门排序
        /// </summary>
        public int NUMD { get; set; }

        /// <summary>
        /// 数据源ID
        /// </summary>
        public Guid SOURCEID { get; set; }

        /// <summary>
        /// 数据源 值 BSCorrectType
        /// </summary>
        public int SOURCEVAL { get; set; }

        /// <summary>
        /// 数据源  与 SOURCEID、SOURCEVAL 对应
        /// </summary>
        [DataFieldIngore]
        [DataFieldLength(200)]
        public string SOURCENAME { get; set; }

        /// <summary>
        /// 数据源排序
        /// </summary>
        public int NUMS { get; set; }

        /// <summary>
        /// 数据源排序
        /// </summary>
        public int COUNT { get; set; }

        /// <summary>
        /// 百分百
        /// </summary>
        public decimal PERCENT { get; set; }
    }
}