箱信息实体对象

This commit is contained in:
tongfei
2023-10-30 10:03:15 +08:00
parent a297330ea0
commit 1c414c4fd2
5 changed files with 172 additions and 5 deletions

View File

@@ -510,11 +510,6 @@
用户信息
</summary>
</member>
<member name="P:WMS.Web.Core.Dto.Login.LoginInDto.UserInfoV3">
<summary>
</summary>
</member>
<member name="P:WMS.Web.Core.Dto.Login.LoginInDto.TokenInfo">
<summary>
token信息

View File

@@ -74,6 +74,71 @@
序列号集
</summary>
</member>
<member name="T:WMS.Web.Domain.Entitys.Box">
<summary>
老ops箱信息头
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.Box.Id">
<summary>
ID
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.Box.OpsBoxId">
<summary>
对应老OPS的箱ID
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.Box.BoxBillNo">
<summary>
箱编号老OPS生成的箱号
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.Box.CreateTime">
<summary>
创建时间对应老OPS的创建时间
</summary>
</member>
<member name="F:WMS.Web.Domain.Entitys.Box.Details">
<summary>
明细
</summary>
</member>
<member name="T:WMS.Web.Domain.Entitys.BoxDetails">
<summary>
老ops箱信息明细
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.BoxDetails.Id">
<summary>
ID
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.BoxDetails.Fid">
<summary>
单据头ID
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.BoxDetails.MaterialId">
<summary>
物料ID
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.BoxDetails.SupplierId">
<summary>
供应商ID
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.BoxDetails.Qty">
<summary>
数量(装箱数量)
</summary>
</member>
<member name="P:WMS.Web.Domain.Entitys.BoxDetails.SerialNumbers">
<summary>
序列号集
</summary>
</member>
<member name="T:WMS.Web.Domain.Entitys.BoxInventory">
<summary>
箱库存表头

View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace WMS.Web.Domain.Entitys
{
/// <summary>
/// 老ops箱信息头
/// </summary>
[Serializable]
[Table("t_ops_box")]
public class Box
{
/// <summary>
/// ID
/// </summary>
public int Id { get; set; }
/// <summary>
/// 对应老OPS的箱ID
/// </summary>
public int OpsBoxId { get; set; }
/// <summary>
/// 箱编号老OPS生成的箱号
/// </summary>
public string BoxBillNo { get; set; }
/// <summary>
/// 创建时间对应老OPS的创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 明细
/// </summary>
[NotMapped]
public List<BoxDetails> Details = new List<BoxDetails>();
}
}

View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace WMS.Web.Domain.Entitys
{
/// <summary>
/// 老ops箱信息明细
/// </summary>
[Serializable]
[Table("t_ops_box_details")]
public class BoxDetails
{
/// <summary>
/// ID
/// </summary>
public int Id { get; set; }
/// <summary>
/// 单据头ID
/// </summary>
public int Fid { get; set; }
/// <summary>
/// 物料ID
/// </summary>
public int MaterialId { get; set; }
/// <summary>
/// 供应商ID
/// </summary>
public int SupplierId { get; set; }
/// <summary>
/// 数量(装箱数量)
/// </summary>
public decimal Qty { get; set; }
/// <summary>
/// 序列号集
/// </summary>
public string SerialNumbers { get; set; }
}
}

View File

@@ -182,6 +182,26 @@ namespace WMS.Web.Repositories.Configuration
});
#endregion
#region
builder.Entity<Box>(ent =>
{
ent.ToTable("t_ops_box");
ent.HasKey(x => x.Id);
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.Fid)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<BoxDetails>(ent =>
{
ent.ToTable("t_ops_box_details");
ent.HasKey(x => x.Id);
});
#endregion
base.OnModelCreating(builder);
}
@@ -203,5 +223,8 @@ namespace WMS.Web.Repositories.Configuration
public DbSet<BoxInventoryDetails> BoxInventoryDetails { get; set; }
public DbSet<InventoryDetails> InventoryDetails { get; set; }
public DbSet<InventoryInOutDetails> InventoryInOutDetails { get; set; }
public DbSet<Box> Box { get; set; }
public DbSet<BoxDetails> BoxDetails { get; set; }
}
}