using Edu.Common.Enum.User;
using Edu.Model.Entity.User;
using System;
using System.Collections.Generic;
using VT.FW.DB;

namespace Edu.Model.ViewModel.User
{
    /// <summary>
    /// Rb_workdayseting Entity Model
    /// </summary>    
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class Rb_Workflow_Condition_Extend : Rb_Workflow_Condition
    {
        /// <summary>
        /// 审批人列表
        /// </summary>
        public List<Rb_Workflow_Audit_Extend> AuditList { get; set; }

        /// <summary>
        /// 抄送人列表
        /// </summary>
        public List<Rb_Workflow_Audituser_Extend> AuditUserList { get; set; }

        /// <summary>
        /// 模版的类型 1请假  2出差  3  外出  4  补卡
        /// </summary>
        public int TemplateType { get; set; }
        /// <summary>
        /// 模版名称
        /// </summary>
        public string TemplateTypeName { get; set; }

        /// <summary>
        /// 条件的描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 请假类型列表
        /// </summary>
        public List<AskforleaveTypeList> aftList { get; set; }

        /// <summary>
        /// 分条件排序列表
        /// </summary>
        public List<WorkflowConditionSortList> ConditionSortList { get; set; }
    }
    /// <summary>
    /// 请假类型列表
    /// </summary>
    public class AskforleaveTypeList {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 是否勾选 1勾选 0未勾选
        /// </summary>
        public int Is_show { get; set; }
    }

    /// <summary>
    /// 条件列表排序
    /// </summary>
    public class WorkflowConditionSortList {
        /// <summary>
        /// 条件id
        /// </summary>
        public int ConditionId { get; set; }

        /// <summary>
        /// 排序（优先级 0排除默认  从小到大依次优先级越高）
        /// </summary>
        public int Sort { get; set; }
    }
}