using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ChangKeTec.Wms.Models.Wms
{
    public partial class TS_EQUIPMENT_BARCODE
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public long UID { get; set; }

        [Key]
        [StringLength(50)]
        public string BarCode { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(500)]
        public string FullBarCode { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(50)]
        public string PartCode { get; set; }

        [StringLength(50)]
        public string VendPartCode { get; set; }

        [StringLength(50)]
        public string CustPartCode { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(50)]
        public string Batch { get; set; }

        public int ManageType { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(50)]
        public string SerialNum { get; set; }

        [Column(TypeName = "money")]
        public decimal Qty { get; set; }

        public int BarCodeType { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(50)]
        public string PartKind { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(50)]
        public string BillNum { get; set; }

        public int BillLine { get; set; }

        [StringLength(50)]
        public string VendId { get; set; }

        [StringLength(50)]
        public string VendBatch { get; set; }

        [StringLength(50)]
        public string EqptCode { get; set; }

        [StringLength(50)]
        public string EqptType { get; set; }

        public DateTime CreateTime { get; set; }

        [Required(AllowEmptyStrings = true)]
        [StringLength(50)]
        public string CreateOper { get; set; }

        public DateTime UpdateTime { get; set; }

        [Column(TypeName = "money")]
        public decimal UpdateQty { get; set; }

        public int PrintCount { get; set; }

        [StringLength(50)]
        public string ProduceBatch { get; set; }

        [Column(TypeName = "date")]
        public DateTime? ProduceDate { get; set; }

        [StringLength(50)]
        public string ProduceDevice { get; set; }

        [StringLength(50)]
        public string DeliverLoc { get; set; }

        [StringLength(100)]
        public string CustName { get; set; }

        [StringLength(100)]
        public string CustPartName { get; set; }

        public int? BinQty { get; set; }

        [Column(TypeName = "money")]
        public decimal? EachWeight { get; set; }

        public string BinSize { get; set; }

        [StringLength(50)]
        public string SupplyCode { get; set; }

        public int State { get; set; }
    }
}