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.
 
 
 
 
 

54 lines
1.3 KiB

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CK.SCP.Models.ScpEntity
{
public class V_Stock
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long UID { get; set; }
[Key]
[Column(Order = 0)]
[StringLength(50)]
public string BarCode { get; set; }
[Key]
[Column(Order = 1)]
[StringLength(500)]
public string LocCode { get; set; }
[Required]
[StringLength(50)]
public string PartCode { get; set; }
[StringLength(50)]
public string VendId { get; set; }
[Required]
[StringLength(50)]
public string Batch { get; set; }
[Column(TypeName = "datetime2")]
public DateTime ProduceDate { get; set; }
[Column(TypeName = "datetime2")]
public DateTime ReceiveDate { get; set; }
[Required]
public decimal Qty { get; set; }
[Key]
[Column(Order = 2)]
public int state { get; set; }
[Required]
[StringLength(50)]
public string Remark { get; set; }
[Required]
[StringLength(50)]
public string PartDesc1 { get; set; }
}
}