From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.DataViewer/Entity/DataBase_Setting.cs | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 116 insertions(+), 0 deletions(-)
diff --git a/HMI.DataViewer/Entity/DataBase_Setting.cs b/HMI.DataViewer/Entity/DataBase_Setting.cs
new file mode 100644
index 0000000..379972f
--- /dev/null
+++ b/HMI.DataViewer/Entity/DataBase_Setting.cs
@@ -0,0 +1,116 @@
+锘縰sing HMI.Core.Entity;
+using HMI.Core.Util;
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Xml.Serialization;
+
+namespace HMI.DataViewer.Entity
+{
+ /// <summary>
+ /// 鏁版嵁搴撻厤缃被
+ /// </summary>
+ [Serializable]
+ public class DataBase_Setting : NotifyBase
+ {
+ /// <summary>
+ /// 鏁版嵁搴撴枃浠惰矾寰�
+ /// </summary>
+ private string dBFilePath = string.Empty;
+
+ /// <summary>
+ /// 鏁版嵁搴撴搷浣滅被
+ /// </summary>
+ private SqliteHelper sql = null;
+
+ /// <summary>
+ /// 鏁版嵁琛ㄥ悕绉�
+ /// </summary>
+ private string tableName = string.Empty;
+
+ /// <summary>
+ /// 璁惧畾绋嬪簭鍚�
+ /// </summary>
+ private string program = string.Empty;
+
+ private string timeCol = string.Empty;
+
+ /// <summary>
+ /// 楂樼骇鏌ヨ鏉′欢
+ /// </summary>
+ private ObservableCollection<QueryCondition> condition = new ObservableCollection<QueryCondition>();
+
+ /// <summary>
+ /// 鏋勯�犲嚱鏁�
+ /// </summary>
+ public DataBase_Setting()
+ {
+ // do nothing
+ }
+
+ /// <summary>
+ /// 鏁版嵁搴撴枃浠剁殑瀛樺偍璺緞
+ /// </summary>
+ public string DBFilePath
+ {
+ get => dBFilePath;
+ set { Set(ref dBFilePath, value); }
+ }
+
+ private string pattern;
+ public string Pattern
+ {
+ get => pattern;
+ set
+ {
+ Set(ref pattern, value);
+ }
+ }
+
+ public string TimeCol
+ {
+ get => timeCol;
+ set { Set(ref timeCol, value); }
+ }
+
+ /// <summary>
+ /// 鏁版嵁搴撴搷浣滃彞鏌�
+ /// </summary>
+ [XmlIgnore]
+ public SqliteHelper SQL
+ {
+ get { return this.sql; }
+ set { this.sql = value; }
+ }
+
+ /// <summary>
+ /// 楂樼骇鏌ヨ鏉′欢
+ /// </summary>
+ public ObservableCollection<QueryCondition> Condition
+ {
+ get { return this.condition; }
+ set { Set(ref condition, value); }
+ }
+
+ /// <summary>
+ /// 鏁版嵁琛ㄥ悕绉�
+ /// </summary>
+ public string TableName
+ {
+ get { return this.tableName; }
+ set { Set(ref tableName, value); }
+ }
+
+ /// <summary>
+ /// 璁惧畾绋嬪簭鍚�
+ /// </summary>
+ public string Program
+ {
+ get { return this.program; }
+ set { Set(ref program, value); }
+ }
+ }
+}
--
Gitblit v1.9.1