public KeyDatesViewModel(KeyDatesData keyDates) { NotificationReceivedDate = new OptionalDateInputViewModel(keyDates.NotificationReceived, true); PaymentReceivedDate = keyDates.PaymentReceived; PaymentIsComplete = keyDates.IsPaymentComplete; AssessmentStartedDate = new OptionalDateInputViewModel(keyDates.AssessmentStarted, true); NameOfOfficer = keyDates.NameOfOfficer; NotificationCompleteDate = new OptionalDateInputViewModel(keyDates.NotificationCompletedDate, true); NotificationAcknowledgedDate = new OptionalDateInputViewModel(keyDates.AcknowlegedDate, true); DecisionDate = new OptionalDateInputViewModel(keyDates.DecisionRequiredByDate, true); NewDate = new OptionalDateInputViewModel(true); Decisions = keyDates.DecisionHistory; IsInterim = keyDates.IsInterim; NotificationFileClosedDate = new OptionalDateInputViewModel(keyDates.FileClosedDate, true); ArchiveReference = keyDates.ArchiveReference; IsAreaAssigned = keyDates.IsLocalAreaSet; CompetentAuthority = keyDates.CompententAuthority; }
public KeyDatesViewModel(KeyDatesData keyDates) { NotificationReceivedDate = new OptionalDateInputViewModel(keyDates.NotificationReceived, true); PaymentReceivedDate = keyDates.PaymentReceived; PaymentIsComplete = keyDates.IsPaymentComplete; AssessmentStartedDate = new OptionalDateInputViewModel(keyDates.AssessmentStarted, true); NameOfOfficer = keyDates.NameOfOfficer; NotificationCompleteDate = new OptionalDateInputViewModel(keyDates.NotificationCompletedDate, true); NotificationAcknowledgedDate = new OptionalDateInputViewModel(keyDates.AcknowlegedDate, true); DecisionDate = new OptionalDateInputViewModel(keyDates.DecisionRequiredByDate, true); NewDate = new OptionalDateInputViewModel(true); Decisions = keyDates.DecisionHistory; IsInterim = keyDates.IsInterim; NotificationFileClosedDate = new OptionalDateInputViewModel(keyDates.FileClosedDate, true); ArchiveReference = keyDates.ArchiveReference; IsAreaAssigned = keyDates.IsLocalAreaSet; CompetentAuthority = keyDates.CompententAuthority; Status = keyDates.Status; }