class CashboxCredit
This module allows for charging the internet-credit of a person. You can also add a new person
Public Instance Methods
layout()
click to toggle source
# File Views/Cashbox/Credit.rb, line 7 def layout set_data_class :Persons @order = 30 @update = true @functions_need = [:internet, :internet_cyber] gui_hbox do gui_vbox :nogroup do show_str :search show_entity_person :person, :single, :login_name, :callback => true show_button :search_person, :add_person end gui_vbox :nogroup do show_int :credit_add show_str_ro :login_name show_str_ro :full_name show_int_ro :internet_credit show_button :add_credit end gui_window :win_add do show_str :full_name show_button :win_add_person, :close end end end
rpc_list_choice_person(session, data)
click to toggle source
# File Views/Cashbox/Credit.rb, line 72 def rpc_list_choice_person(session, data) dputs(2) { "Got data: #{data.inspect}" } if data._person reply(:empty_update, data._person) + reply(:focus, :credit_add) end end
rpc_update(session)
click to toggle source
Calls superclass method
# File Views/Cashbox/Credit.rb, line 67 def rpc_update(session) super(session) + reply(:parent, reply(:focus, :search)) end