private ProducerViewModel GetProducerViewModelShowingAnnexMessagesForProducerCountNotGreaterThanTwo(ProducerViewModel pvm, int annexNumber)
 {
     pvm.SiteOfGeneration = GetSiteAndProcessText(annexNumber);
     return pvm;
 }
        private ProducerViewModel GetProducerViewModelShowingAnnexMessagesForProducerCountGreaterThanTwo(ProducerViewModel pvm, int annexNumber)
        {
            var seeAnnexNotice = "See Annex " + annexNumber;

            pvm.AnnexMessage = seeAnnexNotice;
            pvm.ContactPerson = string.Empty;
            pvm.Name = string.Empty;
            pvm.Email = string.Empty;
            pvm.Telephone = string.Empty;
            pvm.RegistrationNumber = string.Empty;
            pvm.address = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty);
            pvm.Fax = string.Empty;
            pvm.SiteOfGeneration = GetSiteAndProcessText(annexNumber);

            return pvm;
        }
        public ProducerViewModel GetProducerViewModelShowingAnnexMessages(int producerCount, ProducerViewModel pvm, int annexNumber)
        {
            //If there is only one let put it on the form otherwise put them all in the annex - one has been removed hence > 1 here
            if (producerCount > 1)
            {
                return GetProducerViewModelShowingAnnexMessagesForProducerCountGreaterThanTwo(pvm, annexNumber);
            }

            return GetProducerViewModelShowingAnnexMessagesForProducerCountNotGreaterThanTwo(pvm, annexNumber);
        }
Beispiel #4
0
 private ProducerViewModel GetProducerViewModelShowingAnnexMessagesForProducerCountNotGreaterThanTwo(ProducerViewModel pvm, int annexNumber)
 {
     pvm.SiteOfGeneration = GetSiteAndProcessText(annexNumber);
     return(pvm);
 }
Beispiel #5
0
        private ProducerViewModel GetProducerViewModelShowingAnnexMessagesForProducerCountGreaterThanTwo(ProducerViewModel pvm, int annexNumber)
        {
            var seeAnnexNotice = "See Annex " + annexNumber;

            pvm.AnnexMessage       = seeAnnexNotice;
            pvm.ContactPerson      = string.Empty;
            pvm.Name               = string.Empty;
            pvm.Email              = string.Empty;
            pvm.Telephone          = string.Empty;
            pvm.RegistrationNumber = string.Empty;
            pvm.address            = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty);
            pvm.Fax = string.Empty;
            pvm.SiteOfGeneration = GetSiteAndProcessText(annexNumber);

            return(pvm);
        }
Beispiel #6
0
        public ProducerViewModel GetProducerViewModelShowingAnnexMessages(int producerCount, ProducerViewModel pvm, int annexNumber)
        {
            //If there is only one let put it on the form otherwise put them all in the annex - one has been removed hence > 1 here
            if (producerCount > 1)
            {
                return(GetProducerViewModelShowingAnnexMessagesForProducerCountGreaterThanTwo(pvm, annexNumber));
            }

            return(GetProducerViewModelShowingAnnexMessagesForProducerCountNotGreaterThanTwo(pvm, annexNumber));
        }