public void addConcertTable(SectionBuilder section)
        {
            var concertTable = section.AddTable()
                               .SetContentRowStyleBorder(borderBuilder =>
                                                         borderBuilder.SetStroke(Stroke.None));

            concertTable
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 20)
            .AddColumnPercentToTable("", 30)
            .AddColumnPercentToTable("", 20)
            .AddColumnPercentToTable("", 30);

            var row1Builder = concertTable.AddRow();

            AddLogoImage(row1Builder.AddCell("", 0, 2));
            AddConcertData(row1Builder.AddCell("", 3, 0)
                           .SetPadding(32, 0, 0, 0));

            var row2Builder = concertTable.AddRow();

            row2Builder.AddCell();
            No(row2Builder.AddCell("").SetFont(FNT10)
               .SetPadding(32, 0, 0, 0));
            FillTicketData(row2Builder.AddCell());
            FillPersonalInfo(row2Builder.AddCell());
        }
        public void addInfoTable(SectionBuilder section)
        {
            var infoTable = section.AddTable()
                            .SetContentRowStyleBorder(borderBuilder =>
                                                      borderBuilder.SetStroke(Stroke.None));

            infoTable
            .SetMarginTop(9f)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 25)
            .AddColumnPercentToTable("", 25);

            var row3Builder = infoTable.AddRow();

            FillRuleA(start: 0, end: 10, row3Builder.AddCell("").SetFont(FNT10));
            FillRuleP(row3Builder.AddCell("", 2, 0).SetFont(FNT10));

            var row4Builder = infoTable.AddRow();

            FillBandlist(row4Builder.AddCell("").SetFont(FNT12));
            row4Builder.AddCell("")
            .AddImage(Path.Combine("images", "CT_Location.png")).SetHeight(400)
            .SetMarginTop(9);
            AddContactInfo(row4Builder.AddCell("").SetFont(FNT12));
        }
 private void BuildRouteInfo(SectionBuilder sectionBuilder)
 {
     sectionBuilder.AddParagraph("Route")
     .SetFont(FNT11_B).SetMarginTop(22);
     sectionBuilder.AddLine(PageWidth, 2f, Stroke.Solid);
     FillRouteInfoTable(sectionBuilder.AddTable());
 }
        private void AddWhatsNext(SectionBuilder sectionBuilder)
        {
            var paragraphBuilder = sectionBuilder.AddParagraph("What's next?");

            paragraphBuilder.SetMarginTop(42).SetFont(FNT11B);
            sectionBuilder.AddLine(PageWidth, 2, Stroke.Solid);
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            int halfSize    = WhatsNextData.Count - WhatsNextData.Count / 2;
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder.SetPadding(0, 6, 4, 0).SetFont(FNT8);
            FillWhatNextHalf(0, halfSize, cellBuilder);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.SetPadding(4, 6, 0, 0).SetFont(FNT8);
            FillWhatNextHalf(halfSize, WhatsNextData.Count, cellBuilder);
            paragraphBuilder =
                sectionBuilder.AddParagraph("Have a good flight!");
            paragraphBuilder
            .SetAlignment(HorizontalAlignment.Center)
            .SetMarginTop(20)
            .SetMarginBottom(30)
            .SetFont(FNT17);
            sectionBuilder
            .AddLine(PageWidth, 0.5f, Stroke.Dashed).SetMarginBottom(24);
        }
        private void BuildHead(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetContentRowStyleFont(FNT9)
            .SetBorder(Stroke.None)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 33)
            .AddColumnPercentToTable("", 33)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercent("", 17);
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder.SetPadding(0, 0, 4, 0);
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder
            .AddInlineImage(Path.Combine(ps.ImageDir, "MB_Logo_2x.png"));
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.SetPadding(4, 0, 4, 0);
            paragraphBuilder = cellBuilder.AddParagraph();
            paragraphBuilder
            .AddInlineImage(Path.Combine(ps.ImageDir, "Clinicare_2x.png"))
            .SetAlignment(HorizontalAlignment.Center);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.SetColSpan(2).SetPadding(4, 0, 0, 0);
            paragraphBuilder = cellBuilder.AddParagraph();
            paragraphBuilder
            .AddInlineImage(Path.Combine(ps.ImageDir, "Healthcare_2x.png"))
            .SetAlignment(HorizontalAlignment.Right);
            rowBuilder  = tableBuilder.AddRow();
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell(ps.CenterName + "\n" +
                                ps.CenterAddress);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell("To Contact Us Call:  " +
                                ps.CenterPhone +
                                "\n\nPhone representatives are available:\n8am to 8pm Monday - Thursday\nand 8am to 4:30pm Friday");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell("Guarantor Number:\nGuarantor Name:\nStatement Date:\nDue Date:");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell(
                ps.GuarantorNumber + "\n" +
                ps.GuarantorName + "\n" +
                ps.StatementDate + "\nUpon Receipt")
            .SetHorizontalAlignment(HorizontalAlignment.Right);
        }
Пример #6
0
 public static TableBuilder CreateTable(SectionBuilder sectionBuilder,
                                        int columnNumber, float topMargin = 13)
 {
     return(sectionBuilder
            .AddTable(Enumerable.Repeat(XUnit.FromPercent(100f / columnNumber),
                                        columnNumber).ToArray())
            .SetMarginTop(topMargin)
            .SetBorder(Stroke.None)
            .SetContentRowBorderWidth(0, 0, 0, 0));
 }
Пример #7
0
        private static SectionBuilder AddReceiptTable(this SectionBuilder s)
        {
            s.AddTable()
            .SetHeaderRowStyleBorder(builder => builder.SetStroke(Stroke.None).SetWidth(.0f))
            .SetHeaderRowStyleFont(HiddenFont)
            .SetContentRowStyleBorder(builder => builder.SetStroke(Stroke.None).SetWidth(.0f))
            .SetContentRowStyleFont(ItalicFont)
            .SetDataSource(ReceiptData);

            return(s);
        }
        private void AddClientTable(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50).AddColumnPercent("", 50);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder.AddCell().AddTable(FillAboutYouTable);
            rowBuilder.AddCell().AddTable(FillInsuranceTable);
        }
        private void BuildPayment(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder
            .AddCellToRow(BuildCheck)
            .AddCellToRow(BuilCard);
        }
        private void BuildFareAndHelp(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetMarginTop(30)
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 51)
            .AddColumnPercent("", 49);
            var tableRowBuilder = tableBuilder.AddRow();

            tableRowBuilder.AddCellToRow(BuildFare);
            tableRowBuilder.AddCellToRow(BuildHelp);
        }
Пример #11
0
        private void AddYourFeedBack(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .SetContentRowBorderWidth(0, 0, 0, 0)
            .ApplyStyle(
                StyleBuilder.New()
                .SetHorizontalAlignment(HorizontalAlignment.Left)
                )
            .SetMarginTop(10)
            .SetWidth(XUnit.FromPercent(54))
            .AddColumnPercentToTable("", 7)
            .AddColumnPercent("", 93);
            var tableRowBuilder = tableBuilder.AddRow();

            tableRowBuilder.AddCell(CHECK_BOX).SetFont(FNTZ8);
            var cellBuilder      = tableRowBuilder.AddCell();
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder
            .SetUrlStyle(
                StyleBuilder.New().SetFont(FNT7_5URL)
                )
            .AddTextToParagraph(
                "Your feedback matters\n", FNT7_9B
                )
            .AddTextToParagraph(
                "Share your compliments and complaints so we can better serve you.\n" +
                "Call us at " +
                statementInfo.FeedBackPhone +
                "(" + statementInfo.Phone +
                ") or visit ",
                FNT7_5
                )
            .AddUrlToParagraph(
                "https://" +
                statementInfo.Online +
                "/feedback",
                statementInfo.Online + "/feedback"
                )
            .AddTextToParagraph(
                ".",
                FNT7_5
                );
        }
Пример #12
0
        public void AddTradeFooter(SectionBuilder section)
        {
            var footerTable = section.AddTable()
                              .SetContentRowStyleBorder(borderBuilder =>
                                                        borderBuilder.SetStroke(Stroke.None));

            footerTable
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 15)
            .AddColumnPercentToTable("", 85);

            var row23Builder = footerTable.AddRow();

            row23Builder.AddCell();
            Info(row23Builder.AddCell("").SetFont(FNT9)
                 .SetPadding(0, 18, 0, 0));
        }
        private void BuildBeforeCut(SectionBuilder sectionBuilder)
        {
            var outerTableBuilder = sectionBuilder.AddTable();

            outerTableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            var rowBuilder  = outerTableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder
            .SetFont(FNT9).SetPadding(0, 8, 0, 0)
            .AddParagraphToCell("MESSAGES:\nWe have filed the medical claims with your insurance.They have\nindicated the balance is your responsibility. To pay your DIN online,\nplease visit www.ourwebsite.com.\n\nIf you have questions regarding your bill, or for payment arrangements, please call 123 - 456 - 78 or send an email inquiry to [email protected]");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.AddTable(FillBottomBalanceTable);
        }
Пример #14
0
        private void AddServiceFeeSummaryTable(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .ApplyStyle(
                StyleBuilder.New()
                .SetFont(FNT7_2)
                .SetHorizontalAlignment(HorizontalAlignment.Right)
                )
            .SetMarginTop(20)
            .SetWidth(XUnit.FromPercent(92))
            .AddColumnPercentToTable("", 51)
            .AddColumnPercentToTable("", 30)
            .AddColumnPercentToTable("", 16)
            .AddColumnPercent("", 3);
            AddTableRows(tableBuilder, GetServiceFeeSummaryRowData(), 4, 0, 2);
        }
Пример #15
0
        public void AddTradeHeader(SectionBuilder section)
        {
            var headerTable = section.AddTable()
                              .SetContentRowStyleBorder(borderBuilder =>
                                                        borderBuilder.SetStroke(Stroke.None));

            headerTable
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 50);

            var row1Builder = headerTable.AddRow();

            row1Builder.AddCell("Financial Firm ABC®", 2, 0).SetFont(FNT24B);

            var row2Builder = headerTable.AddRow();

            row2Builder.AddCell(FirmData.DocumentDate, 2, 0).SetFont(FNT9)
            .SetHorizontalAlignment(HorizontalAlignment.Right);

            var row3Builder = headerTable.AddRow();

            Account(row3Builder.AddCell("", 2, 0).SetFont(FNT9)
                    .SetHorizontalAlignment(HorizontalAlignment.Right)
                    .SetPadding(0, 0, 0, 10)
                    .SetBorderStroke(Stroke.None));

            var row4Builder = headerTable.AddRow();

            Customer(row4Builder.AddCell("").SetFont(FNT9));
            Firm(row4Builder.AddCell("").SetFont(FNT9)
                 .SetHorizontalAlignment(HorizontalAlignment.Right));

            var row5Builder = headerTable.AddRow();

            Account(row5Builder.AddCell("", 2, 0).SetFont(FNT9).SetBold(true)
                    .SetHorizontalAlignment(HorizontalAlignment.Left)
                    .SetBorderStroke(Stroke.None));

            var row6Builder = headerTable.AddRow();

            row6Builder.AddCell("We are pleased to confirm the below transaction:", 2, 0).SetFont(FNT9);
        }
Пример #16
0
 internal void Build(SectionBuilder sectionBuilder)
 {
     sectionBuilder
     .AddTable()
     .SetContentRowStyleFont(FNT20B)
     .SetBorder(Stroke.None)
     .SetWidth(XUnit.FromPercent(100))
     .AddColumnPercentToTable("", 50)
     .AddColumnPercentToTable("", 50)
     .AddRow()
     .AddCell()
     .SetPadding(2, 4, 0, 0)
     .AddParagraph("Travel Insurance")
     .SetLineSpacing(0.8f)
     .AddText("\nClaim Form")
     .SetFontColor(Color.Gray)
     .ToRow()
     .AddCell()
     .AddImage(LogoPath)
     .SetAlignment(HorizontalAlignment.Right)
     .SetScale(ScalingMode.UserDefined)
     .SetWidth(250)
     .ToTable()
     .AddRow()
     .AddCell()
     .SetColSpan(2)
     .SetPadding(0, 13, 0, 8)
     .SetFont(FNT7)
     .AddParagraphToCell("PLEASE COMPLETE ALL SECTIONS TO FACILITATE " +
                         "THE PROCESSING OF YOUR APPLICATION ")
     .ToTable()
     .AddRow()
     .AddCell()
     .SetColSpan(2)
     .SetBorder(Stroke.Solid, Color.Black, 0.5f)
     .SetPadding(8)
     .SetFont(FNT8)
     //.AddParagraph()
     //    .AddTextToParagraph(HEADER_BOX_TEXT);
     .AddParagraphToCell(HEADER_BOX_TEXT);
 }
Пример #17
0
        private void AddTransactionFeeSummaryTable(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .ApplyStyle(
                StyleBuilder.New()
                .SetFont(FNT7_2)
                .SetHorizontalAlignment(HorizontalAlignment.Right)
                )
            .SetMarginTop(6)
            .SetMarginBottom(60)
            .SetWidth(XUnit.FromPercent(92))
            .AddColumnPercentToTable("", 37)
            .AddColumnPercentToTable("", 10)
            .AddColumnPercentToTable("", 10)
            .AddColumnPercentToTable("", 11)
            .AddColumnPercentToTable("", 13)
            .AddColumnPercent("", 18);
            AddTableRows(tableBuilder, GetTransactionFeeSummaryRowData(), 6, 0);
        }
Пример #18
0
        private void AddStatementsTable(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .ApplyStyle(
                StyleBuilder.New()
                .SetFont(FNT7_2)
                )
            .SetMarginBottom(4)
            .AddColumnPercentToTable("", 4)
            .AddColumnPercentToTable("", 11)
            .AddColumnPercentToTable("", 48)
            .AddColumnPercentToTable("", 13)
            .AddColumnPercentToTable("", 13)
            .AddColumnPercent("", 11);
            AddStatementsHead(tableBuilder);
            Statement total = new Statement();

            AddStatements(tableBuilder, total);
            AddStatementsTotal(tableBuilder, total);
        }
        private void BuildPostNet(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            var rowBuilder       = tableBuilder.AddRow();
            var cellBuilder      = rowBuilder.AddCell().SetFont(FNT12);
            var paragraphBuilder = cellBuilder.AddParagraph((ps.GuarantorName + "\n" +
                                                             ps.CenterAddress).ToUpper());

            paragraphBuilder.SetMarginTop(10).SetMarginBottom(10);
            cellBuilder.AddImageToCell(Path.Combine(ps.ImageDir,
                                                    "postnet1_2x.png"), new XSize(124, 11));
            cellBuilder      = rowBuilder.AddCell().SetFont(FNT12);
            paragraphBuilder = cellBuilder.AddParagraph((ps.CenterName + "\n" +
                                                         ps.CenterAddress).ToUpper());
            paragraphBuilder.SetMarginTop(10).SetMarginBottom(10);
            cellBuilder.AddImageToCell(Path.Combine(ps.ImageDir,
                                                    "postnet2_2x.png"), new XSize(124, 11));
        }
Пример #20
0
        private void AddOptions(SectionBuilder sectionBuilder, float bottomMargin)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .SetWidth(PageWidth)
            .AddColumnPercentToTable("", 63).AddColumnPercentToTable("", 37)
            .SetMarginBottom(bottomMargin);
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder
            .ApplyStyle(StyleBuilder.New()
                        .SetBorderTop(2f, Stroke.Solid, Color.Black));
            AddYourBusiness(cellBuilder);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .ApplyStyle(StyleBuilder.New()
                        .SetBorderLeft(10f, Stroke.Solid, Color.White)
                        .SetBorderTop(2f, Stroke.Solid, Color.Black))
            .SetPadding(3.5f, 0, 0, 0);
            AddOptionsToCell(cellBuilder);
        }
        private void addCounterFoil(SectionBuilder section)
        {
            var counterFoil = section.AddTable()
                              .SetContentRowStyleBorder(borderBuilder =>
                                                        borderBuilder.SetStroke(Stroke.None));

            counterFoil
            .SetMarginTop(10f)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 16)
            .AddColumnPercentToTable("", 20)
            .AddColumnPercentToTable("", 14);

            var row5Builder = counterFoil.AddRow();

            YourTicket(row5Builder.AddCell("")
                       .SetPadding(0, 2, 0, 0));
            AddConcertData(row5Builder.AddCell("", 3, 0));

            var row6Builder = counterFoil.AddRow();

            row6Builder.AddCell()
            .AddImage(Path.Combine("images", "CT_Scheme.png")).SetHeight(100);
            FillTicketDataCounterFoil(row6Builder.AddCell());
            FillPersonalInfoCounterFoil(row6Builder.AddCell());
            row6Builder.AddCell()
            .AddQRCodeUrl("https://gehtsoftusa.com/", 4, Color.Black, Color.White, false).SetWidth(153);

            var row7Builder = counterFoil.AddRow();

            row7Builder.AddCell();
            row7Builder.AddCell();
            row7Builder.AddCell();
            row7Builder.AddCell(TicketData.Eticket).SetFont(FNT10);
        }
Пример #22
0
        private void AddTwoPanels(SectionBuilder sectionBuilder, float bottomMargin,
                                  Action <TableCellBuilder> LeftPanelAction,
                                  Action <TableCellBuilder> RightPanelAction)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .SetWidth(PageWidth)
            .AddColumnPercentToTable("", 62).AddColumnPercentToTable("", 38)
            .SetMarginBottom(bottomMargin);
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder
            .ApplyStyle(StyleBuilder.New()
                        .SetBorderRight(2f, Stroke.Solid, Color.Black));
            LeftPanelAction(cellBuilder);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetBorderStroke(Stroke.None)
            .SetPadding(8, 0, 0, 0);
            RightPanelAction(cellBuilder);
        }
        internal void Build(SectionBuilder sectionBuilder)
        {
            var styleParagraph1 = StyleBuilder.New().SetLineSpacing(1)
                                  .SetFont(FNT9B).SetFontColor(blueGreen);

            var styleParagraph2 = StyleBuilder.New().SetLineSpacing(0.5f)
                                  .SetFont(FNT9B).SetFontColor(blueGreen);

            sectionBuilder
            .AddTable()
            .SetBorderStroke(Stroke.None)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 50)
            .AddRow()
            .AddCell()
            .SetPadding(0, 0, 0, 1)
            .AddImageToCell(logoPath, 210, 37, ScalingMode.UserDefined)
            .ToRow()
            .AddCell()
            .SetPadding(5, 8, 0, 0)
            .AddParagraph(testInfoData.Report)
            .SetFont(FNT10B)
            .ToSection()
            .AddLineToSection(PageWidth, 2)
            .AddTable()
            .SetBorderStroke(Stroke.None)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 50)
            .AddRow()
            .AddCell()
            .SetFont(FNT9B)
            .SetFontColor(blueGreen)
            .AddParagraph("Specimen ID:")
            .SetMarginTop(2)
            .AddTabSymbol()
            .AddTabulationInPercent(25)
            .AddText(specimenInfoData.SpecimenID)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Control ID:")
            .SetMarginTop(2)
            .AddTabSymbol()
            .AddTabulationInPercent(25)
            .AddText(specimenInfoData.ControlID)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Acct #:")
            .SetMarginTop(0.5f)
            .AddTabSymbol()
            .AddTabulationInPercent(25)
            .AddText(specimenInfoData.Acct)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Phone:")
            .SetMarginTop(0.5f)
            .AddTabSymbol()
            .AddTabulationInPercent(25)
            .AddText(specimenInfoData.Phone)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Rte:")
            .SetMarginTop(0.5f)
            .AddTabSymbol()
            .AddTabulationInPercent(25)
            .AddText(specimenInfoData.Rte)
            .SetFont(FNT9)
            .ToRow()
            .AddCell()
            .SetPadding(5, 2, 0, 0)
            .SetFont(FNT9)
            .AddParagraphToCell(testInfoData.Master)
            .AddParagraphToCell(testInfoData.Account)
            .AddParagraphToCell(testInfoData.Address1)
            .AddParagraphToCell(testInfoData.Address2)
            .AddImage(codePath)
            .SetMarginTop(12)
            .ToSection()
            .AddTable()
            .SetMarginTop(15)
            .SetBorderWidth(0.5f, 0, 0, 0)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 31)
            .AddColumnPercentToTable("", 32)
            .AddColumnPercentToTable("", 37)
            .AddRow()
            .SetFont(FNT10B)
            .AddCell()
            .SetPadding(12, 0, 0, 0)
            .AddParagraph("Patient Details")
            .SetLineSpacing(1)
            .ToCell()
            .AddParagraph("DOB:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(patientDetailsData.DOB)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Age(y/m/d)")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(patientDetailsData.Age)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Gender:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(patientDetailsData.Gender)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Patient ID:")
            .ApplyStyle(styleParagraph2)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(patientDetailsData.PatientID)
            .SetFont(FNT9)
            .ToRow()
            .SetFont(FNT10B)
            .AddCell()
            .SetPadding(12, 0, 0, 0)
            .AddParagraph("Specimen Details")
            .SetLineSpacing(1)
            .ToCell()
            .AddParagraph("Date collected:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(specimenDetailsData.Collected)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Date received:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(specimenDetailsData.Received)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Date entered:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(specimenDetailsData.Entered)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Date reported:")
            .ApplyStyle(styleParagraph2)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(specimenDetailsData.Reported)
            .SetFont(FNT9)
            .ToRow()
            .SetFont(FNT10B)
            .AddCell()
            .SetPadding(12, 0, 0, 0)
            .AddParagraph("Physician Details")
            .SetLineSpacing(1)
            .ToCell()
            .AddParagraph("Ordering:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(physicianDetailsData.Ordering)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("Referring:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(physicianDetailsData.Referring)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("ID:")
            .ApplyStyle(styleParagraph1)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(physicianDetailsData.ID)
            .SetFont(FNT9)
            .ToCell()
            .AddParagraph("NPI:")
            .ApplyStyle(styleParagraph2)
            .AddTabSymbol()
            .AddTabulationInPercent(44)
            .AddText(physicianDetailsData.NPI)
            .SetFont(FNT9)
            .ToSection()
            .AddLine(PageWidth, 1, Stroke.Solid, blueGreen)
            .SetMarginTop(5);
        }
Пример #24
0
        public void AddTradeBody(SectionBuilder section)
        {
            var bodyTable = section.AddTable()
                            .SetContentRowStyleBorder(borderBuilder =>
                                                      borderBuilder.SetStroke(Stroke.None));

            bodyTable
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 15)
            .AddColumnPercentToTable("", 45)
            .AddColumnPercentToTable("", 3)
            .AddColumnPercentToTable("", 37);

            var row7Builder = bodyTable.AddRow();

            row7Builder.AddCell()
            .AddImage(Path.Combine("images", "TC_Image.png"), 100, 100);
            BodyInfo(row7Builder.AddCell("", 3, 0));

            var row8Builder = bodyTable.AddRow();

            row8Builder.AddCell("Trade").SetFont(FNT9)
            .SetHorizontalAlignment(HorizontalAlignment.Center);
            row8Builder.AddCell("", 3, 0)
            .AddParagraph("Order number: ").SetFont(FNT9).AddText(TradeData.Order).SetFont(FNT9);

            var row9Builder = bodyTable.AddRow();

            row9Builder.AddCell();
            row9Builder.AddCell("Trade Calculation", 3, 0).SetFont(FNT11B)
            .SetBorderWidth(2)
            .SetBorderStroke(strokeLeft: Stroke.None, strokeTop: Stroke.None,
                             strokeRight: Stroke.None, strokeBottom: Stroke.Solid);

            var row10Builder = bodyTable.AddRow();

            row10Builder.AddCell();
            FillLeftBlock(a: "Principal Amount*:", b: TradeData.PrincipalAmount,
                          row10Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row10Builder.AddCell();
            FillRightBlock(a: "Trade Date:", b: TradeData.TradeDate,
                           row10Builder.AddCell("").SetPadding(0, 4, 0, 4));

            var row11Builder = bodyTable.AddRow();

            row11Builder.AddCell();
            FillLeftBlock(a: "Accrued Interest:", b: TradeData.AccruedInterest,
                          row11Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row11Builder.AddCell();
            FillRightBlock(a: "Trade Time", b: TradeData.TradeTime,
                           row11Builder.AddCell("").SetPadding(0, 4, 0, 4));

            var row12Builder = bodyTable.AddRow();

            row12Builder.AddCell();
            FillLeftBlock(a: "Transaction Fee:", b: TradeData.TransactionFee,
                          row12Builder.AddCell("").SetPadding(0, 4, 0, 4).SetBorderWidth(2));
            row12Builder.AddCell();
            FillRightBlock(a: "Settlement Date:", b: TradeData.SettlementDate,
                           row12Builder.AddCell("").SetPadding(0, 4, 0, 4));

            var row13Builder = bodyTable.AddRow();

            row13Builder.AddCell();
            FillLeftBlock(a: "Total:", b: TradeData.Total,
                          row13Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row13Builder.AddCell();
            row13Builder.AddCell();

            var row14Builder = bodyTable.AddRow();

            row14Builder.AddCell();
            FillLeftBlock(a: "Bank Qualified:", b: TradeData.BankQualified,
                          row14Builder.AddCell("").SetPadding(0, 4, 0, 4).SetBorderWidth(2));
            row14Builder.AddCell();
            row14Builder.AddCell();

            var row15Builder = bodyTable.AddRow();

            row15Builder.AddCell();
            FillLeftBlock(a: "State:", b: TradeData.State,
                          row15Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row15Builder.AddCell();
            row15Builder.AddCell();

            var row16Builder = bodyTable.AddRow();

            row16Builder.AddCell();
            FillLeftBlock(a: "Bank Qualified:", b: TradeData.BankQualified,
                          row16Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row16Builder.AddCell();
            row16Builder.AddCell();

            var row17Builder = bodyTable.AddRow();

            row17Builder.AddCell();
            FillLeftBlock(a: "Dated to Date:", b: TradeData.DatedDate,
                          row17Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row17Builder.AddCell();
            row17Builder.AddCell();

            var row18Builder = bodyTable.AddRow();

            row18Builder.AddCell();
            FillLeftBlock(a: "Yield to Maturity:", b: TradeData.YieldtoMaturity,
                          row18Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row18Builder.AddCell();
            row18Builder.AddCell();

            var row19Builder = bodyTable.AddRow();

            row19Builder.AddCell();
            FillLeftBlock(a: "Yield to Call:", b: TradeData.YieldtoCall,
                          row19Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row19Builder.AddCell();
            row19Builder.AddCell();

            var row20Builder = bodyTable.AddRow();

            row20Builder.AddCell();
            Exempt(row20Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row20Builder.AddCell();
            row20Builder.AddCell();

            var row21Builder = bodyTable.AddRow();

            row21Builder.AddCell();
            FillLeftBlock(a: "Capacity:", b: TradeData.Capacity,
                          row21Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row21Builder.AddCell();
            row21Builder.AddCell();

            var row22Builder = bodyTable.AddRow();

            row22Builder.AddCell();
            FillLeftBlock(a: "Bond Form:", b: TradeData.BondForm,
                          row22Builder.AddCell("").SetPadding(0, 4, 0, 4));
            row22Builder.AddCell();
            row22Builder.AddCell();
        }
        internal void Build(SectionBuilder sectionBuilder)
        {
            var tableBuilder = CreateTable(sectionBuilder, 2);

            AddTitle(tableBuilder, "Section F - Others", 2);

            tableBuilder
            .AddRow()
            .AddCell()
            .SetColSpan(2)
            .SetPadding(0, 6, 0, 0)
            .AddParagraphToCell("In respect of any other claim, which does not fall " +
                                "within the sections stated above, please provide details of the " +
                                "claim you are submitting.  If the space below is insufficient for " +
                                "such details,");

            CreateRow(tableBuilder, new Dictionary <string, int>()
            {
                { "", 2 }
            }, 10);

            tableBuilder
            .AddRow()
            .AddCell()
            .SetColSpan(2)
            .SetPadding(0, 4, 0, 25)
            .AddParagraph(SECTIONF_LONG_TEXT)
            .SetLineSpacing(0.9f);

            sectionBuilder
            .AddTable()
            .SetBorder(Stroke.None)
            .AddColumnToTable("", 178)
            .AddColumnToTable("", 104)
            .AddColumnToTable("", 178)
            .AddRow()
            .AddCell()
            .SetBorderWidth(0.58f)
            .SetBorderStroke(Stroke.None, Stroke.Solid, Stroke.None, Stroke.None)
            .SetPadding(0, 2, 0, 16)
            .AddParagraphToCell("Date")
            .ToRow()
            .AddCell()
            .AddParagraphToCell("")
            .ToRow()
            .AddCell()
            .SetBorderWidth(0.58f)
            .SetBorderStroke(Stroke.None, Stroke.Solid, Stroke.None, Stroke.None)
            .SetPadding(0, 2, 0, 16)
            .AddParagraphToCell("Signed here (Claimant)")
            .ToTable()
            .AddRow()
            .AddCell()
            .SetBorderWidth(0.58f)
            .SetBorderStroke(Stroke.None, Stroke.Solid, Stroke.None, Stroke.None)
            .SetPadding(0, 2, 0, 16)
            .AddParagraphToCell("Date")
            .ToRow()
            .AddCell()
            .AddParagraphToCell("")
            .ToRow()
            .AddCell()
            .SetBorderWidth(0.58f)
            .SetBorderStroke(Stroke.None, Stroke.Solid, Stroke.None, Stroke.None)
            .SetPadding(0, 2, 0, 16)
            .AddParagraphToCell("Signed here (Policyholder)")
            .ToSection()
            .AddTable()
            .SetBorder(Stroke.Solid)
            .AddColumnToTable("", 178)
            .AddColumnToTable("", 187)
            .AddColumnToTable("", 187)
            .AddRow()
            .AddCell()
            .SetPadding(1, 10.5f, 0, 9.5f)
            .SetBorderWidth(0, 2, 0.5f, 0)
            .AddParagraphToCell("Particulars of Agent Name")
            .ToRow()
            .AddCell()
            .SetPadding(6.5f, 10.5f, 0, 9.5f)
            .SetBorderWidth(0, 2, 0.5f, 0)
            .AddParagraphToCell("Mobile")
            .ToRow()
            .AddCell()
            .SetPadding(4.5f, 10.5f, 0, 9.5f)
            .SetBorderWidth(0, 2, 0, 0)
            .AddParagraphToCell("Email Address");
        }
        public static DocumentBuilder AddAfterschoolAgreement(this DocumentBuilder builder)
        {
            var            imageDir    = Path.Combine(Directory.GetCurrentDirectory(), "Content", "Images", "AfterschoolAgreement");
            var            checkboxUrl = Path.Combine(imageDir, "Checkbox.png");
            var            logoUrl     = Path.Combine(imageDir, "SchoolLogo.jpg");
            SectionBuilder section     = builder.AddSection()
                                         .SetSize(PaperSize.Letter)
                                         .SetOrientation(PageOrientation.Portrait);

            // HEADER BLOCK
            section.AddTable()
            .SetContentRowStyleBorder(borderBuilder => borderBuilder.SetStroke(Stroke.None))
            .AddColumnToTable("", 52)
            .AddColumnToTable("", XUnit.FromPercent(40))
            .AddColumnToTable("", XUnit.FromPercent(60))
            .AddRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Left)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddImageToCell(logoUrl, 65, 45, ScalingMode.UserDefined)
            .ToRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .SetFontSize(12)
            .AddParagraph("AFTERSCHOOL")
            .SetBold()
            .ToCell()
            .AddParagraphToCell("BANK DRAFT FORM")
            .ToRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddParagraphToCell("REGISTRATION PACKET  PG. 4 of 4")
            .SetBackColor(Color.Black)
            .SetFont(Fonts.Courier(12).SetColor(Color.White).SetBold())
            .ToTable();

            // TITLE BLOCK
            section.AddParagraph("BEST SCHOOL of Twin Peaks ")
            .SetMarginTop(5)
            .SetBold()
            .SetFontColor(Color.Gray)
            .SetFontSize(12)
            .AddText("Afterschool ")
            .SetFontColor(Color.Black)
            .ToParagraph()
            .AddTextToParagraph("Agreement ACH/CC Automatic Payment Option");

            // STEP 1 BLOCK
            section.AddParagraph("STEP #1")
            .SetBackColor(Color.FromRgba(0.3f, 0.3f, 0.3f))
            .SetFont(Fonts.Courier(16).SetColor(Color.White).SetBold());
            section.AddParagraph()
            .SetMarginLeft(0)
            .SetBorderWidth(0)
            .SetFontSize(4)
            .AddTabSymbol()
            .AddTabulationInPercent(100, TabulationType.Right, TabulationLeading.BottomLine);
            section.AddParagraph()
            .SetFontSize(6)
            .AddTextToParagraph("CHILD'S FIRST NAME")
            .AddTabSymbol()
            .AddTextToParagraph("MIDDLE INITIAL")
            .AddTabSymbol()
            .AddTextToParagraph("LAST NAME")
            .AddTabulationInPercent(35, TabulationType.Left)
            .AddTabulationInPercent(65, TabulationType.Left);
            section.AddParagraph()
            .SetMarginLeft(0)
            .SetMarginTop(15)
            .SetBorderWidth(0)
            .SetFontSize(6)
            .AddTabSymbol()
            .AddTabulationInPercent(100, TabulationType.Right, TabulationLeading.BottomLine);
            section.AddParagraph()
            .SetFontSize(6)
            .AddTextToParagraph("PHONE NUMBER (DAY)")
            .AddTabSymbol()
            .AddTextToParagraph("PHONE NUMBER (EVENING)")
            .AddTabulationInPercent(65, TabulationType.Left);
            section.AddParagraph()
            .SetMarginLeft(0)
            .SetMarginTop(15)
            .SetBorderWidth(0)
            .SetFontSize(6)
            .AddTabSymbol()
            .AddTabulationInPercent(100, TabulationType.Right, TabulationLeading.BottomLine);
            section.AddParagraph()
            .SetFontSize(6)
            .AddTextToParagraph("CHILD'S SCHOOL")
            .AddTabSymbol()
            .AddTextToParagraph("CHILD'S ADDRESS")
            .AddTabSymbol()
            .AddTextToParagraph("CITY")
            .AddTabSymbol()
            .AddTextToParagraph("STATE")
            .AddTabSymbol()
            .AddTextToParagraph("ZIP")
            .AddTabulationInPercent(35, TabulationType.Left)
            .AddTabulationInPercent(65, TabulationType.Left)
            .AddTabulationInPercent(77, TabulationType.Left)
            .AddTabulationInPercent(90, TabulationType.Left);
            section.AddParagraph()
            .SetFontSize(6)
            .SetMarginLeft(0)
            .SetMarginTop(15)
            .SetMarginBottom(3)
            .SetBorderWidth(0)
            .AddTabSymbol()
            .AddTabulationInPercent(100, TabulationType.Right, TabulationLeading.BottomLine);

            // STEP 2 AND 3 BLOCKS
            TableBuilder step2And3Table = section.AddTable()
                                          .SetContentRowStyleBorder(borderBuilder => borderBuilder.SetStroke(Stroke.None))
                                          .AddColumnToTable("", XUnit.FromPercent(49))
                                          .AddColumnToTable("", XUnit.FromPercent(2))
                                          .AddColumnToTable("", XUnit.FromPercent(49));

            step2And3Table
            .AddRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Left)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddParagraphToCell("STEP #2")
            .SetPadding(2, 0, 0, 0)
            .SetBackColor(Color.FromRgba(0.3f, 0.3f, 0.3f))
            .SetFont(Fonts.Courier(16).SetColor(Color.White).SetBold())
            .ToRow()
            .AddCellToRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Left)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddParagraphToCell("STEP #3")
            .SetPadding(2, 0, 0, 0)
            .SetBackColor(Color.FromRgba(0.3f, 0.3f, 0.3f))
            .SetFont(Fonts.Courier(16).SetColor(Color.White).SetBold());
            step2And3Table
            .AddRow()
            .AddCell()
            .SetBorder(Stroke.Solid, Color.Black, StyleSheet.DefaultBorderWidth)
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddParagraphToCell("Begin Draft Date:")
            .AddParagraphToCell("_______ / _______ / _______")
            .ToRow()
            .AddCellToRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddTable()
            .SetHeaderRowStyleBackColor(Color.Gray)
            .AddColumnToTable("", XUnit.FromPercent(70))
            .AddColumnToTable("", XUnit.FromPercent(30))
            .AddRow()
            .AddCell("DRAFT DATES")
            .SetBackColor(Color.Gray)
            .SetFontColor(Color.White)
            .ToRow()
            .AddCell("AMOUNT")
            .SetBackColor(Color.Gray)
            .SetFontColor(Color.White)
            .ToTable()
            .AddRow()
            .SetVerticalAlignment(VerticalAlignment.Bottom)
            .AddCell("Monthly on the 1st")
            .SetFontSize(10)
            .ToRow()
            .AddCell("$")
            .SetBold()
            .ToTable()
            .AddRow()
            .SetVerticalAlignment(VerticalAlignment.Bottom)
            .AddCell("Semi-Monthly on the 1st & 15th")
            .SetFontSize(10)
            .ToRow()
            .AddCell("$")
            .SetBold()
            .ToTable()
            .SetMarginBottom(5);

            // STEP 4 BLOCK
            section.AddParagraph("STEP #4")
            .SetBackColor(Color.FromRgba(0.3f, 0.3f, 0.3f))
            .SetFont(Fonts.Courier(16).SetColor(Color.White).SetBold());
            section.AddTable()
            .SetMarginTop(2)
            .SetContentRowStyleBorder(borderBuilder => borderBuilder.SetStroke(Stroke.None))
            .AddColumnToTable("", XUnit.FromPercent(49))
            .AddColumnToTable("", XUnit.FromPercent(2))
            .AddColumnToTable("", XUnit.FromPercent(49))
            .AddRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Left)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .SetPadding(2, 0, 0, 0)
            .AddParagraph("")
            .AddInlineImageToParagraph(checkboxUrl, 11, 11, ScalingMode.UserDefined)
            .AddTextToParagraph(" OPTION 1: CREDIT/DEBIT CARD")
            .ToCell()
            .SetBackColor(Color.Gray)
            .SetFont(Fonts.Courier(14).SetColor(Color.White).SetBold())
            .ToRow()
            .AddCellToRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Left)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .SetPadding(2, 0, 0, 0)
            .AddParagraph("")
            .AddInlineImageToParagraph(checkboxUrl, 11, 11, ScalingMode.UserDefined)
            .AddTextToParagraph(" OPTION 2: BANK DRAFT")
            .ToCell()
            .SetBackColor(Color.Gray)
            .SetFont(Fonts.Courier(14).SetColor(Color.White).SetBold())
            .ToTable()
            .AddRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .SetFont(Fonts.Courier(6))
            .AddTable()
            .SetContentRowStyleFont(Fonts.Courier(6))
            .SetDefaultAltRowStyle()
            .AddColumnToTable("", XUnit.FromPercent(65))
            .AddColumnToTable("", XUnit.FromPercent(35))
            .AddRow()
            .AddCell()
            .SetColSpan(2)
            .SetFontSize(8)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddParagraph("Check one:  ")
            .AddInlineImageToParagraph(checkboxUrl, 8, 8, ScalingMode.UserDefined)
            .AddTextToParagraph(" Visa  ")
            .AddInlineImageToParagraph(checkboxUrl, 8, 8, ScalingMode.UserDefined)
            .AddTextToParagraph(" Mastercard  ")
            .AddInlineImageToParagraph(checkboxUrl, 8, 8, ScalingMode.UserDefined)
            .AddTextToParagraph(" Discover  ")
            .AddInlineImageToParagraph(checkboxUrl, 8, 8, ScalingMode.UserDefined)
            .AddTextToParagraph(" AmEx")
            .ToTable()
            .AddRow()
            .AddCell("CREDIT/DEBIT CARD #")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToRow()
            .AddCell("EXP. DATE")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToTable()
            .AddRow()
            .AddCell("CARDHOLDER NAME")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToRow()
            .AddCell("CVV")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToTable()
            .ToCell()
            .ToRow()
            .AddCellToRow()
            .AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .SetFontSize(6)
            .AddTable()
            .SetContentRowStyleFont(Fonts.Courier(6))
            .SetDefaultAltRowStyle()
            .AddColumnToTable("", XUnit.FromPercent(60))
            .AddColumnToTable("", XUnit.FromPercent(40))
            .AddRow()
            .AddCell("ACCOUNT HOLDER NAME")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToRow()
            .AddCell("BANK NAME")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToTable()
            .AddRow()
            .AddCell("ROUTING/TRANSIT #")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToRow()
            .AddCell("BANK ACCOUNT #")
            .AddParagraph("FILL HERE")
            .SetFontColor(Color.White)
            .SetFontSize(16)
            .ToTable();

            // INFORMATION BLOCK
            section.AddParagraph("AUTOMATED CLEARINGHOUSE(ACH) DRAFTS ARE REQUIRED TO HAVE A VOIDED CHECK. DEBIT CARDS ARE NOT ACCEPTED. MUST BE ACH OR CREDIT CARDS ONLY.")
            .SetMarginTop(10)
            .SetBold()
            .SetFontSize(8);
            section.AddParagraph("Only 1 Form of Draft Payment can be entered per person.")
            .SetListBulleted()
            .SetFontSize(8);
            section.AddParagraph("Children enrolled in Summer Camp may have a larger draft amount on May 15 & Aug 1.")
            .SetListBulleted()
            .SetFontSize(8);
            section.AddParagraphToSection()
            .AddParagraph("I understand that this transfer will occur monthly on the 1st. First draft begins Aug. 1.")
            .SetListNumbered(NumerationStyle.Arabic, 0, 0)
            .SetFontSize(8);
            section.AddParagraph("I understand that should I choose to change a Bank Account I must provide a school with at least a 2 week notice.")
            .SetListNumbered(NumerationStyle.Arabic, 0, 0)
            .SetFontSize(8);
            section.AddParagraph("I understand that the information above will be used to transfer payment from my account.")
            .SetListNumbered(NumerationStyle.Arabic, 0, 0)
            .SetFontSize(8);
            section.AddParagraph("I understand that if my payment is returned for non-sufficient funds I will be charged a $30 fee.")
            .SetListNumbered(NumerationStyle.Arabic, 0, 0)
            .SetFontSize(8);
            section.AddParagraph("BEST SCHOOL only accepts Visa, MasterCard, Discover, and American Express.")
            .SetListNumbered(NumerationStyle.Arabic, 0, 0)
            .SetFontSize(8);
            section.AddParagraph("I understand that after three returned items, I will be ineligible to use the automatic payment option.")
            .SetListNumbered(NumerationStyle.Arabic, 0, 0)
            .SetFontSize(8);
            section.AddParagraph("ACCOUNT HOLDER ACKNOWLEDGMENT")
            .SetMarginTop(5)
            .SetBold();
            section.AddParagraph()
            .SetMarginTop(8)
            .SetMarginLeft(0)
            .SetBorderWidth(0)
            .AddTabSymbol().AddTabulationInPercent(50, TabulationType.Right, TabulationLeading.BottomLine)
            .AddTabSymbol().AddTabSymbol()
            .AddTabulationInPercent(70, TabulationType.Left)
            .AddTabulationInPercent(100, TabulationType.Right, TabulationLeading.BottomLine);
            section.AddParagraph()
            .SetMarginTop(0)
            .SetFontSize(10)
            .AddTabSymbol().AddTextToParagraph("Account Holder Signature")
            .AddTabulationInPercent(25, TabulationType.Center)
            .AddTabSymbol()
            .AddTextToParagraph("Date")
            .AddTabulationInPercent(85, TabulationType.Center);

            // STAPLE BLOCK
            TableBuilder pleaseStapleHereTable = section.AddTable()
                                                 .SetAlignment(HorizontalAlignment.Center)
                                                 .SetWidth(XUnit.FromPercent(80))
                                                 .SetMarginTop(5)
                                                 .SetBorderStroke(Stroke.Dotted)
                                                 .AddColumnToTable("", XUnit.FromPercent(10))
                                                 .AddColumnToTable("", XUnit.FromPercent(80))
                                                 .AddColumnToTable("", XUnit.FromPercent(10));

            pleaseStapleHereTable.AddRow()
            .SetHorizontalAlignment(HorizontalAlignment.Center)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddCell()
            .SetBorderStroke(Stroke.Dotted, Stroke.Dotted, Stroke.None, Stroke.Dotted)
            .SetFontSize(6)
            .AddParagraphToCell("Please").AddParagraphToCell("Staple").AddParagraphToCell("Here")
            .ToRow()
            .AddCell()
            .SetBorderStroke(Stroke.None, Stroke.Dotted, Stroke.None, Stroke.Dotted)
            .SetPadding(0, 68, 0, 64)
            .SetVerticalAlignment(VerticalAlignment.Center)
            .AddParagraph("STAPLE VOIDED CHECK HERE").SetBold().SetFontSize(24)
            .ToRow()
            .AddCell()
            .SetBorderStroke(Stroke.None, Stroke.Dotted, Stroke.Dotted, Stroke.Dotted)
            .SetFontSize(6).AddParagraphToCell("Please").AddParagraphToCell("Staple").AddParagraphToCell("Here")
            .ToSection()
            .SetMargins(20, 20, 20, 0);
            return(builder);
        }
Пример #27
0
        private void BuildBody(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercentToTable("", 47)
            .AddColumnPercentToTable("", 12)
            .AddColumnPercentToTable("", 12)
            .AddColumnPercent("", 12);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder
            .SetBackColor(BLUE_COLOR)
            .SetFont(FNT9B_W)
            .SetHorizontalAlignment(HorizontalAlignment.Center);
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell("Date of Service");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell("Description");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .SetHorizontalAlignment(HorizontalAlignment.Right)
            .AddParagraphToCell("Charges");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .SetHorizontalAlignment(HorizontalAlignment.Right)
            .AddParagraphToCell("Payment/ Adjustments");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .SetHorizontalAlignment(HorizontalAlignment.Right)
            .AddParagraphToCell("Patient Balance");
            int i = rowsData.Count;

            foreach (RowData rowData in rowsData)
            {
                FontBuilder curFont = (--i) == 0 ? FNT10B : FNT10;
                rowBuilder = tableBuilder.AddRow();
                rowBuilder
                .SetFont(curFont)
                .SetBorder(BorderBuilder.New()
                           .SetRightWidth(0)
                           .SetTopWidth(0)
                           .SetLeftWidth(0)
                           .SetBottomWidth(0.5f)
                           .SetBottomStroke(Stroke.Solid)
                           );
                cellBuilder = rowBuilder.AddCell();
                cellBuilder
                .SetPadding(4)
                .AddParagraphToCell(rowData.Date);
                cellBuilder = rowBuilder.AddCell();
                cellBuilder
                .SetPadding(4)
                .AddParagraphToCell(rowData.Description);
                cellBuilder = rowBuilder.AddCell();
                cellBuilder
                .SetPadding(4)
                .SetHorizontalAlignment(HorizontalAlignment.Right)
                .AddParagraphToCell(rowData.Charges);
                cellBuilder = rowBuilder.AddCell();
                cellBuilder
                .SetPadding(4)
                .SetHorizontalAlignment(HorizontalAlignment.Right)
                .AddParagraphToCell(rowData.Payment);
                cellBuilder = rowBuilder.AddCell();
                cellBuilder
                .SetPadding(4)
                .SetHorizontalAlignment(HorizontalAlignment.Right)
                .AddParagraphToCell(rowData.Balance);
            }
        }