using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; using Aitex.Core.Common.DeviceData; using MECF.Framework.Common.DataCenter; using MECF.Framework.Common.DBCore; using MECF.Framework.Common.OperationCenter; using Prism.Commands; using Prism.Mvvm; using Venus_Core; using Venus_MainPages.Unity; using Venus_MainPages.Views; namespace Venus_MainPages.ViewModels { public class MFCVerificationViewModel : BindableBase { #region 私有字段 private AITMfcData m_MFCData; private Dictionary m_RtDataValues; public string ModuleName; private ObservableCollection m_MFCVerificationPoints = new ObservableCollection(); private int m_GasSelectedIndex; private int m_PointsSelectedIndex; DispatcherTimer timer = new DispatcherTimer(); private ObservableCollection m_MFCVerificationData=new ObservableCollection(); private ObservableCollection m_VerificationDataRecords = new ObservableCollection(); private ObservableCollection m_VerificationOnePointDataRecords = new ObservableCollection(); private ObservableCollection m_VerificationTenPointsDataRecords = new ObservableCollection(); private ObservableCollection m_MFCCalibrationTenPointsData = new ObservableCollection(); private ObservableCollection m_MFCCalibrationOnePointData = new ObservableCollection(); private PMState m_PMCurrentState; private bool m_MFC7IsEnable; private bool m_MFC8IsEnable; private MFCVerificationView m_MFCVerificationView; #endregion #region 属性 public PMState PMCurrentState { get { return m_PMCurrentState; } set { if ((m_PMCurrentState == PMState.MFCVerification || m_PMCurrentState == PMState.AllMFCVerification) && value == PMState.Idle) { InitTable(); } SetProperty(ref m_PMCurrentState, value); } } public ObservableCollection MFCVerificationPoints { get { return m_MFCVerificationPoints; } set { SetProperty(ref m_MFCVerificationPoints, value); } } public Dictionary RtDataValues { get { return m_RtDataValues; } set { SetProperty(ref m_RtDataValues, value); } } public AITMfcData MFCData { get { return m_MFCData; } set { SetProperty(ref m_MFCData, value); } } public int GasSelectedIndex { get { return m_GasSelectedIndex; } set { SetProperty(ref m_GasSelectedIndex, value); } } public int PointsSelectedIndex { get { return m_PointsSelectedIndex; } set { SetProperty(ref m_PointsSelectedIndex, value); } } public ObservableCollection MFCCalibrationData { get { return m_MFCVerificationData; } set { SetProperty(ref m_MFCVerificationData, value); } } public ObservableCollection VerificationDataRecords { get { return m_VerificationDataRecords; } set { SetProperty(ref m_VerificationDataRecords, value); } } public ObservableCollection VerificationDataOnePointRecords { get { return m_VerificationOnePointDataRecords; } set { SetProperty(ref m_VerificationOnePointDataRecords, value); } } public ObservableCollection VerificationDataTenPointsRecords { get { return m_VerificationTenPointsDataRecords; } set { SetProperty(ref m_VerificationTenPointsDataRecords, value); } } public ObservableCollection MFCCalibrationTenPointsDataRecords { get { return m_MFCCalibrationTenPointsData; } set { SetProperty(ref m_MFCCalibrationTenPointsData, value); } } public ObservableCollection MFCCalibrationOnePointDataRecords { get { return m_MFCCalibrationOnePointData; } set { SetProperty(ref m_MFCCalibrationOnePointData, value); } } public bool MFC7IsEnable { get { return m_MFC7IsEnable; } set { SetProperty(ref m_MFC7IsEnable, value); } } public bool MFC8IsEnable { get { return m_MFC8IsEnable; } set { SetProperty(ref m_MFC8IsEnable, value); } } #endregion #region 命令 private DelegateCommand _StartOnePointVerificationCommand; public DelegateCommand StartOnePointVerificationCommand => _StartOnePointVerificationCommand ?? (_StartOnePointVerificationCommand = new DelegateCommand(OnStartOnePointVerification)); private DelegateCommand _StartTenPointVerificationCommand; public DelegateCommand StartTenPointVerificationCommand => _StartTenPointVerificationCommand ?? (_StartTenPointVerificationCommand = new DelegateCommand(OnStartTenPointVerification)); private DelegateCommand _AbortCommand; public DelegateCommand AbortCommand => _AbortCommand ?? (_AbortCommand = new DelegateCommand(OnAbort)); private DelegateCommand _SelectGasCommand; public DelegateCommand SelectGasCommand => _SelectGasCommand ?? (_SelectGasCommand = new DelegateCommand(OnSelectGas)); private DelegateCommand _LoadCommand; public DelegateCommand LoadCommand => _LoadCommand ?? (_LoadCommand = new DelegateCommand(OnLoad)); #endregion public MFCVerificationViewModel() { timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += Timer_Tick; timer.Start(); for (int i = 0; i < 10; i++) { MFCCalibrationTenPointsDataRecords.Add(new MFCCalibrationTenPointsData()); } for (int i = 0; i < 1; i++) { MFCCalibrationOnePointDataRecords.Add(new MFCCalibrationTenPointsData()); } } #region 命令方法 private void OnStartOnePointVerification(object obj) { var values = (object[])obj; string gasName = values[0].ToString(); float flow = float.Parse(values[1].ToString()); InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.MFCVerification}", gasName, flow, 1); } private void OnStartTenPointVerification(object obj) { var values = (object[])obj; string gasName = values[0].ToString(); float flow = float.Parse(values[1].ToString()); InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.MFCVerification}", gasName, flow, 10); } public void OnAbort() { InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort"); } private void OnSelectGas() { MFCVerificationPoints.Clear(); MFCData = (AITMfcData)QueryDataClient.Instance.Service.GetData($"{ModuleName}.MfcGas{(GasSelectedIndex + 1).ToString()}"); if ( MFCData != null ) { int delta1 = (int)MFCData.Scale / 10; for (int i = 0; i < 10; i++) { MFCVerificationPoints.Add(delta1 + delta1 * i); } PointsSelectedIndex = 0; } } //private void OnQuery() //{ // var AllLeakCheckDa = QueryDataClient.Instance.Service.GetMFCVerificationData(this.view.wfTimeFrom.Value, this.view.wfTimeTo.Value); // if (AllLeakCheckDa != null) // { // VerificationDataRecords = new ObservableCollection(AllLeakCheckDa); // } //} private void OnLoad(object mFCVerificationView) { InitTable(); MFC7IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas7.Enable"); MFC8IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas8.Enable"); m_MFCVerificationView = mFCVerificationView as MFCVerificationView; if ( m_MFCVerificationView == null ) { return; } if (MFC7IsEnable == false) { m_MFCVerificationView.DataGridTemplateColumn7.Visibility = Visibility.Hidden; m_MFCVerificationView.OnePointDataGridTemplateColumn7.Visibility = Visibility.Hidden; } else { m_MFCVerificationView.DataGridTemplateColumn7.Visibility = Visibility.Visible; m_MFCVerificationView.OnePointDataGridTemplateColumn7.Visibility = Visibility.Visible; } if (MFC8IsEnable == false) { m_MFCVerificationView.DataGridTemplateColumn8.Visibility = Visibility.Hidden; m_MFCVerificationView.OnePointDataGridTemplateColumn8.Visibility = Visibility.Hidden; } else { m_MFCVerificationView.DataGridTemplateColumn8.Visibility = Visibility.Visible; m_MFCVerificationView.OnePointDataGridTemplateColumn8.Visibility = Visibility.Visible; } } #endregion #region 私有方法 private void Timer_Tick(object sender, EventArgs e) { PMCurrentState = (PMState)QueryDataClient.Instance.Service.GetData($"{ModuleName}.FsmState"); } public void Init() { OnSelectGas(); } private void InitTable() { var onePointData = QueryDataClient.Instance.Service.GetMFCVerificationOnePointData(); if (onePointData != null) { VerificationDataOnePointRecords = new ObservableCollection(onePointData); } var tenPointsData = QueryDataClient.Instance.Service.GetMFCVerificationTenPointsData(); if (tenPointsData != null) { VerificationDataTenPointsRecords = new ObservableCollection(tenPointsData); } var data1 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas1").FirstOrDefault(); if (data1 != null) { MFCCalibrationTenPointsDataRecords[0].Gas1SetPoint = data1.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas1Calculate = data1.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas1SetPoint = data1.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas1Calculate = data1.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas1SetPoint = data1.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas1Calculate = data1.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas1SetPoint = data1.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas1Calculate = data1.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas1SetPoint = data1.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas1Calculate = data1.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas1SetPoint = data1.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas1Calculate = data1.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas1SetPoint = data1.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas1Calculate = data1.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas1SetPoint = data1.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas1Calculate = data1.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas1SetPoint = data1.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas1Calculate = data1.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas1SetPoint = data1.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas1Calculate = data1.Percent100Calculate; } var data2 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas2").FirstOrDefault(); if (data2 != null) { MFCCalibrationTenPointsDataRecords[0].Gas2SetPoint = data2.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas2Calculate = data2.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas2SetPoint = data2.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas2Calculate = data2.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas2SetPoint = data2.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas2Calculate = data2.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas2SetPoint = data2.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas2Calculate = data2.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas2SetPoint = data2.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas2Calculate = data2.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas2SetPoint = data2.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas2Calculate = data2.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas2SetPoint = data2.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas2Calculate = data2.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas2SetPoint = data2.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas2Calculate = data2.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas2SetPoint = data2.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas2Calculate = data2.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas2SetPoint = data2.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas2Calculate = data2.Percent100Calculate; } var data3 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas3").FirstOrDefault(); if (data3 != null) { MFCCalibrationTenPointsDataRecords[0].Gas3SetPoint = data3.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas3Calculate = data3.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas3SetPoint = data3.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas3Calculate = data3.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas3SetPoint = data3.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas3Calculate = data3.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas3SetPoint = data3.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas3Calculate = data3.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas3SetPoint = data3.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas3Calculate = data3.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas3SetPoint = data3.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas3Calculate = data3.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas3SetPoint = data3.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas3Calculate = data3.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas3SetPoint = data3.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas3Calculate = data3.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas3SetPoint = data3.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas3Calculate = data3.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas3SetPoint = data3.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas3Calculate = data3.Percent100Calculate; } var data4 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas4").FirstOrDefault(); if (data4 != null) { MFCCalibrationTenPointsDataRecords[0].Gas4SetPoint = data4.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas4Calculate = data4.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas4SetPoint = data4.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas4Calculate = data4.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas4SetPoint = data4.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas4Calculate = data4.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas4SetPoint = data4.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas4Calculate = data4.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas4SetPoint = data4.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas4Calculate = data4.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas4SetPoint = data4.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas4Calculate = data4.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas4SetPoint = data4.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas4Calculate = data4.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas4SetPoint = data4.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas4Calculate = data4.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas4SetPoint = data4.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas4Calculate = data4.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas4SetPoint = data4.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas4Calculate = data4.Percent100Calculate; } var data5= VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas5").FirstOrDefault(); if (data5 != null) { MFCCalibrationTenPointsDataRecords[0].Gas5SetPoint = data5.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas5Calculate = data5.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas5SetPoint = data5.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas5Calculate = data5.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas5SetPoint = data5.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas5Calculate = data5.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas5SetPoint = data5.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas5Calculate = data5.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas5SetPoint = data5.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas5Calculate = data5.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas5SetPoint = data5.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas5Calculate = data5.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas5SetPoint = data5.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas5Calculate = data5.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas5SetPoint = data5.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas5Calculate = data5.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas5SetPoint = data5.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas5Calculate = data5.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas5SetPoint = data5.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas5Calculate = data5.Percent100Calculate; } var data6 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas6").FirstOrDefault(); if (data6 != null) { MFCCalibrationTenPointsDataRecords[0].Gas6SetPoint = data6.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas6Calculate = data6.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas6SetPoint = data6.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas6Calculate = data6.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas6SetPoint = data6.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas6Calculate = data6.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas6SetPoint = data6.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas6Calculate = data6.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas6SetPoint = data6.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas6Calculate = data6.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas6SetPoint = data6.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas6Calculate = data6.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas6SetPoint = data6.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas6Calculate = data6.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas6SetPoint = data6.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas6Calculate = data6.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas6SetPoint = data6.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas6Calculate = data6.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas6SetPoint = data6.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas6Calculate = data6.Percent100Calculate; } var data7 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas7").FirstOrDefault(); if (data7 != null) { MFCCalibrationTenPointsDataRecords[0].Gas7SetPoint = data7.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas7Calculate = data7.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas7SetPoint = data7.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas7Calculate = data7.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas7SetPoint = data7.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas7Calculate = data7.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas7SetPoint = data7.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas7Calculate = data7.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas7SetPoint = data7.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas7Calculate = data7.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas7SetPoint = data7.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas7Calculate = data7.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas7SetPoint = data7.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas7Calculate = data7.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas7SetPoint = data7.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas7Calculate = data7.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas7SetPoint = data7.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas7Calculate = data7.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas7SetPoint = data7.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas7Calculate = data7.Percent100Calculate; } var data8 = VerificationDataTenPointsRecords.Where(x => x.Name == $"MfcGas8").FirstOrDefault(); if (data8 != null) { MFCCalibrationTenPointsDataRecords[0].Gas8SetPoint = data8.Percent10Setpoint; MFCCalibrationTenPointsDataRecords[0].Gas8Calculate = data8.Percent10Calculate; MFCCalibrationTenPointsDataRecords[1].Gas8SetPoint = data8.Percent20Setpoint; MFCCalibrationTenPointsDataRecords[1].Gas8Calculate = data8.Percent20Calculate; MFCCalibrationTenPointsDataRecords[2].Gas8SetPoint = data8.Percent30Setpoint; MFCCalibrationTenPointsDataRecords[2].Gas8Calculate = data8.Percent30Calculate; MFCCalibrationTenPointsDataRecords[3].Gas8SetPoint = data8.Percent40Setpoint; MFCCalibrationTenPointsDataRecords[3].Gas8Calculate = data8.Percent40Calculate; MFCCalibrationTenPointsDataRecords[4].Gas8SetPoint = data8.Percent50Setpoint; MFCCalibrationTenPointsDataRecords[4].Gas8Calculate = data8.Percent50Calculate; MFCCalibrationTenPointsDataRecords[5].Gas8SetPoint = data8.Percent60Setpoint; MFCCalibrationTenPointsDataRecords[5].Gas8Calculate = data8.Percent60Calculate; MFCCalibrationTenPointsDataRecords[6].Gas8SetPoint = data8.Percent70Setpoint; MFCCalibrationTenPointsDataRecords[6].Gas8Calculate = data8.Percent70Calculate; MFCCalibrationTenPointsDataRecords[7].Gas8SetPoint = data8.Percent80Setpoint; MFCCalibrationTenPointsDataRecords[7].Gas8Calculate = data8.Percent80Calculate; MFCCalibrationTenPointsDataRecords[8].Gas8SetPoint = data8.Percent90Setpoint; MFCCalibrationTenPointsDataRecords[8].Gas8Calculate = data8.Percent90Calculate; MFCCalibrationTenPointsDataRecords[9].Gas8SetPoint = data8.Percent100Setpoint; MFCCalibrationTenPointsDataRecords[9].Gas8Calculate = data8.Percent100Calculate; } } #endregion } }