66 lines
2.2 KiB
C#
66 lines
2.2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace HHWMS.Web.Models
|
|
{
|
|
[Table("SysDictData")]
|
|
public class SysDictData : BasePoco
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public new int ID { get; set; }
|
|
|
|
[Display(Name = "SysDictType.DictName")]
|
|
public int SysDictTypeId { get; set; }
|
|
public SysDictType SysDictType { get; set; }
|
|
|
|
// <summary>
|
|
/// 字典排序
|
|
/// </summary>
|
|
[Display(Name = "SysDictData.DictSort", Description = "字典排序")]
|
|
public int? DictSort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字典标签
|
|
/// </summary>
|
|
[Display(Name = "SysDictData.DictLabel", Description = "字典标签")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string DictLabel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 英文标签
|
|
/// </summary>
|
|
[Display(Name = "SysDictData.DictLabelUs", Description = "英文标签")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string DictLabelUs { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字典键值
|
|
/// </summary>
|
|
[Display(Name = "SysDictData.DictValue", Description = "字典键值")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string DictValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 字典类型
|
|
/// </summary>
|
|
[Display(Name = "SysDictType.DictType", Description = "字典类型")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string DictType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 样式属性
|
|
/// </summary>
|
|
[Display(Name = "SysDictData.CssClass", Description = "样式属性")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string CssClass { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[Display(Name = "_Admin.Remark", Description = "备注")]
|
|
public string Remark { get; set; }
|
|
}
|
|
}
|