Fix metering device import
This commit is contained in:
16
Hcs.Client/Client/Api/Registry/Registry2.cs
Normal file
16
Hcs.Client/Client/Api/Registry/Registry2.cs
Normal file
@ -0,0 +1,16 @@
|
||||
namespace Hcs.Client.Api.Registry
|
||||
{
|
||||
/// <summary>
|
||||
/// НСИ "Коммунальный ресурс" (реестровый номер 2).
|
||||
/// Взято из https://dom.gosuslugi.ru/opendataapi/nsi-2/v1.
|
||||
/// </summary>
|
||||
public static class Registry2
|
||||
{
|
||||
/// <summary>
|
||||
/// Тепловая энергия
|
||||
/// </summary>
|
||||
public static RegistryElement Element5 => new(
|
||||
"5",
|
||||
"25a29bae-e430-4424-8f34-8ad83c578657");
|
||||
}
|
||||
}
|
||||
@ -77,6 +77,7 @@
|
||||
<Compile Include="Client\Api\Payload\HouseManagement\ImportNotificationDataPayload.cs" />
|
||||
<Compile Include="Client\Api\Payload\HouseManagement\ImportSupplyResourceContractDataPayload.cs" />
|
||||
<Compile Include="Client\Api\Registry\Registry16.cs" />
|
||||
<Compile Include="Client\Api\Registry\Registry2.cs" />
|
||||
<Compile Include="Client\Api\Registry\Registry239.cs" />
|
||||
<Compile Include="Client\Api\Registry\Registry24.cs" />
|
||||
<Compile Include="Client\Api\Registry\Registry27.cs" />
|
||||
|
||||
@ -56,6 +56,7 @@ namespace Hcs.TestApp
|
||||
//houseManagementScenario.ImportAccountData();
|
||||
//houseManagementScenario.ImportContractData();
|
||||
//houseManagementScenario.ImportLivingHouseUOData();
|
||||
//houseManagementScenario.ImportMeteringDeviceData();
|
||||
//houseManagementScenario.ImportNotificationData();
|
||||
//houseManagementScenario.ImportSupplyResourceContractData();
|
||||
|
||||
|
||||
@ -217,8 +217,8 @@ namespace Hcs.TestApp.Scenario
|
||||
{
|
||||
MunicipalResource = new nsiRef()
|
||||
{
|
||||
Code = Registry239.Element4.Code,
|
||||
GUID = Registry239.Element4.GUID
|
||||
Code = Registry2.Element5.Code,
|
||||
GUID = Registry2.Element5.GUID
|
||||
},
|
||||
MeteringValue = "0"
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user