protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("TYPE", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Paid Ins/Outs"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_Total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
private void PrintInternalGroup(string groupTitle) { // Header row HeaderCells.Clear(); HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Description", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Amount", DataFontBold, Element.ALIGN_RIGHT)); if (!_PrintDrawerTotals) { HeaderCells.Add(GetCell("Comment", DataFontBold, Element.ALIGN_LEFT)); } HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, groupTitle); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); CashTransferGroupTotals totals = _PrintDrawerTotals ? _DrawerTotals : _SafeTotals; dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(totals.Count.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(totals.Total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, HeaderCells.Count - 3, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); }
public GridViewModel <T> AddHeaderCell(string text, bool condition, string sortKey = "", string sortType = "") { if (condition) { HeaderCells.Add(new GridCellViewModel(text, sortKey, sortType)); } return(this); }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } DataRow[] rows; string colTitle = "Transfer To"; if (_title.Equals("Transfers Out")) { rows = GroupData.Select("STATUS='TO' or STATUS='VOut'"); } else { rows = GroupData.Select("STATUS='TI' or STATUS='VIn'"); colTitle = "Transfer From"; } if (rows.GetLength(0) < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Transfer #", DataFontBold, Element.ALIGN_CENTER)); HeaderCells.Add(GetCell("Status", DataFontBold, Element.ALIGN_CENTER)); HeaderCells.Add(GetCell("Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell(colTitle, DataFontBold, Element.ALIGN_CENTER)); HeaderCells.Add(GetCell("Total\nCost", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Total #\nItems", DataFontBold, Element.ALIGN_CENTER)); PrintDetails(_title, rows); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } return; }
private void PrintInternalGroup(string groupTitle) { // Header row HeaderCells.Clear(); HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); if (_PrintingReceived) { HeaderCells.Add(GetCell("Amount Recieved", DataFontBold, Element.ALIGN_RIGHT)); } else { HeaderCells.Add(GetCell("Amount Sent", DataFontBold, Element.ALIGN_RIGHT)); } HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); if (!_PrintingReceived) { HeaderCells.Add(GetCell("Fee", DataFontBold, Element.ALIGN_RIGHT)); } HeaderCells.Add(GetCell("Customer Name", DataFontBold, Element.ALIGN_LEFT)); if (!_PrintingReceived) { HeaderCells.Add(GetCell("Send Type", DataFontBold, Element.ALIGN_LEFT)); } HeaderCells.Add(GetCell("MTCN", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, groupTitle); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); WireTransferGroupTotals totals = _PrintingReceived ? _ReceivedTotals : _SentTotals; dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(totals.Total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); if (!_PrintingReceived) { dataTable.AddCell(GetCell(GetCurrencyValue(totals.TotalFees), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); } dataTable.AddCell(GetCell(totals.Count.ToString(), DataFont, Element.ALIGN_LEFT, _PrintingReceived ? 2 : 3, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, 2, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Maker", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Check #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Check Date", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Fee Adj", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("3rd Party Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Customer Hand Amt", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Check Type", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Check Cashing"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; dataTable.SetWidths(new float[] { 1, 1, 1.5f, 1.5f, 1, 1, 1, 1, 1, 1, 1, 1 }); PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 2, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 3, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalAmount), DataFont, Element.ALIGN_RIGHT, 2, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalFee), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalThirdPartyFee), DataFont, Element.ALIGN_RIGHT, 2, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalCustHandAmount), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Manual #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("New Card", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Reload", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Gift Card", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Reload Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Trans Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Debit Card"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 2, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_CountOfNewCards.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_CountOfReloads.ToString(), DataFont, Element.ALIGN_LEFT, 2, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_CountOfCustomers.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalFee), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalReloadFee), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalAmount), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Loan Status", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Loan #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Prev Loan", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Loan Amt.", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Finance Charge", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("CSO Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Total", DataFontBold, Element.ALIGN_RIGHT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Cash Advance"); dataTable.SetWidths(new float[] { 1, 1, 1, 1, 1.5f, 1, 1, 1, 1, 1 }); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 4, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_CustomersCount.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_SumOfLoanAmount), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_SumOfFinanceCharge), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_SumOfCSOFee), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_SumOfNetTotal), DataFont, Element.ALIGN_RIGHT, 2, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Policy Number", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Payment Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Payment Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Processing Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Waived Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Total", DataFontBold, Element.ALIGN_RIGHT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Insurance"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 4, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalPaymentAmount), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalProcessingFee), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalWaivedAmount), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_Total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Transaction Status", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Receipt #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Loan #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("PSC", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Loan Amount", DataFontBold, Element.ALIGN_RIGHT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Pawn Loan Renewals"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_CountNonVoided.ToString(), DataFont, Element.ALIGN_LEFT, 5, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalPSC), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalAmount), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } return; }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #\nItem Description", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Loan Status", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Release #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Loan or Buy #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Claimant\nICN", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Release Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Restitution", DataFontBold, Element.ALIGN_RIGHT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Item Releases to Claimant"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_CountNonVoided.ToString(), DataFont, Element.ALIGN_LEFT, 6, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalAmountRelease), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalAmountRestitution), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } return; }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Layaway #", DataFontBold, Element.ALIGN_CENTER)); HeaderCells.Add(GetCell("Layaway Amount", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer or \nVendor Name", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_CENTER)); HeaderCells.Add(GetCell("Forfeit / Termination Amount", DataFontBold, Element.ALIGN_RIGHT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); dataTable.SetWidths(new[] { 6f, 10f, 10f, 10f, 45f, 7f, 7f }); AddGroupTitle(dataTable, _title); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(count.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell("", DataFont, Element.ALIGN_RIGHT, 4, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("MOP", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Receipt #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Manual #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Trans Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Transaction Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "PayDay & Brokered Loan Payments"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; dataTable.SetWidths(new float[] { 1, 1, 1, 1, 1.5f, 1, 1.5f, 1 }); PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 4, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_Total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(string.Empty, DataFont, Element.ALIGN_JUSTIFIED, 2, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("User ID", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Tax Return Number", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Description", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Check Cashed", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Amount Paid for Tax Prep", DataFontBold, Element.ALIGN_RIGHT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Tax Preparation"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 4, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_Total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_TotalPaid), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Status", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Orig. Dep. Date", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("New Dep. Date", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("# Days Extended", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Reason", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Extensions"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 2, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 6, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { // Header row HeaderCells.Add(GetCell("User ID", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Transaction Status", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Receipt #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Loan #", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Principal Reduction", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Finance Charges", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Partial Payment Amount", DataFontBold, Element.ALIGN_LEFT)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); AddGroupTitle(dataTable, "Partial Payments"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(_Count.ToString(), DataFont, Element.ALIGN_LEFT, 5, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_PrincipalReductionTotal), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_FinanceChargesTotal), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(_PartialPaymentAmountTotal), DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
public GridViewModel <T> AddHeaderCell(string text, string sortKey) { HeaderCells.Add(new GridCellViewModel(text, sortKey)); return(this); }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } // Header row HeaderCells.Add(GetCell("#", DataFontBold, Element.ALIGN_JUSTIFIED)); HeaderCells.Add(GetCell("Transaction No.", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Transaction Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Gun No.", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Manufacturer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Importer", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Model", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Serial No.", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Gun Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Caliber", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Seizure No.", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("# of 4473 Forms", DataFontBold, Element.ALIGN_CENTER)); PdfPTable dataTable = new PdfPTable(HeaderCells.Count); dataTable.SetWidths(new[] { 6f, 20f, 20f, 10f, 20f, 20f, 20f, 20f, 20f, 20f, 20f, 20f }); AddGroupTitle(dataTable, "Gun Disposition Report"); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); /* * //dataTable.AddCell(GetCell("", DataFontBold, Element.ALIGN_JUSTIFIED, HeaderCells.Count)); * dataTable.AddCell(GetCell("Customer Name:", DataFontBold, Element.ALIGN_RIGHT, 2)); * dataTable.AddCell(GetCell(lastCust.name, DataFontBold, Element.ALIGN_LEFT, HeaderCells.Count - 2)); * * //dataTable.AddCell(GetCell("", DataFontBold, Element.ALIGN_JUSTIFIED)); * dataTable.AddCell(GetCell("Address:", DataFontBold, Element.ALIGN_RIGHT, 2)); * dataTable.AddCell(GetCell(lastCust.addr, DataFontBold, Element.ALIGN_LEFT, HeaderCells.Count - 2)); * * //dataTable.AddCell(GetCell("", DataFontBold, Element.ALIGN_JUSTIFIED)); * dataTable.AddCell(GetCell("ID:", DataFontBold, Element.ALIGN_RIGHT, 2)); * dataTable.AddCell(GetCell(lastCust.id, DataFontBold, Element.ALIGN_LEFT, HeaderCells.Count - 2)); * * dataTable.AddCell(GetCell(PawnUtilities.String.StringUtilities.fillString("=", 200), DataFont, Element.ALIGN_CENTER, HeaderCells.Count)); * dataTable.AddCell(GetCell("", DataFontBold, Element.ALIGN_JUSTIFIED, HeaderCells.Count)); */ dataTable.AddCell(GetCell(string.Format("{0} ATF 4473 Form(s)", nr_forms), DataFont, Element.ALIGN_LEFT, HeaderCells.Count)); dataTable.AddCell(GetCell("", DataFontBold, Element.ALIGN_JUSTIFIED, HeaderCells.Count)); dataTable.AddCell(GetCell("", DataFontBold, Element.ALIGN_JUSTIFIED, HeaderCells.Count)); dataTable.AddCell(GetCell(@"This is a list of all outgoing gun transactions for one day. Compare this list to your 4473 forms. Check for accuracy. Verify name, address and dates. You should have one 4473 form for each transaction.", DataFont, Element.ALIGN_CENTER, HeaderCells.Count)); AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }
protected override void OnBuildSection() { try { if (GroupData.Rows.Count < 1) { return; } count = 0; total = 0; total_tax = 0; total_fees = 0; grandTotal = 0; // Header row HeaderCells.Clear(); HeaderCells.Add(GetCell("CSR #", DataFontBold, Element.ALIGN_LEFT)); if (!isLayaway) { HeaderCells.Add(GetCell("MSR #", DataFontBold, Element.ALIGN_LEFT)); } if (!isLayaway && _title.Equals("Retail Sale Refunds")) { HeaderCells.Add(GetCell("Refund #", DataFontBold, Element.ALIGN_LEFT)); } else { HeaderCells.Add(GetCell("Layaway #", DataFontBold, Element.ALIGN_LEFT)); } HeaderCells.Add(GetCell("\nItem Description", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Tender Type", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Customer \nor Vendor Name", DataFontBold, Element.ALIGN_LEFT)); HeaderCells.Add(GetCell("Time", DataFontBold, Element.ALIGN_LEFT)); if (!isLayaway) { HeaderCells.Add(GetCell("\nItem\nCost", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Sale Amount", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Sales Tax", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Other Fees", DataFontBold, Element.ALIGN_RIGHT)); if (_title.Equals("Retail Sale Refunds")) { HeaderCells.Add(GetCell("Refund\nAmount", DataFontBold, Element.ALIGN_RIGHT)); } else { HeaderCells.Add(GetCell("Retail\nAmount", DataFontBold, Element.ALIGN_RIGHT)); } } else { HeaderCells.Add(GetCell("", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Service Fee", DataFontBold, Element.ALIGN_RIGHT)); HeaderCells.Add(GetCell("Layaway Amount", DataFontBold, Element.ALIGN_RIGHT)); } PdfPTable dataTable = new PdfPTable(HeaderCells.Count); if (dataTable.NumberOfColumns == 12) { dataTable.SetWidths(new[] { 6f, 7f, 9f, 27f, 20f, 23f, 7f, 7f, 7f, 7f, 7f, 7f }); } else { dataTable.SetWidths(new[] { 6f, 9f, 27f, 20f, 23f, 7f, 7f, 7f, 7f }); } AddGroupTitle(dataTable, _title); AddHeaderCells(dataTable); dataTable.HeaderRows = 2; PrintGroupDetail(dataTable); dataTable.AddCell(GetCell("Total", DataFont, Element.ALIGN_JUSTIFIED, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(count.ToString(), DataFont, Element.ALIGN_LEFT, 1, Rectangle.TOP_BORDER)); if (dataTable.NumberOfColumns == 12) { dataTable.AddCell(GetCell("", DataFont, Element.ALIGN_RIGHT, 5, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total_cost), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total_tax), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total_fees), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(grandTotal), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); } else { dataTable.AddCell(GetCell("", DataFont, Element.ALIGN_RIGHT, 5, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total_fees), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); dataTable.AddCell(GetCell(GetCurrencyValue(total), DataFont, Element.ALIGN_RIGHT, 1, Rectangle.TOP_BORDER)); } AddGroupContentsToPdfTable(dataTable); } catch (Exception ex) { ErrorText = ex.Message; ErrorCode = "1"; throw; } }