class InternetRecharges
Public Instance Methods
layout()
click to toggle source
# File Views/Internet/Recharges.rb, line 2 def layout @order = 600 @update = true @functions_need = [:internet_mobile, :network_pro] set_data_class :Recharges gui_hbox do gui_vbox :nogroup do show_entity_recharge_all :recharges, :single, :time, width: 200, callback: true show_button :new, :delete end gui_vbox :nogroup do show_block :default, width: 200 show_button :save end end end
rpc_list_choice_recharges(session, data)
click to toggle source
# File Views/Internet/Recharges.rb, line 45 def rpc_list_choice_recharges(session, data) reply(:empty_nonlists) + reply(:update, data._recharges.to_hash) end
rpc_update(_session, select = nil)
click to toggle source
# File Views/Internet/Recharges.rb, line 21 def rpc_update(_session, select = nil) recharges = Recharges.search_all_.collect { |r| [r.recharge_id, r.time] }.reverse select and recharges.push(select) reply(:empty_all) + reply(:update, recharges: recharges) end