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.
58 lines
1.7 KiB
58 lines
1.7 KiB
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace AMESCoreStudio.WebApi.Models.AMES
|
|
{
|
|
/// <summary>
|
|
/// 組件類別资料表
|
|
/// </summary>
|
|
[Table("ITEMS", Schema = "JHAMES")]
|
|
[DataContract]
|
|
public class Items
|
|
{
|
|
/// <summary>
|
|
/// 組件代碼
|
|
/// </summary>
|
|
[Key]
|
|
[Column("ITEM_NO")]
|
|
[Required(ErrorMessage = "{0},不能空白")]
|
|
[Display(Name = "組件代碼")]
|
|
[StringLength(4, ErrorMessage = "{0},不能大于{1}")]
|
|
[DataMember]
|
|
public string ItemNo { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 組件名稱
|
|
/// </summary>
|
|
[Column("ITEM_NAME")]
|
|
[Required(ErrorMessage = "{0},不能空白")]
|
|
[Display(Name = "組件名稱")]
|
|
[StringLength(50, ErrorMessage = "{0},不能大于{1}")]
|
|
[DataMember]
|
|
public string ItemName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 組件類別
|
|
/// </summary>
|
|
[Column("ITEM_TYPE")]
|
|
[DataMember]
|
|
[Required(ErrorMessage = "{0},不能空白")]
|
|
[Display(Name = "組件類別")]
|
|
[StringLength(2, ErrorMessage = "{0},不能大于{1}")]
|
|
public string ItemType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 組件區間管控
|
|
/// </summary>
|
|
[Column("SN_INTERVAL")]
|
|
[DataMember]
|
|
[Required(ErrorMessage = "{0},不能空白")]
|
|
[Display(Name = "組件區間管控")]
|
|
[StringLength(1, ErrorMessage = "{0},不能大于{1}")]
|
|
public string SNInterval { get; set; }
|
|
}
|
|
}
|
|
|