修改
This commit is contained in:
@@ -18,7 +18,7 @@ namespace CleanMachine.Model.BAS
|
||||
private string plcItemCode;
|
||||
private string plcItemName;
|
||||
private int plcItemType;
|
||||
private int plcItemDataType;
|
||||
private PlcItemTypeDesc plcItemDataType;
|
||||
private int plcItemDataLength;
|
||||
private string plcItemPriAddress;
|
||||
private string plcItemModbusAddress;
|
||||
@@ -76,7 +76,7 @@ namespace CleanMachine.Model.BAS
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemDataType
|
||||
public PlcItemTypeDesc PlcItemDataType
|
||||
{
|
||||
get { return this.plcItemDataType; }
|
||||
set { this.plcItemDataType=value;}
|
||||
|
||||
26
CleanMachine.Model/BAS/PlcItemTypeDesc.cs
Normal file
26
CleanMachine.Model/BAS/PlcItemTypeDesc.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.BAS
|
||||
{
|
||||
public enum PlcItemTypeDesc
|
||||
{
|
||||
/// <summary>
|
||||
/// M 类型布尔变量
|
||||
/// </summary>
|
||||
M,
|
||||
/// <summary>
|
||||
/// D 类型整数变量
|
||||
/// </summary>
|
||||
D,
|
||||
/// <summary>
|
||||
/// X 类型布尔变量
|
||||
/// </summary>
|
||||
X,
|
||||
/// <summary>
|
||||
/// Y 类型布尔变量
|
||||
/// </summary>
|
||||
Y
|
||||
}
|
||||
}
|
||||
31
CleanMachine.Model/CM/ShiftCount.cs
Normal file
31
CleanMachine.Model/CM/ShiftCount.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.CM
|
||||
{
|
||||
public class ShiftCount
|
||||
{
|
||||
private DateTime dateTime;
|
||||
private int count;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime DateTime
|
||||
{
|
||||
get { return this.dateTime; }
|
||||
set { this.dateTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Count
|
||||
{
|
||||
get { return this.count; }
|
||||
set { this.count = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user