
function TierSecurityStatsWorklistDOM(){}
TierSecurityStatsWorklistDOM.prototype=new WorklistDOM();TierSecurityStatsWorklistDOM.prototype.generate=function(value,callback)
{var records=value.records;if((undefined==records)||(0==records.length))
this.createNoDataFound();var tbody,row,cell,elem,rows=0,table=document.createElement('table');table.id='snapshotTable';row=table.createTHead().insertRow(-1);this.createHeader(row,0,'');this.createHeader(row,1,'No. Securities');this.createHeader(row,2,'$ Vol');table.appendChild(tbody=document.createElement('tbody'));for(var i=0;i<records.length;i++)
{var record=records[i];row=tbody.insertRow(-1);this.createDetailRow(row,record.tierName,Formatter.toVolume(record.count),Formatter.toVolume(record.sumDollarVolume));}
cell=(row=table.createTFoot().insertRow(-1)).insertCell(0);cell.innerHTML=Formatter.toFullDate(value.statsDate);cell=row.insertCell(1);cell.colSpan=2;cell.innerHTML='More Market Data at ';var a=document.createElement('a');a.href=otcUrls.pinksheetsUrl;a.innerHTML=otcUrls.pinksheetsDomain;cell.appendChild(a);return table;}
TierSecurityStatsWorklistDOM.prototype.createDetailRow=function(row,tierName,count,volume){var elem=row.appendChild(document.createElement('th'));elem.appendChild(document.createTextNode(tierName));row.appendChild(elem);elem=row.insertCell(1);elem.innerHTML=count;elem=row.insertCell(2);elem.innerHTML=volume;}
TierSecurityStatsWorklistDOM.prototype.createHeader=function(row,cell,text){cell=document.createElement('th');cell.scope='col';cell.appendChild(document.createTextNode(text));row.appendChild(cell);}
TierSecurityStatsWorklistDOM.prototype.createTotalCell=function(row,cell,value)
{var elem,output=row.insertCell(cell);output.appendChild(elem=document.createElement('b'));elem.innerHTML=value;return output;}
TierSecurityStatsWorklistDOM.prototype.createTotalCellX=function(row,cell,value)
{var output=this.createTotalCell(row,cell,value);output.style.textAlign='right';output.style.paddingLeft='8px';return output;}