齐套出库

This commit is contained in:
2023-07-21 13:29:06 +08:00
parent cba5adf5f3
commit 9b14c845e6
5 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
/// <summary>
/// mes齐套出库子表
/// </summary>
[SugarTable("prd_kitting_out_d")]
public partial class PrdKittingOutD : BaseEntity<string>
{
public PrdKittingOutD()
{
id = SnowflakeIdHelper.NextId();
}
/// <summary>
/// 物料ID
/// </summary>
public string material_id { get; set; } = string.Empty;
/// <summary>
/// 物料编号
/// </summary>
public string? material_code { get; set; }
/// <summary>
/// 单位ID
/// </summary>
public string? unit_id { get; set; }
/// <summary>
/// 单位代码
/// </summary>
public string? unit_code { get; set; }
/// <summary>
/// 批次
/// </summary>
public string? code_batch { get; set; }
/// <summary>
/// 数量(件数)
/// </summary>
public decimal pr_qty { get; set; }
/// <summary>
/// 箱数
/// </summary>
public int box { get; set; }
/// <summary>
/// q齐套出库id
/// </summary>
public string kitting_out_id { get; set; } = string.Empty;
}

View File

@@ -0,0 +1,97 @@
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
/// <summary>
/// mes齐套出库主表
/// </summary>
[SugarTable("prd_kitting_out_h")]
public partial class PrdKittingOutH : BaseEntity<string>
{
public PrdKittingOutH()
{
id = SnowflakeIdHelper.NextId();
}
/// <summary>
/// 出库仓库ID
/// </summary>
public string warehouse_id { get; set; } = string.Empty;
/// <summary>
/// 目标库位编号
/// </summary>
public string location_code { get; set; } = string.Empty;
/// <summary>
/// 产品ID
/// </summary>
public string material_id { get; set; } = string.Empty;
/// <summary>
/// 产品编号
/// </summary>
public string? material_code { get; set; }
/// <summary>
/// 齐套搭配方案ID
/// </summary>
public string collocation_scheme_id { get; set; } = string.Empty;
/// <summary>
/// 齐套搭配方案编号
/// </summary>
public string? collocation_scheme_code { get; set; }
/// <summary>
/// 顺序号
/// </summary>
public string? seq { get; set; }
/// <summary>
/// 创建用户
/// </summary>
public string? create_id { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? create_time { get; set; }
/// <summary>
/// 所属组织
/// </summary>
public string? org_id { get; set; }
/// <summary>
/// 流程任务Id
/// </summary>
public string? f_flowtaskid { get; set; }
/// <summary>
/// 流程引擎Id
/// </summary>
public string? f_flowid { get; set; }
/// <summary>
/// 单据号
/// </summary>
public string code { get; set; } = string.Empty;
/// <summary>
/// 所属工位
/// </summary>
public string? workstation_id { get; set; }
/// <summary>
/// 所属产线
/// </summary>
public string? worklinei_d { get; set; }
/// <summary>
/// 任务单
/// </summary>
public string? mo_task_id { get; set; }
}