예제 #1
0
        protected override string Serialize()
        {
            var result = new StringBuilder();

            result.AppendLine(base.Serialize());
            result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</SlideHeader>");
            result.AppendLine(@"<Demo>");
            foreach (string demo in Demo)
            {
                result.AppendLine(@"<Value>" + demo.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Value>");
            }
            result.AppendLine(@"</Demo>");
            result.AppendLine(@"<Income>");
            foreach (string income in Income)
            {
                result.AppendLine(@"<Value>" + income.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Value>");
            }
            result.AppendLine(@"</Income>");
            result.AppendLine(@"<Geographic>");
            foreach (string geographic in Geographic)
            {
                result.AppendLine(@"<Value>" + geographic.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Value>");
            }
            result.AppendLine(@"</Geographic>");
            return(result.ToString());
        }
        protected override string Serialize()
        {
            var result = new StringBuilder();

            result.AppendLine(base.Serialize());
            result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</SlideHeader>");
            result.AppendLine(@"<Goal1>" + Goal1.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal1>");
            result.AppendLine(@"<Goal2>" + Goal2.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal2>");
            result.AppendLine(@"<Goal3>" + Goal3.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal3>");
            result.AppendLine(@"<Goal4>" + Goal4.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal4>");
            result.AppendLine(@"<Goal5>" + Goal5.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal5>");
            return(result.ToString());
        }
        protected override string Serialize()
        {
            var result = new StringBuilder();

            result.AppendLine(base.Serialize());
            result.AppendLine(@"<ShowStatement1>" + ShowStatement1 + @"</ShowStatement1>");
            result.AppendLine(@"<ShowStatement2>" + ShowStatement2 + @"</ShowStatement2>");
            result.AppendLine(@"<ShowStatement3>" + ShowStatement3 + @"</ShowStatement3>");
            result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</SlideHeader>");
            result.AppendLine(@"<Statement1>" + Statement1.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Statement1>");
            result.AppendLine(@"<Statement2>" + Statement2.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Statement2>");
            result.AppendLine(@"<Statement3>" + Statement3.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Statement3>");
            return(result.ToString());
        }
        protected override string Serialize()
        {
            var result = new StringBuilder();

            result.AppendLine(base.Serialize());
            result.AppendLine(@"<AddAsPageOne>" + AddAsPageOne + @"</AddAsPageOne>");
            result.AppendLine(@"<UseGenericCover>" + UseGenericCover + @"</UseGenericCover>");
            result.AppendLine(@"<ShowPresentationDate>" + ShowPresentationDate + @"</ShowPresentationDate>");
            result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</SlideHeader>");
            result.AppendLine(@"<Advertiser>" + Advertiser.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Advertiser>");
            result.AppendLine(@"<DecisionMaker>" + DecisionMaker.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</DecisionMaker>");
            result.AppendLine(@"<PresentationDate>" + PresentationDate + @"</PresentationDate>");
            result.AppendLine(@"<Quote>" + Quote.Serialize() + @"</Quote>");

            return(result.ToString());
        }
        protected override string Serialize()
        {
            var result = new StringBuilder();

            result.AppendLine(base.Serialize());
            result.AppendLine(@"<ShowAdvertiser>" + ShowAdvertiser + @"</ShowAdvertiser>");
            result.AppendLine(@"<ShowDecisionMaker>" + ShowDecisionMaker + @"</ShowDecisionMaker>");
            result.AppendLine(@"<ShowPresentationDate>" + ShowPresentationDate + @"</ShowPresentationDate>");
            result.AppendLine(@"<ShowFlightDates>" + ShowFlightDates + @"</ShowFlightDates>");
            result.AppendLine(@"<ShowMonthly>" + ShowMonthly + @"</ShowMonthly>");
            result.AppendLine(@"<ShowTotal>" + ShowTotal + @"</ShowTotal>");
            result.AppendLine(@"<TableOutput>" + TableOutput + @"</TableOutput>");

            result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</SlideHeader>");
            result.AppendLine(@"<Advertiser>" + Advertiser.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Advertiser>");
            result.AppendLine(@"<DecisionMaker>" + DecisionMaker.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</DecisionMaker>");
            result.AppendLine(@"<PresentationDate>" + PresentationDate + @"</PresentationDate>");
            result.AppendLine(@"<FlightDatesStart>" + FlightDatesStart + @"</FlightDatesStart>");
            result.AppendLine(@"<FlightDatesEnd>" + FlightDatesEnd + @"</FlightDatesEnd>");
            if (MonthlyValue.HasValue)
            {
                result.AppendLine(@"<MonthlyValue>" + MonthlyValue + @"</MonthlyValue>");
            }
            if (TotalValue.HasValue)
            {
                result.AppendLine(@"<TotalValue>" + TotalValue + @"</TotalValue>");
            }

            result.AppendLine(@"<Items>");
            foreach (SimpleSummaryItemState item in ItemsState)
            {
                result.AppendLine(@"<Item>" + item.Serialize() + @"</Item>");
            }
            result.AppendLine(@"</Items>");

            if (ContractSettings.IsConfigured)
            {
                result.AppendLine(String.Format("<ContractSettings>{0}</ContractSettings>", ContractSettings.Serialize()));
            }

            return(result.ToString());
        }