/// <summary> /// Create EtsNoticeContract from NoticeContract /// </summary> /// <param name="dto">Notice data contract</param> public EtsNoticeContract(NoticeContract dto) { Id = dto.Id; CommunicationInformation = dto.CommunicationInformation; ComplementaryInformation = dto.ComplementaryInformation; ConditionsInformation = dto.ConditionsInformation; ConditionsInformationDefence = dto.ConditionsInformationDefence; ContactPerson = dto.ContactPerson; EstimatedValue = dto.ProcurementObject.EstimatedValue; TotalValue = dto.ProcurementObject.TotalValue; LotsInfo = dto.LotsInfo; MainCpvCode = dto.ProcurementObject.MainCpvCode; ObjectDescriptions = dto.ObjectDescriptions; NoticeOjsNumber = dto.NoticeOjsNumber; PreviousNoticeOjsNumber = dto.PreviousNoticeOjsNumber; Project = new EtsProjectContract { Id = dto.Project.Id, ContractType = dto.Project.ContractType, ReferenceNumber = dto.Project.ReferenceNumber, Title = dto.Project.Title, CentralPurchasing = dto.Project.CentralPurchasing, DefenceCategory = dto.Project.DefenceCategory, DisagreeToPublishNoticeBasedOnDefenceServiceCategory4 = dto.Project.DisagreeToPublishNoticeBasedOnDefenceServiceCategory4, DefenceSupplies = dto.Project.DefenceSupplies, DefenceWorks = dto.Project.DefenceWorks, JointProcurement = dto.Project.JointProcurement, ProcurementCategory = dto.Project.ProcurementCategory, ProcurementLaw = dto.Project.ProcurementLaw, AgricultureWorks = dto.Project.AgricultureWorks }; Organisation = new EtsOrganisationContract { Information = dto.Project.Organisation.Information, ContractingAuthorityType = dto.Project.Organisation.ContractingAuthorityType, ContractingType = dto.Project.Organisation.ContractingType, MainActivity = dto.Project.Organisation.MainActivity, OtherContractingAuthorityType = dto.Project.Organisation.OtherContractingAuthorityType, OtherMainActivity = dto.Project.Organisation.OtherMainActivity }; ShortDescription = dto.ProcurementObject.ShortDescription; TenderingInformation = dto.TenderingInformation; RewardsAndJury = dto.RewardsAndJury; ResultsOfContest = dto.ResultsOfContest; ProcedureInformation = dto.ProcedureInformation; ProceduresForReview = dto.ProceduresForReview; Modifications = dto.Modifications; Type = dto.Type; LegalBasis = dto.LegalBasis; Language = dto.Language; Links = dto.AttachmentInformation.Links; Defence = dto.ProcurementObject.Defence; IsCorrigendum = dto.IsCorrigendum; Changes = dto.Changes; CorrigendumAdditionalInformation = dto.CorrigendumAdditionalInformation; ContractAwardsDefence = dto.ContractAwardsDefence; IsPrivateSmallValueProcurement = dto.IsPrivateSmallValueProcurement; Annexes = dto.Annexes; }
/// <summary> /// Create EtsNoticeContract from Notice dbo /// </summary> /// <param name="dbo"></param> public EtsNoticeContract(Notice dbo) { Id = dbo.Id; CommunicationInformation = dbo.CommunicationInformation; ComplementaryInformation = dbo.ComplementaryInformation; ConditionsInformation = dbo.ConditionsInformation; ConditionsInformationDefence = dbo.ConditionsInformationDefence; ContactPerson = dbo.ContactPerson; EstimatedValue = dbo.ProcurementObject.EstimatedValue; TotalValue = dbo.ProcurementObject.TotalValue; EstimatedValueCalculationMethod = dbo.ProcurementObject.EstimatedValueCalculationMethod; TotalValue = dbo.ProcurementObject.TotalValue; LotsInfo = dbo.LotsInfo; MainCpvCode = dbo.ProcurementObject.MainCpvCode; ObjectDescriptions = dbo.ObjectDescriptions; NoticeOjsNumber = dbo.NoticeOjsNumber; PreviousNoticeOjsNumber = dbo.PreviousNoticeOjsNumber; Project = new EtsProjectContract { Id = dbo.Project.Id, ContractType = dbo.Project.ContractType, ReferenceNumber = dbo.Project.ReferenceNumber, Title = dbo.Project.Title, CentralPurchasing = dbo.Project.CentralPurchasing, DefenceCategory = dbo.Project.DefenceCategory, DisagreeToPublishNoticeBasedOnDefenceServiceCategory4 = dbo.Project.DisagreeToPublishNoticeBasedOnDefenceServiceCategory4, DefenceSupplies = dbo.Project.DefenceSupplies, DefenceWorks = dbo.Project.DefenceWorks, JointProcurement = dbo.Project.JointProcurement, ProcurementCategory = dbo.Project.ProcurementCategory, ProcurementLaw = dbo.Project.ProcurementLaw, AgricultureWorks = dbo.Project.AgricultureWorks, CoPurchasers = dbo.Project.CoPurchasers }; Organisation = new EtsOrganisationContract { Information = dbo.Project.Organisation.Information, ContractingAuthorityType = dbo.Project.Organisation.ContractingAuthorityType, ContractingType = dbo.Project.Organisation.ContractingType, MainActivity = dbo.Project.Organisation.MainActivity, MainActivityUtilities = dbo.Project.Organisation.MainActivityUtilities, OtherContractingAuthorityType = dbo.Project.Organisation.OtherContractingAuthorityType, OtherMainActivity = dbo.Project.Organisation.OtherMainActivity }; ShortDescription = dbo.ProcurementObject.ShortDescription; TenderingInformation = dbo.TenderingInformation; RewardsAndJury = dbo.RewardsAndJury; ResultsOfContest = dbo.ResultsOfContest; ProcedureInformation = dbo.ProcedureInformation; ProceduresForReview = dbo.ProceduresForReview; Modifications = dbo.Modifications; Type = dbo.Type; LegalBasis = dbo.LegalBasis; Language = dbo.Language; Links = dbo.AttachmentInformation.Links; Defence = dbo.ProcurementObject.Defence; IsCorrigendum = dbo.IsCorrigendum; Changes = dbo.Changes; CorrigendumAdditionalInformation = dbo.CorrigendumAdditionalInformation; ContractAwardsDefence = dbo.ContractAwardsDefence; IsPrivateSmallValueProcurement = dbo.IsPrivateSmallValueProcurement; Annexes = dbo.Annexes; HilmaStatistics = new HilmaStatistics { EnergyEfficiencyConsidered = dbo.HilmaStatistics.EnergyEfficiencyConsidered, InnovationConsidered = dbo.HilmaStatistics.InnovationConsidered, SMEParticipationConsidered = dbo.HilmaStatistics.SMEParticipationConsidered, LowCarbon = dbo.HilmaStatistics.LowCarbon, CircularEconomy = dbo.HilmaStatistics.CircularEconomy, Biodiversity = dbo.HilmaStatistics.Biodiversity, SustainableFoodProduction = dbo.HilmaStatistics.SustainableFoodProduction, ListedGreenCriteriaUsed = dbo.HilmaStatistics.ListedGreenCriteriaUsed, JustWorkingConditions = dbo.HilmaStatistics.JustWorkingConditions, EmploymentCondition = dbo.HilmaStatistics.EmploymentCondition, HowManyOpportunitiesIsEstimated = dbo.HilmaStatistics.HowManyOpportunitiesIsEstimated, CodeOfConduct = dbo.HilmaStatistics.CodeOfConduct, SolutionNewToBuyer = dbo.HilmaStatistics.SolutionNewToBuyer, SolutionNewToMarketOrIndustry = dbo.HilmaStatistics.SolutionNewToMarketOrIndustry, EndUserInvolved = dbo.HilmaStatistics.EndUserInvolved }; }