using Edu.Common.Enum;
using Edu.Common.Enum.Course;
using Edu.Common.Enum.OKR;
using System;
using VT.FW.DB;

namespace Edu.Model.Entity.OKR
{
    /// <summary>
    /// okr关键结果实体类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_OKR_KeyResult
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 结果名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 目标id
        /// </summary>
        public int ObjectiveId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 进度 百分之几
        /// </summary>
        public int Progress { get; set; }

        /// <summary>
        /// 权重
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 分数
        /// </summary>
        public decimal Score { get; set; }

        /// <summary>
        /// 进度状态  1正常   2有风险   3已延期
        /// </summary>
        public ProgressStateEnum ProgressState { get; set; }

        /// <summary>
        /// 起始值
        /// </summary>
        public decimal StartValue { get; set; }

        /// <summary>
        /// 目标值
        /// </summary>
        public decimal EndValue { get; set; }
        /// <summary>
        /// 当前值
        /// </summary>
        public decimal CurrentValue { get; set; }

        /// <summary>
        /// 是否简单模式  1是  2否
        /// </summary>
        public int IsEasyMode { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 集团id
        /// </summary>
        public int Group_Id { get; set; }

        /// <summary>
        /// 学校id
        /// </summary>
        public int School_Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public int UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 规则id
        /// </summary>
        public int RuleId { get; set; }

        /// <summary>
        /// 规则开始时间
        /// </summary>
        public DateTime? RuleSTime { get; set; }

        /// <summary>
        /// 规则结束时间
        /// </summary>
        public DateTime? RuleETime { get; set; }

        /// <summary>
        /// 是否默认全部可见权限   1是  2否
        /// </summary>
        public int IsDefaultPermission { get; set; }
    }
}
