public void FillFooter(InDesign.Document reportTemplate) { var page = ReportGenerationHelper.GetPageByNumber(reportTemplate, 1); var footerContent = $"{PageStrings.OrganizationNameText}, {string.Format(PageStrings.DateDisplayDataFormat, DateTime.Today)}"; ReportGenerationHelper.SetNewContentInTextFrame(page, 5, footerContent); }
public void FillHeader(InDesign.Document reportTemplate) { var page = ReportGenerationHelper.GetPageByNumber(reportTemplate, 1); var headerContent = PageStrings.OrganizationNameText; ReportGenerationHelper.SetNewContentInTextFrame(page, 10, headerContent); }
private void FillTotalPrice(InDesign.Page page) { var totalPrice = currentProvidedServices.Sum(ps => ps.TotalPrice); var totalPriceContent = string.Format(PageStrings.MoneyDisplayDataFormat, totalPrice); ReportGenerationHelper.SetNewContentInTextFrame(page, 4, totalPriceContent); }
private void FillProvidedServiceList(InDesign.Page page) { var reportRows = ReportGenerationHelper.ConvertCollectionToContentView(currentProvidedServices); ReportGenerationHelper.SetNewContentInTextFrame(page, 6, reportRows); }
private void FillClientInfo(InDesign.Page page) { var clientNameContent = currentClient.Person; ReportGenerationHelper.SetNewContentInTextFrame(page, 8, clientNameContent); }
private void FillServiceDate(InDesign.Page page) { var serviceDateContent = string.Format(PageStrings.DateDisplayDataFormat, currentServiceDate); ReportGenerationHelper.SetNewContentInTextFrame(page, 3, serviceDateContent); }