Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21057/b4_Business/a1_Financial/a2_Accounting/h5_Reporting
Modified Files:
AccountReport.cs
Log Message:
Code has been formatted: tab are used instead of blanks
Index: AccountReport.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/AccountReport.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** AccountReport.cs 15 Oct 2005 17:58:03 -0000 1.16
--- AccountReport.cs 11 Jan 2006 18:38:10 -0000 1.17
***************
*** 157,161 ****
private void addBalanceItems ( EndOfDayDateTime endOfDayDateTime , DataRow dataRow )
{
! dataRow[ "AccountCash" ] = this.accountCopy.CashAmount;
dataRow[ "PortfolioValue" ] = this.accountCopy.Portfolio.GetMarketValue(
endOfDayDateTime , this.historicalQuoteProvider );
--- 157,161 ----
private void addBalanceItems ( EndOfDayDateTime endOfDayDateTime , DataRow dataRow )
{
! dataRow[ "AccountCash" ] = this.accountCopy.CashAmount;
dataRow[ "PortfolioValue" ] = this.accountCopy.Portfolio.GetMarketValue(
endOfDayDateTime , this.historicalQuoteProvider );
***************
*** 165,169 ****
this.accountCopy.Transactions.TotalWithdrawn -
this.accountCopy.Transactions.TotalAddedCash;
! }
private void addTransactionRow( EndOfDayTransaction transaction ,
System.Data.DataTable detailedDataTable )
--- 165,169 ----
this.accountCopy.Transactions.TotalWithdrawn -
this.accountCopy.Transactions.TotalAddedCash;
! }
private void addTransactionRow( EndOfDayTransaction transaction ,
System.Data.DataTable detailedDataTable )
***************
*** 183,187 ****
dataRow[ "Commission" ] = transaction.Commission.Value;
addBalanceItems( transaction.EndOfDayDateTime , dataRow );
! detailedDataTable.Rows.Add( dataRow );
}
private void addRowsForTransactions( DateTime currentDateTime ,
--- 183,187 ----
dataRow[ "Commission" ] = transaction.Commission.Value;
addBalanceItems( transaction.EndOfDayDateTime , dataRow );
! detailedDataTable.Rows.Add( dataRow );
}
private void addRowsForTransactions( DateTime currentDateTime ,
***************
*** 192,198 ****
(ArrayList)this.account.Transactions[ currentDateTime ] )
{
! this.accountCopy.Add( transaction );
addTransactionRow( transaction , detailedDataTable );
! }
}
private void addRowForPnl_actually( DateTime currentDate ,
--- 192,198 ----
(ArrayList)this.account.Transactions[ currentDateTime ] )
{
! this.accountCopy.Add( transaction );
addTransactionRow( transaction , detailedDataTable );
! }
}
private void addRowForPnl_actually( DateTime currentDate ,
***************
*** 222,226 ****
addRowsForTransactions( currentDate , detailedDataTable );
addRowForPnl( numDaysForInterval , currentDate , detailedDataTable );
! currentDate = currentDate.AddDays( 1 );
}
// foreach ( ArrayList transactionList in account.Transactions.Values )
--- 222,226 ----
addRowsForTransactions( currentDate , detailedDataTable );
addRowForPnl( numDaysForInterval , currentDate , detailedDataTable );
! currentDate = currentDate.AddDays( 1 );
}
// foreach ( ArrayList transactionList in account.Transactions.Values )
|