添加打印模板配置
This commit is contained in:
1 parent
b627851ab5
commit
ebdd40c518
22 files changed
+585
-191
No files matched your search
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 打印模板配置
|
||||
/// </summary>
|
||||
[Table("PrintConfig")]
|
||||
public class PrintConfig : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
|
||||
[Display(Name = "PrintConfig.Name", Description = "名称")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Display(Name = "PrintConfig.Template", Description = "模板")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string Template { get; set; }
|
||||
|
||||
[Display(Name = "PrintConfig.TestData", Description = "测试数据")]
|
||||
[Required(ErrorMessage = "Validate.{0}required")]
|
||||
public string TestData { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user