
function ListPinkNewsSimple(caller,viewer,pageSize,body,isOpenTab,applicationId,callback)
{this.caller=caller;this.viewer=viewer;this.pageSize=pageSize;this.body=body;this.isOpenTab=isOpenTab;this.callback=callback;if(!this.isOpenTab)
{this.storyViewer=new NewsReleaseHtml(new NewsContentHtml(false));this.contentWindow=new ContentWindow();}
this.applicationId=applicationId;}
ListPinkNewsSimple.prototype=new WorklistSimple();ListPinkNewsSimple.prototype.doQxHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQX,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestQx=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQX,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doIqHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCIQ,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestIq=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCIQ,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doPsHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_PINKSHEETS,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestPs=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_PINKSHEETS,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doQtHome=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQUOTE,STATUS_ID_ACTIVE,true),body);}
ListPinkNewsSimple.prototype.doLatestQt=function(body)
{this.run(new PinkNewsFilter(APPLICATION_ID_OTCQUOTE,STATUS_ID_ACTIVE),body);}
ListPinkNewsSimple.prototype.doSearch=function(filter,body)
{this.run(filter,body);}
ListPinkNewsSimple.prototype.makeCall=function(criteria,dataHandler)
{this.caller.getPinkNewsReleases(criteria,dataHandler);}
ListPinkNewsSimple.prototype.handleOpenContents=function(ev)
{var me=this.myCallback;var criteria=this.myValue.criteria;var id=this.myRecord.id;me.showContents(me.isOpenTab,id,criteria);return false;}
ListPinkNewsSimple.prototype.showContents=function(isOpenTab,id,criteria){if(isOpenTab){eval(appNav.gotoAllPinkSheetsNews())}else{var me=this;this.caller.getPinkNewsRelease(id,{handleRequestData:function(record)
{if(record.typeId==PINK_SHEETS_COVERAGE_NEWS_TYPE_ID)
{var openUrl=toHttpURLformat(record.contents)
window.open(openUrl);}
else
{var wrapper=new AjaxDataHandler(me,criteria);wrapper.reopen=me.reopen;var contents=me.storyViewer.generate(record,wrapper);me.contentWindow.runInline(new ContentWindowInfo(record.title,contents,criteria.body));}}});}}
ListPinkNewsSimple.prototype.reopen=function(ev)
{var wrapper=this.myCallback;wrapper.callback.run(wrapper.criteria);}
ListPinkNewsSimple.prototype.doNewsDetail=function(ev)
{this.myCallback.callback.doPinkNewsDetail(this.myRecord);}