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.
140 lines
3.8 KiB
140 lines
3.8 KiB
4 years ago
|
using ChangKeTec.Wms.Models.Enums;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
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_CHECK
|
||
|
{
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||
|
public int UID { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
public string �̵�״̬ => CheckState.ToString();
|
||
|
|
||
|
[NotMapped]
|
||
|
public string �̵����� => CheckResult.ToString();
|
||
|
|
||
|
[DisplayName("��������")]
|
||
|
[NotMapped]
|
||
|
public decimal DiffQty => _ignoreCheckStateList.Contains(CheckState) ? 0 : FinalCheckQty - BookQty;
|
||
|
|
||
|
private readonly List<EnumCheckState> _ignoreCheckStateList = new List<EnumCheckState>
|
||
|
{
|
||
|
EnumCheckState.δ�̵�,
|
||
|
EnumCheckState.�̵���,
|
||
|
EnumCheckState.����
|
||
|
};
|
||
|
|
||
|
|
||
|
[DisplayName("��������")]
|
||
|
[NotMapped]
|
||
|
public decimal DiffAmount => DiffQty * PartPrice;
|
||
|
|
||
|
|
||
|
[Key]
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(500)]
|
||
|
[DisplayName("�̵���ǩ")]
|
||
|
public string TagCode { get; set; }
|
||
|
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���ݱ���")]
|
||
|
public string BillNum { get; set; }
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("�̵���λ")]
|
||
|
public string LocCode { get; set; } = "";
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[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);
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("����")]
|
||
|
public string Batch { get; set; } = "";
|
||
|
|
||
|
[DisplayName("����״̬")]
|
||
|
public EnumStockState StockState { get; set; } = EnumStockState.�ϸ�;
|
||
|
|
||
|
[DisplayName("���ϼ۸�")]
|
||
|
public decimal PartPrice { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���ߺ�")]
|
||
|
public string EqptCode { get; set; } = "";
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("��������")]
|
||
|
public decimal BookQty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("�̵�����")]
|
||
|
public decimal FinalCheckQty { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("��������")]
|
||
|
public decimal CheckQty { get; set; }
|
||
|
|
||
|
[DisplayName("����ʱ��")]
|
||
|
public DateTime CheckTime { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("������")]
|
||
|
public string CheckOper { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("��������")]
|
||
|
public decimal ReCheckQty { get; set; }
|
||
|
|
||
|
[DisplayName("����ʱ��")]
|
||
|
public DateTime ReCheckTime { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("������")]
|
||
|
public string ReCheckOper { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName("��������")]
|
||
|
public decimal SupCheckQty { get; set; }
|
||
|
|
||
|
[DisplayName("����ʱ��")]
|
||
|
public DateTime SupCheckTime { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("������")]
|
||
|
public string SupCheckOper { get; set; }
|
||
|
|
||
|
|
||
|
public EnumCheckState CheckState { get; set; }
|
||
|
|
||
|
|
||
|
public EnumCheckResult CheckResult { get; set; }
|
||
|
|
||
|
[DisplayName("��Ӧ�̱���")]
|
||
|
public string VendId { get; set; }
|
||
|
|
||
|
[DisplayName("��Ӧ������")]
|
||
|
public string VendBatch { get; set; }
|
||
|
|
||
|
}
|
||
|
}
|