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.
101 lines
2.5 KiB
101 lines
2.5 KiB
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using ChangKeTec.Wms.Models.Enums;
|
|
|
|
|
|
namespace ChangKeTec.Wms.Models.Wms
|
|
{
|
|
public partial class TM_CQBMPT_SCAN_LOG
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
|
public int UID { get; set; }
|
|
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("唯一码")]
|
|
public string BarCode { get; set; }
|
|
|
|
[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 ScanOper { get; set; }
|
|
|
|
[DisplayName("扫描时间")]
|
|
public DateTime ScanTime { get; set; }
|
|
|
|
[DisplayName("班组")]
|
|
public string TeamName { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("班次信息")]
|
|
public string ShiftInfo { get; set; }
|
|
|
|
[StringLength(4000)]
|
|
[DisplayName("不合格位置")]
|
|
public string FailedAreas { get; set; }
|
|
|
|
[StringLength(4000)]
|
|
[DisplayName("不合格原因")]
|
|
public string FailedReasons { get; set; }
|
|
|
|
|
|
public int Type { get; set; }
|
|
|
|
[NotMapped]
|
|
public string 类型 => ((EnumCqbmptPartType)Type).ToString();
|
|
|
|
[DisplayName("状态")]
|
|
public EnumCqbmptState State { get; set; }
|
|
|
|
[DisplayName("抛光次数")]
|
|
public int PolishTimes { get; set; }
|
|
|
|
[StringLength(4000)]
|
|
[DisplayName("备注")]
|
|
public string Remark { get; set; }
|
|
|
|
[DisplayName("配置信息")]
|
|
public string DataInfo { get; set; }
|
|
|
|
public TM_CQBMPT_SCAN_LOG()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|