|
|
@ -496,11 +496,6 @@ namespace DyeingComputer.View |
|
|
Receip.Visibility = Visibility.Collapsed; |
|
|
Receip.Visibility = Visibility.Collapsed; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ProgramgroupView_run_Click(object sender, RoutedEventArgs e)//运行/暂停
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void ProgramgroupView_Jump_Click(object sender, RoutedEventArgs e) |
|
|
private void ProgramgroupView_Jump_Click(object sender, RoutedEventArgs e) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
@ -512,29 +507,6 @@ namespace DyeingComputer.View |
|
|
|
|
|
|
|
|
}//跳步
|
|
|
}//跳步
|
|
|
|
|
|
|
|
|
private void ProgramgroupView_stop_Click(object sender, RoutedEventArgs e)//结束工艺
|
|
|
|
|
|
{ |
|
|
|
|
|
APILog.LOGlog(MainWindowViewModel.WorkNumder.ToString(), "UserActions", "WORK_RUN = STOP", MainWindowViewModel.WORK_RUN.ToString()); |
|
|
|
|
|
|
|
|
|
|
|
MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show(Properties.Resources.StopProcess, "800", MessageBoxButton.OKCancel); |
|
|
|
|
|
if (messageBoxResult == MessageBoxResult.OK) |
|
|
|
|
|
{ |
|
|
|
|
|
MainWindowViewModel.WORK_RUN = 0;// 运行时停止键为
|
|
|
|
|
|
MainWindowViewModel.DIDETime = 0; |
|
|
|
|
|
APILog.LOGlog(MainWindowViewModel.WorkNumder.ToString(), "UserActions", "PROCESS_END", MainWindowViewModel.WORK_RUN.ToString()); |
|
|
|
|
|
|
|
|
|
|
|
MainWindowViewModel.dt_TP.Rows.Clear(); |
|
|
|
|
|
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
|
|
|
|
|
SQLiteHelpers.Open(); //打开数据库
|
|
|
|
|
|
SQLiteHelpers.Delete("RUN", null, null); |
|
|
|
|
|
SQLiteHelpers.Close(); //关闭连接
|
|
|
|
|
|
ProgramgroupView_stop.IsEnabled = false; |
|
|
|
|
|
ProgramgroupView_Insert.IsEnabled = false; |
|
|
|
|
|
ProgramgroupView_del.IsEnabled = false; |
|
|
|
|
|
ProgramgroupView_edit.IsEnabled = false; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void Grid_SelectionChanged(object sender, SelectionChangedEventArgs e) |
|
|
private void Grid_SelectionChanged(object sender, SelectionChangedEventArgs e) |
|
|
{ |
|
|
{ |
|
|
// if (MainWindowViewModel.WORK_RUN == 2) GridSTEP.SelectedIndex = MainWindowViewModel.RUN_STEPID - 1;//设定图表显示
|
|
|
// if (MainWindowViewModel.WORK_RUN == 2) GridSTEP.SelectedIndex = MainWindowViewModel.RUN_STEPID - 1;//设定图表显示
|
|
|
|