84 lines
2.2 KiB
C#
84 lines
2.2 KiB
C#
using Tnb.QcMgr.Entities.Enums;
|
|
|
|
namespace Tnb.QcMgr.Entities
|
|
{
|
|
public class TriggerPlan
|
|
{
|
|
public string? id { get; set; }
|
|
public string? name { get; set; }
|
|
public string? code { get; set; }
|
|
public string? type { get; set; }
|
|
public string? cycle { get; set; }
|
|
public string[]? trievent { get; set; }
|
|
public string[]? trieventid { get; set; }
|
|
}
|
|
public class TriggerPlanEntity
|
|
{
|
|
/// <summary>
|
|
/// 物料方案编号
|
|
/// </summary>
|
|
public string? materialid { get; set; }
|
|
/// <summary>
|
|
/// 工序编号
|
|
/// </summary>
|
|
public string? processid { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工位编号
|
|
/// </summary>
|
|
public string? workid { get; set; }
|
|
/// <summary>
|
|
/// 触发条件
|
|
/// </summary>
|
|
public EnumTriggerEvent? triggerevent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 原先生产数量
|
|
/// </summary>
|
|
public decimal? oldpronum { get; set; }
|
|
/// <summary>
|
|
/// 新生产数量
|
|
/// </summary>
|
|
public decimal? newpronum { get; set; }
|
|
/// <summary>
|
|
/// 生产次数
|
|
/// </summary>
|
|
public decimal? pronum { get; set; }
|
|
|
|
public string mo_task_code { get; set; }
|
|
|
|
public string carry_code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 提报记录id
|
|
/// </summary>
|
|
public string report_id { get; set; }
|
|
public string check_type { get; set; }
|
|
public string plan_check_type { get; set; }
|
|
public string batch { get; set; }
|
|
public string triggertype { get; set; } = "3";
|
|
}
|
|
|
|
|
|
public class CreateTaskEntity
|
|
{
|
|
/// <summary>
|
|
/// 物料方案编号
|
|
/// </summary>
|
|
public List<string> materialids { get; set; }
|
|
/// <summary>
|
|
/// 触发条件
|
|
/// </summary>
|
|
public EnumTriggerEvent? triggerevent { get; set; }
|
|
|
|
public string maintableid { get; set; }
|
|
}
|
|
public class TaskEntity
|
|
{
|
|
public List<string> materialids { get; set; }
|
|
public QcCheckPlanH qcCheckPlanH { get; set; }
|
|
public string maintableid { get; set; }
|
|
|
|
}
|
|
}
|