This commit is contained in:
2024-12-18 15:50:21 +08:00
parent 684973e6b7
commit b2c54119ea
214 changed files with 65908 additions and 8461 deletions

View File

@@ -11,7 +11,7 @@ namespace CapMachine.Wpf.PrismEvent
/// <summary>
/// Chart图表操作的动作事件
/// </summary>
public class ChartRtActionEvent : PubSubEvent<ChartActionType>
public class ChartRtSeriesActionEvent : PubSubEvent<ChartRtSeriesActionMsg>
{
}

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
public class ChartRtSeriesActionMsg
{
/// <summary>
/// 机器
/// </summary>
public string Machine { get; set; }
/// <summary>
/// GroupTab信息
/// </summary>
public int GroupTabIndex { get; set; }
/// <summary>
///动作消息
/// </summary>
public string ActionMsg { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
/// <summary>
/// Chart 设置是否启用的功能
/// </summary>
public class ChartSetEnableEvent : PubSubEvent<ChartSetEnableMsg>
{
}
}

View File

@@ -0,0 +1,25 @@
namespace CapMachine.Wpf.PrismEvent
{
public class ChartSetEnableMsg
{
/// <summary>
/// 机器
/// </summary>
public string Machine { get; set; }
/// <summary>
/// Group信息
/// </summary>
public int GroupTabIndex { get; set; }
/// <summary>
///ChartSetInfo信息
/// </summary>
public string ChartSetInfo { get; set; }
/// <summary>
///是否启用内容
/// </summary>
public bool Enable { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
using Prism.Events;
namespace CapMachine.Wpf.PrismEvent
{
public class ChartSetEvent : PubSubEvent<ChartSetMsg>
{
}
}

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
/// <summary>
/// 曲线设置的消息内容
/// </summary>
public class ChartSetMsg
{
/// <summary>
/// 机器
/// </summary>
public string Machine { get; set; }
/// <summary>
/// Group信息
/// </summary>
public int GroupTabIndex { get; set; }
/// <summary>
///ChartSetInfo信息
/// </summary>
public string ChartSetInfo { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
using Prism.Events;
namespace CapMachine.Wpf.PrismEvent
{
public class ChartTabGroupSwitchEvent : PubSubEvent<ChartTabGroupSwitchMsg>
{
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
public class ChartTabGroupSwitchMsg
{
/// <summary>
/// 机器
/// </summary>
public string Machine { get; set; }
/// <summary>
/// Group信息
/// </summary>
public int GroupTabIndex { get; set; }
}
}

View File

@@ -1,4 +1,5 @@
using System;
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -6,8 +7,8 @@ using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
public enum ChartActionType:byte
public class ChartYAxisConfigEvent : PubSubEvent<ChartYAxisConfigMsg>
{
ReLoadChart=1,
}
}

View File

@@ -0,0 +1,27 @@
using CapMachine.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
public class ChartYAxisConfigMsg
{
/// <summary>
/// 机器
/// </summary>
public string Machine { get; set; }
/// <summary>
/// GroupTab信息
/// </summary>
public int GroupTabIndex { get; set; }
/// <summary>
/// Y轴配置
/// </summary>
public List<ConfigChartYAxis> ConfigChartYAxes { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using CapMachine.Wpf.Models;
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
/// <summary>
/// Chart图表操作的动作事件
/// </summary>
public class HistoryChartRtSeriesActionEvent : PubSubEvent<ChartRtSeriesActionMsg>
{
}
}

View File

@@ -0,0 +1,17 @@
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
/// <summary>
/// Chart 设置是否启用的功能
/// </summary>
public class HistoryChartSetEnableEvent : PubSubEvent<ChartSetEnableMsg>
{
}
}

View File

@@ -0,0 +1,9 @@
using Prism.Events;
namespace CapMachine.Wpf.PrismEvent
{
public class HistoryChartSetEvent : PubSubEvent<ChartSetMsg>
{
}
}

View File

@@ -0,0 +1,9 @@
using Prism.Events;
namespace CapMachine.Wpf.PrismEvent
{
public class HistoryChartTabGroupSwitchEvent : PubSubEvent<ChartTabGroupSwitchMsg>
{
}
}

View File

@@ -0,0 +1,14 @@
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.PrismEvent
{
public class HistoryDataToChartEvent : PubSubEvent<HistoryDataToChartMsg>
{
}
}

View File

@@ -0,0 +1,25 @@
using CapMachine.Wpf.Models;
namespace CapMachine.Wpf.PrismEvent
{
/// <summary>
/// 传递历史数据给Chart
/// </summary>
public class HistoryDataToChartMsg
{
/// <summary>
/// 机器
/// </summary>
public string? Machine { get; set; }
///// <summary>
///// Group信息
///// </summary>
//public int GroupTabIndex { get; set; }
/// <summary>
///集合数据
/// </summary>
public List<CsvRecordModel> Data { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using CapMachine.Wpf.ChannelModel;
using Prism.Events;
namespace CapMachine.Wpf.PrismEvent
{
/// <summary>
/// 记录数据事件
/// </summary>
public class RecordDataEvent : PubSubEvent<RecordChannelData>
{
}
}