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.
87 lines
2.2 KiB
87 lines
2.2 KiB
4 years 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 TF_ASN_DETAIL
|
||
|
{
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||
|
public int UID { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
public string ״̬ => ((EnumFormState)State).ToString();
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 0)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���ݱ���")]
|
||
|
public string BillNum { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 1)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��������")]
|
||
|
public string PoBillNum { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 2)]
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||
|
[DisplayName("������")]
|
||
|
public int PoLineNum { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 3)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���Ϻ�")]
|
||
|
public string PartCode { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
public string �������� => WmsCache.GetPartDesc(PartCode);
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 4)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("����")]
|
||
|
public string Batch { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��Ӧ������")]
|
||
|
public string VendBatch { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("��������")]
|
||
|
public decimal BillQty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("�ѽ�����")]
|
||
|
public decimal ClosedQty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("�����")]
|
||
|
[NotMapped]
|
||
|
public decimal OpenQty => BillQty - ClosedQty;
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("�ɹ���λ")]
|
||
|
public string PoUnit { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("�洢��λ")]
|
||
|
public string LocUnit { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("�ɹ��۸�")]
|
||
|
public decimal Price { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���ߺ�")]
|
||
|
public string EqptCode { get; set; }
|
||
|
|
||
|
|
||
|
public int State { get; set; }
|
||
|
|
||
|
}
|
||
|
}
|