using APT.Infrastructure.Core;
using APT.Infrastructure.Utility;
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace APT.BaseData.Domain.Entities
{
	/// <summary>
	/// 图表页
	/// </summary>
	[Redis("PAGE_FORM_ID", "ID", "CODE")]
	[APT.Infrastructure.Api.RootOrg]
	[IgnoreT4] public class T_PF_PAGE_CHART : MesEntityBase
	{
		public T_PF_PAGE_CHART()
		{
			this.FILTER_ORG_TYPE = 0;
		}
		/// <summary>
		/// 编号
		/// </summary>
		public string CODE { get; set; }


		/// <summary>
		/// 标题
		/// </summary>
		public string LABEL { get; set; }
		/// <summary>
		/// 图表类型
		/// </summary>
		[EnumName("PFChartTypeEnum")]
		public int CHART_TYPE { get; set; }

		/// <summary>
		/// 窗体ID
		/// </summary>
		public Guid? PAGE_FORM_ID { get; set; }

		/// <summary>
		/// 访问路径：URL路径 
		/// </summary>
		public string API_URL { get; set; }

		/// <summary>
		/// 分割占比  可选值12 24
		/// </summary>
		public int SPAN { get; set; }

		/// <summary>
		/// 最小宽度
		/// </summary>
		public int MIN_WIDTH { get; set; }


		/// <summary>
		/// 是否显示数据
		/// </summary>
		public bool IS_SHOW_DATA { get; set; }


		/// <summary>
		/// 索引
		/// </summary>
		public int NUM { get; set; }

		/// <summary>
		/// 过滤组织类型
		/// </summary>
		[EnumName("PFFilterOrgTypeEnum")]
		public int? FILTER_ORG_TYPE { get; set; }

		/// <summary>
		/// 是否忽略组织权限
		/// </summary>
		public bool IGNORE_ORG_RULE { get; set; }


		/// <summary>
		/// 窗体
		/// </summary>
		public virtual T_PF_FORM Nav_PageForm { get; set; }

		/// <summary>
		/// 参数
		/// </summary>
		public virtual ICollection<T_PF_PAGE_CHART_PARAM> Nav_Params { get; set; }
		[Description("源ID")]
		public Guid? SRC_ID { get; set; }
	}
}
