//-----------------------------------------------------------------------
// <copyright file=" ag_workload_source.cs">
// * FileName: .cs 
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Performance.EntityModels
{
    /// <summary>
    /// 
    /// </summary>
    [Table("ag_workload_source")]
    public class ag_workload_source
    {
        /// <summary>
        /// 
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int WorkloadId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int BodyId { get; set; }

        /// <summary>
        /// 工作量考核项ID
        /// </summary>
        public string ItemId { get; set; }

        /// <summary>
        /// 工作量名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 工作量系数
        /// </summary>
        public Nullable<decimal> FactorValue { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Nullable<decimal> Sort { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Nullable<decimal> Value { get; set; }

        /// <summary>
        /// -1、单项奖励 0、工作量占比 ..（自定义占比）
        /// </summary>
        public Nullable<int> WorkTypeId { get; set; }
    }
}
