app/models/user_info.rb
# current user state with category and main_affiliation

current user state with category and main_affiliation
current user state with category and main_affiliation
def current_state_in_organization(options = {})
    result = UserInfo.find :first,
                  :scope      => A_Net,
                  :select     => List_Items,
                  :assert_time => :show_time,
                  :conditions  => "user_infos.run_id = #{self.run_id}",
                  :order      => "organizations.seq, aff_fullseq, sta_fullseq"   
    result.category = result.user_category_from_status()
    result.main_affiliation = Affiliation.find_entity(result.affiliation_id)
    return result
  end
def current_state_in_organization ( options = { } ) result = UserInfo . find :first , :scope => A_Net , :select => List_Items , :assert_time => :show_time , :conditions => "user_infos.run_id = #{self.run_id}" , :order => "organizations.seq, aff_fullseq, sta_fullseq" result . category = result . user_category_from_status ( ) result . main_affiliation = Affiliation . find_entity ( result . affiliation_id ) return result end
current user state with category and main_affiliation
current user state with category and main_affiliation
# order to obtain main organizational position of the user

options
<not_specific>