You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.4 KiB
128 lines
3.4 KiB
1 year ago
|
using System;
|
||
|
using System.ComponentModel;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using ChangKeTec.Wms.Models.Enums;
|
||
|
using CK.SCP.Models;
|
||
|
|
||
|
namespace ChangKeTec.Wms.Models.Wms
|
||
|
{
|
||
|
public partial class TM_CQBMPT_TRACEBACK
|
||
|
{
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||
|
public int UID { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 0)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("唯一码")]
|
||
|
public string BarCode { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 1)]
|
||
|
|
||
|
[DisplayName("工序")]
|
||
|
public EnumCqbmptProcess Process { get; set; }
|
||
|
|
||
|
|
||
|
//[DisplayName("操作类型")]
|
||
|
//public EnumCqbmptFormType FormType { get; set; } = EnumCqbmptFormType.无;
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("物料号")]
|
||
|
public string PartCode { get; set; } = "";
|
||
|
[NotMapped]
|
||
|
[DisplayName("物料描述")]
|
||
|
public string PartDesc => WmsCache.GetPartDesc(PartCode);
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("原料物料号")]
|
||
|
public string RawPartCode { get; set; } = "";
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName("原料物料描述")]
|
||
|
public string RawPartDesc => WmsCache.GetPartDesc(RawPartCode);
|
||
|
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("批次")]
|
||
|
public string Batch { get; set; }
|
||
|
|
||
|
[DisplayName("数量")]
|
||
|
public decimal Qty { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("配置信息")]
|
||
|
public string DataInfo { get; set; } = "";
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("生产线")]
|
||
|
public string LineId { get; set; } = "";
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("班次信息")]
|
||
|
public string ShiftInfo { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("班组")]
|
||
|
public string TeamName { get; set; }
|
||
|
|
||
|
[StringLength(4000)]
|
||
|
[DisplayName("不合格位置")]
|
||
|
public string FailedAreas { get; set; }
|
||
|
|
||
|
[StringLength(4000)]
|
||
|
[DisplayName("不合格原因")]
|
||
|
public string FailedReasons { get; set; }
|
||
|
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("创建人")]
|
||
|
public string CreateOper { get; set; }
|
||
|
|
||
|
[DisplayName("创建时间")]
|
||
|
public DateTime CreateTime { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("更新人")]
|
||
|
public string UpdateOper { get; set; }
|
||
|
|
||
|
|
||
|
[DisplayName("更新时间")]
|
||
|
public DateTime? UpdateTime { get; set; }
|
||
|
|
||
|
[DisplayName("抛光次数")]
|
||
|
public int PolishTimes { get; set; } = 0;
|
||
|
|
||
|
|
||
|
|
||
|
public int Type { get; set; } = 0;
|
||
|
|
||
|
[NotMapped]
|
||
|
public string 类型 => ((EnumCqbmptPartType)Type).ToString();
|
||
|
|
||
|
[DisplayName("状态")]
|
||
|
public EnumCqbmptState State { get; set; }
|
||
|
|
||
|
[DisplayName("是否已提交")]
|
||
|
public bool IsCommit { get; set; } = false;
|
||
|
|
||
|
[StringLength(4000)]
|
||
|
[DisplayName("备注")]
|
||
|
public string Remark { get; set; }
|
||
|
|
||
|
[DisplayName("滑橇位置")]
|
||
|
public int SkidPosition { get; set; } = 0;
|
||
|
|
||
|
[DisplayName("滑橇编号")]
|
||
|
public string SkidId { get; set; }
|
||
|
|
||
|
public TM_CQBMPT_TRACEBACK()
|
||
|
{ }
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return EntitiesHelper.GetPropertiesString(this);
|
||
|
}
|
||
|
}
|
||
|
}
|