using Aitex.Core.RT.DataCenter; using Aitex.Core.RT.OperationCenter; using Aitex.Core.RT.SCCore; using Aitex.Core.Util; using MECF.Framework.Common.Equipment; using Newtonsoft.Json; using System; using System.IO; using System.Reflection; using System.Xml.Linq; using System.Xml.Serialization; namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.GasFlow { /// /// 初始化加载PM模块中所有气体真值表逻辑 /// public class PMGasTrueTableInitialize { public PMAllGsa PMAllGsa { get; set; } public PMGasTrueTableInitialize(string pmName,string path) { if (!SC.GetValue($"System.SetUp.Is{pmName}Installed")) return; PMAllGsa = CustomXmlSerializer.Deserialize(new FileInfo(path));//$"Config\\PM\\{pmName}\\RealtimeGasFlow{pmName}.xml" PMAllGsa.Initialize(pmName); } } }