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.
37 lines
920 B
37 lines
920 B
using System.ComponentModel.DataAnnotations;
|
|
using Infrastructure.Application;
|
|
|
|
namespace SPService.Applicaiton.Models
|
|
{
|
|
[Display(Name = "指令")]
|
|
public class EditButtonModel : EditModel
|
|
{
|
|
[Required]
|
|
[Display(Name = "名称")]
|
|
public string Name { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "消息")]
|
|
public string Message { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "串口")]
|
|
public string SerialPort { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "波特率")]
|
|
public int Baud { get; set; } = 9600;
|
|
|
|
[Required]
|
|
[Display(Name = "数据位")]
|
|
public int Data { get; set; } = 8;
|
|
|
|
[Required]
|
|
[Display(Name = "停止位")]
|
|
public int StopBits { get; set; } = 0;
|
|
|
|
[Required]
|
|
[Display(Name = "校验位")]
|
|
public int Partity { get; set; } = 0;
|
|
}
|
|
} |