[1240] | 1 | ## Script (Python) "getSchoolFee" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
[2151] | 7 | ##parameters=brain=None |
---|
[1240] | 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: getSchoolFee.py 2660 2007-11-14 22:01:09Z henrik $ |
---|
| 11 | """ |
---|
| 12 | return SchoolFee |
---|
| 13 | """ |
---|
| 14 | |
---|
| 15 | fee1 = ("ART", |
---|
| 16 | "SSC", |
---|
| 17 | "LAW", |
---|
| 18 | "EDU", |
---|
| 19 | ) |
---|
[1994] | 20 | session_fees = {'99': ('22200','23700'), |
---|
| 21 | '00': ('22200','23700'), |
---|
| 22 | '01': ('22200','23700'), |
---|
| 23 | '02': ('22200','23700'), |
---|
| 24 | '03': ('22200','23700'), |
---|
| 25 | '04': ('22200','23700'), |
---|
| 26 | '05': ('22200','23700'), |
---|
| 27 | '06': ('22200','23700'), |
---|
[2660] | 28 | '07': ('22200','23700'), |
---|
[1994] | 29 | } |
---|
[2151] | 30 | pt_fees = { |
---|
[2194] | 31 | "DIF":{'description':"Diploma in French",'returning':"17700",'new':"32200"}, |
---|
| 32 | "DTA":{'description':"Diploma in Theatre Arts",'returning':"19700",'new':"34200"}, |
---|
| 33 | "DISD":{'description':"Diploma in International Studies",'returning':"27700",'new':"42200"}, |
---|
| 34 | "DFA":{'description':"Diploma in Fine & Applied Arts",'returning':"19700",'new':"34200"}, |
---|
| 35 | "DAE":{'description':"Diploma in Agric Econs",'returning':"25700",'new':"41700"}, |
---|
| 36 | "DFS":{'description':"Diploma in Fishery, Forestry & Wildlife",'returning':"22700",'new':"38700"}, |
---|
| 37 | "DAC":{'description':"Diploma in Agric Crop Science",'returning':"19700",'new':"35700"}, |
---|
| 38 | "DFBS":{'description':"Diploma in Food & Brewering Science",'returning':"22700",'new':"38700"}, |
---|
| 39 | "DIA":{'description':"Diploma in Accounting",'returning':"27700",'new':"42200"}, |
---|
| 40 | "DBF":{'description':"Diploma in Banking & Finance",'returning':"27700",'new':"42200"}, |
---|
| 41 | "DAIC":{'description':"Diploma in Applied Industrial Chemistry",'returning':"22700",'new':"38700"}, |
---|
| 42 | "DAM":{'description':"Diploma in Applied Microbiology",'returning':"22700",'new':"38700"}, |
---|
| 43 | "DIG":{'description':"Diploma in Geology",'returning':"25700",'new':"41700"}, |
---|
| 44 | "DSLT":{'description':"Diploma in Science Lab Tech.",'returning':"25700",'new':"41700"}, |
---|
| 45 | "DES":{'description':"Diploma in Environmental Science",'returning':"22700",'new':"38700"}, |
---|
| 46 | "DICE":{'description':"Diploma in Computer Engineering",'returning':"27700",'new':"43700"}, |
---|
| 47 | "DICHE":{'description':"Diploma in Chemical Engineering",'returning':"27700",'new':"43700"}, |
---|
| 48 | "DDP":{'description':"Diploma in Data Processing",'returning':"27700",'new':"43700"}, |
---|
| 49 | "DCG":{'description':"Diploma in Cartography",'returning':"19700",'new':"34200"}, |
---|
| 50 | "DSW":{'description':"Diploma in Social Works",'returning':"25700",'new':"40200"}, |
---|
| 51 | "DIL":{'description':"Diploma in Law",'returning':"27700",'new':"42200"}, |
---|
| 52 | "DHT":{'description':"Diploma in Recreation, Hotel & Tourism Management",'returning':"27700",'new':"42200"}, |
---|
| 53 | "DIE":{'description':"Diploma in Epidermiology",'returning':"27700",'new':"42200"}, |
---|
| 54 | "CIE":{'description':"Certificate in Epidermiology",'returning':"21200",'new':"36200"}, |
---|
| 55 | "CEHD":{'description':"Certificate in early Child Health & Development",'returning':"21200",'new':"36200"}, |
---|
| 56 | "DLS":{'description':"Diploma in Library & Information Science",'returning':"24200",'new':"37200"}, |
---|
| 57 | "BFA":{'description':"Bachelor in Fine & Applied Arts",'returning':"27700",'new':"42200"}, |
---|
| 58 | "BTA":{'description':"Bachelor in Theatre Arts",'returning':"27700",'new':"42200"}, |
---|
| 59 | "BEL":{'description':"Bachelor in English",'returning':"27700",'new':"42200"}, |
---|
| 60 | "BFR":{'description':"Bachelor in French",'returning':"27700",'new':"42200"}, |
---|
| 61 | "BISD":{'description':"Bachelor in International Studies & Diplomacy",'returning':"27700",'new':"42200"}, |
---|
| 62 | "BAE":{'description':"Bachelor in Agric Econs",'returning':"32700",'new':"48700"}, |
---|
| 63 | "BAN":{'description':"Bachelor in Animal Science",'returning':"27700",'new':"43700"}, |
---|
| 64 | "BAC":{'description':"Bachelor in Crop Science",'returning':"27700",'new':"43700"}, |
---|
| 65 | "BAS":{'description':"Bachelor in Soil Science",'returning':"27700",'new':"43700"}, |
---|
| 66 | "BIA":{'description':"Bachelor in Accounting",'returning':"32700",'new':"47200"}, |
---|
| 67 | "BBF":{'description':"Bachelor in Banking & Finance",'returning':"32700",'new':"47200"}, |
---|
| 68 | "BLG":{'description':"Bachelor in Local Govt. Admin.",'returning':"22700",'new':"37200"}, |
---|
| 69 | "BPA":{'description':"Bachelor in Public Admin.",'returning':"32700",'new':"47200"}, |
---|
| 70 | "BSW":{'description':"Bachelor in Social Works",'returning':"27700",'new':"42200"}, |
---|
| 71 | "BES":{'description':"Bachelor in Environmental Science",'returning':"27700",'new':"43700"}, |
---|
| 72 | "BSLT":{'description':"Bachelor in Science Lab. Tech.",'returning':"27700",'new':"43700"}, |
---|
| 73 | "BIP":{'description':"Bachelor in Industrial Physics",'returning':"27700",'new':"43700"}, |
---|
| 74 | "BSCS":{'description':"Bachelor in Statistics & Computer",'returning':"29700",'new':"45700"}, |
---|
| 75 | "BEEL":{'description':"Bachelor in Electronic & Electrical Engineering",'returning':"32700",'new':"48700"}, |
---|
| 76 | "BECV":{'description':"Bachelor in Civil Engineering",'returning':"32700",'new':"48700"}, |
---|
| 77 | "BEMCH":{'description':"Bachelor in Mechanical Engineering",'returning':"32700",'new':"48700"}, |
---|
| 78 | "BEPE":{'description':"Bachelor in Petroleum Engineering",'returning':"32700",'new':"48700"}, |
---|
| 79 | "BESTR":{'description':"Bachelor in Structural Engineering",'returning':"32700",'new':"48700"}, |
---|
| 80 | "BECE":{'description':"Bachelor in Chemical Engineering",'returning':"32700",'new':"48700"}, |
---|
| 81 | "BPRE":{'description':"Bachelor in Production Engineering",'returning':"32700",'new':"48700"}, |
---|
| 82 | "LLBPT":{'description':"Bachelor in Law",'returning':"32700",'new':"48700"}, |
---|
| 83 | "ODPT":{'description':"Doctor of Optometry",'returning':"42700",'new':"58700"}, |
---|
[2418] | 84 | "PHARMD1":{'description':"Doctor of Pharmacy",'returning':"44700",'new':"58700"}, |
---|
[2534] | 85 | "BECOSW":{'description':"Bachelor of Economics Education (Sandwich)",'returning':"21700",'new':"36200"}, |
---|
| 86 | "BBEDSW":{'description':"Bachelor of Business Education (Sandwich)",'returning':"21700",'new':"36200"}, |
---|
| 87 | "BENLSW":{'description':"Bachelor of English & Literature Education (Sandwich)",'returning':"21700",'new':"36200"}, |
---|
| 88 | "BEMGTSW":{'description':"Bachelor of Management Education (Sandwich)",'returning':"21700",'new':"36200"}, |
---|
| 89 | "BBIOSW":{'description':"Bachelor of Biology Education (Sandwich)",'returning':"22200",'new':"37700"}, |
---|
| 90 | "BCSCSW":{'description':"Bachelor of Computer Science Education (Sandwich)",'returning':"22200",'new':"37700"}, |
---|
| 91 | "BAGRSW":{'description':"Bachelor of Agricultural Science Education (Sandwich)",'returning':"22200",'new':"37700"}, |
---|
| 92 | "BHEDSW":{'description':"Bachelor of Health Education (Sandwich)",'returning':"22200",'new':"37700"}, |
---|
[2194] | 93 | "CPA":{'description':"Certificate in Public Admin",'returning':"21200",'new':"35200"}, |
---|
| 94 | "DHAM":{'description':"Diploma in Health Management",'returning':"24200",'new':"37200"}, |
---|
| 95 | "DNAM":{'description':"Diploma in Nursing Admin & Management",'returning':"27200",'new':"40200"}, |
---|
| 96 | "DPA":{'description':"Diploma in Public Admin",'returning':"27200",'new':"40200"}, |
---|
| 97 | "DHS":{'description':"Diploma in Primary Health Care & Statistics",'returning':"27200",'new':"40200"}, |
---|
| 98 | "ADHFM":{'description':"Advanced Diploma in Health Care Financing and Management",'returning':"29200",'new':"42200"}, |
---|
| 99 | "DAE":{'description':"Diploma in Adult Education",'returning':"20200",'new':"33200"}, |
---|
| 100 | "DME":{'description':"Diploma in Maths Education",'returning':"23200",'new':"36200"}, |
---|
| 101 | "DPE":{'description':"Diploma in Physical Education",'returning':"23200",'new':"36200"}, |
---|
| 102 | "DHE":{'description':"Diploma in Health Education",'returning':"23200",'new':"36200"}, |
---|
| 103 | "DEC":{'description':"Diploma in Early Childhood Education",'returning':"20200",'new':"33200"}, |
---|
[2526] | 104 | "DLS":{'description':"Diploma in Library & Information Science",'returning':"24200",'new':"37200"}, |
---|
[2534] | 105 | "BECO":{'description':"Bachelor in Computer Engineering",'returning':"32700",'new':"48700"} |
---|
[2194] | 106 | } |
---|
| 107 | |
---|
[2151] | 108 | d = {} |
---|
| 109 | if brain.mode.endswith('_ft'): |
---|
| 110 | f = 1 |
---|
| 111 | if brain.faculty in fee1: |
---|
| 112 | f = 0 |
---|
| 113 | d['new'] = session_fees[brain.session][f] |
---|
[2153] | 114 | d['returning'] = 'not set' |
---|
[2653] | 115 | d['description'] = "School Fee for Session %s" % context.getSessionsVoc(key=brain.session) |
---|
[2151] | 116 | if pt_fees.has_key(brain.course): |
---|
| 117 | d = pt_fees[brain.course] |
---|
[2653] | 118 | d['description'] = "School Fee for Session %s, %s" % (context.getSessionsVoc(key=brain.session), |
---|
[2151] | 119 | d['description']) |
---|
| 120 | return d |
---|
[1240] | 121 | |
---|