Class: ODDB::View::Companies::AjaxCompanyForm

Inherits:
UserCompanyForm show all
Defined in:
src/view/companies/company.rb

Direct Known Subclasses

AjaxInfoCompanyForm, AjaxInsuranceCompanyForm, AjaxOtherCompanyForm, AjaxPharmaCompanyForm, AjaxUnknownCompanyForm

Constant Summary

SYMBOL_MAP =
{
  :address_header           => HtmlGrid::Text,
  :cl_status                =>  HtmlGrid::Select,
  :complementary_type       => HtmlGrid::Select,
  :disable_invoice_fachinfo =>  HtmlGrid::InputCheckbox,
  :disable_invoice_patinfo  => HtmlGrid::InputCheckbox,
  :disable_patinfo          => HtmlGrid::InputCheckbox,
  :generic_type             =>  HtmlGrid::Select,
  :invoice_date_fachinfo    => HtmlGrid::InputDate,
  :invoice_date_index       => HtmlGrid::InputDate,
  :invoice_date_lookandfeel =>  HtmlGrid::InputDate,
  :invoice_date_patinfo     =>  HtmlGrid::InputDate,
  :invoice_email            =>  HtmlGrid::InputText,
  :invoice_htmlinfos        =>  HtmlGrid::InputCheckbox,
  :limit_invoice_duration   =>  HtmlGrid::InputCheckbox,
  :force_new_ydim_debitor   =>  HtmlGrid::InputCheckbox,
  :logo_file                =>  HtmlGrid::InputFile,
  :nbsp                     =>  HtmlGrid::Text,
  :price_index              => HtmlGrid::InputCurrency,
  :price_index_package      => HtmlGrid::InputCurrency,
  :price_lookandfeel        =>  HtmlGrid::InputCurrency,
  :price_lookandfeel_member =>  HtmlGrid::InputCurrency,
  :registration_count       => HtmlGrid::Value,  
}

Constants inherited from UserCompanyForm

COMPONENTS, COMPONENT_CSS_MAP, CSS_MAP, LABELS, LEGACY_INTERFACE, SYMBOL_MAP, TAG_METHOD

Constants included from FormMethods

ACCEPT_CHARSET, DEFAULT_CLASS, EVENT

Instance Method Summary (collapse)

Methods inherited from UserCompanyForm

#address, #address_delegate, #city, #company_name, #fax, #fipi_overview, #fon, #init, #patinfo_stats, #plz, #set_pass

Methods included from FormMethods

#delete_item, #delete_item_warn, #get_event_button, #post_event_button

Instance Method Details

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



230
231
232
233
234
235
236
# File 'src/view/companies/company.rb', line 230

def business_area(model, session=@session)
  select = HtmlGrid::Select.new(:business_area, model, @session, self)
  url = @lookandfeel._event_url(:ajax, {:business_area => ''})
  script = "update_company('#{url}' + this.value)"
  select.set_attribute('onChange', script)
  select
end