Class: ODDB::View::Companies::FiPiOverviewComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/companies/fipi_overview.rb

Constant Summary

COMPONENTS =
{
  [0,0] => :counts,
  [1,0] => ExportCSV, 
  [0,1,0] => 'company', 
  [0,1,1] => :name, 
  [0,2]   => "fipi_overview_explain", 
  [0,3]   => :fipi_list, 
}
COLSPAN_MAP =
{
  [0,1] => 2,
  [0,2] => 2,
  [0,3] => 2,
}
CSS_MAP =
{
  [0,0] => 'result-found',
  [0,1] => 'th',
  [0,2] => 'migel-group list',
}
CSS_CLASS =
'composite'
DEFAULT_CLASS =
HtmlGrid::Value
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) counts(model)



104
105
106
# File 'src/view/companies/fipi_overview.rb', line 104

def counts(model)
  @lookandfeel.lookup(:fipi_counts, model.fi_count, model.pi_count)
end

- (Object) fipi_list(model)



107
108
109
# File 'src/view/companies/fipi_overview.rb', line 107

def fipi_list(model)
  FiPiOverviewList.new(model.packages, @session, self)
end