//------------------------------------------------------------------------------
// <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 V_TB_ASK :RecordEntity
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long UID { get; set; }
        [StringLength(50)]
        public string PoBillNum { get; set; }
        [Key]
        [StringLength(50)]
        public string AskBillNum { get; set; }
        [StringLength(50)]
        public string VendId { get; set; }
        [StringLength(50)]
        public string Site { get; set; }
        [StringLength(50)]
        public string Buyer { get; set; }
        [StringLength(50)]
        public string BuyerPhone { get; set; }
        public int? State { get; set; }
        [StringLength(50)]
        public string Remark { get; set; }
       
        [StringLength(50)]
        public string VendName { get; set; }
        [StringLength(50)]
        public string State_DESC { get; set; }
        [StringLength(50)]
        public string ModType_DESC { get; set; }

        public int ModType { get; set; }


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


        public DateTime? BeginTime { get; set; }
        [NotMapped]//订货结束日期
        public DateTime? BeginTime_End { get; set; }
        [NotMapped]//到货开始日期
        public DateTime? EndTime_start { get; set; }

        public DateTime? EndTime { get; set; }
        public string Extend1 { get; set; }
        public string Extend2 { get; set; }
        public string Extend3 { get; set; }

        public string SubSite { get; set; }
        #region 条件
        [NotMapped]
        public string Batch { get; set; }

        [NotMapped]
        public DateTime? ShipTime { get; set; }
        [NotMapped]
        public string ShipUser { get; set; }
        [NotMapped]
        public DateTime? ReceiveTime { get; set; }
        [NotMapped]
        public string ReceiveUser { get; set; }

        [StringLength(50)]
        public string Site_Desc { get; set; }
      
        public string ReceivedPort { get; set; }
        [NotMapped]
        public string Flag { get; set; }
        [NotMapped]
        public string Month { get; set; }
        [NotMapped]
        public bool IsComplete { get; set; }
        #endregion
    }
}