Add new service and resource types

This commit is contained in:
2025-08-22 09:29:19 +09:00
parent 875e3470d8
commit f1823414f1
3 changed files with 52 additions and 8 deletions

View File

@ -152,8 +152,8 @@ namespace Hcs.ClientApi.HouseManagementApi
Guid contractSubjectGuid = Guid.NewGuid();
contract.ContractSubject = [
new HouseManagement.SupplyResourceContractTypeContractSubject() {
ServiceType = HcsHouseManagementNsi.ElectricSupplyServiceType,
MunicipalResource = HcsHouseManagementNsi.ElectricSupplyMunicipalResource,
ServiceType = HcsHouseManagementNsi.HeatingSupplyServiceType,
MunicipalResource = HcsHouseManagementNsi.HeatingSupplyMunicipalResource,
StartSupplyDate = (договор.ДатаЗаключения != null ? (DateTime)договор.ДатаЗаключения : DateTime.Now),
EndSupplyDate = DateTime.Now.AddYears(50),
TransportGUID = FormatGuid(contractSubjectGuid)
@ -299,6 +299,12 @@ namespace Hcs.ClientApi.HouseManagementApi
pair.StartSupplyDate = startSupplyDate;
// TODO: Проверить комментарий
pair.EndSupplyDateSpecified = false; // Не указана дата окончания поставки ресурса
// TODO: Необходимо указывать только для отопления и ГВС, нужен рефактор кода
pair.HeatingSystemType = new HouseManagement.SupplyResourceContractTypeObjectAddressPairHeatingSystemType()
{
OpenOrNot = HouseManagement.SupplyResourceContractTypeObjectAddressPairHeatingSystemTypeOpenOrNot.Closed,
CentralizedOrNot = HouseManagement.SupplyResourceContractTypeObjectAddressPairHeatingSystemTypeCentralizedOrNot.Centralized
};
var address = new HouseManagement.SupplyResourceContractTypeObjectAddress()
{