Ejemplo n.º 1
0
        private void AddOptionsToCell(TableCellBuilder cellBuilder)
        {
            AddParagraph(cellBuilder, "Account options", FNT10_5B);
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder
            .SetUrlStyle(
                StyleBuilder.New()
                .SetFontColor(Color.Blue)
                .SetFontName("Helvetica")
                .SetFontSize(7f)
                .SetFontUnderline(Stroke.Solid, Color.Blue)
                )
            .SetFont(FNT7)
            .AddTextToParagraph(
                "A check mark in the box indicates you have these convenient services with your account(s). Go to ")
            .AddUrlToParagraph("https://" +
                               statementInfo.AccountOptions, statementInfo.AccountOptions)
            .AddTextToParagraph(
                " or call the number above if you have questions or if you would like to add new services");
            Field[] fields = new Field[]
            {
                new Field("Business Online Banking", "true"),
                new Field("Online Statements", "true"),
                new Field("Business Bill Pay", "true"),
                new Field("Business Spending Report", "true"),
                new Field("Overdraft Protection", "true"),
            };
            AddCheckBoxes(cellBuilder, fields);
        }
 protected void AddTitleWithBankName(TableCellBuilder cellBuilder,
                                     int pageCount)
 {
     AddParagraph(cellBuilder, 10f, statementInfo.BankName +
                  " Simple Business Checking", FNT18_3B);
     AddTextTitle(cellBuilder, pageCount, 0);
 }
Ejemplo n.º 3
0
 public static TableCellBuilder AddFormRowBox(TableCellBuilder outerCellBuilder,
                                              string text = "$")
 {
     return(outerCellBuilder.AddTableToCell(tableBuilder =>
     {
         tableBuilder
         .SetWidth(XUnit.FromPercent(76))
         .SetContentRowStyleMinHeight(25)
         .SetAlignment(HorizontalAlignment.Right)
         .AddColumnPercentToTable("", 100)
         .SetBorderStroke(Stroke.Solid)
         .SetBorderColor(Color.Black)
         .SetBorderWidth(1.5f);
         var cellBuilder = tableBuilder.AddRow().SetMinHeight(25).AddCell();
         cellBuilder
         .SetVerticalAlignment(VerticalAlignment.Bottom)
         .SetPadding(0, 0, 0, 4)
         .AddParagraph()
         .AddTabSymbol()
         .SetFont(FNT7_2)
         .AddTabulation(6, TabulationType.Right, TabulationLeading.None)
         .AddTextToParagraph(text, addTabulationSymbol: true)
         .AddTabulation(72, TabulationType.Right, TabulationLeading.BottomLine);
     }));
 }
        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 FillBandlist(TableCellBuilder cellBuilder)
 {
     cellBuilder.SetBorderStroke(Stroke.None);
     cellBuilder.AddParagraph(ConcertData.TitleBandsList).SetFont(FNT12B).SetMargins(0, 20, 1, 4);
     cellBuilder.AddParagraph(ConcertData.BandsList).SetFont(FNT9).SetLineSpacing(1.2f).SetMargins(0, 0, 30, 4);
     cellBuilder.AddParagraph("");
 }
 private void AddLogoImage(TableCellBuilder cellBuilder)
 {
     cellBuilder
     .SetPadding(2, 2, 2, 0);
     cellBuilder
     .AddImage(Path.Combine("images", "СT_Poster.png")).SetHeight(340);
 }
 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
             );
     });
 }
Ejemplo n.º 8
0
 private void Firm(TableCellBuilder cellBuilder)
 {
     foreach (var item in FirmData.FirmContact)
     {
         cellBuilder.AddParagraph(item);
     }
 }
 private void FillRuleP(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph(ConcertData.TitleRulesOfPurchase).SetFont(FNT12B).SetMargins(10, 10, 1, 4);
     cellBuilder.SetBorderStroke(strokeLeft: Stroke.None, strokeTop: Stroke.Solid,
                                 strokeRight: Stroke.Solid, strokeBottom: Stroke.Solid);
     cellBuilder.AddParagraph(ConcertData.RulesOfPurchase).SetFont(FNT9).SetLineSpacing(1.2f).SetMargins(10, 0, 10, 4);
 }
 private void FillTicketDataCounterFoil(TableCellBuilder cellBuilder)
 {
     cellBuilder.SetBorderStroke(Stroke.None);
     cellBuilder.AddParagraph("Admission").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Ticket type").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Price").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Name").SetLineSpacing(1.4f);
 }
 private void FillPersonalInfoCounterFoil(TableCellBuilder cellBuilder)
 {
     cellBuilder.SetBorderStroke(Stroke.None).SetBold(true);
     cellBuilder.AddParagraph(TicketData.Admission).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.TicketType).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.Price).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.Name).SetLineSpacing(1.4f);
 }
Ejemplo n.º 12
0
 void FillRightBlock(string a, string b, TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph(a).SetFont(FNT10).SetLineSpacing(1.2f).AddTabSymbol()
     .AddTabulation(210, TabulationType.Right).AddText(b).SetFont(FNT10);
     cellBuilder
     .SetBorderStroke(strokeLeft: Stroke.None, strokeTop: Stroke.None,
                      strokeRight: Stroke.None, strokeBottom: Stroke.Solid);
 }
Ejemplo n.º 13
0
 void BodyInfo(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph(FirmData.TaxInfo).SetMarginBottom(13).SetFont(FNT9);
     cellBuilder.AddParagraph("You bought:").SetFont(FNT9).AddTabSymbol()
     .AddTabulation(300, TabulationType.Right).AddText("Price:").SetFont(FNT9);
     cellBuilder.AddParagraph(TradeData.Bought).SetFont(FNT9B).AddTabSymbol()
     .AddTabulation(300, TabulationType.Right).AddText(TradeData.Price).SetFont(FNT9B);
 }
Ejemplo n.º 14
0
 private void Customer(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph(TradeData.CustomerName);
     foreach (var item in TradeData.CustomerAddress)
     {
         cellBuilder.AddParagraph(item);
     }
 }
 private void FillWhatNextHalf(int start,
                               int end, TableCellBuilder cellBuilder)
 {
     for (int i = start; i < end; i++)
     {
         cellBuilder.AddParagraph(WhatsNextData[i]).SetMarginBottom(8f);
     }
 }
Ejemplo n.º 16
0
        public static void AddParagraph(TableCellBuilder cellBuilder, string text,
                                        FontBuilder paragrpaphFont, float bottomMagin = 0.0f)
        {
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder.AddTextToParagraph(text)
            .SetMarginBottom(bottomMagin)
            .SetFont(paragrpaphFont);
        }
 private void AddConcertData(TableCellBuilder cellBuilder)
 {
     cellBuilder
     .AddParagraph("Epic Rock Concert").SetFont(FNT19B);
     cellBuilder
     .AddParagraph("07/28/2021  9:00PM").SetFont(FNT12)
     .SetBorderStroke(strokeLeft: Stroke.None, strokeTop: Stroke.None, strokeRight: Stroke.None, strokeBottom: Stroke.Solid)
     .SetBorderWidth(2);
 }
 private void AddConcertData(TableCellBuilder cellBuilder)
 {
     cellBuilder
     .AddParagraph("Nick Cave and the Bad Seeds").SetFont(FNT19B);
     cellBuilder
     .AddParagraph("25.05.2021  7:30PM").SetFont(FNT12)
     .SetBorderStroke(strokeLeft: Stroke.None, strokeTop: Stroke.None, strokeRight: Stroke.None, strokeBottom: Stroke.Solid)
     .SetBorderWidth(2);
 }
 private void AddAnyDepositsForm(TableCellBuilder cellBuilder)
 {
     AddFormRow(cellBuilder).SetMarginBottom(3);
     AddFormRow(cellBuilder).SetMarginBottom(3);
     AddFormRow(cellBuilder).SetMarginBottom(3);
     AddFormRow(cellBuilder, "+ $").SetMarginBottom(10);
     AddFormRow(cellBuilder, "TOTAL $").SetMarginBottom(38);
     AddFormRow(cellBuilder, "TOTAL $");
 }
Ejemplo n.º 20
0
 void Exempt(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph("Callable 04 / 01 / 27 @100").SetFont(FNT10).SetLineSpacing(1.2f).AddTabSymbol()
     .AddTabulation(254, TabulationType.Right).AddText(TradeData.TaxExempt).SetFont(FNT10);
     cellBuilder.AddParagraph("Federally Tax Exempt").SetFont(FNT10);
     cellBuilder
     .SetBorderStroke(strokeLeft: Stroke.None, strokeTop: Stroke.None,
                      strokeRight: Stroke.None, strokeBottom: Stroke.Solid);
 }
 private void No(TableCellBuilder cellBuilder)
 {
     cellBuilder
     .AddParagraph("E - ticket");
     cellBuilder
     .AddParagraph(TicketData.Eticket).SetLineSpacing(1.5f);
     cellBuilder
     .AddImage(Path.Combine("images", "Qr_Code.png")).SetHeight(100);
 }
 private void FillPersonalInfo(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph(TicketData.Admission).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.TicketType).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.Price).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.Name).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.Venue).SetLineSpacing(1.4f);
     cellBuilder.AddParagraph(TicketData.Address).SetLineSpacing(1.4f);
 }
 private void FillTicketData(TableCellBuilder cellBuilder)
 {
     cellBuilder.AddParagraph("Admission").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Ticket type").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Price").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Name").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Venue").SetLineSpacing(1.4f);
     cellBuilder.AddParagraph("Address").SetLineSpacing(1.4f);
 }
        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);
        }
Ejemplo n.º 25
0
 public static ParagraphBuilder AddFormRow(TableCellBuilder cellBuilder,
                                           string text = "$")
 {
     return(cellBuilder.AddParagraph()
            .AddTabSymbol()
            .SetFont(FNT7_2)
            .AddTabulation(30, TabulationType.Right, TabulationLeading.None)
            .AddTextToParagraph(text, addTabulationSymbol: true)
            .AddTabulation(96, TabulationType.Right, TabulationLeading.BottomLine));
 }
        private void AddETK(TableCellBuilder cellBuilder)
        {
            cellBuilder
            .SetFont(FNT9)
            .AddParagraphToCell("ETK: " + TicketData.ETK);
            var paragraphBuilder =
                cellBuilder.AddParagraph("Reg No: " + TicketData.RegNo);

            paragraphBuilder.SetMarginBottom(4);
        }
 private void No(TableCellBuilder cellBuilder)
 {
     cellBuilder
     .AddParagraph("E - ticket");
     cellBuilder
     .AddParagraph(TicketData.Eticket).SetLineSpacing(1.5f);
     cellBuilder
     .AddQRCodeUrl("https://gehtsoftusa.com/", 4,
                   Color.Black, Color.White, false).SetHeight(100);
 }
        private void FillRuleA(int start, int end, TableCellBuilder cellBuilder)
        {
            cellBuilder.AddParagraph(ConcertData.TitleRulesOfAttendance).SetFont(FNT12B).SetMargins(10, 10, 1, 4);
            cellBuilder.SetBorderStroke(strokeLeft: Stroke.Solid, strokeTop: Stroke.Solid, strokeRight: Stroke.None, strokeBottom: Stroke.Solid);

            foreach (var item in ConcertData.RulesOfAttendance)
            {
                cellBuilder.AddParagraph(item).SetFont(FNT9).SetMargins(20, 0, 10, 2);
            }
        }
 private void FillHandBugTableCell(TableCellBuilder cellBuilder)
 {
     cellBuilder
     .SetPadding(19, 6, 0, 0)
     .AddParagraph("Hand baggage allowance")
     .SetFont(FNT9)
     .SetMarginBottom(19);
     cellBuilder.AddImage(
         Path.Combine("images", "BP_handbag_2x.png"),
         XSize.FromHeight(108));
 }
 private void AddDescriptionToCell(TableCellBuilder cellBuilder, string[] text)
 {
     cellBuilder
     .SetFont(FNT7_2)
     .SetBorderStroke(Stroke.None, Stroke.None, Stroke.None, Stroke.Dotted)
     .SetBorderColor(Color.Black);
     foreach (string item in text)
     {
         cellBuilder.AddParagraphToCell(item);
     }
 }