private void FillInstructionAnyWithdrawals(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddTable(tableBuilder =>
     {
         ConfigureDescriptionTable(tableBuilder, 6, 94);
         AddDescriptionRow(
             tableBuilder,
             24,
             "C.",
             new string[] {
             "The total outstanding checks and withdrawals from the chart above .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  ."
         },
             AddWithdrawalsDescriptionToCell
             );
         AddDescriptionRow(
             tableBuilder,
             36,
             " ",
             new string[] {
             "CALCULATE THE ENDING BALANCE",
             "(Part A + Part B - Part C)",
             "This amount should be the same as the current balance shown in your check register .  .  .  .  .  .  .  .  .  ."
         },
             AddCalculateEndingBalanceDescriptionToCell
             );
     });
 }
        private void FillInstructionAnyDeposits(TableCellBuilder cellBuilder)
        {
            var tableBuilder = cellBuilder.AddTable();

            ConfigureDescriptionTable(tableBuilder, 6, 94);
            AddDescriptionRow(
                tableBuilder,
                64,
                "B.",
                new string[] {
                "Any deposits listed in your register or transfers into your account which are not shown on your statement."
            },
                AddDescriptionToCell
                );
            AddDescriptionRow(
                tableBuilder,
                46,
                " ",
                new string[] {
                "CALCULATE THE SUBTOTAL",
                "(Add Parts A and B)"
            },
                AddCalculateDescriptionToCell
                );
        }
        private void AddCardHead(TableCellBuilder outerCellBuilder)
        {
            outerCellBuilder.SetPadding(0, 6, 0, 0);
            var paragraphBuilder = outerCellBuilder.AddParagraph();

            paragraphBuilder
            .SetFont(FNT7B)
            .AddTextToParagraph("IF PAYING BY VISA, MASTERCARD, DISCOVER OR AMEX, FILL OUT BELOW");
            outerCellBuilder.AddTable(FillCardNames);
        }
Exemplo n.º 4
0
        private void AddQuestions(TableCellBuilder cellBuilder)
        {
            AddParagraph(cellBuilder, "Questions?", FNT10_5B, 6f);
            AddParagraph(cellBuilder, "Available by phone 24 hours a day, 7 days a week:\n" +
                         "Telecommunications Relay Services calls accepted", FNT7_9);
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder.SetMarginBottom(6);
            paragraphBuilder.AddText(statementInfo.PhoneFree).SetFont(FNT9_8B);
            paragraphBuilder.AddText("(" + statementInfo.Phone + ")").SetFont(FNT7_5);
            cellBuilder.AddTable(FillCallCentersTable);
        }
        protected void AddRadioButtons(TableCellBuilder cellBuilder, string label,
                                       string[] choices, int[] widths, bool bottomBorder = false)
        {
            string[] labels = choices;
            if (label != null)
            {
                labels    = new string[choices.Length + 1];
                labels[0] = label;
                for (int i = 1, l = labels.Length; i < l; i++)
                {
                    labels[i] = choices[i - 1];
                }
            }
            int wl = widths.Length;

            if (labels.Length > 0 && wl > 0)
            {
                int lastWidth = widths[widths.Length - 1];
                cellBuilder.AddTable(tableBuilder =>
                {
                    tableBuilder
                    .SetWidth(XUnit.FromPercent(100))
                    .SetBorder(Stroke.None);

                    for (int i = 0, l = labels.Length; i < l; i++)
                    {
                        tableBuilder.AddColumnPercent("", i < wl ? widths[i] : lastWidth);
                    }
                    var rowBuilder = tableBuilder.AddRow();
                    rowBuilder
                    .SetBorder(borderBuilder =>
                    {
                        borderBuilder
                        .SetRightWidth(0)
                        .SetTopBorder(0.5f, Stroke.Solid, null)
                        .SetLeftWidth(0);
                        if (bottomBorder)
                        {
                            borderBuilder.SetTopBorder(0.5f, Stroke.Solid, null);
                        }
                        else
                        {
                            borderBuilder.SetBottomWidth(0);
                        }
                    });
                    for (int i = 0, l = labels.Length; i < l; i++)
                    {
                        AddRadioCellsToRow(rowBuilder, labels, i);
                    }
                });
            }
        }
        protected void AddTextTitle(TableCellBuilder cellBuilder, int pageCount, float topMargin)
        {
            var tableBuilder = cellBuilder.AddTable();

            tableBuilder
            .SetMarginTop(topMargin)
            .SetBorder(Stroke.None)
            .SetWidth(XUnit.FromPercent(70))
            .AddColumnPercentToTable("", 23)
            .AddColumnPercentToTable("", 18)
            .AddColumnPercentToTable("", 42)
            .AddColumnPercent("", 17);
            AddStatementInfoToTitle(tableBuilder.AddRow(), pageCount);
        }
        private void FillEndingBalanceENTER(TableCellBuilder cellBuilder)
        {
            var tableBuilder = cellBuilder.AddTable();

            ConfigureDescriptionTable(tableBuilder, 6, 94);
            AddDescriptionRow(
                tableBuilder,
                16,
                "A.",
                new string[] {
                "The ending balance shown on your statement"
            },
                AddDescriptionToCell
                );
        }
        protected void AddForm(TableCellBuilder cellBuilder, string[] labels,
                               int[] widths, bool bottomBorder = false,
                               string[] values         = null, float topBorderDepth = 0.5f,
                               float bottomBorderDepth = 0.5f, float valueFontSize  = 12f)
        {
            int wl = widths.Length;

            if (labels.Length > 0 && wl > 0)
            {
                int lastWidth = widths[widths.Length - 1];
                cellBuilder.AddTable(tableBuilder =>
                {
                    tableBuilder
                    .SetWidth(XUnit.FromPercent(100))
                    .SetBorder(Stroke.None);
                    for (int i = 0, l = labels.Length; i < l; i++)
                    {
                        tableBuilder.AddColumnPercent("", i < wl ? widths[i] : lastWidth);
                    }
                    var rowBuilder = tableBuilder.AddRow();
                    rowBuilder
                    .SetBorder(borderBuilder =>
                    {
                        borderBuilder
                        .SetRightWidth(0)
                        .SetTopBorder(topBorderDepth, Stroke.Solid, null)
                        .SetLeftWidth(0);
                        if (bottomBorder)
                        {
                            borderBuilder.SetBottomBorder(bottomBorderDepth,
                                                          Stroke.Solid, null);
                        }
                        else
                        {
                            borderBuilder.SetBottomWidth(0);
                        }
                    });
                    for (int i = 0, l = labels.Length; i < l; i++)
                    {
                        AddCellsToFormRow(rowBuilder, labels, values, valueFontSize, i);
                    }
                });
            }
        }
Exemplo n.º 9
0
 private void AddCheckBoxes(TableCellBuilder outerCellBuilder, Field[] fields)
 {
     outerCellBuilder.AddTable(tableBuilder =>
     {
         tableBuilder
         .SetBorder(Stroke.None)
         .SetWidth(XUnit.FromPercent(100))
         .SetMarginLeft(4.5f)
         .SetMarginTop(10)
         .AddColumnPercentToTable("", 60).AddColumnPercent("", 40);
         foreach (Field field in fields)
         {
             var tableRowBuilder = tableBuilder.AddRow();
             tableRowBuilder
             .SetBorderStroke(Stroke.None);
             var cellBuilder = tableRowBuilder.AddCell();
             cellBuilder.SetFont(FNT7_2).AddParagraph(field.name);
             cellBuilder = tableRowBuilder.AddCell();
             cellBuilder.SetHorizontalAlignment(HorizontalAlignment.Right);
             cellBuilder.SetFont(FNTZ8).AddParagraphToCell(CHECK_BOX);
         }
     });
 }
 private void BuildHelp(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph("Heed help?")
     .SetFont(FNT11_B).SetMarginBottom(2);
     cellBuilder.AddTable(FillHelpTable);
 }
 private void BuildFare(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph("Fare breakdown")
     .SetFont(FNT11_B).SetMarginBottom(2);
     cellBuilder.AddTable(FillFareTable);
 }
 private void BuildCheck(TableCellBuilder outerCellBuilder)
 {
     outerCellBuilder.AddTable(FillCheckTable);
 }
Exemplo n.º 13
0
 private void AddActivitySummary(TableCellBuilder outerCellBuilder)
 {
     outerCellBuilder.AddTable(FillActivitySummaryTable);
 }