Class: BBMB::Html::View::CurrentOrderComposite
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- BBMB::Html::View::CurrentOrderComposite
- Includes:
- UnavailableMethods
- Defined in:
- lib/bbmb/html/view/current_order.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => Search, [1,0] => :position_count, [2,0] => :barcode_reader, [3,0] => :order_transfer, [4,0] => :clear_order, [0,1] => CurrentPositions, [0,2] => :unavailables, }
- CSS_ID_MAP =
[ 'toolbar' ]
Instance Method Summary collapse
- #barcode_reader(model) ⇒ Object
- #clear_order(model) ⇒ Object
- #init ⇒ Object
- #order_transfer(model) ⇒ Object
- #position_count(model) ⇒ Object
Methods included from UnavailableMethods
Instance Method Details
#barcode_reader(model) ⇒ Object
437 438 439 440 441 |
# File 'lib/bbmb/html/view/current_order.rb', line 437 def (model) if(@session.client_activex? && !@lookandfeel.disabled?(:barcode_reader)) BarcodeReader.new(model, @session, self) end end |
#clear_order(model) ⇒ Object
442 443 444 445 446 |
# File 'lib/bbmb/html/view/current_order.rb', line 442 def clear_order(model) unless(model.empty?) ClearOrder.new(model, @session, self) end end |
#init ⇒ Object
431 432 433 434 435 436 |
# File 'lib/bbmb/html/view/current_order.rb', line 431 def init if(!@model.empty? || @lookandfeel.enabled?(:additional_info_first)) components.store([1,2], CurrentOrderForm) end super end |
#order_transfer(model) ⇒ Object
447 448 449 450 451 |
# File 'lib/bbmb/html/view/current_order.rb', line 447 def order_transfer(model) unless(@lookandfeel.disabled?(:transfer_dat)) TransferDat.new(:order_transfer, model, @session, self) end end |
#position_count(model) ⇒ Object
452 453 454 455 456 457 |
# File 'lib/bbmb/html/view/current_order.rb', line 452 def position_count(model) span = HtmlGrid::Span.new(model, @session, self) span.value = @lookandfeel.lookup(:positions, model.size) span.css_class = 'guide' span end |