生产排产算预计结束时间

This commit is contained in:
2023-07-20 14:04:21 +08:00
parent 630a8b76d0
commit 74b13dcfbd
4 changed files with 164 additions and 0 deletions

View File

@@ -0,0 +1,112 @@
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.BasicData.Entities;
/// <summary>
/// 标准工时
/// </summary>
[SugarTable("bas_standard_time")]
public partial class BasStandardTime : BaseEntity<string>
{
public BasStandardTime()
{
id = SnowflakeIdHelper.NextId();
}
/// <summary>
/// 生产BOMid
/// </summary>
public string? mbom_id { get; set; }
/// <summary>
/// 工艺路线id
/// </summary>
public string? routing_id { get; set; }
/// <summary>
/// 工序id
/// </summary>
public string? process_id { get; set; }
/// <summary>
/// 工位id
/// </summary>
public string? station_id { get; set; }
/// <summary>
/// 类型
/// </summary>
public string? type { get; set; }
/// <summary>
/// 标准工时
/// </summary>
public string? standard_time { get; set; }
/// <summary>
/// 标准工时单位
/// </summary>
public string? standard_time_unit { get; set; }
/// <summary>
/// 标准产能
/// </summary>
public string? standard_capacity { get; set; }
/// <summary>
/// 标准产能单位
/// </summary>
public string? standard_capacity_unit { get; set; }
/// <summary>
/// 创建用户
/// </summary>
public string? create_id { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? create_time { get; set; }
/// <summary>
/// 修改用户
/// </summary>
public string? modify_id { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public DateTime? modify_time { get; set; }
/// <summary>
/// 所属组织
/// </summary>
public string? org_id { get; set; }
/// <summary>
/// 编号
/// </summary>
public string? code { get; set; }
/// <summary>
/// 流程任务Id
/// </summary>
public string? f_flowtaskid { get; set; }
/// <summary>
/// 流程引擎Id
/// </summary>
public string? f_flowid { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public int? enabled { get; set; }
/// <summary>
/// 工序来源选择
/// </summary>
public string? process_source { get; set; }
}

View File

@@ -0,0 +1,25 @@
namespace Tnb.ProductionMgr.Entities.Dto.PrdManage
{
/// <summary>
/// 排产用于计算预计结束时间
/// </summary>
public class CountEstimatedEndTimeInput
{
public DateTime estimated_start_date { get; set; }
public int scheduled_qty { get; set; }
public string? equip_id { get; set; }
public string? molds_id { get; set; }
public string? material_id { get; set; }
public string? mbom_id { get; set; }
/// <summary>
/// 1 注塑挤出排产 2 组装包装排产
/// </summary>
public int type { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
namespace Tnb.ProductionMgr.Entities.Dto
{
public class FeedingRecordTreeOutput
{
public string id { get; set; }
public string mo_task_code { get; set; }
public List<FeedingRecordChildren> children { get; set; } = new List<FeedingRecordChildren>();
}
public class FeedingRecordChildren
{
public string id { get; set; }
public string code { get; set; }
public string mo_task_id { get; set; }
public List<FeedingRecordMaterialChildren> children { get; set; } = new List<FeedingRecordMaterialChildren>();
}
public class FeedingRecordMaterialChildren
{
public string material_code { get; set; }
public string material_name { get; set; }
}
}

View File

@@ -12,6 +12,7 @@
<ProjectReference Include="..\..\BasicData\Tnb.BasicData.Interfaces\Tnb.BasicData.Interfaces.csproj" />
<ProjectReference Include="..\..\EquipMgr\Tnb.EquipMgr.Interfaces\Tnb.EquipMgr.Interfaces.csproj" />
<ProjectReference Include="..\..\message\Tnb.Message\Tnb.Message.csproj" />
<ProjectReference Include="..\..\PerMgr\Tnb.PerMgr.Entities\Tnb.PerMgr.Entities.csproj" />
<ProjectReference Include="..\..\taskschedule\Tnb.TaskScheduler\Tnb.TaskScheduler.csproj" />
<ProjectReference Include="..\..\visualdev\Tnb.VisualDev.Engine\Tnb.VisualDev.Engine.csproj" />
<ProjectReference Include="..\..\WarehouseMgr\Tnb.WarehouseMgr.Entities\Tnb.WarehouseMgr.Entities.csproj" />