using XYY.Core.Standard;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYY.Model.Standard.StockRoom.Enums;
using XYY.Common.Standard;
namespace XYY.Model.Standard.StockRoom
{
    [TrackTable(typeof(Stock_GoodsLog))]
    public class Stock_Goods : BaseEntity
    {
        /// <summary>
        /// 货位
        /// </summary>
        public int GridId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int SkuId { get; set; }

        [Track("物品状态")]
        public StockGoodsStatus GoodsStatus { get; set; }
        /// <summary>
        /// 是否已出库
        /// </summary>
        public int IsOut { get; set; }
        /// <summary>
        /// 是否已锁定
        /// </summary>
        public int IsLock { get; set; }

        /// <summary>
        /// SKU编码
        /// </summary>
        public string SKUCode { get; set; }

        /// <summary>
        /// 库房编号
        /// </summary>
        public int RoomId { get; set; }

        /// <summary>
        /// 客户Id
        /// </summary>
        public int CustomerId
        {
            get; set;
        }

        public string Specification { get; set; }

        /// <summary>
        /// 最后一次上架人
        /// </summary>
        public string LastGoodsInUserName
        {
            get; set;
        }

        /// <summary>
        /// 最后一次上架时间
        /// </summary>
        public DateTime? LastGoodsInTime
        {
            get; set;
        }

        /// <summary>
        /// 最后一次上架备注
        /// </summary>
        public string LastGoodsRemark
        {
            get; set;
        }

        /// <summary>
        /// 最后一次出库人
        /// </summary>
        public string LastGoodsOutUserName
        {
            get; set;
        }

        /// <summary>
        /// 最后一次出库时间
        /// </summary>
        public DateTime? LastGoodsOutTime
        {
            get; set;
        }

        /// <summary>
        /// 最后一次出库备注
        /// </summary>
        public string LastGoodsOutRemark
        {
            get; set;
        }

        /// <summary>
        /// 采购物品信息
        /// </summary>
        public int PurchaseGoodsId
        {
            get; set;
        }
    }
}
