65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
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; }
|
||
}
|
||
}
|