Exemplo n.º 1
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();
		}
Exemplo n.º 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());
        }
Exemplo n.º 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);
            }
Exemplo n.º 4
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)
			};			
		}
Exemplo n.º 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)
            });
        }
Exemplo n.º 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);
			}