Esempio n. 1
0
        private OrganisationsInvolved MapOrganisationsInvolved(NotificationApplicationOverview source)
        {
            var organisationsInvolved = new OrganisationsInvolved
            {
                NotificationId   = source.Notification.Id,
                NotificationType = source.Notification.NotificationType,
                Exporter         = mapper.Map <ExporterData>(source.Exporter),
                Importer         = mapper.Map <ImporterData>(source.Importer),
                Facilities       = mapper.Map <IList <FacilityData> >(source.Notification).ToList(),
                Producers        = mapper.Map <IList <ProducerData> >(source.Notification).ToList()
            };

            return(organisationsInvolved);
        }
 public OrganisationsInvolvedViewModel(OrganisationsInvolved info, NotificationApplicationCompletionProgress progress)
 {
     NotificationId           = info.NotificationId;
     NotificationType         = info.NotificationType;
     IsExporterCompleted      = progress.HasExporter;
     HasSiteOfExport          = progress.HasSiteOfExport;
     IsProducerCompleted      = progress.HasProducer;
     IsImporterCompleted      = progress.HasImporter;
     IsFacilityCompleted      = progress.HasFacility;
     HasActualSiteOfTreatment = progress.HasActualSiteOfTreatment;
     Exporter   = info.Exporter;
     Producers  = info.Producers;
     Importer   = info.Importer;
     Facilities = info.Facilities;
 }
 public OrganisationsInvolvedViewModel(OrganisationsInvolved info, NotificationApplicationCompletionProgress progress)
 {
     NotificationId = info.NotificationId;
     NotificationType = info.NotificationType;
     IsExporterCompleted = progress.HasExporter;
     HasSiteOfExport = progress.HasSiteOfExport;
     IsProducerCompleted = progress.HasProducer;
     IsImporterCompleted = progress.HasImporter;
     IsFacilityCompleted = progress.HasFacility;
     HasActualSiteOfTreatment = progress.HasActualSiteOfTreatment;
     Exporter = info.Exporter;
     Producers = info.Producers;
     Importer = info.Importer;
     Facilities = info.Facilities;
 }