下传工单逻辑调整

This commit is contained in:
sc committed 2025-07-08 01:36:34 +08:00
commit 7242195f45
2 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -153,7 +153,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
MessageBoxResult vr = System.Windows.MessageBox.Show(Properties.Resources.Delete + comboBoxMachine.Text, "SCCM", MessageBoxButton.OKCancel, MessageBoxImage.Question);
if (vr == MessageBoxResult.OK) // 如果是确定,就执行下面代码
{
MainWindowViewModel.Machines.Rows.RemoveAt(ID_);
MainWindowViewModel.Machines.Rows.RemoveAt(ID_-1);
DatSteps(MainWindowViewModel.Machines);
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
@@ -196,7 +196,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View
{
DataRow dr = db.Rows[i];
dr.BeginEdit();
dr["ID"] = i + 1;
dr["ID"] = i ;
dr.EndEdit();
}
}