using Siger.Middlelayer.Repository.Entities;
using System.Collections.Generic;

namespace Siger.Middlelayer.TpmRepository.Response
{
    public class ResponseAndonProcess
    {
        public ResponseAndonProcess()
        {
            if (ProcessTime == null)
            {
                ProcessTime = new List<ResponseProcessTime>();
            }
            if (ProcessLevel == null)
            {
                ProcessLevel = new List<ResponseProcessLevel>();
            }
            if (Time == null)
            {
                Time = new List<string>();
            }
        }
        public string name { get; set; }
        public int creator { get; set; }
        public string creator_name { get; set; }
        public long createtime { get; set; }
        public string code { get; set; }
        public string remark { get; set; }
        public int repeattime { get; set; }

        /// <summary>
        /// 流程节点
        /// </summary>
        public string node { get; set; }
        public List<ResponseProcessTime> ProcessTime { get; set; }
        /// <summary>
        /// 前端排序使用
        /// </summary>
        public List<string> Time { get; set; }
        public List<ResponseProcessLevel> ProcessLevel { get; set; }
    }
    public class ResponseProcessTime
    {
        public int type { get; set; }

        public int start_level { get; set; }

        public int end_level { get; set; }

        public int space_time { get; set; }

    }
    public class ResponseProcessLevel
    {
        public List<string> groupname { get; set; }
        public List<int> usergroup { get; set; }

        public int level { get; set; }
    }
}
