添加运作中限制开启工艺设置
This commit is contained in:
commit
8997238efd
7 files changed
+64
-9
No files matched your search
@@ -235,11 +235,17 @@ namespace DyeingComputer.View
|
||||
|
||||
private void start_Click(object sender, RoutedEventArgs e)//开始
|
||||
{
|
||||
if (string.IsNullOrEmpty(WorkOrder_Numder)) return;
|
||||
if (_lock == "1")
|
||||
{
|
||||
MessageBoxResult messageBox = System.Windows.MessageBox.Show(Properties.Resources.Process_lock, "800", MessageBoxButton.OK);
|
||||
return;
|
||||
}
|
||||
|
||||
DataTable WorkorderSteps = new DataTable();
|
||||
DataTable data_t = new DataTable();
|
||||
int a;
|
||||
|
||||
if (string.IsNullOrEmpty(WorkOrder_Numder)) return;
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
|
||||
@@ -247,10 +253,17 @@ namespace DyeingComputer.View
|
||||
if (R_D > 0)
|
||||
{
|
||||
SQLiteHelpers.Close(); //关闭连接
|
||||
|
||||
MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show(Properties.Resources.RunningProcess, "800", MessageBoxButton.YesNo);
|
||||
if (messageBoxResult == MessageBoxResult.No) return;
|
||||
if (messageBoxResult == MessageBoxResult.Yes)
|
||||
{
|
||||
if(MainWindowViewModel.S17 == 1) //拒绝操作
|
||||
{
|
||||
System.Windows.MessageBox.Show(Properties.Resources.refuse, "800", MessageBoxButton.OK);
|
||||
return;
|
||||
}
|
||||
|
||||
SQLiteHelpers = new SQLiteHelper(DBAddress); //数据库连接路径
|
||||
SQLiteHelpers.Open(); //打开数据库
|
||||
}
|
||||
@@ -323,8 +336,6 @@ namespace DyeingComputer.View
|
||||
Picture.Content = dataGrid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void TEMP()
|
||||
{
|
||||
//处理计划温度图表
|
||||
@@ -404,7 +415,6 @@ namespace DyeingComputer.View
|
||||
}
|
||||
Picture.Content = new View.CurveTemp(TEMPTable);
|
||||
} //计划温度图表
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user