185 lines
3.8 KiB
C#
185 lines
3.8 KiB
C#
![]() |
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Epost.Model
|
|||
|
{
|
|||
|
public class PressureTestModel
|
|||
|
{
|
|||
|
private string _ControlIP = string.Empty;
|
|||
|
private string _DisplayNumber = string.Empty;
|
|||
|
private string _DisplayLightColor = string.Empty;
|
|||
|
private string _TestTime = string.Empty;
|
|||
|
private int _AddrStart =0;
|
|||
|
private int _AddrEnd = 0;
|
|||
|
private string _LabelAddress = string.Empty;
|
|||
|
private string _LabelType = string.Empty;
|
|||
|
private string _ShowContent = string.Empty;
|
|||
|
private string _TestPattern = string.Empty;
|
|||
|
private string _FlashMode = string.Empty;
|
|||
|
private string _BuzzMode = string.Empty;
|
|||
|
|
|||
|
[Display(Name = "控制器IP")]
|
|||
|
public string ControlIP
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _ControlIP;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_ControlIP = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "数字显示模式")]
|
|||
|
public string DisplayNumber
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _DisplayNumber;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_DisplayNumber = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "LED灯显示模式")]
|
|||
|
|
|||
|
public string DisplayLightColor
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _DisplayLightColor;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_DisplayLightColor = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "响应时间(毫秒)")]
|
|||
|
|
|||
|
public string TestTime
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _TestTime;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_TestTime = value;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public int AddrStart
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _AddrStart;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_AddrStart = value;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public int AddrEnd
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _AddrEnd;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_AddrEnd = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "标签地址")]
|
|||
|
public string LabelAddress
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _LabelAddress;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_LabelAddress = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "标签类型")]
|
|||
|
public string LabelType
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _LabelType;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_LabelType = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "显示内容")]
|
|||
|
public string ShowContent
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _ShowContent;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_ShowContent = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "测试模式")]
|
|||
|
public string TestPattern
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _TestPattern;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_TestPattern = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "灯光闪烁模式")]
|
|||
|
public string FlashMode
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _FlashMode;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_FlashMode = value;
|
|||
|
}
|
|||
|
}
|
|||
|
[Display(Name = "蜂鸣模式")]
|
|||
|
public string BuzzMode
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return _BuzzMode;
|
|||
|
}
|
|||
|
|
|||
|
set
|
|||
|
{
|
|||
|
_BuzzMode = value;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|