Class: ODDB::View::Drugs::PriceHistoryComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/drugs/price_history.rb

Constant Summary

COMPONENTS =
{
  [0,0,0] =>  :package_name,
  [0,0,1] =>  " - ",
  [0,0,2] =>  :article_24,
  [0,1]   =>  PriceHistoryList,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) article_24(model)



102
103
104
105
106
107
# File 'src/view/drugs/price_history.rb', line 102

def article_24(model)
  link = HtmlGrid::Link.new(:article_24, model, @session, self)
  link.href = @lookandfeel.lookup(:article_24_url)
  link.css_class = 'footnote'
  link
end

- (Object) package_name(model)



108
109
110
111
112
113
# File 'src/view/drugs/price_history.rb', line 108

def package_name(model)
  if pack = model.package
    sprintf "%s - %s - %s %s", pack.name, 
            pack.size, pack.iksnr, pack.ikscd
  end
end