//------------------------------------------------------------------------------
// <auto-generated>
//     此代码已从模板生成。
//
//     手动更改此文件可能导致应用程序出现意外的行为。
//     如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------

namespace CK.SCP.Models.ScpEntity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class TB_PO_DETAIL:RecordEntity
    {




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

       
  
        [StringLength(50)]
        public string PoBillNum { get; set; }
        public int PoLine { get; set; }

        public Nullable<System.DateTime> BeginTime { get; set; }
        public Nullable<System.DateTime> EndTime { get; set; }

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

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

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

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

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

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

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

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

        public decimal PlanQty { get; set; }
        [Column(TypeName = "money")]
        public decimal PackQty { get; set; }
        [Column(TypeName = "money")]
        public decimal? TempQty { get; set; }
      
        public int State { get; set; }

        [StringLength(200)]
        public string Remark { get; set; }
        public decimal UnConv { get; set; }
        [StringLength(50)]
        public string DockCode { get; set; }

        public string SubSite { get; set; }

        public string Site { get; set; }
        public int Workorderlot { get; set; }
        [StringLength(50)]
        public string PoType { get; set; }
        public int Operation { get; set; }
        [StringLength(8)]
        public string Location { get; set; }
        public int Firmdays { get; set; }
        public int Scheduledays { get; set; }
        public int Scheduleweeks { get; set; }
        public int Schedulemonth { get; set; }
        [StringLength(50)]
        public string Supplieritem { get; set; }
        [StringLength(2)]
        public string Dliverypatterncode { get; set; }
        [StringLength(2)]
        public string Deliverytimecode { get; set; }
        public int Transportdays { get; set; }
      
    }
}