添加项目文件。
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
namespace JinYuan.Models
|
||||
{
|
||||
// 变量配置模型
|
||||
public class VariableConfig
|
||||
{
|
||||
|
||||
public string _varName;
|
||||
|
||||
public string VarName
|
||||
{
|
||||
get => _varName;
|
||||
set
|
||||
{
|
||||
if (_varName == value) return;
|
||||
_varName = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public string _varAddress;
|
||||
public string VarAddress
|
||||
{
|
||||
get => _varAddress;
|
||||
set
|
||||
{
|
||||
if (_varAddress == value) return;
|
||||
_varAddress = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public string _start;
|
||||
public string Start
|
||||
{
|
||||
get => _start;
|
||||
set
|
||||
{
|
||||
if (_start == value) return;
|
||||
_start = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public string _dataType;
|
||||
public string DataType
|
||||
{
|
||||
get => _dataType;
|
||||
set
|
||||
{
|
||||
if (_dataType == value) return;
|
||||
_dataType = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int _offsetOrLength;
|
||||
public int OffsetOrLength
|
||||
{
|
||||
get => _offsetOrLength;
|
||||
set
|
||||
{
|
||||
if (_offsetOrLength == value) return;
|
||||
_offsetOrLength = value;
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// PLC编号
|
||||
/// </summary>
|
||||
private int _plcNum;
|
||||
public int PlcNum
|
||||
{
|
||||
get => _plcNum;
|
||||
set
|
||||
{
|
||||
if (_plcNum == value) return;
|
||||
_plcNum = value;
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 通信组
|
||||
/// </summary>
|
||||
private string _groupName;
|
||||
public string GroupName
|
||||
{
|
||||
get => _groupName;
|
||||
set
|
||||
{
|
||||
if (_groupName == value) return;
|
||||
_groupName = value;
|
||||
|
||||
}
|
||||
}
|
||||
private string _remark;
|
||||
public string Remark
|
||||
{
|
||||
get => _remark;
|
||||
set
|
||||
{
|
||||
if (_remark == value) return;
|
||||
_remark = value;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
private string _stationName;
|
||||
public string StationName
|
||||
{
|
||||
get => _stationName;
|
||||
set
|
||||
{
|
||||
if (_stationName == value) return;
|
||||
_stationName = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user