//-----------------------------------------------------------------------
// <copyright file=" ag_tempitem.cs">
// * FileName: 二次绩效模板项.cs 
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Performance.EntityModels
{
    /// <summary>
    /// 二次绩效模板项
    /// </summary>
    [Table("ag_tempitem")]
    public class ag_tempitem
    {
        /// <summary>
        /// 
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 模板ID
        /// </summary>
        public Nullable<int> TempId { get; set; }

        /// <summary>
        /// 字段ID
        /// </summary>
        public string FiledId { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public string FiledName { get; set; }

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

        /// <summary>
        /// 字段类型 1 顶部概况 2 表格固定
        /// </summary>
        public Nullable<int> Type { get; set; }

        /// <summary>
        /// 1 自动带出 2 计算得出
        /// </summary>
        public Nullable<int> SourceType { get; set; }

        /// <summary>
        /// 1 带出历史数据 2不带出
        /// </summary>
        public Nullable<int> IsBring { get; set; }

        /// <summary>
        /// 1 value相加值为1
        /// </summary>
        public Nullable<int> SpecialAttr { get; set; }
    }
}
