Class: ODDB::View::Admin::RegistrationInnerComposite

Inherits:
HtmlGrid::Composite show all
Includes:
HtmlGrid::ErrorMessage, ODDB::View::AdditionalInformation
Defined in:
src/view/admin/registration.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => :iksnr,
  [2,0]   => :registration_date,
  [0,1]   => :company_name,
  [2,1]   => :revision_date,
  [0,2]   => :generic_type,
  [2,2]   => :expiration_date,
  [0,3]   => :indication,
  [2,3]   => :market_date,
  [0,4]   =>  :index_therapeuticus,
  [2,4]   => :inactive_date,
  [0,5]   =>  :ith_swissmedic,
  [2,5]   =>  :fachinfo_label,
  [3,5]   =>  :fachinfo,
}
CSS_MAP =
{
  [0,0,4,6] =>  'list',
}
DEFAULT_CLASS =
HtmlGrid::Value
LABELS =
true
SYMBOL_MAP =
{
  :expiration_date    =>  HtmlGrid::DateValue,
  :fachinfo_label     =>  HtmlGrid::LabelText,
  :inactive_date      => HtmlGrid::DateValue,
  :market_date        => HtmlGrid::DateValue,
  :registration_date  => HtmlGrid::DateValue,
  :revision_date      => HtmlGrid::DateValue,
}

Instance Method Summary (collapse)

Methods included from ODDB::View::AdditionalInformation

#_fachinfo, #atc_ddd_link, #atc_description, #comarketing, #complementary_type, #compositions, #ddd_price, #deductible, #fachinfo, #feedback, #google_search, #ikscat, #limitation_link, #limitation_text, #minifi, #narcotic, #notify, #patent, #patinfo, #qty_unit, #square, #twitter_share

Methods included from PartSize

#comparable_size, #part_size

Methods included from Drugs::AtcDddLink

#atc_ddd_link

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) generic_type(model, session)



131
132
133
134
135
# File 'src/view/admin/registration.rb', line 131

def generic_type(model, session)
  if(key = model.generic_type)
    label(HtmlGrid::Text.new(key, model, session, self))
  end
end