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.

122 lines
3.3 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_STOCK_MOVE
{
[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; }
[StringLength(50)]
[DisplayName("Ŀ������")]
public string ToBarCode { get; set; }
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
[DisplayName("���Ϻ�")]
public string PartCode { get; set; }
[NotMapped]
[DisplayName("��������")]
public string PartDesc => WmsCache.GetPartDesc(PartCode);
[Required(AllowEmptyStrings = true)]
[StringLength(20)]
[DisplayName("��Դ����")]
public string FromBatch { get; set; }
[Required(AllowEmptyStrings = true)]
[StringLength(20)]
[DisplayName("Ŀ������")]
public string ToBatch { get; set; }
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
[DisplayName("��Դ��λ")]
public string FromLocCode { get; set; }
[Key]
[Column(Order = 2)]
[StringLength(50)]
[DisplayName("Ŀ����λ")]
public string ToLocCode { get; set; }
[Column(TypeName = "money")]
[DisplayName("����")]
public decimal Qty { get; set; }
// [StringLength(50)]
// public string EqptCode { get; set; }
[StringLength(50)]
[DisplayName("��Դ����")]
public string FromEqptCode { get; set; }
[StringLength(50)]
[DisplayName("Ŀ������")]
public string ToEqptCode { get; set; }
[DisplayName("��Դ״̬")]
public EnumStockState FromState { get; set; }
[DisplayName("Ŀ��״̬")]
public EnumStockState ToState { get; set; }
[StringLength(50)]
[DisplayName("��Ӧ�̱���")]
public string VendId { get; set; }
[StringLength(50)]
[DisplayName("��Ӧ������")]
public string VendBatch { get; set; }
[StringLength(200)]
[DisplayName("��ע")]
public string Remark { get; set; }
[NotMapped]
public string PartGroup => WmsCache.GetPartGroup(PartCode);
[DisplayName("����ʱ��")]
public DateTime BillTime { get; set; } = DateTime.Now;
// [NotMapped]
// [DisplayName("ERP������")]
// public string ErpPartCode => WmsCache.GetErpPartCode(PartCode);
// [NotMapped]
// [DisplayName("��������")]
// public string ProjectId => WmsCache.GetProjectId(PartCode);
// [NotMapped]
// [DisplayName("��λ")]
// public string Unit => WmsCache.GetUnit(PartCode);
// [NotMapped]
// [DisplayName("��������")]
// public string EnumPartType => WmsCache.GetPartType(PartCode);
// [NotMapped]
// [DisplayName("��������")]
// public string EnumPartKind => WmsCache.GetPartKind(PartCode);
}
}