public ReportViewItem(FxExpTradeData item) { Entity = item.Entity; ProductType = item.ProductType; Description = item.Description; NotionalCurrency = item.Currency; CurrentNotional = item.CurrentNotional; TradeId = item.TradeId; Status = item.Status; Book = item.Book; BookId = item.BookId; }
public static void DisplayPlItem(FxExpTradeData fxexpoTradeData) { var sb = new StringBuilder(); sb.Append("\n"); sb.Append("Trade ID : ").Append(fxexpoTradeData.TradeId).Append(" | "); sb.Append("Entity : ").Append(fxexpoTradeData.Entity).Append(" | "); sb.Append("Product Type : ").Append(fxexpoTradeData.ProductType).Append(" | "); sb.Append("Description : ").Append(fxexpoTradeData.Description).Append(" | "); sb.Append("Currency : ").Append(fxexpoTradeData.Currency).Append(" | "); sb.Append("Current Notional : ").Append(fxexpoTradeData.CurrentNotional).Append(" | "); sb.Append("Status : ").Append(fxexpoTradeData.Status).Append(" | "); sb.Append("Book : ").Append(fxexpoTradeData.Book).Append(" | "); sb.Append("Book ID: ").Append(fxexpoTradeData.BookId).Append(" | "); sb.Append("\n"); SLog.log.InfoFormat(sb.ToString()); }