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.
119 lines
3.1 KiB
119 lines
3.1 KiB
1 year ago
|
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 TB_PRODUCT_RECEIVE
|
||
|
{
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||
|
public int UID { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 0)]
|
||
|
[StringLength(50)]
|
||
|
|
||
|
[DisplayName("���ݱ���")]
|
||
|
public string BillNum { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("�ƻ�����")]
|
||
|
|
||
|
public string PpBillNum { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 1)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("����")]
|
||
|
public string BarCode { get; set; }
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���Ϻ�")]
|
||
|
public string PartCode { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName("��������")]
|
||
|
public string PartDesc => WmsCache.GetPartDesc(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName("�ͻ����Ϻ�")]
|
||
|
public string CustPartCode => WmsCache.GetCustPartCode("", PartCode);
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(20)]
|
||
|
[DisplayName("����")]
|
||
|
public string Batch { get; set; }
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��Դ��λ")]
|
||
|
public string FromLocCode { get; set; }
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("Ŀ����λ")]
|
||
|
public string ToLocCode { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("������")]
|
||
|
public decimal Qty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("�ϸ�����")]
|
||
|
public decimal GoodQty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("��������")]
|
||
|
public decimal ScrapQty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("���ϸ�����")]
|
||
|
public decimal InvalidQty { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���߱���")]
|
||
|
public string EqptCode { get; set; } = "";
|
||
|
|
||
|
[StringLength(4000)]
|
||
|
[DisplayName("��ע")]
|
||
|
public string Remark { get; set; }
|
||
|
|
||
|
[DisplayName("����״̬")]
|
||
|
public EnumStockState State { get; set; }
|
||
|
|
||
|
[DisplayName("�ջ�ʱ��")]
|
||
|
public DateTime ReceiveDate { get; set; }
|
||
|
|
||
|
[Column(TypeName = "date")]
|
||
|
[DisplayName("��������")]
|
||
|
public DateTime ProduceDate { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("������")]
|
||
|
public string LineId { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("����")]
|
||
|
public string ShiftName { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("����")]
|
||
|
public string TeamName { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��λ")]
|
||
|
public string Unit { get; set; }
|
||
|
|
||
|
[StringLength(4000)]
|
||
|
[DisplayName("�ݱ���")]
|
||
|
public string TraceBackCode { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
public DateTime BillTime { get; set; }
|
||
|
}
|
||
|
}
|