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.
 
 
 
 
 

118 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_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; }
}
}