Add living house UO import
This commit is contained in:
@ -50,6 +50,8 @@ namespace Hcs.TestApp
|
||||
|
||||
//houseManagementScenario.ImportAccountData();
|
||||
|
||||
//houseManagementScenario.ImportLivingHouseUOData();
|
||||
|
||||
//houseManagementScenario.ImportNotificationData();
|
||||
|
||||
//houseManagementScenario.ImportSupplyResourceContractData();
|
||||
|
||||
@ -34,6 +34,94 @@ namespace Hcs.TestApp.Scenario
|
||||
Console.WriteLine("Scenario execution " + (result != null ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportAccountData()
|
||||
{
|
||||
var payload = new ImportAccountDataPayload()
|
||||
{
|
||||
accountNumber = "385635479641",
|
||||
accountReasons = new AccountReasonsImportType()
|
||||
{
|
||||
SupplyResourceContract =
|
||||
[
|
||||
new()
|
||||
{
|
||||
Items = ["0aca4ebc-8d5c-4a39-801c-e25f0867adc6"],
|
||||
ItemsElementName = [ItemsChoiceType17.ContractGUID]
|
||||
}
|
||||
]
|
||||
},
|
||||
accountType = ImportAccountDataPayload.AccountType.RC,
|
||||
livingPersonsNumber = 1,
|
||||
totalSquare = 29.3m,
|
||||
residentialSquare = 29.3m,
|
||||
heatedArea = 29.3m,
|
||||
accomodations =
|
||||
[
|
||||
new()
|
||||
{
|
||||
Item = "db041c58-4a14-45ce-8ecc-d99727e9683f",
|
||||
ItemElementName = ItemChoiceType9.FIASHouseGuid
|
||||
}
|
||||
],
|
||||
payerInfo = new AccountTypePayerInfo()
|
||||
{
|
||||
IsRenter = true,
|
||||
IsRenterSpecified = true,
|
||||
Item = new AccountIndType()
|
||||
{
|
||||
Item = "62392021264",
|
||||
FirstName = "Имя",
|
||||
Surname = "Фамилия",
|
||||
Patronymic = "Отчество"
|
||||
}
|
||||
}
|
||||
};
|
||||
var result = client.HouseManagement.ImportAccountDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportLivingHouseUOData()
|
||||
{
|
||||
var payload = new ImportLivingHouseUODataPayload()
|
||||
{
|
||||
fiasHouseGuid = Guid.Parse("db041c58-4a14-45ce-8ecc-d99727e9683f"),
|
||||
totalSquare = 29.3m,
|
||||
state = Registry24.Element2,
|
||||
lifeCycleStage = Registry338.Element1,
|
||||
usedYear = 2000,
|
||||
floorCount = 1,
|
||||
oktmo = new OKTMORefType()
|
||||
{
|
||||
code = "98641101001"
|
||||
},
|
||||
olsonTZ = Registry32.Element11,
|
||||
culturalHeritage = false,
|
||||
isMunicipalProperty = false,
|
||||
isRegionProperty = false,
|
||||
conditionalNumber = "1234567890"
|
||||
};
|
||||
var result = client.HouseManagement.ImportHouseUODataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportNotificationData()
|
||||
{
|
||||
var payload = new ImportNotificationDataPayload()
|
||||
{
|
||||
topic = "Тема новости",
|
||||
isImportant = true,
|
||||
content = "Содержимое новости",
|
||||
destinations =
|
||||
[
|
||||
new(ItemsChoiceType29.IsAll, true)
|
||||
],
|
||||
isNotLimit = true,
|
||||
isShipOff = true
|
||||
};
|
||||
var result = client.HouseManagement.ImportNotificationDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportSupplyResourceContractData()
|
||||
{
|
||||
var signingDate = new DateTime(2017, 01, 01);
|
||||
@ -136,69 +224,5 @@ namespace Hcs.TestApp.Scenario
|
||||
var result = client.HouseManagement.ImportSupplyResourceContractDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result != null ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportNotificationData()
|
||||
{
|
||||
var payload = new ImportNotificationDataPayload()
|
||||
{
|
||||
topic = "Тема новости",
|
||||
isImportant = true,
|
||||
content = "Содержимое новости",
|
||||
destinations =
|
||||
[
|
||||
new(ItemsChoiceType29.IsAll, true)
|
||||
],
|
||||
isNotLimit = true,
|
||||
isShipOff = true
|
||||
};
|
||||
var result = client.HouseManagement.ImportNotificationDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
|
||||
}
|
||||
|
||||
internal void ImportAccountData()
|
||||
{
|
||||
var payload = new ImportAccountDataPayload()
|
||||
{
|
||||
accountNumber = "385635479641",
|
||||
accountReasons = new AccountReasonsImportType()
|
||||
{
|
||||
SupplyResourceContract =
|
||||
[
|
||||
new()
|
||||
{
|
||||
Items = ["0aca4ebc-8d5c-4a39-801c-e25f0867adc6"],
|
||||
ItemsElementName = [ItemsChoiceType17.ContractGUID]
|
||||
}
|
||||
]
|
||||
},
|
||||
accountType = ImportAccountDataPayload.AccountType.RC,
|
||||
livingPersonsNumber = 1,
|
||||
totalSquare = 29.3m,
|
||||
residentialSquare = 29.3m,
|
||||
heatedArea = 29.3m,
|
||||
accomodations =
|
||||
[
|
||||
new()
|
||||
{
|
||||
Item = "db041c58-4a14-45ce-8ecc-d99727e9683f",
|
||||
ItemElementName = ItemChoiceType9.FIASHouseGuid
|
||||
}
|
||||
],
|
||||
payerInfo = new AccountTypePayerInfo()
|
||||
{
|
||||
IsRenter = true,
|
||||
IsRenterSpecified = true,
|
||||
Item = new AccountIndType()
|
||||
{
|
||||
Item = "62392021264",
|
||||
FirstName = "Имя",
|
||||
Surname = "Фамилия",
|
||||
Patronymic = "Отчество"
|
||||
}
|
||||
}
|
||||
};
|
||||
var result = client.HouseManagement.ImportAccountDataAsync(payload).Result;
|
||||
Console.WriteLine("Scenario execution " + (result ? "succeeded" : "failed"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user