1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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 = "UnitSetScale", Form = XmlSchemaForm.Unqualified, DataType = "int")]
- public int UnitSetScale { get; set; }
- [XmlAttribute(AttributeName = "UnitScale", Form = XmlSchemaForm.Unqualified, DataType = "int")]
- public int UnitScale { get; set; }
- [XmlAttribute(AttributeName = "VoltageUnitSetScale", Form = XmlSchemaForm.Unqualified, DataType = "int")]
- public int VoltageUnitSetScale { get; set; }
- #endregion
- }
- }
|