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.
 
 
 
 
 

74 lines
1.7 KiB

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CK.SCP.Models.ScpEntity
{
public partial class TA_PART
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long UID { get; set; }
[Key]
[Column(Order =0)]
[StringLength(50)]
public string PartCode { get; set; }
[Required]
[StringLength(50)]
public string ErpPartCode { get; set; }
// [Required]
public string PartDesc1 { get; set; }
// [Required]
public string PartDesc2 { get; set; }
// [Required]
[StringLength(50)]
public string ProjectId { get; set; }
[Required]
[StringLength(50)]
public string Unit { get; set; }
// [Required]
[StringLength(50)]
public string PartGroup { get; set; }
[Required]
[StringLength(10)]
public string State { get; set; }
[StringLength(100)]
public string Configuration { get; set; }
public int ValidityDays { get; set; }
[StringLength(50)]
public string ReceivePort { get; set; }
[StringLength(50)]
public string PalletSize { get; set; }
[StringLength(500)]
public string Remark { get; set; }
[Key]
[Column(Order =1)]
[StringLength(50)]
public string Site { get; set; }
public string Qlevel{ get; set; }
public bool? Ischeck { get; set; }
[NotMapped]
public string FactoryName => ScpCache.GetFactoryNameByCode(Site);
[NotMapped]
public string ReceivedPort_Desc => ScpCache.GetRevicePort(ReceivePort);
public string SubSite { get; set; }
}
}