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.
77 lines
1.9 KiB
77 lines
1.9 KiB
1 year ago
|
using System;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
|
||
|
namespace CK.SCP.Models.ScpEntity
|
||
|
{
|
||
|
public partial class TB_RECEIVE_DETAIL
|
||
|
{
|
||
|
public string UID { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 0)]
|
||
|
[StringLength(50)]
|
||
|
public string BillNum { get; set; }
|
||
|
|
||
|
// [Key]
|
||
|
// [Column(Order = 1)]
|
||
|
// [StringLength(50)]
|
||
|
// public string PoBillNum { get; set; }
|
||
|
[NotMapped]
|
||
|
public string PoBillNum => ScpCache.GetReceivePoBillNum(BillNum);
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 1)]
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||
|
public int PoLineNum { get; set; }
|
||
|
|
||
|
// [Key]
|
||
|
// [Column(Order = 3)]
|
||
|
// [StringLength(50)]
|
||
|
// public string AsnBillNum { get; set; }
|
||
|
[NotMapped]
|
||
|
public string AsnBillNum => ScpCache.GetReceiveAsnBillNum(BillNum);
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 2)]
|
||
|
[StringLength(50)]
|
||
|
public string PartCode { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 5)]
|
||
|
[StringLength(50)]
|
||
|
public string Batch { get; set; }
|
||
|
|
||
|
[Column(TypeName = "date")]
|
||
|
public DateTime ProduceDate { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string VendBatch { get; set; }
|
||
|
|
||
|
|
||
|
public decimal BillQty { get; set; }
|
||
|
|
||
|
|
||
|
public decimal ReceivedQty { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string PoUnit { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string LocUnit { get; set; }
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
public decimal Price { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string Currency { get; set; }
|
||
|
|
||
|
public Int32 Qty => Convert.ToInt32(ReceivedQty) - Convert.ToInt32(BillQty);
|
||
|
|
||
|
public int State { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string Remark { get; set; }
|
||
|
}
|
||
|
}
|