using DxBlazorApplication2.AS400Kommunikation;
using System.ComponentModel.DataAnnotations;

namespace DxBlazorApplication2.Data.Produktion
{
    /// <summary>
    ///  Störung
    /// </summary>
    public class BDSTItem
    {
        /// <summary>
        ///  Linie
        /// </summary>
        public string BTLINI { get; set; }
        /// <summary>
        ///  Datum
        /// </summary>
        public DateTime BTDATE { get; set; }
        /// <summary>
        ///  Zeit von
        /// </summary>
        public DateTime BTTIMV { get; set; }
        /// <summary>
        ///  Zeit bis
        /// </summary>
        public DateTime BTTIMB { get; set; }
        /// <summary>
        /// Kostenstelle
        /// </summary>
        public string? BTMTYP { get; set; }
        /// <summary>
        /// Störungsart
        /// </summary>
        public string? BTSTYP { get; set; }
        /// <summary>
        /// Störungscode
        /// </summary>
        public string? BTSCOD { get; set; }
        /// <summary>
        /// Stillstand
        /// </summary>
        public string? BTSTIL { get; set; }
        /// <summary>
        /// Schlosser
        /// </summary>
        public double BTSCHL { get; set; }
        /// <summary>
        /// Elektriker
        /// </summary>
        public double BTELEK { get; set; }
        /// <summary>
        ///  Sonstige
        /// </summary>
        public double BTSONS { get; set; }
        /// <summary>
        /// Item wurde gelöscht
        /// </summary>
        public bool Deleted { get; set; }

        public BDSTItem(string linie)
        {
            BTLINI = linie;
        }
    }
}
