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

1 year ago
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 ? "���" : "������";
}
}
}