
function ListFinancialReportSimple(caller,viewer,pageSize,body,statementViewer,pager)
{this.caller=caller;this.viewer=viewer;this.pageSize=pageSize;this.body=body;this.statementViewer=statementViewer;this.pager=pager;}
ListFinancialReportSimple.prototype=new WorklistSimple();ListFinancialReportSimple.prototype.doSearch=function(company,statusId,body)
{this.run(new ListFinancialReportCriteria(company.getId(),statusId),body);}
ListFinancialReportSimple.prototype.doCompany=function(companyId,body)
{this.run(new ListFinancialReportCriteria(companyId,STATUS_ID_ACTIVE),body);}
ListFinancialReportSimple.prototype.doFilings=function(companyId,body)
{this.doFilingsByStatus(companyId,STATUS_ID_ACTIVE,body);}
ListFinancialReportSimple.prototype.doFilingsByStatus=function(companyId,statusId,body)
{var filter=new ListFinancialReportCriteria(companyId,statusId);filter.onlyFilings=true;this.run(filter,body);}
ListFinancialReportSimple.prototype.doResearchReports=function(companyId,body)
{var filter=new ListFinancialReportCriteria(companyId,STATUS_ID_ACTIVE);filter.includeTypes=FIN_REPORT_RESEARCH_REPORT;this.run(filter,body);}
ListFinancialReportSimple.prototype.doLatest=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.doQx=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.isQX=true;criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.doHomePageLatest=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.onlyRecent=true;criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.doHomePageQx=function(body)
{var criteria=new ListFinancialReportCriteria(undefined,STATUS_ID_ACTIVE);criteria.onlyRecent=true;criteria.isQX=true;criteria.isHomePage=true;this.run(criteria,body);}
ListFinancialReportSimple.prototype.makeCall=function(criteria,dataHandler)
{this.caller.getFinancialReports(criteria,dataHandler);}
ListFinancialReportSimple.prototype.changeStatus=function(ev)
{var me=this.myCallback;var criteria=this.myValue.criteria;criteria.statusId=this.myStatusId;mw.run(criteria);}
ListFinancialReportSimple.prototype.handleOpenContents=function(ev)
{this.myCallback.pager.openFinancialReport(this.myRecord.id);return false;}
ListFinancialReportSimple.prototype.handleSelection=function(ev)
{this.myCallback.pager.gotoFinancialReports(this.myRecord.symbol);return false;}