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.
75 lines
1.9 KiB
75 lines
1.9 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_MATERIAL_ASK
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed )]
|
|
public int UID { get; set; }
|
|
|
|
[NotMapped]
|
|
public string 状态 => ((EnumBillState) State).ToString();
|
|
|
|
|
|
[Key]
|
|
[Column(Order = 0)]
|
|
[StringLength(50)]
|
|
[DisplayName("叫料单号")]
|
|
public string BillNum { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 1)]
|
|
[StringLength(50)]
|
|
[DisplayName("物料号")]
|
|
public string PartCode { get; set; }
|
|
|
|
[NotMapped]
|
|
[DisplayName("物料描述")]
|
|
public string PartDesc => WmsCache.GetPartDesc(PartCode);
|
|
|
|
[Key]
|
|
[Column(Order = 2)]
|
|
[StringLength(50)]
|
|
[DisplayName("叫料位置")]
|
|
public string CellCode { get; set; }
|
|
|
|
[Required(AllowEmptyStrings = true)]
|
|
[StringLength(50)]
|
|
[DisplayName("目标库位")]
|
|
public string ToLocCode { get; set; }
|
|
|
|
[NotMapped]
|
|
[DisplayName("库位描述")]
|
|
public string LocDesc => WmsCache.GetLocName(ToLocCode);
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("生产线编号")]
|
|
public string LineId { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
[DisplayName("叫料数量")]
|
|
public decimal Qty { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
[DisplayName("备料数量")]
|
|
public decimal PlanQty { get; set; }
|
|
|
|
[DisplayName("截止时间")]
|
|
public DateTime EndTime { get; set; }
|
|
|
|
|
|
public int State { get; set; }
|
|
|
|
[StringLength(200)]
|
|
[DisplayName("备注")]
|
|
public string Remark { get; set; }
|
|
|
|
[NotMapped]
|
|
public DateTime BillTime { get; set; }
|
|
}
|
|
}
|
|
|