using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using WMS.Web.Domain.Values;
namespace WMS.Web.Domain.Entitys
{
///
/// wms物料收发明细表
///
[Serializable]
[Table("t_wms_inventory_inout_details")]
public class InventoryInOutDetails
{
///
/// ID
///
public int Id { get; set; }
///
/// 物料ID
///
public int MaterialId { get; set; }
///
/// 类型:1为入库,2为出库
///
public InventoryInOutType Type { get; set; }
///
/// 组织编码
///
public string OrgCode { get; set; }
///
/// 仓库编码
///
public string StockCode { get; set; }
///
/// 仓位ID
///
public int SubStockId { get; set; }
///
/// 箱ID
///
public int BoxId { get; set; }
///
/// 单据类型
///
public OrderType OrderType { get; set; }
///
/// 单据编号
///
public string OrderBillNo { get; set; }
///
/// 数量
///
public decimal Qty { get; set; }
///
/// 结存
///
public decimal SurplusQty { get; set; }
///
/// 操作人
///
public int CreatorId { get; set; }
///
/// 操作时间
///
public DateTime CreateTime { get; set; }
///
/// 创建
///
public void Create(int staffId)
{
this.CreatorId = staffId;
this.CreateTime = DateTime.Now;
}
}
}