using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ChangkeTec.SDMS.Model.Base;
using ChangkeTec.SDMS.Model.Enums;

namespace ChangkeTec.SDMS.Model.ExchangeCenterTables
{
    /// <summary>
    /// 饋簡땐데츠玖깊
    /// </summary>
    [Description("饋簡땐데츠玖깊")]
    public class TED_SO_DET : ITaskTable
    {
        [Description("饋簡땐데")]
        [StringLength(50)]
        public string SalesOrder { get; set; }

        [Description("契뵀")]
        public int Line { get; set; }

        [Description("膠죕뵀")]
        [StringLength(50)]
        public string PartCode { get; set; }

        [Description("綠땐뭔좆")]
        public decimal QuantityOrdered { get; set; }

        [Description("데貫")]
        [StringLength(50)]
        public string Um { get; set; }

        [Description("욋貫")]
        [StringLength(50)]
        public string Location { get; set; }

        [Description("綠롸토鑒좆")]
        public decimal QuantityAllocated { get; set; }

        [Description("綠랙頓鑒앴")]
        public decimal QuantityShipped { get; set; }

        [Description("狼역랙튿鑒좆")]
        public decimal QuantityToInvoice { get; set; }

        [Description("잚謹")]
        [StringLength(50)]
        public string ShipType { get; set; }

        [Description("송목")]
        [StringLength(50)]
        public string Price { get; set; }

        [Description("송커깊")]
        [StringLength(50)]
        public string PriceList { get; set; }


        [Key]
        public Guid GUID { get; set; } = Guid.NewGuid();

        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int UID { get; set; }

        [Description("눼쉔훙")]
        [StringLength(50)]
        public string CreateUser { get; set; }

        [Description("눼쉔珂쇌")]
        public DateTime CreateTime { get; set; }


        [Description("구鬧")]
        public string Remark { get; set; }

        [Description("훨蛟긍뵀")]
        public Guid TaskID { get; set; }

        [Description("츱즈잚謹")]
        [StringLength(50)]
        public string CommandType { get; set; }

        public Guid DataID { get; set; }

        [Description("堵")]
        [StringLength(50)]
        public string Domain { get; set; }

        [Description("뒈듐")]
        [StringLength(50)]
        public string Site { get; set; }
    }
}