历史曲线的多日期合并

This commit is contained in:
2025-11-25 15:56:03 +08:00
parent 6bf51ba09b
commit b9085c4a93
6 changed files with 211 additions and 174 deletions

View File

@@ -1,4 +1,5 @@
using FreeSql.DataAnnotations;
using System.ComponentModel;
namespace CapMachine.Model
{
@@ -6,7 +7,7 @@ namespace CapMachine.Model
/// 历史工况对应的文件信息
/// </summary>
[Table(Name = "HistoryWorkCondFile")]
public class HistoryWorkCondFile
public class HistoryWorkCondFile : INotifyPropertyChanged
{
/// <summary>
/// 主键
@@ -49,5 +50,23 @@ namespace CapMachine.Model
/// </summary>
public long HistoryExpId { get; set; }
public HistoryExp? HistoryExp { get; set; }
[Column(IsIgnore = true)]
public bool IsSelected
{
get { return _isSelected; }
set
{
if (_isSelected != value)
{
_isSelected = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsSelected)));
}
}
}
private bool _isSelected;
public event PropertyChangedEventHandler? PropertyChanged;
}
}