VenusMFCVerificationViewModel.cs 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Threading;
  9. using Aitex.Core.Common.DeviceData;
  10. using MECF.Framework.Common.DataCenter;
  11. using MECF.Framework.Common.DBCore;
  12. using MECF.Framework.Common.OperationCenter;
  13. using Prism.Commands;
  14. using Prism.Mvvm;
  15. using Venus_Core;
  16. using Venus_MainPages.Unity;
  17. using Venus_MainPages.Views;
  18. using Xceed.Wpf.Toolkit;
  19. namespace Venus_MainPages.ViewModels
  20. {
  21. public class VenusMFCVerificationViewModel : BindableBase
  22. {
  23. #region 私有字段
  24. private AITMfcData m_MFCData;
  25. private Dictionary<string, object> m_RtDataValues;
  26. public string ModuleName;
  27. private ObservableCollection<int> m_MFCVerificationPoints = new ObservableCollection<int>();
  28. private int m_GasSelectedIndex;
  29. private int m_PointsSelectedIndex;
  30. DispatcherTimer timer = new DispatcherTimer();
  31. private ObservableCollection<MFCCalibrationData> m_MFCVerificationData=new ObservableCollection<MFCCalibrationData>();
  32. private ObservableCollection<MFCVerificationData> m_VerificationDataRecords = new ObservableCollection<MFCVerificationData>();
  33. private ObservableCollection<MFCVerificationOnePointData> m_VerificationOnePointDataRecords = new ObservableCollection<MFCVerificationOnePointData>();
  34. private ObservableCollection<VenusMFCVerificationOnePointData> m_VenusVerificationOnePointDataRecords = new ObservableCollection<VenusMFCVerificationOnePointData>();
  35. private ObservableCollection<MFCVerificationTenPointsData> m_VerificationTenPointsDataRecords = new ObservableCollection<MFCVerificationTenPointsData>();
  36. private ObservableCollection<VenusMFCVerificationTenPointsData> m_VenusVerificationTenPointsDataRecords = new ObservableCollection<VenusMFCVerificationTenPointsData>();
  37. private ObservableCollection<MFCCalibrationTenPointsData> m_MFCCalibrationTenPointsData = new ObservableCollection<MFCCalibrationTenPointsData>();
  38. private ObservableCollection<MFCCalibrationTenPointsData> m_MFCCalibrationOnePointData = new ObservableCollection<MFCCalibrationTenPointsData>();
  39. private PMState m_PMCurrentState;
  40. private JetChamber ChamberType;
  41. private bool m_MFC7IsEnable;
  42. private bool m_MFC8IsEnable;
  43. private bool m_MFC9IsEnable;
  44. private bool m_MFC10IsEnable;
  45. private bool m_MFC11IsEnable;
  46. private bool m_MFC12IsEnable;
  47. //private MFCVerificationView m_MFCVerificationView;
  48. #endregion
  49. #region 属性
  50. public PMState PMCurrentState
  51. {
  52. get { return m_PMCurrentState; }
  53. set
  54. {
  55. if ((m_PMCurrentState == PMState.MFCVerification || m_PMCurrentState == PMState.AllMFCVerification) && value == PMState.Idle)
  56. {
  57. InitTable();
  58. }
  59. SetProperty(ref m_PMCurrentState, value);
  60. }
  61. }
  62. public ObservableCollection<int> MFCVerificationPoints
  63. {
  64. get { return m_MFCVerificationPoints; }
  65. set
  66. {
  67. SetProperty(ref m_MFCVerificationPoints, value);
  68. }
  69. }
  70. public Dictionary<string, object> RtDataValues
  71. {
  72. get { return m_RtDataValues; }
  73. set { SetProperty(ref m_RtDataValues, value); }
  74. }
  75. public AITMfcData MFCData
  76. {
  77. get { return m_MFCData; }
  78. set { SetProperty(ref m_MFCData, value); }
  79. }
  80. public int GasSelectedIndex
  81. {
  82. get { return m_GasSelectedIndex; }
  83. set { SetProperty(ref m_GasSelectedIndex, value); }
  84. }
  85. public int PointsSelectedIndex
  86. {
  87. get { return m_PointsSelectedIndex; }
  88. set { SetProperty(ref m_PointsSelectedIndex, value); }
  89. }
  90. private DelegateCommand<object> _DataGridSelectionChangedCommand;
  91. public DelegateCommand<object> DataGridSelectionChangedCommand =>
  92. _DataGridSelectionChangedCommand ?? (_DataGridSelectionChangedCommand = new DelegateCommand<object>(OnDataGridSelectionChanged));
  93. public ObservableCollection<MFCCalibrationData> MFCCalibrationData
  94. {
  95. get { return m_MFCVerificationData; }
  96. set { SetProperty(ref m_MFCVerificationData, value); }
  97. }
  98. public ObservableCollection<MFCVerificationData> VerificationDataRecords
  99. {
  100. get { return m_VerificationDataRecords; }
  101. set { SetProperty(ref m_VerificationDataRecords, value); }
  102. }
  103. public ObservableCollection<MFCVerificationOnePointData> VerificationDataOnePointRecords
  104. {
  105. get { return m_VerificationOnePointDataRecords; }
  106. set { SetProperty(ref m_VerificationOnePointDataRecords, value); }
  107. }
  108. public ObservableCollection<VenusMFCVerificationOnePointData> VenusVerificationDataOnePointRecords
  109. {
  110. get { return m_VenusVerificationOnePointDataRecords; }
  111. set { SetProperty(ref m_VenusVerificationOnePointDataRecords, value); }
  112. }
  113. public ObservableCollection<VenusMFCVerificationTenPointsData> VenusVerificationDataTenPointsRecords
  114. {
  115. get { return m_VenusVerificationTenPointsDataRecords; }
  116. set { SetProperty(ref m_VenusVerificationTenPointsDataRecords, value); }
  117. }
  118. public ObservableCollection<MFCVerificationTenPointsData> VerificationDataTenPointsRecords
  119. {
  120. get { return m_VerificationTenPointsDataRecords; }
  121. set { SetProperty(ref m_VerificationTenPointsDataRecords, value); }
  122. }
  123. public ObservableCollection<MFCCalibrationTenPointsData> MFCCalibrationTenPointsDataRecords
  124. {
  125. get { return m_MFCCalibrationTenPointsData; }
  126. set { SetProperty(ref m_MFCCalibrationTenPointsData, value); }
  127. }
  128. public ObservableCollection<MFCCalibrationTenPointsData> MFCCalibrationOnePointDataRecords
  129. {
  130. get { return m_MFCCalibrationOnePointData; }
  131. set { SetProperty(ref m_MFCCalibrationOnePointData, value); }
  132. }
  133. public bool MFC7IsEnable
  134. {
  135. get { return m_MFC7IsEnable; }
  136. set { SetProperty(ref m_MFC7IsEnable, value); }
  137. }
  138. public bool MFC8IsEnable
  139. {
  140. get { return m_MFC8IsEnable; }
  141. set { SetProperty(ref m_MFC8IsEnable, value); }
  142. }
  143. public bool MFC9IsEnable
  144. {
  145. get { return m_MFC9IsEnable; }
  146. set { SetProperty(ref m_MFC9IsEnable, value); }
  147. }
  148. public bool MFC10IsEnable
  149. {
  150. get { return m_MFC10IsEnable; }
  151. set { SetProperty(ref m_MFC10IsEnable, value); }
  152. }
  153. public bool MFC11IsEnable
  154. {
  155. get { return m_MFC11IsEnable; }
  156. set { SetProperty(ref m_MFC11IsEnable, value); }
  157. }
  158. public bool MFC12IsEnable
  159. {
  160. get { return m_MFC12IsEnable; }
  161. set { SetProperty(ref m_MFC12IsEnable, value); }
  162. }
  163. #endregion
  164. #region 命令
  165. private DelegateCommand<object> _StartOnePointVerificationCommand;
  166. public DelegateCommand<object> StartOnePointVerificationCommand =>
  167. _StartOnePointVerificationCommand ?? (_StartOnePointVerificationCommand = new DelegateCommand<object>(OnStartOnePointVerification));
  168. private DelegateCommand<object> _StartTenPointVerificationCommand;
  169. public DelegateCommand<object> StartTenPointVerificationCommand =>
  170. _StartTenPointVerificationCommand ?? (_StartTenPointVerificationCommand = new DelegateCommand<object>(OnStartTenPointVerification));
  171. private DelegateCommand _AbortCommand;
  172. public DelegateCommand AbortCommand =>
  173. _AbortCommand ?? (_AbortCommand = new DelegateCommand(OnAbort));
  174. private DelegateCommand _FlashCommand;
  175. public DelegateCommand FlashCommand =>
  176. _FlashCommand ?? (_FlashCommand = new DelegateCommand(OnFlash));
  177. private DelegateCommand _SelectGasCommand;
  178. public DelegateCommand SelectGasCommand =>
  179. _SelectGasCommand ?? (_SelectGasCommand = new DelegateCommand(OnSelectGas));
  180. private DelegateCommand<object> _LoadCommand;
  181. public DelegateCommand<object> LoadCommand =>
  182. _LoadCommand ?? (_LoadCommand = new DelegateCommand<object>(OnLoad));
  183. #endregion
  184. public VenusMFCVerificationViewModel()
  185. {
  186. timer.Interval = TimeSpan.FromSeconds(1);
  187. timer.Tick += Timer_Tick;
  188. timer.Start();
  189. for (int i = 0; i < 10; i++)
  190. {
  191. MFCCalibrationTenPointsDataRecords.Add(new MFCCalibrationTenPointsData());
  192. }
  193. for (int i = 0; i < 1; i++)
  194. {
  195. MFCCalibrationOnePointDataRecords.Add(new MFCCalibrationTenPointsData());
  196. }
  197. }
  198. #region 命令方法
  199. private void OnStartOnePointVerification(object obj)
  200. {
  201. var values = (object[])obj;
  202. string gasName = values[0].ToString();
  203. float flow = float.Parse(values[1].ToString());
  204. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.MFCVerification}", gasName, flow, 1);
  205. }
  206. private void OnStartTenPointVerification(object obj)
  207. {
  208. var values = (object[])obj;
  209. string gasName = values[0].ToString();
  210. float flow = float.Parse(values[1].ToString());
  211. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.MFCVerification}", gasName, flow, 10);
  212. }
  213. public void OnAbort()
  214. {
  215. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
  216. }
  217. public void OnFlash()
  218. {
  219. InitTable();
  220. }
  221. private void OnSelectGas()
  222. {
  223. MFCVerificationPoints.Clear();
  224. MFCData = (AITMfcData)QueryDataClient.Instance.Service.GetData($"{ModuleName}.MfcGas{(GasSelectedIndex + 1).ToString()}");
  225. if ( MFCData != null )
  226. {
  227. int delta1 = (int)MFCData.Scale / 10;
  228. for (int i = 0; i < 10; i++)
  229. {
  230. MFCVerificationPoints.Add(delta1 + delta1 * i);
  231. }
  232. PointsSelectedIndex = 0;
  233. }
  234. }
  235. //private void OnQuery()
  236. //{
  237. // var AllLeakCheckDa = QueryDataClient.Instance.Service.GetMFCVerificationData(this.view.wfTimeFrom.Value, this.view.wfTimeTo.Value);
  238. // if (AllLeakCheckDa != null)
  239. // {
  240. // VerificationDataRecords = new ObservableCollection<MFCVerificationData>(AllLeakCheckDa);
  241. // }
  242. //}
  243. private void OnLoad(object mFCVerificationView)
  244. {
  245. ChamberType = (JetChamber)Enum.Parse(typeof(JetChamber), QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.ChamberType").ToString());
  246. if (ChamberType != JetChamber.Kepler2200A && ChamberType != JetChamber.Kepler2200B)
  247. {
  248. MFC7IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas7.Enable");
  249. MFC8IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas8.Enable");
  250. }
  251. if (ChamberType == JetChamber.VenusSE || ChamberType == JetChamber.VenusDE || ChamberType == JetChamber.Kepler2300)
  252. {
  253. MFC7IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas7.Enable");
  254. MFC8IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas8.Enable");
  255. }
  256. if (ChamberType==JetChamber.VenusSE || ChamberType == JetChamber.VenusDE)
  257. {
  258. MFC9IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas9.Enable");
  259. MFC10IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas10.Enable");
  260. MFC11IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas11.Enable");
  261. MFC12IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas12.Enable");
  262. }
  263. //m_MFCVerificationView = mFCVerificationView as MFCVerificationView;
  264. ////if ( m_MFCVerificationView == null ) { return; }
  265. //if (MFC7IsEnable == false)
  266. //{
  267. // m_MFCVerificationView.DataGridTemplateColumn7.Visibility = Visibility.Hidden;
  268. // m_MFCVerificationView.OnePointDataGridTemplateColumn7.Visibility = Visibility.Hidden;
  269. //}
  270. //else
  271. //{
  272. // m_MFCVerificationView.DataGridTemplateColumn7.Visibility = Visibility.Visible;
  273. // m_MFCVerificationView.OnePointDataGridTemplateColumn7.Visibility = Visibility.Visible;
  274. //}
  275. //if (MFC8IsEnable == false)
  276. //{
  277. // m_MFCVerificationView.DataGridTemplateColumn8.Visibility = Visibility.Hidden;
  278. // m_MFCVerificationView.OnePointDataGridTemplateColumn8.Visibility = Visibility.Hidden;
  279. //}
  280. //else
  281. //{
  282. // m_MFCVerificationView.DataGridTemplateColumn8.Visibility = Visibility.Visible;
  283. // m_MFCVerificationView.OnePointDataGridTemplateColumn8.Visibility = Visibility.Visible;
  284. //}
  285. VenusVerificationDataOnePointRecords = new ObservableCollection<VenusMFCVerificationOnePointData>();
  286. VenusVerificationDataTenPointsRecords= new ObservableCollection<VenusMFCVerificationTenPointsData>();
  287. for ( int i = 1; i <= 12; i++)
  288. {
  289. bool gasenable= (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas{i}.Enable");
  290. if (gasenable)
  291. {
  292. AITMfcData S =(AITMfcData)QueryDataClient.Instance.Service.GetData($"{ModuleName}.MfcGas{i}");
  293. VenusVerificationDataOnePointRecords.Add(new VenusMFCVerificationOnePointData()
  294. {
  295. Name = $"MfcGas{i}",
  296. Select= false,
  297. Module=ModuleName,
  298. GasName= S.DisplayName,
  299. OperateTime=""
  300. });
  301. VenusVerificationDataTenPointsRecords.Add(new VenusMFCVerificationTenPointsData()
  302. {
  303. Name = $"MfcGas{i}",
  304. Select = false,
  305. Module = ModuleName,
  306. GasName = S.DisplayName,
  307. OperateTime = ""
  308. });
  309. }
  310. }
  311. InitTable();
  312. }
  313. #endregion
  314. #region 私有方法
  315. private void Timer_Tick(object sender, EventArgs e)
  316. {
  317. PMCurrentState = (PMState)QueryDataClient.Instance.Service.GetData($"{ModuleName}.FsmState");
  318. }
  319. public void Init()
  320. {
  321. OnSelectGas();
  322. }
  323. public void OnDataGridSelectionChanged(object obj)
  324. {
  325. if (obj == null)
  326. {
  327. return;
  328. }
  329. else
  330. {
  331. MFCVerificationOnePointData item = obj as MFCVerificationOnePointData;
  332. string name=item.Name.Substring(6,1);
  333. switch (name)
  334. {
  335. case "1":
  336. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas1Calculate = item.Calculate, Gas1SetPoint = item.Setpoint };
  337. break;
  338. case "2":
  339. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas2Calculate = item.Calculate, Gas2SetPoint = item.Setpoint };
  340. break;
  341. case "3":
  342. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas3Calculate = item.Calculate, Gas3SetPoint = item.Setpoint };
  343. break;
  344. case "4":
  345. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas4Calculate = item.Calculate, Gas4SetPoint = item.Setpoint };
  346. break;
  347. case "5":
  348. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas5Calculate = item.Calculate, Gas5SetPoint = item.Setpoint };
  349. break;
  350. case "6":
  351. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas6Calculate = item.Calculate, Gas6SetPoint = item.Setpoint };
  352. break;
  353. case "7":
  354. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas7Calculate = item.Calculate, Gas7SetPoint = item.Setpoint };
  355. break;
  356. case "8":
  357. MFCCalibrationOnePointDataRecords[0] = new MFCCalibrationTenPointsData { Gas8Calculate = item.Calculate, Gas8SetPoint = item.Setpoint };
  358. break;
  359. }
  360. }
  361. }
  362. private void InitTable()
  363. {
  364. var onePointData = QueryDataClient.Instance.Service.GetMFCVerificationOnePointData();
  365. if (onePointData != null)
  366. {
  367. var _onePointData = onePointData.Where(x => x.Module == ModuleName);
  368. //VerificationDataOnePointRecords = new ObservableCollection<MFCVerificationOnePointData>(_onePointData);
  369. //VenusVerificationDataOnePointRecords = new ObservableCollection<VenusMFCVerificationOnePointData>();
  370. foreach (var item in _onePointData)
  371. {
  372. for (var i = 0;i<VenusVerificationDataOnePointRecords.Count(); i++)
  373. {
  374. if (VenusVerificationDataOnePointRecords[i].Name== item.Name)
  375. {
  376. VenusVerificationDataOnePointRecords[i].OperateTime = item.OperateTime;
  377. VenusVerificationDataOnePointRecords[i].Calculate = item.Calculate;
  378. VenusVerificationDataOnePointRecords[i].Setpoint = item.Setpoint;
  379. float deviation = (Math.Abs(item.Calculate) - Math.Abs(item.Setpoint)) / Math.Abs(item.Setpoint) * 100;
  380. VenusVerificationDataOnePointRecords[i].Error= deviation;
  381. }
  382. }
  383. }
  384. }
  385. var tenPointsData = QueryDataClient.Instance.Service.GetMFCVerificationTenPointsData();
  386. if (tenPointsData != null)
  387. {
  388. var _tenPointsData = tenPointsData.Where(x => x.Module == ModuleName);
  389. //VerificationDataTenPointsRecords = new ObservableCollection<MFCVerificationTenPointsData>(_tenPointsData);
  390. foreach (var item in _tenPointsData)
  391. {
  392. for (var i = 0; i < VenusVerificationDataTenPointsRecords.Count(); i++)
  393. {
  394. if (VenusVerificationDataTenPointsRecords[i].Name == item.Name)
  395. {
  396. VenusVerificationDataTenPointsRecords[i].OperateTime = item.OperateTime;
  397. VenusVerificationDataTenPointsRecords[i].Percent10Setpoint = item.Percent10Setpoint;
  398. VenusVerificationDataTenPointsRecords[i].Percent10Setpoint = item.Percent10Setpoint;
  399. VenusVerificationDataTenPointsRecords[i].Percent10Error = (Math.Abs(item.Percent10Calculate) - Math.Abs(item.Percent10Setpoint)) / Math.Abs(item.Percent10Setpoint) * 100;
  400. VenusVerificationDataTenPointsRecords[i].Percent20Setpoint = item.Percent20Setpoint;
  401. VenusVerificationDataTenPointsRecords[i].Percent20Setpoint = item.Percent20Setpoint;
  402. VenusVerificationDataTenPointsRecords[i].Percent20Error = (Math.Abs(item.Percent20Calculate) - Math.Abs(item.Percent20Setpoint)) / Math.Abs(item.Percent20Setpoint) * 100;
  403. VenusVerificationDataTenPointsRecords[i].Percent30Setpoint = item.Percent30Setpoint;
  404. VenusVerificationDataTenPointsRecords[i].Percent30Setpoint = item.Percent30Setpoint;
  405. VenusVerificationDataTenPointsRecords[i].Percent30Error = (Math.Abs(item.Percent30Calculate) - Math.Abs(item.Percent30Setpoint)) / Math.Abs(item.Percent30Setpoint) * 100;
  406. VenusVerificationDataTenPointsRecords[i].Percent40Setpoint = item.Percent40Setpoint;
  407. VenusVerificationDataTenPointsRecords[i].Percent40Setpoint = item.Percent40Setpoint;
  408. VenusVerificationDataTenPointsRecords[i].Percent40Error = (Math.Abs(item.Percent40Calculate) - Math.Abs(item.Percent40Setpoint)) / Math.Abs(item.Percent40Setpoint) * 100;
  409. VenusVerificationDataTenPointsRecords[i].Percent50Setpoint = item.Percent50Setpoint;
  410. VenusVerificationDataTenPointsRecords[i].Percent50Setpoint = item.Percent50Setpoint;
  411. VenusVerificationDataTenPointsRecords[i].Percent50Error = (Math.Abs(item.Percent50Calculate) - Math.Abs(item.Percent50Setpoint)) / Math.Abs(item.Percent50Setpoint) * 100;
  412. VenusVerificationDataTenPointsRecords[i].Percent60Setpoint = item.Percent60Setpoint;
  413. VenusVerificationDataTenPointsRecords[i].Percent60Setpoint = item.Percent60Setpoint;
  414. VenusVerificationDataTenPointsRecords[i].Percent60Error = (Math.Abs(item.Percent60Calculate) - Math.Abs(item.Percent60Setpoint)) / Math.Abs(item.Percent60Setpoint) * 100;
  415. VenusVerificationDataTenPointsRecords[i].Percent70Setpoint = item.Percent70Setpoint;
  416. VenusVerificationDataTenPointsRecords[i].Percent70Setpoint = item.Percent70Setpoint;
  417. VenusVerificationDataTenPointsRecords[i].Percent70Error = (Math.Abs(item.Percent70Calculate) - Math.Abs(item.Percent70Setpoint)) / Math.Abs(item.Percent70Setpoint) * 100;
  418. VenusVerificationDataTenPointsRecords[i].Percent80Setpoint = item.Percent80Setpoint;
  419. VenusVerificationDataTenPointsRecords[i].Percent80Setpoint = item.Percent80Setpoint;
  420. VenusVerificationDataTenPointsRecords[i].Percent80Error = (Math.Abs(item.Percent80Calculate) - Math.Abs(item.Percent80Setpoint)) / Math.Abs(item.Percent80Setpoint) * 100;
  421. VenusVerificationDataTenPointsRecords[i].Percent90Setpoint = item.Percent90Setpoint;
  422. VenusVerificationDataTenPointsRecords[i].Percent90Setpoint = item.Percent90Setpoint;
  423. VenusVerificationDataTenPointsRecords[i].Percent90Error = (Math.Abs(item.Percent90Calculate) - Math.Abs(item.Percent90Setpoint)) / Math.Abs(item.Percent90Setpoint) * 100;
  424. VenusVerificationDataTenPointsRecords[i].Percent100Setpoint = item.Percent100Setpoint;
  425. VenusVerificationDataTenPointsRecords[i].Percent100Setpoint = item.Percent100Setpoint;
  426. VenusVerificationDataTenPointsRecords[i].Percent100Error = (Math.Abs(item.Percent100Calculate) - Math.Abs(item.Percent100Setpoint)) / Math.Abs(item.Percent100Setpoint) * 100;
  427. }
  428. }
  429. }
  430. }
  431. var data1 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas1").FirstOrDefault();
  432. if (data1 != null)
  433. {
  434. MFCCalibrationTenPointsDataRecords[0].Gas1SetPoint = data1.Percent10Setpoint;
  435. MFCCalibrationTenPointsDataRecords[0].Gas1Calculate = data1.Percent10Calculate;
  436. MFCCalibrationTenPointsDataRecords[1].Gas1SetPoint = data1.Percent20Setpoint;
  437. MFCCalibrationTenPointsDataRecords[1].Gas1Calculate = data1.Percent20Calculate;
  438. MFCCalibrationTenPointsDataRecords[2].Gas1SetPoint = data1.Percent30Setpoint;
  439. MFCCalibrationTenPointsDataRecords[2].Gas1Calculate = data1.Percent30Calculate;
  440. MFCCalibrationTenPointsDataRecords[3].Gas1SetPoint = data1.Percent40Setpoint;
  441. MFCCalibrationTenPointsDataRecords[3].Gas1Calculate = data1.Percent40Calculate;
  442. MFCCalibrationTenPointsDataRecords[4].Gas1SetPoint = data1.Percent50Setpoint;
  443. MFCCalibrationTenPointsDataRecords[4].Gas1Calculate = data1.Percent50Calculate;
  444. MFCCalibrationTenPointsDataRecords[5].Gas1SetPoint = data1.Percent60Setpoint;
  445. MFCCalibrationTenPointsDataRecords[5].Gas1Calculate = data1.Percent60Calculate;
  446. MFCCalibrationTenPointsDataRecords[6].Gas1SetPoint = data1.Percent70Setpoint;
  447. MFCCalibrationTenPointsDataRecords[6].Gas1Calculate = data1.Percent70Calculate;
  448. MFCCalibrationTenPointsDataRecords[7].Gas1SetPoint = data1.Percent80Setpoint;
  449. MFCCalibrationTenPointsDataRecords[7].Gas1Calculate = data1.Percent80Calculate;
  450. MFCCalibrationTenPointsDataRecords[8].Gas1SetPoint = data1.Percent90Setpoint;
  451. MFCCalibrationTenPointsDataRecords[8].Gas1Calculate = data1.Percent90Calculate;
  452. MFCCalibrationTenPointsDataRecords[9].Gas1SetPoint = data1.Percent100Setpoint;
  453. MFCCalibrationTenPointsDataRecords[9].Gas1Calculate = data1.Percent100Calculate;
  454. }
  455. var data2 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas2").FirstOrDefault();
  456. if (data2 != null)
  457. {
  458. MFCCalibrationTenPointsDataRecords[0].Gas2SetPoint = data2.Percent10Setpoint;
  459. MFCCalibrationTenPointsDataRecords[0].Gas2Calculate = data2.Percent10Calculate;
  460. MFCCalibrationTenPointsDataRecords[1].Gas2SetPoint = data2.Percent20Setpoint;
  461. MFCCalibrationTenPointsDataRecords[1].Gas2Calculate = data2.Percent20Calculate;
  462. MFCCalibrationTenPointsDataRecords[2].Gas2SetPoint = data2.Percent30Setpoint;
  463. MFCCalibrationTenPointsDataRecords[2].Gas2Calculate = data2.Percent30Calculate;
  464. MFCCalibrationTenPointsDataRecords[3].Gas2SetPoint = data2.Percent40Setpoint;
  465. MFCCalibrationTenPointsDataRecords[3].Gas2Calculate = data2.Percent40Calculate;
  466. MFCCalibrationTenPointsDataRecords[4].Gas2SetPoint = data2.Percent50Setpoint;
  467. MFCCalibrationTenPointsDataRecords[4].Gas2Calculate = data2.Percent50Calculate;
  468. MFCCalibrationTenPointsDataRecords[5].Gas2SetPoint = data2.Percent60Setpoint;
  469. MFCCalibrationTenPointsDataRecords[5].Gas2Calculate = data2.Percent60Calculate;
  470. MFCCalibrationTenPointsDataRecords[6].Gas2SetPoint = data2.Percent70Setpoint;
  471. MFCCalibrationTenPointsDataRecords[6].Gas2Calculate = data2.Percent70Calculate;
  472. MFCCalibrationTenPointsDataRecords[7].Gas2SetPoint = data2.Percent80Setpoint;
  473. MFCCalibrationTenPointsDataRecords[7].Gas2Calculate = data2.Percent80Calculate;
  474. MFCCalibrationTenPointsDataRecords[8].Gas2SetPoint = data2.Percent90Setpoint;
  475. MFCCalibrationTenPointsDataRecords[8].Gas2Calculate = data2.Percent90Calculate;
  476. MFCCalibrationTenPointsDataRecords[9].Gas2SetPoint = data2.Percent100Setpoint;
  477. MFCCalibrationTenPointsDataRecords[9].Gas2Calculate = data2.Percent100Calculate;
  478. }
  479. var data3 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas3").FirstOrDefault();
  480. if (data3 != null)
  481. {
  482. MFCCalibrationTenPointsDataRecords[0].Gas3SetPoint = data3.Percent10Setpoint;
  483. MFCCalibrationTenPointsDataRecords[0].Gas3Calculate = data3.Percent10Calculate;
  484. MFCCalibrationTenPointsDataRecords[1].Gas3SetPoint = data3.Percent20Setpoint;
  485. MFCCalibrationTenPointsDataRecords[1].Gas3Calculate = data3.Percent20Calculate;
  486. MFCCalibrationTenPointsDataRecords[2].Gas3SetPoint = data3.Percent30Setpoint;
  487. MFCCalibrationTenPointsDataRecords[2].Gas3Calculate = data3.Percent30Calculate;
  488. MFCCalibrationTenPointsDataRecords[3].Gas3SetPoint = data3.Percent40Setpoint;
  489. MFCCalibrationTenPointsDataRecords[3].Gas3Calculate = data3.Percent40Calculate;
  490. MFCCalibrationTenPointsDataRecords[4].Gas3SetPoint = data3.Percent50Setpoint;
  491. MFCCalibrationTenPointsDataRecords[4].Gas3Calculate = data3.Percent50Calculate;
  492. MFCCalibrationTenPointsDataRecords[5].Gas3SetPoint = data3.Percent60Setpoint;
  493. MFCCalibrationTenPointsDataRecords[5].Gas3Calculate = data3.Percent60Calculate;
  494. MFCCalibrationTenPointsDataRecords[6].Gas3SetPoint = data3.Percent70Setpoint;
  495. MFCCalibrationTenPointsDataRecords[6].Gas3Calculate = data3.Percent70Calculate;
  496. MFCCalibrationTenPointsDataRecords[7].Gas3SetPoint = data3.Percent80Setpoint;
  497. MFCCalibrationTenPointsDataRecords[7].Gas3Calculate = data3.Percent80Calculate;
  498. MFCCalibrationTenPointsDataRecords[8].Gas3SetPoint = data3.Percent90Setpoint;
  499. MFCCalibrationTenPointsDataRecords[8].Gas3Calculate = data3.Percent90Calculate;
  500. MFCCalibrationTenPointsDataRecords[9].Gas3SetPoint = data3.Percent100Setpoint;
  501. MFCCalibrationTenPointsDataRecords[9].Gas3Calculate = data3.Percent100Calculate;
  502. }
  503. var data4 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas4").FirstOrDefault();
  504. if (data4 != null)
  505. {
  506. MFCCalibrationTenPointsDataRecords[0].Gas4SetPoint = data4.Percent10Setpoint;
  507. MFCCalibrationTenPointsDataRecords[0].Gas4Calculate = data4.Percent10Calculate;
  508. MFCCalibrationTenPointsDataRecords[1].Gas4SetPoint = data4.Percent20Setpoint;
  509. MFCCalibrationTenPointsDataRecords[1].Gas4Calculate = data4.Percent20Calculate;
  510. MFCCalibrationTenPointsDataRecords[2].Gas4SetPoint = data4.Percent30Setpoint;
  511. MFCCalibrationTenPointsDataRecords[2].Gas4Calculate = data4.Percent30Calculate;
  512. MFCCalibrationTenPointsDataRecords[3].Gas4SetPoint = data4.Percent40Setpoint;
  513. MFCCalibrationTenPointsDataRecords[3].Gas4Calculate = data4.Percent40Calculate;
  514. MFCCalibrationTenPointsDataRecords[4].Gas4SetPoint = data4.Percent50Setpoint;
  515. MFCCalibrationTenPointsDataRecords[4].Gas4Calculate = data4.Percent50Calculate;
  516. MFCCalibrationTenPointsDataRecords[5].Gas4SetPoint = data4.Percent60Setpoint;
  517. MFCCalibrationTenPointsDataRecords[5].Gas4Calculate = data4.Percent60Calculate;
  518. MFCCalibrationTenPointsDataRecords[6].Gas4SetPoint = data4.Percent70Setpoint;
  519. MFCCalibrationTenPointsDataRecords[6].Gas4Calculate = data4.Percent70Calculate;
  520. MFCCalibrationTenPointsDataRecords[7].Gas4SetPoint = data4.Percent80Setpoint;
  521. MFCCalibrationTenPointsDataRecords[7].Gas4Calculate = data4.Percent80Calculate;
  522. MFCCalibrationTenPointsDataRecords[8].Gas4SetPoint = data4.Percent90Setpoint;
  523. MFCCalibrationTenPointsDataRecords[8].Gas4Calculate = data4.Percent90Calculate;
  524. MFCCalibrationTenPointsDataRecords[9].Gas4SetPoint = data4.Percent100Setpoint;
  525. MFCCalibrationTenPointsDataRecords[9].Gas4Calculate = data4.Percent100Calculate;
  526. }
  527. var data5= VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas5").FirstOrDefault();
  528. if (data5 != null)
  529. {
  530. MFCCalibrationTenPointsDataRecords[0].Gas5SetPoint = data5.Percent10Setpoint;
  531. MFCCalibrationTenPointsDataRecords[0].Gas5Calculate = data5.Percent10Calculate;
  532. MFCCalibrationTenPointsDataRecords[1].Gas5SetPoint = data5.Percent20Setpoint;
  533. MFCCalibrationTenPointsDataRecords[1].Gas5Calculate = data5.Percent20Calculate;
  534. MFCCalibrationTenPointsDataRecords[2].Gas5SetPoint = data5.Percent30Setpoint;
  535. MFCCalibrationTenPointsDataRecords[2].Gas5Calculate = data5.Percent30Calculate;
  536. MFCCalibrationTenPointsDataRecords[3].Gas5SetPoint = data5.Percent40Setpoint;
  537. MFCCalibrationTenPointsDataRecords[3].Gas5Calculate = data5.Percent40Calculate;
  538. MFCCalibrationTenPointsDataRecords[4].Gas5SetPoint = data5.Percent50Setpoint;
  539. MFCCalibrationTenPointsDataRecords[4].Gas5Calculate = data5.Percent50Calculate;
  540. MFCCalibrationTenPointsDataRecords[5].Gas5SetPoint = data5.Percent60Setpoint;
  541. MFCCalibrationTenPointsDataRecords[5].Gas5Calculate = data5.Percent60Calculate;
  542. MFCCalibrationTenPointsDataRecords[6].Gas5SetPoint = data5.Percent70Setpoint;
  543. MFCCalibrationTenPointsDataRecords[6].Gas5Calculate = data5.Percent70Calculate;
  544. MFCCalibrationTenPointsDataRecords[7].Gas5SetPoint = data5.Percent80Setpoint;
  545. MFCCalibrationTenPointsDataRecords[7].Gas5Calculate = data5.Percent80Calculate;
  546. MFCCalibrationTenPointsDataRecords[8].Gas5SetPoint = data5.Percent90Setpoint;
  547. MFCCalibrationTenPointsDataRecords[8].Gas5Calculate = data5.Percent90Calculate;
  548. MFCCalibrationTenPointsDataRecords[9].Gas5SetPoint = data5.Percent100Setpoint;
  549. MFCCalibrationTenPointsDataRecords[9].Gas5Calculate = data5.Percent100Calculate;
  550. }
  551. var data6 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas6").FirstOrDefault();
  552. if (data6 != null)
  553. {
  554. MFCCalibrationTenPointsDataRecords[0].Gas6SetPoint = data6.Percent10Setpoint;
  555. MFCCalibrationTenPointsDataRecords[0].Gas6Calculate = data6.Percent10Calculate;
  556. MFCCalibrationTenPointsDataRecords[1].Gas6SetPoint = data6.Percent20Setpoint;
  557. MFCCalibrationTenPointsDataRecords[1].Gas6Calculate = data6.Percent20Calculate;
  558. MFCCalibrationTenPointsDataRecords[2].Gas6SetPoint = data6.Percent30Setpoint;
  559. MFCCalibrationTenPointsDataRecords[2].Gas6Calculate = data6.Percent30Calculate;
  560. MFCCalibrationTenPointsDataRecords[3].Gas6SetPoint = data6.Percent40Setpoint;
  561. MFCCalibrationTenPointsDataRecords[3].Gas6Calculate = data6.Percent40Calculate;
  562. MFCCalibrationTenPointsDataRecords[4].Gas6SetPoint = data6.Percent50Setpoint;
  563. MFCCalibrationTenPointsDataRecords[4].Gas6Calculate = data6.Percent50Calculate;
  564. MFCCalibrationTenPointsDataRecords[5].Gas6SetPoint = data6.Percent60Setpoint;
  565. MFCCalibrationTenPointsDataRecords[5].Gas6Calculate = data6.Percent60Calculate;
  566. MFCCalibrationTenPointsDataRecords[6].Gas6SetPoint = data6.Percent70Setpoint;
  567. MFCCalibrationTenPointsDataRecords[6].Gas6Calculate = data6.Percent70Calculate;
  568. MFCCalibrationTenPointsDataRecords[7].Gas6SetPoint = data6.Percent80Setpoint;
  569. MFCCalibrationTenPointsDataRecords[7].Gas6Calculate = data6.Percent80Calculate;
  570. MFCCalibrationTenPointsDataRecords[8].Gas6SetPoint = data6.Percent90Setpoint;
  571. MFCCalibrationTenPointsDataRecords[8].Gas6Calculate = data6.Percent90Calculate;
  572. MFCCalibrationTenPointsDataRecords[9].Gas6SetPoint = data6.Percent100Setpoint;
  573. MFCCalibrationTenPointsDataRecords[9].Gas6Calculate = data6.Percent100Calculate;
  574. }
  575. var data7 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas7").FirstOrDefault();
  576. if (data7 != null)
  577. {
  578. MFCCalibrationTenPointsDataRecords[0].Gas7SetPoint = data7.Percent10Setpoint;
  579. MFCCalibrationTenPointsDataRecords[0].Gas7Calculate = data7.Percent10Calculate;
  580. MFCCalibrationTenPointsDataRecords[1].Gas7SetPoint = data7.Percent20Setpoint;
  581. MFCCalibrationTenPointsDataRecords[1].Gas7Calculate = data7.Percent20Calculate;
  582. MFCCalibrationTenPointsDataRecords[2].Gas7SetPoint = data7.Percent30Setpoint;
  583. MFCCalibrationTenPointsDataRecords[2].Gas7Calculate = data7.Percent30Calculate;
  584. MFCCalibrationTenPointsDataRecords[3].Gas7SetPoint = data7.Percent40Setpoint;
  585. MFCCalibrationTenPointsDataRecords[3].Gas7Calculate = data7.Percent40Calculate;
  586. MFCCalibrationTenPointsDataRecords[4].Gas7SetPoint = data7.Percent50Setpoint;
  587. MFCCalibrationTenPointsDataRecords[4].Gas7Calculate = data7.Percent50Calculate;
  588. MFCCalibrationTenPointsDataRecords[5].Gas7SetPoint = data7.Percent60Setpoint;
  589. MFCCalibrationTenPointsDataRecords[5].Gas7Calculate = data7.Percent60Calculate;
  590. MFCCalibrationTenPointsDataRecords[6].Gas7SetPoint = data7.Percent70Setpoint;
  591. MFCCalibrationTenPointsDataRecords[6].Gas7Calculate = data7.Percent70Calculate;
  592. MFCCalibrationTenPointsDataRecords[7].Gas7SetPoint = data7.Percent80Setpoint;
  593. MFCCalibrationTenPointsDataRecords[7].Gas7Calculate = data7.Percent80Calculate;
  594. MFCCalibrationTenPointsDataRecords[8].Gas7SetPoint = data7.Percent90Setpoint;
  595. MFCCalibrationTenPointsDataRecords[8].Gas7Calculate = data7.Percent90Calculate;
  596. MFCCalibrationTenPointsDataRecords[9].Gas7SetPoint = data7.Percent100Setpoint;
  597. MFCCalibrationTenPointsDataRecords[9].Gas7Calculate = data7.Percent100Calculate;
  598. }
  599. var data8 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas8").FirstOrDefault();
  600. if (data8 != null)
  601. {
  602. MFCCalibrationTenPointsDataRecords[0].Gas8SetPoint = data8.Percent10Setpoint;
  603. MFCCalibrationTenPointsDataRecords[0].Gas8Calculate = data8.Percent10Calculate;
  604. MFCCalibrationTenPointsDataRecords[1].Gas8SetPoint = data8.Percent20Setpoint;
  605. MFCCalibrationTenPointsDataRecords[1].Gas8Calculate = data8.Percent20Calculate;
  606. MFCCalibrationTenPointsDataRecords[2].Gas8SetPoint = data8.Percent30Setpoint;
  607. MFCCalibrationTenPointsDataRecords[2].Gas8Calculate = data8.Percent30Calculate;
  608. MFCCalibrationTenPointsDataRecords[3].Gas8SetPoint = data8.Percent40Setpoint;
  609. MFCCalibrationTenPointsDataRecords[3].Gas8Calculate = data8.Percent40Calculate;
  610. MFCCalibrationTenPointsDataRecords[4].Gas8SetPoint = data8.Percent50Setpoint;
  611. MFCCalibrationTenPointsDataRecords[4].Gas8Calculate = data8.Percent50Calculate;
  612. MFCCalibrationTenPointsDataRecords[5].Gas8SetPoint = data8.Percent60Setpoint;
  613. MFCCalibrationTenPointsDataRecords[5].Gas8Calculate = data8.Percent60Calculate;
  614. MFCCalibrationTenPointsDataRecords[6].Gas8SetPoint = data8.Percent70Setpoint;
  615. MFCCalibrationTenPointsDataRecords[6].Gas8Calculate = data8.Percent70Calculate;
  616. MFCCalibrationTenPointsDataRecords[7].Gas8SetPoint = data8.Percent80Setpoint;
  617. MFCCalibrationTenPointsDataRecords[7].Gas8Calculate = data8.Percent80Calculate;
  618. MFCCalibrationTenPointsDataRecords[8].Gas8SetPoint = data8.Percent90Setpoint;
  619. MFCCalibrationTenPointsDataRecords[8].Gas8Calculate = data8.Percent90Calculate;
  620. MFCCalibrationTenPointsDataRecords[9].Gas8SetPoint = data8.Percent100Setpoint;
  621. MFCCalibrationTenPointsDataRecords[9].Gas8Calculate = data8.Percent100Calculate;
  622. }
  623. var onePointdata1 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas1").FirstOrDefault();
  624. if (onePointdata1 != null)
  625. {
  626. MFCCalibrationOnePointDataRecords[0].Gas1SetPoint = onePointdata1.Setpoint;
  627. MFCCalibrationOnePointDataRecords[0].Gas1Calculate = onePointdata1.Calculate;
  628. }
  629. var onePointdata2 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas2").FirstOrDefault();
  630. if (onePointdata2 != null)
  631. {
  632. MFCCalibrationOnePointDataRecords[0].Gas2SetPoint = onePointdata2.Setpoint;
  633. MFCCalibrationOnePointDataRecords[0].Gas2Calculate = onePointdata2.Calculate;
  634. }
  635. var onePointdata3 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas3").FirstOrDefault();
  636. if (onePointdata3 != null)
  637. {
  638. MFCCalibrationOnePointDataRecords[0].Gas3SetPoint = onePointdata3.Setpoint;
  639. MFCCalibrationOnePointDataRecords[0].Gas3Calculate = onePointdata3.Calculate;
  640. }
  641. var onePointdata4 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas4").FirstOrDefault();
  642. if (onePointdata4 != null)
  643. {
  644. MFCCalibrationOnePointDataRecords[0].Gas4SetPoint = onePointdata4.Setpoint;
  645. MFCCalibrationOnePointDataRecords[0].Gas4Calculate = onePointdata4.Calculate;
  646. }
  647. var onePointdata5 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas5").FirstOrDefault();
  648. if (onePointdata5 != null)
  649. {
  650. MFCCalibrationOnePointDataRecords[0].Gas5SetPoint = onePointdata5.Setpoint;
  651. MFCCalibrationOnePointDataRecords[0].Gas5Calculate = onePointdata5.Calculate;
  652. }
  653. var onePointdata6 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas6").FirstOrDefault();
  654. if (onePointdata6 != null)
  655. {
  656. MFCCalibrationOnePointDataRecords[0].Gas6SetPoint = onePointdata6.Setpoint;
  657. MFCCalibrationOnePointDataRecords[0].Gas6Calculate = onePointdata6.Calculate;
  658. }
  659. var onePointdata7 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas7").FirstOrDefault();
  660. if (onePointdata7 != null)
  661. {
  662. MFCCalibrationOnePointDataRecords[0].Gas7SetPoint = onePointdata7.Setpoint;
  663. MFCCalibrationOnePointDataRecords[0].Gas7Calculate = onePointdata7.Calculate;
  664. }
  665. var onePointdata8 = VerificationDataOnePointRecords.Where(x => x.Name == $"MfcGas8").FirstOrDefault();
  666. if (onePointdata8 != null)
  667. {
  668. MFCCalibrationOnePointDataRecords[0].Gas8SetPoint = onePointdata8.Setpoint;
  669. MFCCalibrationOnePointDataRecords[0].Gas8Calculate = onePointdata8.Calculate;
  670. }
  671. }
  672. #endregion
  673. }
  674. }