Add account data import

This commit is contained in:
2025-08-22 10:37:50 +09:00
parent 9b61b66b4b
commit 1f025dd62e
3 changed files with 42 additions and 1 deletions

View File

@ -122,7 +122,12 @@ namespace Hcs.ClientApi.HouseManagementApi
if (размещение == null) throw new HcsException("Пустое размещение для ЛС");
var accomodation = new HouseManagement.AccountTypeAccommodation();
if (размещение.ГуидПомещения != null)
if (размещение.ГуидЗдания != null)
{
accomodation.ItemElementName = HouseManagement.ItemChoiceType9.FIASHouseGuid;
accomodation.Item = FormatGuid(размещение.ГуидЗдания);
}
else if (размещение.ГуидПомещения != null)
{
accomodation.ItemElementName = HouseManagement.ItemChoiceType9.PremisesGUID;
accomodation.Item = FormatGuid(размещение.ГуидПомещения);