入库申请同步

This commit is contained in:
2023-07-12 10:19:15 +08:00
parent f07b7235d7
commit 67c481f97c
4 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
/// <summary>
/// mes申请入库子表
/// </summary>
[SugarTable("prd_instock_d")]
public partial class PrdInstockD : BaseEntity<string>
{
public PrdInstockD()
{
id = SnowflakeIdHelper.NextId();
}
/// <summary>
/// 入库申请主表id
/// </summary>
public string instock_id { get; set; } = string.Empty;
/// <summary>
/// 物料id
/// </summary>
public string material_id { get; set; } = string.Empty;
/// <summary>
/// 物料编号
/// </summary>
public string material_code { get; set; } = string.Empty;
/// <summary>
/// 单位
/// </summary>
public string unit_id { get; set; } = string.Empty;
/// <summary>
/// 数量
/// </summary>
public string quantity { get; set; } = string.Empty;
/// <summary>
/// 批次
/// </summary>
public string code_batch { get; set; } = string.Empty;
/// <summary>
/// 条码编号
/// </summary>
public string barcode { get; set; } = string.Empty;
}

View File

@@ -0,0 +1,67 @@
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
/// <summary>
/// mes入库申请主表
/// </summary>
[SugarTable("prd_instock_h")]
public partial class PrdInstockH : BaseEntity<string>
{
public PrdInstockH()
{
id = SnowflakeIdHelper.NextId();
}
/// <summary>
/// 入库单创建日期
/// </summary>
public DateTime bill_date { get; set; } = DateTime.Now;
/// <summary>
/// 单据类型
/// </summary>
public string bill_type { get; set; } = string.Empty;
/// <summary>
/// 入库仓库ID
/// </summary>
public string warehouse_id { get; set; } = string.Empty;
/// <summary>
/// 载具编号
/// </summary>
public string carry_code { get; set; } = string.Empty;
/// <summary>
/// 起始库位编号
/// </summary>
public string location_code { get; set; } = string.Empty;
/// <summary>
/// 来源单据ID
/// </summary>
public string source_id { get; set; } = string.Empty;
/// <summary>
/// 检验(0-未检 1-已检)
/// </summary>
public string is_check { get; set; } = string.Empty;
/// <summary>
/// 创建用户
/// </summary>
public string? create_id { get; set; }
/// <summary>
/// 所属组织
/// </summary>
public string? org_id { get; set; }
/// <summary>
/// 状态 1 申请入库 2 已入库
/// </summary>
public int? status { get; set; }
}