Module: ODDB::View::PrintComposite

Included in:
Drugs::FachinfoPrintComposite, Drugs::PatinfoPrintComposite
Defined in:
src/view/printtemplate.rb

Constant Summary

COLSPAN_MAP =
{}
COMPONENTS =
{
  [0,0] =>  :print_type,
  [0,1] =>  :name,
  [0,2] =>  :company_name,
  [0,3] =>  :document,
}
CSS_MAP =
{
  [0,1] => 'print big',
  [0,2] => 'list right',
}

Instance Method Summary (collapse)

Instance Method Details

- (Object) document(model, session = @session)



55
56
57
58
59
# File 'src/view/printtemplate.rb', line 55

def document(model, session=@session)
  if(document = model.send(session.language))
    self::class::INNER_COMPOSITE.new(document, session, self)
  end
end

- (Object) name(model, session = @session)



50
51
52
53
54
# File 'src/view/printtemplate.rb', line 50

def name(model, session=@session)
  if(document = model.send(session.language))
    document.name
  end
end


60
61
62
# File 'src/view/printtemplate.rb', line 60

def print_type(model, session=@session)
  @lookandfeel.lookup(self::class::PRINT_TYPE)
end