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.

124 lines
3.2 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.Enums;
//
namespace ChangKeTec.Wms.Models.Wms
{
public partial class TB_INSPECT
{
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public int UID { get; set; }
[Key]
[Column(Order = 0)]
[StringLength(50)]
[DisplayName("���ݱ���")]
public string BillNum { get; set; }
[Key]
[Column(Order = 1)]
[StringLength(50)]
[DisplayName("����")]
public string BarCode { get; set; }
[Key]
[Column(Order = 2)]
[StringLength(50)]
[DisplayName("��λ")]
public string LocCode { get; set; }
[Key]
[Column(Order = 3)]
[StringLength(50)]
[DisplayName("������")]
public string PoBillNum { get; set; }
[Key]
[Column(Order = 4)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[DisplayName("������")]
public int PoLine { get; set; }
[DisplayName("��������")]
public InspectType InspectType { get; set; }
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
[DisplayName("���Ϻ�")]
public string PartCode { get; set; }
[NotMapped]
[DisplayName("��Ӧ�����Ϻ�")]
public string VendPartCode => WmsCache.GetVendPartCode(VendId, PartCode);
[NotMapped]
[DisplayName("��������")]
public string PartDesc => WmsCache.GetPartDesc(PartCode);
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
[DisplayName("����")]
public string Batch { get; set; }
[Column(TypeName = "money")]
[DisplayName("�ջ���")]
public decimal ReceiveQty { get; set; }
[Column(TypeName = "money")]
[DisplayName("��Ʒ��")]
public decimal SampleQty { get; set; }
[Column(TypeName = "money")]
[DisplayName("������")]
public decimal InspQty { get; set; }
[Column(TypeName = "money")]
[DisplayName("�ϸ���")]
public decimal PassQty { get; set; }
[Column(TypeName = "money")]
[DisplayName("���ϸ���")]
public decimal FailQty { get; set; }
[Column(TypeName = "money")]
[DisplayName("�ƻ���")]
public decimal CrackQty { get; set; }
public int InspResult { get; set; }
[NotMapped]
public string => ((InspectResult) InspResult).ToString();
[StringLength(50)]
[DisplayName("���ϸ�ԭ��")]
public string FailReason { get; set; }
[StringLength(50)]
[DisplayName("��Ӧ�̱���")]
public string VendId { get; set; }
[StringLength(200)]
[DisplayName("��Ӧ������")]
public string VendBatch { get; set; }
[DisplayName("״̬")]
public EnumStockState State { get; set; }
[DisplayName("��ע")]
public string Remark { get; set; }
[NotMapped]
public string PartGroup => WmsCache.GetPartGroup(PartCode);
public DateTime BillTime { get; set; } = DateTime.Now;
}
}