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

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

    public partial class V_TB_ASN_DETAIL_VIEW:RecordEntity
    {
        [Key]
        public long UID { get; set; }
        public string PoBillNum { get; set; }
        public int PoLine { get; set; }
        public string PartCode { 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 Nullable<int> State { get; set; }
        public string Remark { get; set; }
        public string PartDesc1 { get; set; }
        public string CurrencyDesc { get; set; }
        public string Site { get; set; }
        public string VendName { get; set; }
        public string PartDesc2 { get; set; }
        public string AsnBillNum { get; set; }
        public decimal Qty { get; set; }
        public string VendBatch { get; set; }
        public Nullable<System.DateTime> ProduceDate { get; set; }
        public string Batch { get; set; }
        public string VendId { get; set; }
        public string AskBillNum { get; set; }
        public string Site_Desc { get; set; }
        public Nullable<System.DateTime> EndTime { get; set; }
        public string ReceivedPort { get; set; }
        public string ReceivedPort_Desc { get; set; }
        public string PlateNumber { get; set; }
        public string Expr1 { get; set; }
        public Nullable<System.DateTime> ShipTime { get; set; }
        public string ShipUser { get; set; }
        public Nullable<System.DateTime> ReceiveTime { get; set; }
        public string ReceiveUser { get; set; }

        public int? ASN_STATE { get; set; }

        //public string 单据类型名称 => EnumHelper.GetDescription((BillType)单据类型);
        //public string ASN_DESC=> EnumHelper.GetDescription((BillType)单据类型);
        [NotMapped]
        public Nullable<System.DateTime> ReceiveTimeBegin { get; set; }
        [NotMapped]
        public Nullable<System.DateTime> ReceiveTimeEnd { get; set; }

        [NotMapped]
        public Nullable<System.DateTime> ShipTimeBegin { get; set; }
        [NotMapped]
        public Nullable<System.DateTime> ShipTimeEnd { get; set; }
   

    }
}