using MECF.Framework.Common.CommonData; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Schema; using System.Xml.Serialization; namespace MECF.Framework.Common.Device.PowerSupplier { public class PowerSupplierDevice : NotifiableItem { #region 内部变量 private string _name; private string _parentName; private string _address; #endregion #region 属性 [XmlAttribute(AttributeName = "Name", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } } public string ParentName { get { return _parentName; } set { _parentName = value; InvokePropertyChanged(nameof(ParentName)); } } [XmlAttribute(AttributeName = "Address", Form = XmlSchemaForm.Unqualified, DataType = "string")] public string Address { get { return _address;} set { _address = value; InvokePropertyChanged(nameof(Address)); } } [XmlAttribute(AttributeName = "VoltageUnitSetScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int VoltageUnitSetScale { get; set; } [XmlAttribute(AttributeName = "VoltageUnitScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int VoltageUnitScale { get; set; } [XmlAttribute(AttributeName = "HighGradeCurrentSetScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int HighGradeCurrentSetScale { get; set; } [XmlAttribute(AttributeName = "HighGradeCurrentScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int HighGradeCurrentScale { get; set; } [XmlAttribute(AttributeName = "MiddleGradeCurrentSetScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int MiddleGradeCurrentSetScale { get; set; } [XmlAttribute(AttributeName = "MiddleGradeCurrentScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int MiddleGradeCurrentScale { get; set; } [XmlAttribute(AttributeName = "LowGradeCurrentSetScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int LowGradeCurrentSetScale { get; set; } [XmlAttribute(AttributeName = "LowGradeCurrentScale", Form = XmlSchemaForm.Unqualified, DataType = "int")] public int LowGradeCurrentScale { get; set; } #endregion } }