Class: YDIM::Html::View::DebitorComposite
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- YDIM::Html::View::DebitorComposite
- Defined in:
- lib/ydim/html/view/debitor.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => DebitorForm, [0,1] => :is_open, [1,1] => :is_due, [2,1] => :is_paid, [3,1] => :is_trash, [0,2] => :invoices, [0,3] => :invoice_list, [0,4] => :create_invoice, [0,5] => :autoinvoices, [0,6] => :autoinvoice_list, [0,7] => :create_autoinvoice, }
- CSS_MAP =
{ 1 => 'subnavigation', 2 => 'padded', 4 => 'padded', 5 => 'padded', 7 => 'padded', }
- SYMBOL_MAP =
{ :invoices => HtmlGrid::LabelText, :autoinvoices => HtmlGrid::LabelText, }
Instance Method Summary collapse
- #autoinvoice_list(model) ⇒ Object
- #button(key, model) ⇒ Object
- #create_autoinvoice(model) ⇒ Object
- #create_invoice(model) ⇒ Object
- #invoice_list(model) ⇒ Object
Instance Method Details
#autoinvoice_list(model) ⇒ Object
81 82 83 |
# File 'lib/ydim/html/view/debitor.rb', line 81 def autoinvoice_list(model) AutoInvoiceList.new(@session.state.autoinvoice_infos, @session, self) end |
#button(key, model) ⇒ Object
84 85 86 87 88 89 90 91 92 |
# File 'lib/ydim/html/view/debitor.rb', line 84 def (key, model) if(model.unique_id) = HtmlGrid::Button.new(key, model, @session, self) args = {:unique_id => model.unique_id} url = @lookandfeel._event_url(key, args) .set_attribute('onClick', "document.location.href='#{url}'") end end |
#create_autoinvoice(model) ⇒ Object
93 94 95 |
# File 'lib/ydim/html/view/debitor.rb', line 93 def create_autoinvoice(model) (:create_autoinvoice, model) end |
#create_invoice(model) ⇒ Object
96 97 98 |
# File 'lib/ydim/html/view/debitor.rb', line 96 def create_invoice(model) (:create_invoice, model) end |
#invoice_list(model) ⇒ Object
99 100 101 |
# File 'lib/ydim/html/view/debitor.rb', line 99 def invoice_list(model) InvoiceList.new(@session.state.invoice_infos, @session, self) end |