using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CK.SCP.Models.ScpEntity
{
    public partial class TB_PO_PLAN:RecordEntity
    {



        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long UID { get; set; }
        [Key]
        [Column(Order = 0)]
        public string PoBillNum { get; set; }
        [Key]
        [Column(Order = 1)]
        public string Domain { get; set; }
        [Key]
        [Column(Order = 5)]
        public string Site { get; set; }
        [Key]
        [Column(Order = 2)]
        public DateTime EndTime { get; set; }

        [Key]
        [Column(Order = 3)]
        public string PartCode { get; set; }

        [Key]
        [Column(Order = 4)]
        public string Version { get; set; }

        public string ErpBillNum { get; set; }
        public string VendId { get; set; }
        public Nullable<int> PlanType { get; set; }
        public string Contacter { get; set; }
       
        public string Buyer { get; set; }
       
        public System.DateTime BeginTime { get; set; }
        public string BuyerPhone { get; set; }
        public int State { get; set; }
        public int PoLine { get; set; }



        public decimal PlanQty { get; set; }
        public string PoUnit { get; set; }
        public string LocUnit { get; set; }
        public decimal Price { get; set; }
        public string Currency { get; set; }
        public decimal PackQty { get; set; }
        public decimal UnConv { get; set; }
        public string DockCode { get; set; }
        public string Remark { get; set; }
     
  
    
        public string Extend1 { get; set; }
        public string Extend2 { get; set; }
        public string Extend3 { get; set; }
      
       
    }
}