using Siger.Middlelayer.DashboardRepository.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.DashboardRepository.Response
{
    public class ResponseDashboardRotation
    {
        /// <summary>
        /// DashboardConfig控制器的GetCurrentUserProjectLevel接口的返回参数实体类
        /// </summary>
        public class siger_project_levelEntity
        {
            public int id { get; set; }
            /// <summary>
            /// 层级名称
            /// </summary>
            public string title { get; set; }
            /// <summary>
            /// _level.id
            /// </summary>
            public int levelid { get; set; }
            public bool @checked { get; set; }
        }

        /// <summary>
        /// DashboardConfig控制器的GetProductionLine返回参数
        /// </summary>
        public class RotationResponseIdTitle
        {
            public int id { get; set; }

            public string title { get; set; }

            public bool @checked { get; set; }
        }

        /// <summary>
        /// DashboardConfig控制器的GetProductionLine返回参数
        /// </summary>
        public class RotationResponseGetSectionTree
        {
            public RotationResponseGetSectionTree()
            {
                if (children == null)
                {
                    children = new List<RotationResponseGetSectionTree>();
                }
            }
            public bool disabled { get; set; }
            public bool expand { get; set; }
            public int value { get; set; }
            public int attrubution { get; set; }
            public int levelid { get; set; }

            public string label { get; set; }

            public List<RotationResponseGetSectionTree> children { get; set; }

            public bool @checked { get; set; }
            public string acc_text_value { get; set; }
            public int right_article_num { get; set; }
            public double right_foot_offline { get; set; }
            public double right_foot_online { get; set; }

            public void Add(RotationResponseGetSectionTree child)
            {
                children.Add(child);
            }
        }
        /// <summary>
        /// dashaboardShow  返回参数需要组合时间
        /// </summary>
        public class siger_project_dashboard_comb_page_Rotation : DashboardEntityBase
        {
            /// <summary>
            /// 
            /// </summary>
            public int comb_id { get; set; }

            /// <summary>
            /// 该页面的模板类型page_code
            /// </summary>
            public string page_code { get; set; }

            /// <summary>
            /// 该页面的标题
            /// </summary>
            public string title { get; set; }
            /// <summary>
            /// 组合得时间
            /// </summary>
            public int cycle { get; set; }

        }
        /// <summary>
        /// 看工位名不看设备名
        /// </summary>
        public class ResponseMathineTitle 
        {
            public int id { get; set; }
            public string title { get; set; }
        }
    }
}
