Class: OLE_QA::Framework::OLEFS::Copies_Line

Inherits:
Subline_Object show all
Defined in:
lib/olefs/subobjects/copies_line.rb

Overview

A Copies Line in an OLE Financial System PURAP E-Document.

Instance Attribute Summary

Attributes inherited from Subline_Object

#parent_line

Attributes inherited from Line_Object

#line_number, #sublines

Attributes inherited from Common_Object

#elements, #functions, #ole

Instance Method Summary collapse

Methods inherited from Subline_Object

#initialize

Methods inherited from Line_Object

#initialize, #line_id, #set_subline

Methods inherited from Common_Object

#initialize, #set_functions

Methods included from Helpers

#browser, #load_yml, #set_element, #set_function

Constructor Details

This class inherits a constructor from OLE_QA::Framework::Subline_Object

Instance Method Details

#set_elementsObject

Set copies line elements.



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/olefs/subobjects/copies_line.rb', line 19

def set_elements
  super
  element(:location_copies_selector)        {b.select_list(:id => "document.item[#{@parent_line.line_id}].copies[#{line_id}].location_copies")}
  element(:copies)                          {b.div(:id => "document.item[#{@parent_line.line_id}].copies[#{line_id}].itemCopies")}
  element(:parts)                           {b.div(:id => "document.item[#{@parent_line.line_id}].copies[#{line_id}].parts")}
  element(:starting_copy_field)             {b.text_field(:id => "document.item[#{@parent_line.line_id}].copies[#{line_id}.startingCopyNumber")}
  element(:caption_field)                   {b.text_field(:id => "document.item[#{@parent_line.line_id}].copies[#{line_id}.caption")}
  element(:volume_number_field)             {b.text_field(:id => "document.item[#{@parent_line.line_id}].copies[#{line_id}.volumeNumber")}
  element(:delete_button)                   {b.input(:name => "methodToCall.deleteCopy.line#{@parent_line.line_id}:#{line_id}")}
  element(:receive_button)                  {b.input(:name => "methodToCall.receiveCopy.line#{@parent_line.line_id}:#{line_id}")}
end