public void buildReport() { Root = new RootElement ("Branch Financial Status"); Stripper.SetReportHeader (Root, "Branch Financial Status", branch.name, contentWidth); var business = new Section (""); business.Add (getElement (branch.businessStatus.businessDebtors, S.GetText (S.BUSINESS_DEBTORS) + ": ")); business.Add (getElement (branch.businessStatus.businessCreditors, S.GetText (S.BUSINESS_CREDITORS) + ": ")); business.Add (getElement (branch.businessStatus.banksTotal, "Banks Total: ")); business.Add (getElement (branch.businessStatus.pendingDisbursements, S.GetText (S.PENDING_DISBURSEMENTS) + ": ")); business.Add (getElement (branch.businessStatus.unbilled, "Unbilled: ")); business.Add (getElement (branch.businessStatus.vat, S.GetText (S.VAT) + ": ")); business.Add (getElement (branch.businessStatus.availableForTransfer, "Available for Transfer: ")); for (var i = 0; i < branch.businessStatus.banks.Count; i++) { var bn = new TitleElement (branch.businessStatus.banks [i].name); business.Add (bn); Bank bank = branch.businessStatus.banks [i]; business.Add (getElement (bank.balance, "Balance: ")); business.Add (getElement (bank.receiptsForPeriod, "Receipts: ")); business.Add (new StringElement ("Date Reconciled: " + bank.dateReconciled)); business.Add (getElement (bank.reconciledAmount, "Reconciled Amount: ")); } Root.Add (business); // var trust = new Section (S.GetText (S.TRUST_STATUS)); trust.Add (getElement (branch.trustStatus.banksTotal, "Banks Total: ")); trust.Add (getElement (branch.trustStatus.trustCreditors, S.GetText (S.TRUST_CREDITORS) + ": ")); trust.Add (getElement (branch.trustStatus.investments, S.GetText (S.INVESTMENTS) + ": ")); for (var i = 0; i < branch.trustStatus.banks.Count; i++) { var bn = new TitleElement (branch.trustStatus.banks [i].name); trust.Add (bn); Bank bank = branch.trustStatus.banks [i]; trust.Add (getElement (bank.balance, "Balance: ")); trust.Add (getElement (bank.receiptsForPeriod, "Receipts: ")); trust.Add (new StringElement ("Date Reconciled: " + bank.dateReconciled)); trust.Add (getElement (bank.reconciledAmount, "Reconciled Amount: ")); } Root.Add (trust); }
public void buildReport() { Root = new RootElement ("Branch Matter Analysis"); Stripper.SetReportHeader (Root, "Branch Matter Analysis", null, contentWidth); // for (int i = 0; i < report.branches.Count; i++) { Branch branch = report.branches [i]; var s = new TitleElement (branch.name + " Branch Totals"); var sec = new Section (); sec.Add (s); Root.Add (sec); if (branch.branchTotals.matterActivity != null) { var matterActivitySection = new Section (); var mTitle = new TitleElement ("Matter Activity"); matterActivitySection.Add (mTitle); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.active, "Active Matters: ")); matterActivitySection.Add (new NumberElement ( branch.branchTotals.matterActivity.deactivated, "Deactivated Matters: " )); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.newWork, "New Work: ")); matterActivitySection.Add (new NumberElement (branch.branchTotals.matterActivity.noActivity, "No Activity: ")); matterActivitySection.Add (new StringElement ("No Activity Duration: " + branch.branchTotals.matterActivity.noActivityDuration)); Root.Add (matterActivitySection); } // if (branch.branchTotals.matterBalances != null) { var matterBalancesSection = new Section (); var mTitle = new TitleElement ("Matter Balances"); matterBalancesSection.Add (mTitle); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.business, S.GetText (S.BUSINESS) + ": ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.trust, S.GetText (S.TRUST_BALANCE) + ": ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.investment, S.GetText (S.INVESTMENTS) + ": ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.unbilled, "Unbilled: ")); matterBalancesSection.Add (getElement (branch.branchTotals.matterBalances.pendingDisbursements, "Pending Disb.: ")); Root.Add (matterBalancesSection); } } }
public void buildReport() { Root = new RootElement ("Owner Fee Target Progress"); Stripper.SetReportHeader (Root, "Owner Fee Target Progress", null, contentWidth); for (int i = 0; i < report.branches.Count; i++) { Branch branch = report.branches [i]; var s = new Section (); var t1 = new TitleElement (branch.name + " Branch Totals"); s.Add (t1); Root.Add (s); for (int j = 0; j < branch.owners.Count; j++) { Owner o = branch.owners [j]; var ownerSection = new Section (); var nm = new TitleElement (o.name); ownerSection.Add (nm); ownerSection.Add (new BigFinanceElement ("Invoiced MTD Total: ", o.invoicedMTDTotal)); var recMTD = new StringElement ("Recorded MTD"); ownerSection.Add (recMTD); ownerSection.Add (getElement (o.recordedMTD.achieved, "Achieved: ")); ownerSection.Add (getElement (o.recordedMTD.estimatedTarget, "Estimated Target: ")); ownerSection.Add (getElement (o.recordedMTD.invoicedDebits, "Invoiced: ")); ownerSection.Add (getElement (o.recordedMTD.unbilled, "Unbilled: ")); ownerSection.Add (getElement (o.recordedMTD.total, "Total: ")); // var recYTD = new StringElement ("Recorded YTD"); ownerSection.Add (recYTD); ownerSection.Add (getElement (o.recordedYTD.achieved, "Achieved: ")); ownerSection.Add (getElement (o.recordedYTD.estimatedTarget, "Estimated Target: ")); ownerSection.Add (getElement (o.recordedYTD.invoiced, "Invoiced: ")); ownerSection.Add (getElement (o.recordedYTD.unbilled, "Unbilled: ")); ownerSection.Add (getElement (o.recordedYTD.total, "Total: ")); Root.Add (ownerSection); } } }
public void buildReport() { Root = new RootElement ("Owner Matter Analysis"); Stripper.SetReportHeader (Root, "Owner Matter Analysis", null, contentWidth); //NumberFormatInfo nfi = new CultureInfo ("en-US", false).NumberFormat; for (int i = 0; i < report.branches.Count; i++) { Branch branch = report.branches [i]; TitleElement s = new TitleElement (branch.name, TitleElement.MEDIUM_FONT); var sec = new Section (); sec.Add (s); Root.Add (sec); for (int j = 0; j < branch.owners.Count; j++) { Owner o = branch.owners [j]; Section seco = new Section (o.name); var recMTD = new TitleElement ("Matter Activity"); seco.Add (recMTD); seco.Add (new NumberElement (o.matterActivity.active, "Active: ")); seco.Add (new NumberElement (o.matterActivity.deactivated, "Deactivated: ")); seco.Add (new NumberElement (o.matterActivity.newWork, "New Work: ")); seco.Add (new NumberElement (o.matterActivity.workedOn, "Worked On: ")); seco.Add (new NumberElement (o.matterActivity.noActivity, "No Activity: ")); seco.Add (new StringElement ("No Activity Duration: " + o.matterActivity.noActivityDuration)); // var recYTD = new TitleElement ("Matter Balances"); seco.Add (recYTD); seco.Add (getElement (o.matterBalances.business, S.GetText (S.BUSINESS) + ": ")); seco.Add (getElement (o.matterBalances.trust, S.GetText (S.TRUST) + ": ")); seco.Add (getElement (o.matterBalances.investment, S.GetText (S.INVESTMENTS) + ": ")); seco.Add (getElement (o.matterBalances.unbilled, "Unbilled: ")); seco.Add (getElement (o.matterBalances.pendingDisbursements, "Pending Disb: ")); Root.Add (seco); } } }
public void buildReport() { Root = new RootElement ("Branch Fee Target Progress"); Stripper.SetReportHeader (Root, "Branch Fee Target Progress", null, contentWidth); for (int i = 0; i < report.branches.Count; i++) { Branch branch = report.branches [i]; Section s = new Section (); var nm = new TitleElement (branch.name); s.Add (nm); var t2 = new BigFinanceElement ("Invoiced MTD Total: ", branch.branchTotals.InvoicedMTDTotal); s.Add (t2); // Section s2 = new Section (branch.name + " Recorded MTD"); s2.Add (getElement (branch.branchTotals.recordedMTD.achieved, "Achieved: ")); s2.Add (getElement (branch.branchTotals.recordedMTD.estimatedTarget, "Estimated Target: ")); s2.Add (getElement (branch.branchTotals.recordedMTD.invoicedDebits, "Invoiced Debits: ")); s2.Add (getElement (branch.branchTotals.recordedMTD.unbilled, "Unbilled: ")); s2.Add (getElement (branch.branchTotals.recordedMTD.total, "Total: ")); // Section s21 = new Section (branch.name + " Recorded YTD"); s21.Add (getElement (branch.branchTotals.recordedYTD.achieved, "Achieved: ")); s21.Add (getElement (branch.branchTotals.recordedYTD.estimatedTarget, "Estimated Target: ")); s21.Add (getElement (branch.branchTotals.recordedYTD.invoiced, "Invoiced: ")); s21.Add (getElement (branch.branchTotals.recordedYTD.unbilled, "Unbilled: ")); s21.Add (getElement (branch.branchTotals.recordedYTD.total, "Total: ")); Root.Add (s); Root.Add (s2); Root.Add (s21); } for (var i = 0; i < 10; i++) { Root.Add (new Section (" ")); } }
/* * "practiceTotals":{"invoicedMTDTotal":0.0, "matterActivity":{"active":581,"workedOn":529,"newWork":581,"deactivated":0,"noActivity":0,"noActivityDuration":"6 Months"}, "matterBalances":{"unbilled":107253.15,"pendingDisbursements":500.0,"investment":-1000.0,"trust":-5852921.0,"business":704265.82}}}} */ public void buildFeeTargetReport() { Root = new RootElement ("Practice Matter Analysis"); Stripper.SetReportHeader (Root, "Practice Matter Analysis", null, contentWidth); PracticeTotals totals = this.report.practiceTotals; //var totSection = new Section ("Practice Totals"); //Root.Add (totSection); if (totals.matterActivity != null) { var matterActivitySection = new Section (); var mTitle = new TitleElement ("Matter Activity"); matterActivitySection.Add (mTitle); matterActivitySection.Add (new NumberElement (totals.matterActivity.active, "Active: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.deactivated, "Deactivated: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.newWork, "New Work: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.workedOn, "Worked On: ")); matterActivitySection.Add (new NumberElement (totals.matterActivity.noActivity, "No Activity: ")); matterActivitySection.Add (new StringElement ("No Activity Duration: " + totals.matterActivity.noActivityDuration)); Root.Add (matterActivitySection); } // if (totals.matterBalances != null) { var matterBalancesSection = new Section (); var mTitle = new TitleElement ("Matter Balances"); matterBalancesSection.Add (mTitle); matterBalancesSection.Add (getElement (totals.matterBalances.business, S.GetText (S.BUSINESS) + ": ")); matterBalancesSection.Add (getElement (totals.matterBalances.trust, S.GetText (S.TRUST_BALANCE) + ": ")); matterBalancesSection.Add (getElement (totals.matterBalances.investment, S.GetText (S.INVESTMENTS) + ": ")); matterBalancesSection.Add (getElement (totals.matterBalances.unbilled, "Unbilled: ")); matterBalancesSection.Add (getElement (totals.matterBalances.pendingDisbursements, "Pending Disb.: ")); Root.Add (matterBalancesSection); } }