监控页面添加图表

This commit is contained in:
sc committed 2025-03-04 00:25:17 +08:00
commit 09cb79fb14
5 files changed
+44 -8

No files matched your search

+3 -2
View File
@@ -129,7 +129,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
public CurveDiagramViewModel()
{
Curve(CurveView.CurveDiagram);
Curve(CurveDiagram.Curve);
}
public static void Curve(string SYSWorkNumder)
{
@@ -137,7 +138,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ViewModel
{
SQLiteHelpers = new SQLiteHelper(ChartAdress); //数据库连接路径
SQLiteHelpers.Open(); //打开数据库
CDB = SQLiteHelpers.ExecuteDataSet("select * from Chart where DYELOT = '" + SYSWorkNumder + "'order by Time", null).Tables[0];
CDB = SQLiteHelpers.ExecuteDataSet("select * from Chart where WorkOrder = '" + SYSWorkNumder + "'order by Time", null).Tables[0];
SQLiteHelpers.Close();
CDB_Count = CDB.Rows.Count;