Changeset 3075
- Timestamp:
- 31 Jan 2008, 16:50:40 (17 years ago)
- Location:
- WAeUP_SRP/fceokene/waeup_custom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getSimpleStudentStatistics.py
r3050 r3075 42 42 43 43 44 full_time = ('ug_ft','',)45 part_time = ('pce')46 diploma = ('prence')44 returning = ('110','120','200','210','220','300','310','320',) 45 new = ('100') 46 prence = ('000') 47 47 48 48 … … 58 58 59 59 60 res_ft = context.students_catalog( mode = full_time)60 res_ft = context.students_catalog(level = returning) 61 61 dict['total_ft'] = len(res_ft) 62 62 63 res_pt = context.students_catalog( mode = part_time)63 res_pt = context.students_catalog(level = new) 64 64 dict['total_pt'] = len(res_pt) 65 65 66 res_dp = context.students_catalog( mode = diploma)66 res_dp = context.students_catalog(level = prence) 67 67 dict['total_dp'] = len(res_dp) 68 68 69 res_Aft = context.students_catalog(review_state = catA, mode = full_time, session = current_session)69 res_Aft = context.students_catalog(review_state = catA, level = returning, session = current_session) 70 70 dict['total_Aft'] = len(res_Aft) 71 71 72 res_Apt = context.students_catalog(review_state = catA, mode = part_time, session = current_session)72 res_Apt = context.students_catalog(review_state = catA, level = new, session = current_session) 73 73 dict['total_Apt'] = len(res_Apt) 74 74 75 res_Adp = context.students_catalog(review_state = catA, mode = diploma, session = current_session)75 res_Adp = context.students_catalog(review_state = catA, level = prence, session = current_session) 76 76 dict['total_Adp'] = len(res_Adp) 77 77 78 res_Bft = context.students_catalog(review_state = catB, mode = full_time, session = current_session)78 res_Bft = context.students_catalog(review_state = catB, level = returning, session = current_session) 79 79 dict['total_Bft'] = len(res_Bft) 80 80 81 res_Bpt = context.students_catalog(review_state = catB, mode = part_time, session = current_session)81 res_Bpt = context.students_catalog(review_state = catB, level = new, session = current_session) 82 82 dict['total_Bpt'] = len(res_Bpt) 83 83 84 res_Bdp = context.students_catalog(review_state = catB, mode = diploma, session = current_session)84 res_Bdp = context.students_catalog(review_state = catB, level = prence, session = current_session) 85 85 dict['total_Bdp'] = len(res_Bdp) 86 86 87 res_Cft = context.students_catalog(review_state = catC, mode = full_time, session = current_session)87 res_Cft = context.students_catalog(review_state = catC, level = returning, session = current_session) 88 88 dict['total_Cft'] = len(res_Cft) 89 89 90 res_Cpt = context.students_catalog(review_state = catC, mode = part_time, session = current_session)90 res_Cpt = context.students_catalog(review_state = catC, level = new, session = current_session) 91 91 dict['total_Cpt'] = len(res_Cpt) 92 92 93 res_Cdp = context.students_catalog(review_state = catC, mode = diploma, session = current_session)93 res_Cdp = context.students_catalog(review_state = catC, level = prence, session = current_session) 94 94 dict['total_Cdp'] = len(res_Cdp) 95 95 … … 107 107 dict['title'] = f.Title 108 108 109 res_ft = context.students_catalog(faculty = f.getId, mode = full_time)109 res_ft = context.students_catalog(faculty = f.getId, level = returning) 110 110 dict['total_ft'] = len(res_ft) 111 111 112 res_pt = context.students_catalog(faculty = f.getId, mode = part_time)112 res_pt = context.students_catalog(faculty = f.getId, level = new) 113 113 dict['total_pt'] = len(res_pt) 114 114 115 res_dp = context.students_catalog(faculty = f.getId, mode = diploma)115 res_dp = context.students_catalog(faculty = f.getId, level = prence) 116 116 dict['total_dp'] = len(res_dp) 117 117 118 res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, mode = full_time, session = current_session)118 res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, level = returning, session = current_session) 119 119 dict['total_Aft'] = len(res_Aft) 120 120 121 res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, mode = part_time, session = current_session)121 res_Apt = context.students_catalog(faculty = f.getId, review_state = catA, level = new, session = current_session) 122 122 dict['total_Apt'] = len(res_Apt) 123 123 124 res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, mode = diploma, session = current_session)124 res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, level = prence, session = current_session) 125 125 dict['total_Adp'] = len(res_Adp) 126 126 127 res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, mode = full_time, session = current_session)127 res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, level = returning, session = current_session) 128 128 dict['total_Bft'] = len(res_Bft) 129 129 130 res_Bpt = context.students_catalog(faculty = f.getId, review_state = catB, mode = part_time, session = current_session)130 res_Bpt = context.students_catalog(faculty = f.getId, review_state = catB, level = new, session = current_session) 131 131 dict['total_Bpt'] = len(res_Bpt) 132 132 133 res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, mode = diploma, session = current_session)133 res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, level = prence, session = current_session) 134 134 dict['total_Bdp'] = len(res_Bdp) 135 135 136 res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, mode = full_time, session = current_session)136 res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, level = returning, session = current_session) 137 137 dict['total_Cft'] = len(res_Cft) 138 138 139 res_Cpt = context.students_catalog(faculty = f.getId, review_state = catC, mode = part_time, session = current_session)139 res_Cpt = context.students_catalog(faculty = f.getId, review_state = catC, level = new, session = current_session) 140 140 dict['total_Cpt'] = len(res_Cpt) 141 141 142 res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, mode = diploma, session = current_session)142 res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, level = prence, session = current_session) 143 143 dict['total_Cdp'] = len(res_Cdp) 144 144 -
WAeUP_SRP/fceokene/waeup_custom/statistics_simple_view.pt
r2955 r3075 27 27 <th> </th> 28 28 29 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="3"> Total</th>29 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="3">All Students</th> 30 30 31 31 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="3">Category A</th> … … 40 40 <tr class="odd ajaxtd"> 41 41 <th >School</th> 42 <th align="right"> FT</th>43 <th align="right"> PCE</th>44 <th align="right">P RENCE</th>45 <th align="right"> FT</th>46 <th align="right"> PCE</th>47 <th align="right">P RENCE</th>48 <th align="right"> FT</th>49 <th align="right"> PCE</th>50 <th align="right">P RENCE</th>51 <th align="right"> FT</th>52 <th align="right"> PCE</th>53 <th align="right">P RENCE</th>42 <th align="right">Returning</th> 43 <th align="right">New</th> 44 <th align="right">Pre-NCE</th> 45 <th align="right">Returning</th> 46 <th align="right">New</th> 47 <th align="right">Pre-NCE</th> 48 <th align="right">Returning</th> 49 <th align="right">New</th> 50 <th align="right">Pre-NCE</th> 51 <th align="right">Returning</th> 52 <th align="right">New</th> 53 <th align="right">Pre-NCE</th> 54 54 55 55 </tr> … … 117 117 <tr><td>Category B: </td> <td>students who registered their courses online (A contains B) in <span tal:content="session_str" /></td></tr> 118 118 <tr><td>Category C: </td> <td>students who 'arrived' in <span tal:content="session_str" /> but have not yet paid their school fee</td></tr> 119 <tr><td>Returning: </td> <td>students in NCE-II or NCE-III</td></tr> 120 <tr><td>New: </td> <td>students in NCE-I</td></tr> 119 121 <tr><td> </td><td> </td></tr> 120 122 <tr><td colspan="2"><strong>Remark:</strong> <span tal:content="python: faculties[0]['not_categorized']" /> returning students are not categorized.
Note: See TracChangeset for help on using the changeset viewer.