diff --git a/View/ProgramstepsView .xaml b/View/ProgramstepsView .xaml index e73eebf..f91a026 100644 --- a/View/ProgramstepsView .xaml +++ b/View/ProgramstepsView .xaml @@ -60,7 +60,7 @@ - + diff --git a/View/ProgramstepsView .xaml.cs b/View/ProgramstepsView .xaml.cs index 8573bf8..72be778 100644 --- a/View/ProgramstepsView .xaml.cs +++ b/View/ProgramstepsView .xaml.cs @@ -4,6 +4,7 @@ using formula_manage.UserClass; using System; using System.Collections.Generic; using System.Data; +using System.Diagnostics.Eventing.Reader; using System.Linq; using System.Net; using System.Text; @@ -54,13 +55,12 @@ namespace DyeingComputer.View if (sql != null) sql.Clear(); //清空缓存 sql = SQLiteHelpers.ExecuteDataSet(sql_script, null); //读取计划表写入缓存 - //sql.Tables[0].Rows.Add(datatable_t); DataRow dr = sql.Tables[0].NewRow();//添加表数据 dr["ProgramID"] = ProgramID; dr["Program"] = ProgramNAME; sql.Tables[0].Rows.Add(dr); - + Dat(); if (sql != null) Grid.ItemsSource = sql.Tables[0].DefaultView; //转换显示计划表 SQLiteHelpers.Close(); //关闭连接 @@ -68,6 +68,18 @@ namespace DyeingComputer.View //System.GC.Collect(); } + public void Dat()//行号刷新 + { + int a = sql.Tables[0].Rows.Count; + for(int i = 0; i