class TaskList
Public Instance Methods
layout()
click to toggle source
# File Views/Task/List.rb, line 3 def layout set_data_class :Tasks @update = true gui_hbox do gui_vbox :nogroup do show_list_drop :year, "View.TaskList.list_years" show_list_drop :month, "1.upto(12).to_a" show_list_drop :person, "Entities.Workers.list_full_name" show_list_drop :client, "Entities.Clients.list_name" show_button :list end gui_vbox :nogroup do show_text :tasks_done show_text :summary end end end
list_years()
click to toggle source
# File Views/Task/List.rb, line 22 def list_years to = from = Time.now.year Entities.Tasks.list_date{|d| year = d.sub( /.*\./, '' ) dputs( 5 ){ "date is #{d}, year is #{year}" } from = [ from, year ].min to = [ to, year ].max } dputs( 5 ){ "from #{from} to #{to}" } from.upto( to ).to_a end