92 lines
2.7 KiB
C#
92 lines
2.7 KiB
C#
namespace RIZO.Model.MES.product_trace
|
||
{
|
||
/// <summary>
|
||
/// 产品生命周期表
|
||
/// </summary>
|
||
[SugarTable("product_lifecycle")]
|
||
public class ProductLifecycle
|
||
{
|
||
/// <summary>
|
||
/// 主键ID
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||
public int Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工单号
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workorder", Length = 50)]
|
||
[StringLength(50)]
|
||
public string Workorder { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前状态(0 未生产,1 生产中,2 完工中,3 返工中,4报废中)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_current_status")]
|
||
public int? ProductCurrentStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品SN
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_SN", Length = 50)]
|
||
[StringLength(50)]
|
||
public string ProductSN { get; set; }
|
||
|
||
/// <summary>
|
||
/// 线别
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "line_code", Length = 50)]
|
||
[StringLength(50)]
|
||
public string LineCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 组别
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "group_code", Length = 50)]
|
||
[StringLength(50)]
|
||
public string GroupCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工艺路线
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "routing_code", Length = 50)]
|
||
[StringLength(50)]
|
||
public string RoutingCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品开工时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_start_time")]
|
||
public DateTime? ProductStartTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品返工时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_rework_time")]
|
||
public DateTime? ProductReworkTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品完工时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_finish_time")]
|
||
public DateTime? ProductFinishTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品报废时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_scrap_time")]
|
||
public DateTime? ProductScrapTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "created_time")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "updated_time")]
|
||
public DateTime? UpdatedTime { get; set; }
|
||
}
|
||
} |