diff --git a/InSituLaboratory.Assets/Images/Snipaste.png b/InSituLaboratory.Assets/Images/Snipaste.png
new file mode 100644
index 0000000..ab278ae
Binary files /dev/null and b/InSituLaboratory.Assets/Images/Snipaste.png differ
diff --git a/InSituLaboratory.Assets/Images/海洋.jpg b/InSituLaboratory.Assets/Images/海洋.jpg
new file mode 100644
index 0000000..a478f6a
Binary files /dev/null and b/InSituLaboratory.Assets/Images/海洋.jpg differ
diff --git a/InSituLaboratory.Assets/InSituLaboratory.Assets.csproj b/InSituLaboratory.Assets/InSituLaboratory.Assets.csproj
index 8c316db..f5bde88 100644
--- a/InSituLaboratory.Assets/InSituLaboratory.Assets.csproj
+++ b/InSituLaboratory.Assets/InSituLaboratory.Assets.csproj
@@ -23,6 +23,8 @@
+
+
@@ -57,6 +59,12 @@
+
+ Always
+
+
+ Always
+
diff --git a/InSituLaboratory.Entities/SysSequentialTotal.cs b/InSituLaboratory.Entities/SysSequentialTotal.cs
index 13d4dd0..4132bb0 100644
--- a/InSituLaboratory.Entities/SysSequentialTotal.cs
+++ b/InSituLaboratory.Entities/SysSequentialTotal.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -70,6 +71,19 @@ namespace InSituLaboratory.Entities
///
public int? IsDelete { get; set; }
+
+ ///
+ /// 序号
+ ///
+ [NotMapped]
+ public int? DataIdNum { get; set; }
+
+
+ ///
+ /// 是否已删除
+ ///
+ [NotMapped]
+ public string? DeleteType { get; set; }
}
}
diff --git a/InSituLaboratory.IService/ISysSequentialService.cs b/InSituLaboratory.IService/ISysSequentialService.cs
index 80f68e3..29a100a 100644
--- a/InSituLaboratory.IService/ISysSequentialService.cs
+++ b/InSituLaboratory.IService/ISysSequentialService.cs
@@ -46,5 +46,16 @@ namespace InSituLaboratory.IService
SysSequentialDetails GetSequentialSequenceGroup(string SequenceGroup, string Sequential, int key);
+ ///
+ /// 获取历史时序清单
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ IEnumerable GetSysSequentialTotal(string key, int pageSize, int pageIndex, out int totalCount);
+
+
}
}
diff --git a/InSituLaboratory.Service/SysSequentialService.cs b/InSituLaboratory.Service/SysSequentialService.cs
index dd305f6..32429bf 100644
--- a/InSituLaboratory.Service/SysSequentialService.cs
+++ b/InSituLaboratory.Service/SysSequentialService.cs
@@ -20,7 +20,7 @@ namespace InSituLaboratory.Service
///
public IEnumerable GetSequentials(string key)
{
- return this.Set().Where(m => m.Sequential == key && m.IsDelete == 0).OrderByDescending(n => n.CreateTime);
+ return this.Set().Where(m => m.Sequential == key && m.IsDelete == 0).OrderByDescending(n => n.CreateTime);
}
///
/// 获取时序子表数据
@@ -52,7 +52,7 @@ namespace InSituLaboratory.Service
///
///
///
- public SysSequentialDetails GetSequentialSequenceGroup(string SequenceGroup, string Sequential,int key)
+ public SysSequentialDetails GetSequentialSequenceGroup(string SequenceGroup, string Sequential, int key)
{
var list = this.Query(m => m.SequenceGroup == SequenceGroup && m.Sequential == Sequential && m.IsDelete == 0 && m.SysSquentialID == key).ToList();
if (list.Count == 0)
@@ -65,5 +65,24 @@ namespace InSituLaboratory.Service
}
}
+
+
+ ///
+ /// 查询历史时序清单
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public IEnumerable GetSysSequentialTotal(string key, int pageSize, int pageIndex, out int totalCount)
+ {
+ var pResult = this.QueryPage(m => string.IsNullOrEmpty(key) || m.Sequential.Contains(key) || m.SequenceGroup.Contains(key) || m.SensorID.Contains(key), pageSize, pageIndex, order => order.CreateTime.ToString(), false);
+
+ totalCount = pResult.TotalCount;
+
+ return pResult.DataList;
+
+ }
}
}
diff --git a/InSituLaboratory/App.xaml.cs b/InSituLaboratory/App.xaml.cs
index 4742766..0b13a01 100644
--- a/InSituLaboratory/App.xaml.cs
+++ b/InSituLaboratory/App.xaml.cs
@@ -69,6 +69,7 @@ namespace InSituLaboratory
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
containerRegistry.RegisterForNavigation();
+ containerRegistry.RegisterForNavigation();
containerRegistry.RegisterDialog();
containerRegistry.RegisterDialog();
diff --git a/InSituLaboratory/ViewModels/Pages/History/SequentialHistoryViewModel.cs b/InSituLaboratory/ViewModels/Pages/History/SequentialHistoryViewModel.cs
new file mode 100644
index 0000000..c4e6d6b
--- /dev/null
+++ b/InSituLaboratory/ViewModels/Pages/History/SequentialHistoryViewModel.cs
@@ -0,0 +1,71 @@
+using InSituLaboratory.Controls;
+using InSituLaboratory.Entities;
+using InSituLaboratory.IService;
+using Prism.Commands;
+using Prism.Regions;
+using Prism.Services.Dialogs;
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace InSituLaboratory.ViewModels.Pages.History
+{
+ ///
+ /// 历史时序
+ ///
+ public class SequentialHistoryViewModel : ViewModelBase
+ {
+ public PaginationModel PaginationModel { get; set; } = new PaginationModel();
+
+ IDialogService _dialogService;
+ ISysSequentialService _sysSequentialService;
+ public SequentialHistoryViewModel(IRegionManager regionManager, IDialogService dialogService, ISysSequentialService sysSequentialService) : base(regionManager)
+ {
+ PageTitle = "历史时序";
+ _dialogService = dialogService;
+ _sysSequentialService = sysSequentialService;
+
+ PaginationModel.NavCommand = new DelegateCommand