- 移除TestData字段的Required验证 - 将Template字段从textbox改为textarea以支持多行输入 - 添加打印模板设计界面,支持拖拽元素和自定义纸张 - 新增GetTemplateByName接口用于获取模板 - 优化视图布局,统一使用单列显示
30 lines
957 B
C#
30 lines
957 B
C#
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 = "测试数据")]
|
|
public string TestData { get; set; }
|
|
}
|
|
}
|