using APT.BaseData.Domain.Entities.FM;
using APT.Infrastructure.Core;
using APT.MS.Domain.Entities.HM;
using APT.MS.Domain.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace APT.MS.Domain.Entities.BS
{
    /// <summary>
    /// 部门范围
    /// </summary>
    [Description("部门范围")]
    public class T_BS_DEPARTMENT_AREAOBJECT : MesEntityBase
    {
        /// <summary>
        /// 所属范围
        /// </summary>
        [Description("所属范围")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public BSMineTypeEnum CHECKOBJECT { get; set; }

        /// <summary>
        /// 是否下级组织同步操作
        /// </summary>
        [FormFieldEdit]
        [DataFieldIngore]
        public bool ISDOWNSAME { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [Description("部门")]
        [DataFieldForeignKey("Nav_Department")]
        [FormFieldTable]
        [FormFieldEdit]
        [FormFieldQuery]
        public Guid DEPARTMENTID { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [Description("部门")]
        public T_FM_DEPARTMENT Nav_Department { get; set; }

    }
}