using APT.BaseData.Domain.Entities.BD;
using APT.BaseData.Domain.Enums;
using APT.Infrastructure.Core;
using APT.Infrastructure.Utility;
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace APT.BaseData.Domain.Entities
{
    [Description("树形页面配置表")]
    [IgnoreT4]
    [Redis("PAGE_FORM_ID", "ID", "CODE")]
    [APT.Infrastructure.Api.RootOrg]
    public partial class T_PF_PAGE_TREE : MesEntityBase
    {
        public T_PF_PAGE_TREE()
        {
            this.BATCH_DEL_SEND_TYPE = (int)SendTypeEnum.POST;
            this.QUERY_SEND_TYPE = (int)SendTypeEnum.POST;
            this.FILTER_ORG_TYPE = 0;
        }
        /// 编码
        public string CODE { get; set; }
        /// 
        /// 窗体ID
        /// 
        public Guid? PAGE_FORM_ID { get; set; }
        /// 
        /// 数据库表名称
        /// 
        /// 
        /// 显示名称
        /// 
        [Description("显示名称")]
        public string LABEL_NAME { get; set; }
        /// 
        /// 数据库表名称
        /// 
        /// 
        /// 显示名称
        /// 
        [Description("显示模式")]
        [EnumName("PFTreeShowModelEnum")]
        public int SHOW_MODEL { get; set; }
        /// 
        /// 查询的API地址
        /// 
        [Description("查询的API地址")]
        public string QUERY_API_URL { get; set; }
        /// 
        /// 发送方式
        /// 
        [Description("查询发送方式")]
        public int QUERY_SEND_TYPE { get; set; }
        /// 
        /// 查询的API地址
        /// 
        [Description("删除API地址")]
        public string BATCH_DEL_API_URL { get; set; }
        /// 
        /// 发送方式
        /// 
        [Description("删除发送方式")]
        public int BATCH_DEL_SEND_TYPE { get; set; }
        /// 顺序
        /// 
        [Description("顺序")]
        public int NUM { get; set; }
        /// 
        /// 排序字段
        /// 
        [Description("排序字段")]
        public string SORT { get; set; }
        /// 
        /// 排序方式
        /// 
        [Description("排序方式 0 正序  1 倒序")]
        public int ORDER { get; set; }
        [Description("展开层级,默认0全展开")]
        public int LEVEL { get; set; }
        [Description("树选中节点过滤参数")]
        public string TREE_SELECTED_PARAM { get; set; }
        /// 
        /// 关联字段 用于主从表时
        /// 
        [Description("关联字段")]
        public string RELATION_FIELD { get; set; }
        [Description("是否多选")]
        public bool MULTI_CHECK { get; set; }
        [Description("最多选择个数")]
        public int MULTI_CHECK_COUNT { get; set; }
        [Description("允许新增节点")]
        public bool CAN_ADD_NODE { get; set; }
        /// 
        /// 格式:FIELD,OP,VALUE,PICODE|FIELD,OP,VALUE,PICODE,(1)为空则显示默认的图片 (2)全局图片配置 ,,,C001|ORDER_STATUS,1,1,C002
        /// 
        //[Description("图标")]
        //public string PICTURE_CODE { get; set; }
        [Description("节点可选条件")]
        public string SELECT_CONDITION { get; set; }
        /// 自定义参数 参数名称=参数值  多个参数时以||分割
        public string CUSTOM_PARAMS { get; set; }
        /// 
        /// 过滤组织类型
        /// 
        [EnumName("PFFilterOrgTypeEnum")]
        public int? FILTER_ORG_TYPE { get; set; }
        /// 
        /// 是否忽略组织权限
        /// 
        public bool IGNORE_ORG_RULE { get; set; }
        /// 
        /// 窗体
        /// 
        public virtual T_PF_FORM Nav_PageForm { get; set; }
        /// 
        /// 导航属性,字段列表
        /// 
        [Description("导航属性:字段列表")]
        public virtual ICollection Nav_Columns { get; set; }
        [Description("源ID")]
        public Guid? SRC_ID { get; set; }
    }
}