You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

contesting_softapplication.rb 815 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12345678910111213141516171819202122232425262728
  1. class ContestingSoftapplication < ActiveRecord::Base
  2. attr_accessible :contest_id, :description, :softapplication_id, :user_id
  3. belongs_to :contest
  4. belongs_to :softapplication
  5. belongs_to :user
  6. def self.create_softapplication_contesting(contest_id, softapplication_id, description = nil)
  7. self.create(:user_id => User.current.id, :contest_id => contest_id,
  8. :softapplication_id => softapplication_id, :description => description)
  9. end
  10. def self.create_work_contesting(contest_id, softapplication_id)
  11. self.create(:user_id => User.current.id, :contest_id => contest_id,
  12. :softapplication_id => softapplication_id)
  13. end
  14. def update_reward(which)
  15. self.update_attribute(:reward,which)
  16. end
  17. def get_reward
  18. self.reward
  19. end
  20. end

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...