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.
116 lines
3.1 KiB
116 lines
3.1 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_PICK_FACT
|
|
{
|
|
[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; }
|
|
|
|
[Key]
|
|
[Column(Order = 2)]
|
|
[StringLength(50)]
|
|
[DisplayName("目标位置")]
|
|
public string CellCode { get; set; } = "";
|
|
|
|
[Required(AllowEmptyStrings = true)]
|
|
[StringLength(50)]
|
|
[DisplayName("目标库位")]
|
|
public string ToLocCode { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("生产线")]
|
|
public string LineId { 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(50)]
|
|
[DisplayName("批次")]
|
|
public string Batch { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
[DisplayName("发料数量")]
|
|
public decimal Qty { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
[DisplayName("叫料数量")]
|
|
public decimal PlanQty { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 3)]
|
|
[Required(AllowEmptyStrings = true)]
|
|
[StringLength(50)]
|
|
[DisplayName("来源库位")]
|
|
public string FromLocCode { get; set; }
|
|
|
|
[DisplayName("拣料时间")]
|
|
public DateTime PickTime { get; set; } = DateTime.Now;
|
|
|
|
[DisplayName("要求时间")]
|
|
public DateTime EndTime { get; set; } = DateTime.Now.AddHours(1);
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("供应商零件号")]
|
|
public string VendPartCode { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("客户零件号")]
|
|
public string CustPartCode { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("器具编号")]
|
|
public string EqptCode { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("供应商编号")]
|
|
public string VendId { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("供应商批次")]
|
|
public string VendBatch { get; set; }
|
|
|
|
[Column(TypeName = "date")]
|
|
[DisplayName("生产日期")]
|
|
public DateTime? ProduceDate { get; set; } = DateTime.Now.Date;
|
|
|
|
[DisplayName("物料状态")]
|
|
public EnumStockState State { get; set; }
|
|
|
|
[NotMapped]
|
|
[DisplayName("物料组")]
|
|
public string PartGroup => WmsCache.GetPartGroup(PartCode);
|
|
|
|
[StringLength(200)]
|
|
[DisplayName("备注")]
|
|
public string Remark { get; set; }
|
|
|
|
[NotMapped]
|
|
public DateTime BillTime { get; set; }
|
|
}
|
|
|
|
|
|
}
|
|
|