Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/CenterViews/DataLogs/ProcessHistory/ProcessHistoryItemsDefault.cs

65 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
{
/// <summary>
/// 查询数据源,
/// </summary>
public List<ProcessHistoryItem> ItemList { get;set; }
public ProcessHistoryItemsDefault()
{
var phi = CustomXmlSerializer.Deserialize<ProcessHistoryItems>(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<ProcessHistoryItem> ItemList { get; set; }
}
[XmlType(typeName: "ProcessHistoryItem")]
public class ProcessHistoryItem
{
/// <summary>
/// 客户期望界面显示项
/// </summary>
[XmlAttribute()]
public string Display { get; set; }
/// <summary>
/// 界面显示项SIC数据库属性名称
/// </summary>
[XmlAttribute()]
public string Property { get; set; }
/// <summary>
/// 单位,显示用
/// </summary>
[XmlAttribute()]
public string Unit { get; set; }
/// <summary>
/// 数据表中是否包含当前属性,不包含的时候,此属性不能作为查询项
/// </summary>
public bool IsPropertyExists { get; set; }
}
}