using APT.Infrastructure.Core;
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
{
    /// <summary>
    /// 检查周期
    /// </summary>
    public class T_SK_CHECK_CYCLE : MesEntityBase
    {
        /// 检查类型
        /// </summary>
        [Description("检查类型")]
        [DataFieldForeignKey("Nav_Types", "Nav_CheckCycle")]
        public Guid? CHECK_TYPE_ID { get; set; }

        /// <summary>
        /// 检查类型
        /// </summary>
        [Description("检查类型")]
        public virtual T_SK_CHECK_TYPE Nav_Types { get; set; }

        /// <summary>
        /// 检查周期
        /// </summary>
        [Description("检查周期")]
        [FormFieldTable]
        [FormFieldEdit]
        public SKPLANCHECKFREQUENCYEnum PLANCHECKFREQUENCY { get; set; }

        /// <summary>
        /// 检查频率（第几月 针对每季 有效）
        /// </summary>
        [Description("第几月")]
        [FormFieldEdit]
        public int? MONTH { get; set; }

        /// <summary>
        /// 检查频率（日 针对每月/每季 有效）
        /// </summary>
        [Description("日")]
        [FormFieldEdit]
        public int? DATA { get; set; }

        /// <summary>
        /// 检查频率（星期 针对每周 有效）
        /// </summary>
        [Description("星期")]
        [FormFieldEdit]
        public WEEKDATAEnum? WEEKDATA { get; set; }

        /// <summary>
        /// 触发时间
        /// </summary>
        [Description("触发时间")]
        [FormFieldEdit]
        [FormFieldTable]
        [FormFieldQuery]
        public DateTime? RUNSETTIME { get; set; }
    }
}
