public static Letterhead GetLetterheads(string facilityCode)
		{
			var settings = new LetterheadSettings();

			var facilityLetterhead = new LetterheadHelper(settings.MultiFacilityLetterheadsXml).GetLetterhead(facilityCode);
			if (facilityLetterhead != null)
				return facilityLetterhead;

			return GetDefaultLetterhead();
		}
Beispiel #2
0
        public static Letterhead GetLetterheads(string facilityCode)
        {
            var settings = new LetterheadSettings();

            var facilityLetterhead = new LetterheadHelper(settings.MultiFacilityLetterheadsXml).GetLetterhead(facilityCode);

            if (facilityLetterhead != null)
            {
                return(facilityLetterhead);
            }

            return(GetDefaultLetterhead());
        }
Beispiel #3
0
            internal LetterheadFacade()
            {
                _settings = new LetterheadSettings();
                var address = new Address(
                    _settings.LetterheadAddressStreet,
                    _settings.LetterheadAddressUnit,
                    _settings.LetterheadAddressCity,
                    _settings.LetterheadAddressProvince,
                    _settings.LetterheadAddressPostalCode,
                    "",
                    AddressType.B,
                    null);

                _address = new AddressFacade(address);
            }
		public static Letterhead GetDefaultLetterhead()
		{
			var settings = new LetterheadSettings();
			return new Letterhead
			{
				FacilityTitle = settings.LetterheadFacilityTitle,
				FacilitySubtitle = settings.LetterheadFacilitySubtitle,
				LogoFile = settings.LetterheadLogoFile,
				Phone = settings.LetterheadPhone,
				Fax = settings.LetterheadFax,
				Email = settings.LetterheadEmail,
				Address = new Address(
					settings.LetterheadAddressStreet,
					settings.LetterheadAddressUnit,
					settings.LetterheadAddressCity,
					settings.LetterheadAddressProvince,
					settings.LetterheadAddressPostalCode,
					"", AddressType.B, null)
			};			
		}
Beispiel #5
0
        public static Letterhead GetDefaultLetterhead()
        {
            var settings = new LetterheadSettings();

            return(new Letterhead
            {
                FacilityTitle = settings.LetterheadFacilityTitle,
                FacilitySubtitle = settings.LetterheadFacilitySubtitle,
                LogoFile = settings.LetterheadLogoFile,
                Phone = settings.LetterheadPhone,
                Fax = settings.LetterheadFax,
                Email = settings.LetterheadEmail,
                Address = new Address(
                    settings.LetterheadAddressStreet,
                    settings.LetterheadAddressUnit,
                    settings.LetterheadAddressCity,
                    settings.LetterheadAddressProvince,
                    settings.LetterheadAddressPostalCode,
                    "", AddressType.B, null)
            });
        }
Beispiel #6
0
			internal LetterheadFacade()
			{
				_settings = new LetterheadSettings();
				var address = new Address(
					_settings.LetterheadAddressStreet,
					_settings.LetterheadAddressUnit,
					_settings.LetterheadAddressCity,
					_settings.LetterheadAddressProvince,
					_settings.LetterheadAddressPostalCode,
					"",
					AddressType.B,
					null);
				_address = new AddressFacade(address);
			}