Module: EducodeSales::BusinessCoursesHelper

Included in:
BusinessCoursesController
Defined in:
app/helpers/educode_sales/business_courses_helper.rb

Instance Method Summary collapse

Instance Method Details

#real_shixun_category(categor) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/helpers/educode_sales/business_courses_helper.rb', line 4

def real_shixun_category(categor)
  case categor.to_i
  when 1
    "管培"
  when 2
    "全职"
  when 3
    "专职"
  else
    "管培"
  end
end

#real_shixun_level(level) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'app/helpers/educode_sales/business_courses_helper.rb', line 17

def real_shixun_level(level)
  case level.to_i
  when 1
    "不明确"
  when 2
    "重要紧急"
  when 3
    "重要不紧急"
  when 4
    "不重要紧急"
  when 5
    "不重要不紧急"
  else
    "不明确"
  end
end

#real_shixun_status(status) ⇒ Object

项目状态: 待建设(constructed) 已签协议(signed) 建设中(construction) 审核中(review),返修中(repair) 已内部公开(public), 已公开发布(published) 已经付费(paid)



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'app/helpers/educode_sales/business_courses_helper.rb', line 34

def real_shixun_status(status)
  case status.to_i
  when 1
    "待建设"
  when 2
    "已签协议"
  when 3
    "建设中"
  when 4
    "审核中"
  when 5
    "返修中"
  when 6
    "已内部发布"
  when 7
    "已公开发布"
  when 8
    "已付费用"
  when 9
    "审核通过"
  end

end