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.
76 lines
1.9 KiB
76 lines
1.9 KiB
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_INJECTION_MACHINE
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
|
public int UID { get; set; }
|
|
|
|
[Key]
|
|
[StringLength(50)]
|
|
[DisplayName("机台编号")]
|
|
public string MachineId { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("产品物料号")]
|
|
public string PartCode { get; set; }
|
|
|
|
[NotMapped]
|
|
[DisplayName("产品物料描述")]
|
|
public string PartDesc => WmsCache.GetPartDesc(PartCode);
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("模具边傲")]
|
|
public string MouldId { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("班次信息")]
|
|
public string ShiftInfo { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("班组")]
|
|
public string TeamName { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("操作员")]
|
|
public string OperName { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("原料物料号")]
|
|
public string RawPartCode { get;set; }
|
|
|
|
[NotMapped]
|
|
[DisplayName("原料物料描述")]
|
|
public string RawPartDesc => WmsCache.GetPartDesc(RawPartCode);
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("建议料筒")]
|
|
public string RecommandTankId { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("已连接料筒")]
|
|
public string TankId { get; set; }
|
|
|
|
[NotMapped]
|
|
public string 状态 => ((ConnState)State).ToString();
|
|
|
|
|
|
public int State { get; set; }
|
|
|
|
[StringLength(500)]
|
|
[DisplayName("备注")]
|
|
public string Remark { get; set; }
|
|
|
|
public string GetState(int state)
|
|
{
|
|
return state == 0 ? "未连接" : "已连接";
|
|
}
|
|
}
|
|
|
|
|
|
}
|