
using Siger.Middlelayer.Common.Helpers;

namespace Siger.Middlelayer.TpmRepository.Entities
{
    ///<summary>
    ///
    ///</summary>
    public class siger_andon_info : TpmEntityBase
    {

        public siger_andon_info()
        {
            if (create_time == 0)
            {
                create_time = UnixTimeHelper.GetNow();
            }
        }

        /// <summary>
        /// Desc:异常类型
        /// Default:
        /// Nullable:False
        /// </summary>

        public int expection_type { get; set; }


        /// <summary>
        /// Desc:安灯触发时间
        /// Default:0
        /// Nullable:False
        /// </summary>

        public long create_time { get; set; }


        /// <summary>
        /// Desc:创建人
        /// Default:0
        /// Nullable:False
        /// </summary>

        public int creator { get; set; }


        /// <summary>
        /// Desc:处理人
        /// Default:0
        /// Nullable:True
        /// </summary>

        public int handler { get; set; }


        /// <summary>
        /// Desc:处理时间
        /// Default:0
        /// Nullable:True
        /// </summary>

        public long handle_time { get; set; }


        /// <summary>
        /// Desc:完成时间
        /// Default:
        /// Nullable:True
        /// </summary>

        public long complete_time { get; set; }


        /// <summary>
        /// Desc:设备
        /// Default:
        /// Nullable:False
        /// </summary>

        public int machine { get; set; }


        /// <summary>
        /// Desc:工位
        /// Default:
        /// Nullable:False
        /// </summary>

        public int station { get; set; }


        /// <summary>
        /// Desc:推送流程
        /// Default:
        /// Nullable:False
        /// </summary>

        public string process_code { get; set; }



        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>

        public int projectid { get; set; }


        /// <summary>
        /// Desc:是否停机
        /// Default:0
        /// Nullable:True
        /// </summary>

        public int is_shutdown { get; set; }


        /// <summary>
        /// Desc:确定时间
        /// Default:0
        /// Nullable:True
        /// </summary>

        public long approve_time { get; set; }

        /// <summary>
        /// Desc:当前所在层级
        /// Default:0
        /// Nullable:True
        /// </summary>

        public int cruent_level { get; set; }
        /// <summary>
        /// Desc:异常触发时间
        /// Default:0
        /// Nullable:True
        /// </summary>

        public long abnormal_time { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 工单
        /// </summary>
        public string work_order { get; set; }
        /// <summary>
        /// 换型产品
        /// </summary>
        public string product_code { get; set; }

    }
}
