Files
WMS-Api/src/WMS.Web.Domain/Entitys/InventoryInOutDetails.cs
2023-11-25 09:08:34 +08:00

84 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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