You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.7 KiB
C#
89 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Mesnac.HighWay.ATC.Common
|
|
{
|
|
public class PLCAlarmInfoDTO
|
|
{
|
|
private string code;
|
|
private string plcName;
|
|
private string plcAddress;
|
|
private string plcValue;
|
|
private DateTime dateTime = DateTime.Now;
|
|
|
|
public PLCAlarmInfoDTO(string NAME, string ADDRESS)
|
|
{
|
|
plcName = NAME;
|
|
plcAddress = ADDRESS;
|
|
}
|
|
public string Code
|
|
{
|
|
get
|
|
{
|
|
return code;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
code = value;
|
|
}
|
|
}
|
|
}
|
|
public string PLCName
|
|
{
|
|
get
|
|
{
|
|
return plcName;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
plcName = value;
|
|
}
|
|
}
|
|
}
|
|
public string PLCAddress
|
|
{
|
|
get
|
|
{
|
|
return plcAddress;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
plcAddress = value;
|
|
}
|
|
}
|
|
}
|
|
public string PLCValue
|
|
{
|
|
get
|
|
{
|
|
return plcValue;
|
|
}
|
|
set
|
|
{
|
|
plcValue = value;
|
|
}
|
|
}
|
|
public DateTime DateTime
|
|
{
|
|
get
|
|
{
|
|
return dateTime;
|
|
}
|
|
set
|
|
{
|
|
dateTime = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|