GetAddressViewModelShowingSeeAnnexInstruction() public static method

public static GetAddressViewModelShowingSeeAnnexInstruction ( string seeAnnexNotice ) : AddressViewModel
seeAnnexNotice string
return AddressViewModel
示例#1
0
        private void SetAllPropertiesToEmptyString()
        {
            FirstReg     = string.Empty;
            FirstName    = string.Empty;
            firstAddress = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty);
            FirstTel     = string.Empty;
            FirstFax     = string.Empty;
            FirstEmail   = string.Empty;
            FirstContact = string.Empty;

            SecondReg     = string.Empty;
            SecondName    = string.Empty;
            secondAddress = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty);
            SecondTel     = string.Empty;
            SecondFax     = string.Empty;
            SecondEmail   = string.Empty;
            SecondContact = string.Empty;

            LastReg     = string.Empty;
            LastName    = string.Empty;
            lastAddress = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty);
            LastTel     = string.Empty;
            LastFax     = string.Empty;
            LastEmail   = string.Empty;
            LastContact = string.Empty;

            AnnexMessage = string.Empty;
        }
示例#2
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);
        }
示例#3
0
        public static FacilityViewModel GetSeeAnnexInstructionForFacility(int annexNumber)
        {
            var seeAnnexNotice = "See Annex " + annexNumber;

            return(new FacilityViewModel
            {
                AnnexMessage = seeAnnexNotice,
                ContactPerson = string.Empty,
                Name = string.Empty,
                Email = string.Empty,
                Telephone = string.Empty,
                RegistrationNumber = string.Empty,
                address = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty),
                Fax = string.Empty,
                ActualSite = seeAnnexNotice
            });
        }
示例#4
0
        public static CarrierViewModel GetCarrierViewModelShowingSeeAnnexInstruction(int annexNumber, string meansOfTransport)
        {
            var seeAnnexNotice = "See Annex " + annexNumber;

            return(new CarrierViewModel
            {
                AnnexMessage = seeAnnexNotice,
                ContactPerson = string.Empty,
                Name = string.Empty,
                Email = string.Empty,
                Telephone = string.Empty,
                RegistrationNumber = string.Empty,
                address = AddressViewModel.GetAddressViewModelShowingSeeAnnexInstruction(string.Empty),
                Fax = string.Empty,
                MeansOfTransport = meansOfTransport
            });
        }