[Quantproject-developers] QuantProject/b7_Scripts/CallingReportsForRunScripts ShowReportFromFile.cs,
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2005-02-12 19:14:00
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/CallingReportsForRunScripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv369/b7_Scripts/CallingReportsForRunScripts Modified Files: ShowReportFromFile.cs Log Message: Now a ReportShower is used, inside method for calling report using a serialized account. Added method ShowReportFromSerializedAccountReport. (it has to be completed; must talk to Glauco: how many serialized objects are necessary for calling Report?) Index: ShowReportFromFile.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/CallingReportsForRunScripts/ShowReportFromFile.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ShowReportFromFile.cs 6 Feb 2005 20:06:05 -0000 1.1 --- ShowReportFromFile.cs 12 Feb 2005 19:13:50 -0000 1.2 *************** *** 24,27 **** --- 24,28 ---- using QuantProject.Business.Timing; using QuantProject.Business.Financial.Accounting; + using QuantProject.Business.Financial.Accounting.Reporting; using QuantProject.Business.DataProviders; using QuantProject.ADT.FileManaging; *************** *** 45,53 **** Account account = (Account)ObjectArchiver.Extract(serializedAccountFullPath); - Report report = new Report(account, new HistoricalAdjustedQuoteProvider()); ! report.Show("CtcPortfolio",3, ! new EndOfDayDateTime(new DateTime(2004,10,31), EndOfDaySpecificTime.MarketClose), "^MIBTEL"); ! } catch(System.Exception ex) --- 46,52 ---- Account account = (Account)ObjectArchiver.Extract(serializedAccountFullPath); Report report = new Report(account, new HistoricalAdjustedQuoteProvider()); ! ReportShower reportShower = new ReportShower(report); ! reportShower.Show(); } catch(System.Exception ex) *************** *** 56,59 **** --- 55,74 ---- } } + + public static void ShowReportFromSerializedAccountReport(string serializedAccountReportFullPath) + { + try + { + AccountReport accountReport = + (AccountReport)ObjectArchiver.Extract(serializedAccountReportFullPath); + ///TODO: ... + + } + catch(System.Exception ex) + { + System.Windows.Forms.MessageBox.Show(ex.ToString()); + } + } + } } |