Interface INode
Описывает свойства и методы объекта учёта.
Inherited Members
Namespace: Lers.Core
Assembly: Lers.Server.System.dll
Syntax
public interface INode : IDivisionMember
Fields
DefaultSeason
Режим по умолчанию, после создания объекта.
Declaration
public const Season DefaultSeason = Season.Summer
Field Value
| Type | Description |
|---|---|
| Season |
MaxMeasurePointsCountPerLicense
Максимальное количество точек учета на одну лицензию в объекте учета.
Declaration
public const int MaxMeasurePointsCountPerLicense = 10
Field Value
| Type | Description |
|---|---|
| System.Int32 |
MaxMeasurePointsCountPerPersonalLicense
Количество точек учёта в персональном режиме.
Declaration
public const int MaxMeasurePointsCountPerPersonalLicense = 3
Field Value
| Type | Description |
|---|---|
| System.Int32 |
MaxMeasurePointsInSystem
Количество точек учёта на одну лицензию в пределах одной системы объекта.
Declaration
public const int MaxMeasurePointsInSystem = 3
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Properties
Address
Адрес объекта учёта.
Declaration
string Address { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Attributes
Возвращает пользовательские атрибуты объекта учета.
Declaration
ICollection<NodeCustomAttribute> Attributes { get; }
Property Value
| Type | Description |
|---|---|
| ICollection<Lers.Models.NodeCustomAttribute> |
ColdWaterSummerTemp
Температура холодной воды летнего режима, на объекте учёта.
Declaration
float ColdWaterSummerTemp { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ColdWaterTemp
Температура холодной воды в зависимости от сезона работы
Declaration
float ColdWaterTemp { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ColdWaterWinterTemp
Температура холодной воды зимнего режима, на объекте учёта.
Declaration
float ColdWaterWinterTemp { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Comment
Комментарий.
Declaration
string Comment { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
CompositeState
Композитное состояние.
Declaration
CompositeNodeState CompositeState { get; }
Property Value
| Type | Description |
|---|---|
| Lers.Models.CompositeNodeState |
ContractTemperatureId
Идентификатор температурного графика.
Declaration
EntityIdentifier<ContractTemperature>? ContractTemperatureId { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<EntityIdentifier<Lers.Models.ContractTemperature>> |
CurrentSeason
Кэшированное значение текущего режима работы объекта.
Declaration
Season CurrentSeason { get; }
Property Value
| Type | Description |
|---|---|
| Season |
FiasId
Идентификатор в ФИАС.
Declaration
Guid? FiasId { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<Guid> |
HolidayCalendarId
Идентификатор производственного календаря для объекта учёта.
Declaration
int? HolidayCalendarId { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Id
Уникальный идентификатор объекта учёта.
Declaration
int Id { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Identifier
Типизированный идентификатор объекта (для использования вместо Id).
Declaration
EntityIdentifier<Node> Identifier { get; }
Property Value
| Type | Description |
|---|---|
| EntityIdentifier<Lers.Models.Node> |
LicenseCount
Количество лицензий, используемых этим объектом учета.
Declaration
byte LicenseCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
MaxMeasurePointCount
Максимальное количество точек учёта, которое может содержать объект.
Declaration
int MaxMeasurePointCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MaxMeasurePointInSystemCount
Максимально допустимое по лицензии количество точек учёта в системе этого объекта.
Declaration
int MaxMeasurePointInSystemCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Model
Базовая модель объекта учёта.
Declaration
Node Model { get; }
Property Value
| Type | Description |
|---|---|
| Lers.Models.Node |
NormalizedCustomId
Нормализованный пользовательский идентификатор.
Declaration
string NormalizedCustomId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Number
Номер объекта учета.
Declaration
int Number { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ResponsibleName
Ответственное лицо.
Declaration
string ResponsibleName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ResponsiblePhone
Телефон ответственного лица.
Declaration
string ResponsiblePhone { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
State
Состояние объекта.
Declaration
NodeState State { get; }
Property Value
| Type | Description |
|---|---|
| NodeState |
TemperatureComplianceAnalysisType
Тип анализа температурного графика.
Declaration
TemperatureComplianceAnalysisType TemperatureComplianceAnalysisType { get; }
Property Value
| Type | Description |
|---|---|
| TemperatureComplianceAnalysisType |
Territory
Территория объекта учёта.
Declaration
ITerritory Territory { get; }
Property Value
| Type | Description |
|---|---|
| ITerritory |
Title
Наименование объекта учёта.
Declaration
string Title { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
Возвращает тип объекта учёта (обычный объект или жилой дом).
Declaration
NodeType Type { get; }
Property Value
| Type | Description |
|---|---|
| NodeType |
Methods
GetAllMeasurePoints()
Возвращает список общедомовых и квартирных точек учёта объекта.
Declaration
IMeasurePoint[] GetAllMeasurePoints()
Returns
| Type | Description |
|---|---|
| IMeasurePoint[] |
GetAttributes()
Возвращает пользовательские атрибуты объекта учёта.
Declaration
ICollection<NodeCustomAttribute> GetAttributes()
Returns
| Type | Description |
|---|---|
| ICollection<Lers.Models.NodeCustomAttribute> |
GetBalanceFormulas()
Получает список формул баланса для указанного объекта учета.
Declaration
IList<NodeBalanceFormulaObject> GetBalanceFormulas()
Returns
| Type | Description |
|---|---|
| IList<Lers.Interop.NodeBalanceFormulaObject> | Массив формул Lers.Interop.NodeBalanceFormulaObject. |
GetColdWaterTempAtDate(DateTime)
Определяет температуру холодной воды в зависимости от режима работы на определенную дату
Declaration
float GetColdWaterTempAtDate(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date |
Returns
| Type | Description |
|---|---|
| System.Single |
GetContractConsumption(ContractConsumptionType)
Возвращает договорное потребление объекта учёта.
Declaration
NodeContractConsumption GetContractConsumption(ContractConsumptionType type)
Parameters
| Type | Name | Description |
|---|---|---|
| ContractConsumptionType | type |
Returns
| Type | Description |
|---|---|
| Lers.Models.NodeContractConsumption |
GetContractTemperature()
Получает параметры для расчета температурного графика и массив записей с температурами (табличную часть) графика.
Declaration
ContractTemperature GetContractTemperature()
Returns
| Type | Description |
|---|---|
| Lers.Models.ContractTemperature |
GetCustomer()
Получает потребителя для данного объекта учета.
Declaration
Customer GetCustomer()
Returns
| Type | Description |
|---|---|
| Lers.Models.Customer | Потребитель |
GetEquipment()
Возвращает список оборудования объекта учёта.
Declaration
IEquipment[] GetEquipment()
Returns
| Type | Description |
|---|---|
| IEquipment[] |
GetMeasurePoints()
Возвращает список общедомовых точек учёта, которые входят в объект.
Declaration
IMeasurePoint[] GetMeasurePoints()
Returns
| Type | Description |
|---|---|
| IMeasurePoint[] |
GetMeasurePointsWithAccessCheck(IAccount)
Получает список всех точек учета данного объекта учета доступных для указанной учетной записи.
Declaration
IMeasurePoint[] GetMeasurePointsWithAccessCheck(IAccount account)
Parameters
| Type | Name | Description |
|---|---|---|
| IAccount | account | Учётная запись. |
Returns
| Type | Description |
|---|---|
| IMeasurePoint[] | Список доступных точек учёта. |
GetModel()
Возвращает базовые параметры объекта учёта, пригодные для сериализации.
Declaration
Node GetModel()
Returns
| Type | Description |
|---|---|
| Lers.Models.Node |
GetNodeReports()
Declaration
IList<NodeReportObject> GetNodeReports()
Returns
| Type | Description |
|---|---|
| IList<Lers.Interop.NodeReportObject> |
GetNodeSuppliers()
Получает информацию о всех РСО для данного объекта учета.
Declaration
IList<NodeSupplier> GetNodeSuppliers()
Returns
| Type | Description |
|---|---|
| IList<Lers.Models.NodeSupplier> |
GetNowSeason()
Возвращает текущий режим работы. Данные запрашиваются из базы данных на основании истории режимов.
Declaration
Season GetNowSeason()
Returns
| Type | Description |
|---|---|
| Season |
GetPollConnections()
Получает список подключений объекта учёта.
Declaration
IList<IPollConnection> GetPollConnections()
Returns
| Type | Description |
|---|---|
| IList<IPollConnection> |
GetSeason(DateTime)
Возвращает текущий режим работы для указанной даты.
Declaration
Season GetSeason(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date |
Returns
| Type | Description |
|---|---|
| Season |
GetSeasonHistory()
Получает историю изменений режима работы объекта учета.
Declaration
IList<NodeSeason> GetSeasonHistory()
Returns
| Type | Description |
|---|---|
| IList<Lers.Models.NodeSeason> |
GetSectionByHeatMeasurePoint(IMeasurePoint)
Возвращает секцию по идентификатору точки учёта тепла.
Declaration
INodeSection GetSectionByHeatMeasurePoint(IMeasurePoint measurePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IMeasurePoint | measurePoint |
Returns
| Type | Description |
|---|---|
| INodeSection |
GetSectionById(EntityIdentifier<NodeSection>)
Возвращает секцию объекта по её идентификатору.
Declaration
INodeSection GetSectionById(EntityIdentifier<NodeSection> sectionId)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityIdentifier<Lers.Models.NodeSection> | sectionId |
Returns
| Type | Description |
|---|---|
| INodeSection |
GetSectionByNumber(Int32)
Возвращает секцию объекта по её номеру.
Declaration
INodeSection GetSectionByNumber(int sectionNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | sectionNumber |
Returns
| Type | Description |
|---|---|
| INodeSection |
GetServiceCompany()
Получает обслуживающую организацию для данного объекта учета.
Declaration
ServiceCompany GetServiceCompany()
Returns
| Type | Description |
|---|---|
| Lers.Models.ServiceCompany |
GetServiceman()
Получает обслуживающего для данного объекта учета.
Declaration
PublicAccount GetServiceman()
Returns
| Type | Description |
|---|---|
| Lers.Models.PublicAccount | Экземпляр Lers.Models.PublicAccount или null, если обслуживающий не задан или был удален. |
GetServicemanAccount()
Получает учетную запись обслуживающего для данного объекта учета.
Declaration
IAccount GetServicemanAccount()
Returns
| Type | Description |
|---|---|
| IAccount |
GetSignaling()
Возвращает настройки сигнализации для объекта учёта.
Declaration
NodeSignaling[] GetSignaling()
Returns
| Type | Description |
|---|---|
| Lers.Models.NodeSignaling[] |
GetSupplierBySystemType(SystemType)
Получает информацию по поставщику услуг данного объекта для заданной системы снабжения.
Declaration
Supplier GetSupplierBySystemType(SystemType systemType)
Parameters
| Type | Name | Description |
|---|---|---|
| SystemType | systemType | Тип системы снабжения SystemType. |
Returns
| Type | Description |
|---|---|
| Lers.Models.Supplier | Экземпляр Lers.Models.Supplier или null. |
IsHeatSeason(DateTime)
Определяет, был ли включен ли отопительный сезон на этом объекте учёта в указанное время.
Declaration
bool IsHeatSeason(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date | Проверяемое время |
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsMemberOf(EntityIdentifier)
Определяет, входит ли объект в указанную группу.
Declaration
bool IsMemberOf(EntityIdentifier nodeGroupId)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityIdentifier | nodeGroupId |
Returns
| Type | Description |
|---|---|
| System.Boolean |
IsWorkingDay(DateTime)
Вернёт true если этот день на объекте учёта рабочий.
Declaration
bool IsWorkingDay(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date |
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoveNotMatchSeasonIncidents(Interval, Season)
Удаляет нештатные ситуации, не совпадающие с указанным режимом работы.
Declaration
Task RemoveNotMatchSeasonIncidents(Interval interval, Season season)
Parameters
| Type | Name | Description |
|---|---|---|
| Interval | interval | Период, за который нужно удалить НС. |
| Season | season | Режим работы, НС за который должны остаться. |
Returns
| Type | Description |
|---|---|
| Task |
SetEquipment(IEnumerable<Int32>)
Устанавливает список оборудования объекта.
Declaration
void SetEquipment(IEnumerable<int> equipmentIds)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<System.Int32> | equipmentIds |
SetSeason(Season, DateTime)
Задает новый режим работы объекта учета.
Declaration
void SetSeason(Season season, DateTime switchDateTime)
Parameters
| Type | Name | Description |
|---|---|---|
| Season | season | Отопительный сезон. |
| DateTime | switchDateTime | Дата переключения режима. |