using Aitex.Core.Util; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.GasFlow; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace MECF.Framework.UI.Client.CenterViews.DataLogs.ProcessHistory { public class ProcessHistoryItemsDefault { /// /// 查询数据源, /// public List ItemList { get;set; } public ProcessHistoryItemsDefault() { var phi = CustomXmlSerializer.Deserialize(new FileInfo("D:\\SIC_Get\\8号机\\Modules\\Mainframe\\Config\\PM\\ProcessItems.xml")); ItemList = phi.ItemList; } } [XmlType(typeName: "ProcessHistoryItems")] public class ProcessHistoryItems { [XmlElement("ProcessHistoryItem")] public List ItemList { get; set; } } [XmlType(typeName: "ProcessHistoryItem")] public class ProcessHistoryItem { /// /// 客户期望界面显示项 /// [XmlAttribute()] public string Display { get; set; } /// /// 界面显示项,SIC数据库属性名称 /// [XmlAttribute()] public string Property { get; set; } /// /// 单位,显示用 /// [XmlAttribute()] public string Unit { get; set; } /// /// 数据表中是否包含当前属性,不包含的时候,此属性不能作为查询项 /// public bool IsPropertyExists { get; set; } } }