[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRo
Brought to you by:
glauco_1
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6711/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows Modified Files: TotalNumberOfTrades.cs TotalNumberOfShortTrades.cs TotalNumberOfLongTrades.cs TotalNetProfit.cs Log Message: Reordered the process to populate the summary. Now, to add a summary item, you just need to add a new SummaryRow object to the QuantProject.Business.Financial.Accounting.Reporting.Tables.Summary object. Index: TotalNetProfit.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/TotalNetProfit.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TotalNetProfit.cs 15 Feb 2005 19:09:04 -0000 1.2 --- TotalNetProfit.cs 19 Jun 2005 14:42:23 -0000 1.3 *************** *** 9,15 **** /// </summary> [Serializable] ! public class TotalNetProfit : SummaryRow { ! public TotalNetProfit( Summary summary ) { this.rowDescription = "Total net profit"; --- 9,15 ---- /// </summary> [Serializable] ! public class TotalNetProfit : DoubleSummaryRow { ! public TotalNetProfit( Summary summary ) : base( 2 ) { this.rowDescription = "Total net profit"; Index: TotalNumberOfShortTrades.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/TotalNumberOfShortTrades.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TotalNumberOfShortTrades.cs 19 Feb 2005 15:58:52 -0000 1.3 --- TotalNumberOfShortTrades.cs 19 Jun 2005 14:42:23 -0000 1.4 *************** *** 11,15 **** /// </summary> [Serializable] ! public class TotalNumberOfShortTrades : SummaryRow { public TotalNumberOfShortTrades( Summary summary ) --- 11,15 ---- /// </summary> [Serializable] ! public class TotalNumberOfShortTrades : IntegerSummaryRow { public TotalNumberOfShortTrades( Summary summary ) Index: TotalNumberOfLongTrades.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/TotalNumberOfLongTrades.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TotalNumberOfLongTrades.cs 19 Feb 2005 15:58:52 -0000 1.3 --- TotalNumberOfLongTrades.cs 19 Jun 2005 14:42:23 -0000 1.4 *************** *** 11,17 **** /// </summary> [Serializable] ! public class TotalNumberOfLongTrades : SummaryRow { ! public TotalNumberOfLongTrades( Summary summary ) { double totalROA = summary.TotalPnl / ( summary.FinalAccountValue - summary.TotalPnl ); --- 11,17 ---- /// </summary> [Serializable] ! public class TotalNumberOfLongTrades : IntegerSummaryRow { ! public TotalNumberOfLongTrades( Summary summary ) : base() { double totalROA = summary.TotalPnl / ( summary.FinalAccountValue - summary.TotalPnl ); Index: TotalNumberOfTrades.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/TotalNumberOfTrades.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TotalNumberOfTrades.cs 19 Feb 2005 16:02:15 -0000 1.3 --- TotalNumberOfTrades.cs 19 Jun 2005 14:42:23 -0000 1.4 *************** *** 1,4 **** --- 1,6 ---- using System; using System.Data; + + using QuantProject.ADT; using QuantProject.Business.Financial.Accounting.Reporting.Tables; *************** *** 9,13 **** /// </summary> [Serializable] ! public class TotalNumberOfTrades : SummaryRow { public TotalNumberOfTrades( Summary summary ) --- 11,15 ---- /// </summary> [Serializable] ! public class TotalNumberOfTrades : IntegerSummaryRow { public TotalNumberOfTrades( Summary summary ) *************** *** 15,18 **** --- 17,21 ---- double totalROA = summary.TotalPnl / ( summary.FinalAccountValue - summary.TotalPnl ); this.rowDescription = "Total # of trades"; + this.format = ConstantsProvider.FormatWithZeroDecimals; try { |