修改结构

This commit is contained in:
gongxh
2021-12-31 19:53:53 +08:00
parent 31fe9e834a
commit 7321539b72
41 changed files with 1828 additions and 211 deletions

View File

@@ -11,7 +11,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using CleanMachine.Model;
namespace CleanMachineHMI.FrmUserControl
{
//[FormType(EnumFormType.IoMonitor)]
@@ -33,7 +33,7 @@ namespace CleanMachineHMI.FrmUserControl
}
private void Show_X_Y_Status(object sender, EventArgs e)
{
BasPlcItemMd item = sender as BasPlcItemMd;
PlcItem item = sender as PlcItem;
Invoke(new Action(() =>
{
if (item.PlcItemDataType == 2)
@@ -82,8 +82,8 @@ namespace CleanMachineHMI.FrmUserControl
{
if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
{
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (BasPlcItemMd item in tempLst)
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (PlcItem item in tempLst)
{
Invoke(new Action(() =>
{
@@ -99,8 +99,8 @@ namespace CleanMachineHMI.FrmUserControl
if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
{
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (BasPlcItemMd item in tempLst)
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (PlcItem item in tempLst)
{
Invoke(new Action(() =>
{