修改
This commit is contained in:
@@ -165,7 +165,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
if (kcmb_plcItemDateType.SelectedIndex != 0)
|
||||
{
|
||||
tmpMdList = tmpMdList.FindAll(x => x.PlcItemDataType == (kcmb_plcItemDateType.SelectedIndex - 1));
|
||||
tmpMdList = tmpMdList.FindAll(x => x.PlcItemDataType == (PlcItemTypeDesc) (kcmb_plcItemDateType.SelectedIndex - 1));
|
||||
}
|
||||
if (tmpMdList != null && tmpMdList.Count > 0)
|
||||
{
|
||||
@@ -224,15 +224,15 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
dr["PLC变量类型"] = "Read and Write";
|
||||
}
|
||||
|
||||
if (item.PlcItemDataType == 0)
|
||||
if (item.PlcItemDataType == PlcItemTypeDesc.M)
|
||||
{
|
||||
dr["PLC变量数据类型"] = "M Type";
|
||||
}
|
||||
else if (item.PlcItemDataType == 1)
|
||||
else if (item.PlcItemDataType == PlcItemTypeDesc.D)
|
||||
{
|
||||
dr["PLC变量数据类型"] = "D Type";
|
||||
}
|
||||
else if (item.PlcItemDataType == 2)
|
||||
else if (item.PlcItemDataType == PlcItemTypeDesc.X)
|
||||
{
|
||||
dr["PLC变量数据类型"] = "X Type";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user