using APT.BaseData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APT.BaseData.Domain.ApiModel
{
	/// <summary>
	/// 编辑页配置模型
	/// </summary>
	public class EditPageModel
	{
		public EditPageModel()
		{
			this.Nav_SubPageEdits = new List<EditPageDetailModel>();
		}
		/// <summary>
		/// 表单
		/// </summary>
		public virtual T_PF_FORM Nav_Form { get; set; }

		/// <summary>
		/// 主表 明细
		/// </summary>
		public virtual EditPageDetailModel Nav_PageEdit { get; set; }

		/// <summary>
		/// 子表 明细
		/// </summary>
		public virtual ICollection<EditPageDetailModel> Nav_SubPageEdits { get; set; }
	}

	/// <summary>
	/// 编辑页配置模型 明细
	/// </summary>
	public class EditPageDetailModel
	{
		public EditPageDetailModel()
		{
			this.Nav_SubPageEdits = new List<EditPageDetailModel>();
			this.NavFields = string.Empty;
		}
		/// <summary>
		/// 编辑页
		/// </summary>
		public virtual T_PF_PAGE_EDIT Nav_PageEdit { get; set; }

		/// <summary>
		/// 按钮列表
		/// </summary>
		public virtual ICollection<T_PF_BTN> Nav_Btns { get; set; }
		 
		/// <summary>
		/// 列
		/// </summary>
		public virtual ICollection<T_PF_EDIT_COLUMN> Nav_Columns { get; set; }

		/// <summary>
		/// 区域
		/// </summary>
		public virtual ICollection<T_PF_PAGE_EDIT_PANEL> Nav_EditPanels { get; set; }

		public bool HasChildren { get; set; }

		public string NavFields { get; set; }

		public virtual EditPageDetailModel Nav_ParentPageDetailModel { get; set; }

		/// <summary>
		/// 子表 明细
		/// </summary>
		public virtual ICollection<EditPageDetailModel> Nav_SubPageEdits { get; set; }
	}



	
}
