|
@@ -112,27 +112,27 @@ namespace SCADA_DAQ.Customer
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
-
|
|
|
+ Dispatcher.Invoke(() =>
|
|
|
+ {
|
|
|
+ BoardWidth.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoardWidth_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
+ BoardLength.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoardLength_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
+ StackHeight.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackHeight_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
+ BoxHeight.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoxHeight_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
+ BoxWidth.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoxWidth_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
+ BoxLength.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoxLength_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
+ CaptureIndex.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackCaptureList.FirstOrDefault()?.CaptureIndex_Int).FirstOrDefault()?.ToString();
|
|
|
+ LayerNo.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackCaptureList.FirstOrDefault()?.LayerNo_Int).FirstOrDefault()?.ToString();
|
|
|
+ LayerIndex.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackCaptureList.FirstOrDefault()?.LayerIndex_Int).FirstOrDefault()?.ToString();
|
|
|
+ });
|
|
|
+ CustomerEnv.StackSln = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text).FirstOrDefault();
|
|
|
+ CustomerEnv.StackCapture = CustomerEnv.StackSln?.StackCaptureList?.FirstOrDefault();
|
|
|
}
|
|
|
catch (Exception)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
- Dispatcher.Invoke(() =>
|
|
|
- {
|
|
|
- BoardWidth.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoardWidth_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
- BoardLength.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoardLength_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
- StackHeight.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackHeight_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
- BoxHeight.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoxHeight_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
- BoxWidth.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoxWidth_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
- BoxLength.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.BoxLength_Dec + "mm").FirstOrDefault()?.ToString();
|
|
|
- CaptureIndex.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackCaptureList.FirstOrDefault()?.CaptureIndex_Int).FirstOrDefault()?.ToString();
|
|
|
- LayerNo.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackCaptureList.FirstOrDefault()?.LayerNo_Int).FirstOrDefault()?.ToString();
|
|
|
- LayerIndex.Value = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text)?.Select(i => i.StackCaptureList.FirstOrDefault()?.LayerIndex_Int).FirstOrDefault()?.ToString();
|
|
|
- });
|
|
|
- CustomerEnv.StackSln = StackSlnList.Where(i => i.SlnName_Str == ChooseStackSln.Text).FirstOrDefault();
|
|
|
- CustomerEnv.StackCapture = CustomerEnv.StackSln.StackCaptureList?.FirstOrDefault();
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|