This commit is contained in:
gongxh
2022-05-10 15:21:13 +08:00
parent 8f9e5a8ee2
commit f9f8e587d1
22 changed files with 1216 additions and 831 deletions

View File

@@ -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";
}