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.
121 lines
3.3 KiB
121 lines
3.3 KiB
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);
|
|
|
|
}
|
|
}
|
|
|