using System;
using ChuPiao.AutoPrint.Machine;
using ChuPiao.AutoPrint.Machine.Models;
using ChuPiao.Common.Models;

namespace ChuPiao.AutoPrint
{
    /// <summary>
    /// 出票错误事件参数
    /// </summary>
    public class ErrorTicketEventArgs : EventArgs
    {

        public ErrorTicketEventArgs(L_LotTicketEntity ticket, DecodePrintData decodePrintData,string message)
            
        {
            _ticket = ticket;
            _decodePrintData = decodePrintData;
            _message = message;
        }

        private L_LotTicketEntity _ticket;
        private DecodePrintData _decodePrintData=new DecodePrintData();

        private string _message;
        /// <summary>
        /// 错误信息
        /// </summary>
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }
        /// <summary>
        /// 电子票解析结果
        /// </summary>
        public DecodePrintData DecodePrintData
        {
            get { return _decodePrintData; }
            set { _decodePrintData = value; }
        }
        /// <summary>
        /// 当前票
        /// </summary>
        public L_LotTicketEntity Ticket
        {
            get { return _ticket; }
            set { _ticket = value; }
        }
    }
}
