|  | @ -302,12 +302,6 @@ namespace DyeingComputer.View | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |             // if (sql != null)
 |  |  |             // if (sql != null)
 | 
			
		
	
		
		
			
				
					|  |  |             MainWindowViewModel.dt_TP = sql.Tables[0];  //转换显示计划表
 |  |  |             MainWindowViewModel.dt_TP = sql.Tables[0];  //转换显示计划表
 | 
			
		
	
		
		
			
				
					|  |  |             |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                  DataRow newRow; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             newRow = MainWindowViewModel.dt_TP.NewRow(); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             newRow["StepName"] = "END"; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             MainWindowViewModel.dt_TP.Rows.Add(newRow); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         private void UserControl_Loaded(object sender, RoutedEventArgs e) |  |  |         private void UserControl_Loaded(object sender, RoutedEventArgs e) | 
			
		
	
	
		
		
			
				
					|  | @ -504,18 +498,8 @@ namespace DyeingComputer.View | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         private void ProgramgroupView_run_Click(object sender, RoutedEventArgs e)//运行/暂停
 |  |  |         private void ProgramgroupView_run_Click(object sender, RoutedEventArgs e)//运行/暂停
 | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |             if (MainWindowViewModel.WORK_RUN == 2) |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 MainWindowViewModel.WORK_RUN = 1;// 运行时停止键为暂停
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 APILog.LOGlog(MainWindowViewModel.WorkNumder.ToString(), "UserActions", "WORK_RUN = Pause", MainWindowViewModel.WORK_RUN.ToString()); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             else |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 MainWindowViewModel.WORK_RUN = 2;// 运行时停止键为
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                 APILog.LOGlog(MainWindowViewModel.WorkNumder.ToString(), "UserActions", "WORK_RUN = RUN", MainWindowViewModel.WORK_RUN.ToString()); |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           |  |  |           | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         private void ProgramgroupView_Jump_Click(object sender, RoutedEventArgs e) |  |  |         private void ProgramgroupView_Jump_Click(object sender, RoutedEventArgs e) | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
	
		
		
			
				
					|  | @ -540,6 +524,10 @@ namespace DyeingComputer.View | 
			
		
	
		
		
			
				
					|  |  |                 APILog.LOGlog(MainWindowViewModel.WorkNumder.ToString(), "UserActions", "PROCESS_END", MainWindowViewModel.WORK_RUN.ToString()); |  |  |                 APILog.LOGlog(MainWindowViewModel.WorkNumder.ToString(), "UserActions", "PROCESS_END", MainWindowViewModel.WORK_RUN.ToString()); | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |                 MainWindowViewModel.dt_TP.Rows.Clear(); |  |  |                 MainWindowViewModel.dt_TP.Rows.Clear(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 SQLiteHelpers.Open();  //打开数据库
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 SQLiteHelpers.Delete("RUN", null, null); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 SQLiteHelpers.Close();  //关闭连接
 | 
			
		
	
		
		
			
				
					|  |  |                 ProgramgroupView_stop.IsEnabled = false; |  |  |                 ProgramgroupView_stop.IsEnabled = false; | 
			
		
	
		
		
			
				
					|  |  |                 ProgramgroupView_Insert.IsEnabled = false; |  |  |                 ProgramgroupView_Insert.IsEnabled = false; | 
			
		
	
		
		
			
				
					|  |  |                 ProgramgroupView_del.IsEnabled = false; |  |  |                 ProgramgroupView_del.IsEnabled = false; | 
			
		
	
	
		
		
			
				
					|  | 
 |