136 lines
3.7 KiB
C#
136 lines
3.7 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace MDM.Models.Session
|
||
{
|
||
/// <summary>
|
||
/// 过站记录表
|
||
/// </summary>
|
||
[SugarTable("product_passstation_record")]
|
||
public class ProductPassstationRecord
|
||
{
|
||
/// <summary>
|
||
/// 主键ID
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)] // 修正:启用自增
|
||
public long Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工单号
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workorder", Length = 50)]
|
||
public string Workorder { get; set; }
|
||
|
||
/// <summary>
|
||
/// 过程码
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_SN", Length = 100)]
|
||
public string ProductSN { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工位号
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workstationCode", Length = 50)]
|
||
public string WorkstationCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工艺路线code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "routingcode", Length = 50)]
|
||
public string Routingcode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工序号
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "operationCode", Length = 50)]
|
||
public string OperationCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品生命周期阶段(1,是生产中,2是完工,3是返工)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "production_life_stage")]
|
||
public int? ProductionLifeStage { get; set; }
|
||
|
||
/// <summary>
|
||
/// 过站类型(IN 进站,OUT 出站)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "apply_type")]
|
||
public ApplyTypeEnum? ApplyType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 过站状态(SUCCESS 准许过站放行,REJECTED 禁止过站)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "apply_status")]
|
||
public ApplyStatusEnum? ApplyStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 进站时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "InStationTime")]
|
||
public DateTime? InStationTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出站时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "OutStationTime")]
|
||
public DateTime? OutStationTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 停留时间,秒
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "DurationSeconds")]
|
||
public int? DurationSeconds { get; set; }
|
||
|
||
/// <summary>
|
||
/// 操作人员
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "operator", Length = 50)]
|
||
public string Operator { get; set; }
|
||
|
||
/// <summary>
|
||
/// 禁止过站代码
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "reject_reason_code")]
|
||
public string RejectReasonCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 禁止过站描述
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "reject_reason_desc", Length = 255)]
|
||
public string RejectReasonDesc { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "created_time")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "updated_time")]
|
||
public DateTime? UpdatedTime { get; set; }
|
||
}
|
||
|
||
/// <summary>
|
||
/// 过站类型枚举
|
||
/// </summary>
|
||
public enum ApplyTypeEnum
|
||
{
|
||
IN = 0,
|
||
OUT = 1
|
||
}
|
||
|
||
/// <summary>
|
||
/// 过站状态枚举
|
||
/// </summary>
|
||
public enum ApplyStatusEnum
|
||
{
|
||
SUCCESS = 0,
|
||
REJECTED = 1
|
||
}
|
||
}
|