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

namespace CK.SCP.Models.ScpEntity
{
    public partial class TS_UNI_API_HIS
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int UID { get; set; }

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

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

        public int? BillType { get; set; }

        public int? SubBillType { get; set; }

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

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

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

        public decimal Qty { get; set; }

        public int State { get; set; }

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

        public DateTime CreateTime { get; set; }

        public DateTime PutTime { get; set; }

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

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

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

        public DateTime ValidDate { get; set; }

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

        public int ErpLineNum { get; set; }

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

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

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

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

        public decimal PackQty { get; set; }
        public decimal Price { get; set; }
        public string Barcode { get; set; }
        public string Currency { get; set; }
        public decimal UmConv { get; set; }
        public string Attn { get; set; }
        public string Buyer { get; set; }
        public string BuyerPhone { get; set; }
        public string ModType { get; set; }
        public string Invoice { get; set; }
        public decimal TaxAmt { get; set; }
        public string Receiver { get; set; }
        public decimal Taxt { get; set; }
    }
}