Changeset 3575
- Timestamp:
- 17 Jul 2008, 10:03:10 (16 years ago)
- Location:
- WAeUP_SRP/aaua/waeup_custom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/aaua/waeup_custom/getSimpleStudentStatistics.py
r3075 r3575 42 42 43 43 44 returning = ('110','120','200','210','220','300','310','320',) 45 new = ('100') 46 prence = ('000') 44 returning = ('110','120','200','210','220','300','310','320','400','410','420','500','510', '520','500','510','520','610','620','700','710','720','800','810','820',) 45 new = ('100','600') 47 46 48 47 … … 54 53 55 54 dict = {} 56 dict['id'] = 'All Schools'57 dict['title'] = 'All Schools'55 dict['id'] = 'All Faculties' 56 dict['title'] = 'All Faculties' 58 57 59 58 … … 64 63 dict['total_pt'] = len(res_pt) 65 64 66 res_dp = context.students_catalog(level = prence)67 dict['total_dp'] = len(res_dp)68 69 65 res_Aft = context.students_catalog(review_state = catA, level = returning, session = current_session) 70 66 dict['total_Aft'] = len(res_Aft) … … 73 69 dict['total_Apt'] = len(res_Apt) 74 70 75 res_Adp = context.students_catalog(review_state = catA, level = prence, session = current_session) 76 dict['total_Adp'] = len(res_Adp) 71 77 72 78 73 res_Bft = context.students_catalog(review_state = catB, level = returning, session = current_session) … … 82 77 dict['total_Bpt'] = len(res_Bpt) 83 78 84 res_Bdp = context.students_catalog(review_state = catB, level = prence, session = current_session) 85 dict['total_Bdp'] = len(res_Bdp) 79 86 80 87 81 res_Cft = context.students_catalog(review_state = catC, level = returning, session = current_session) … … 91 85 dict['total_Cpt'] = len(res_Cpt) 92 86 93 res_Cdp = context.students_catalog(review_state = catC, level = prence, session = current_session) 94 dict['total_Cdp'] = len(res_Cdp) 87 95 88 96 89 97 90 res_total = context.students_catalog() 98 91 dict['total_in_catalog'] = len(res_total) 99 dict['not_categorized'] = dict['total_in_catalog'] - dict['total_ft'] - dict['total_pt'] - dict['total_dp']92 dict['not_categorized'] = dict['total_in_catalog'] - dict['total_ft'] - dict['total_pt'] 100 93 101 94 l.append(dict) … … 113 106 dict['total_pt'] = len(res_pt) 114 107 115 res_dp = context.students_catalog(faculty = f.getId, level = prence)116 dict['total_dp'] = len(res_dp)117 108 118 109 res_Aft = context.students_catalog(faculty = f.getId, review_state = catA, level = returning, session = current_session) … … 122 113 dict['total_Apt'] = len(res_Apt) 123 114 124 res_Adp = context.students_catalog(faculty = f.getId, review_state = catA, level = prence, session = current_session) 125 dict['total_Adp'] = len(res_Adp) 115 126 116 127 117 res_Bft = context.students_catalog(faculty = f.getId, review_state = catB, level = returning, session = current_session) … … 131 121 dict['total_Bpt'] = len(res_Bpt) 132 122 133 res_Bdp = context.students_catalog(faculty = f.getId, review_state = catB, level = prence, session = current_session) 134 dict['total_Bdp'] = len(res_Bdp) 123 135 124 136 125 res_Cft = context.students_catalog(faculty = f.getId, review_state = catC, level = returning, session = current_session) … … 140 129 dict['total_Cpt'] = len(res_Cpt) 141 130 142 res_Cdp = context.students_catalog(faculty = f.getId, review_state = catC, level = prence, session = current_session) 143 dict['total_Cdp'] = len(res_Cdp) 131 144 132 145 133 -
WAeUP_SRP/aaua/waeup_custom/statistics_simple_view.pt
r3075 r3575 27 27 <th> </th> 28 28 29 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan=" 3">All Students</th>29 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="2">All Students</th> 30 30 31 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan=" 3">Category A</th>31 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="2">Category A</th> 32 32 33 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan=" 3">Category B</th>33 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="2">Category B</th> 34 34 35 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan=" 3">Category C</th>35 <th style="border-style:solid; border-width:1px; border-color:black" align="center" colspan="2">Category C</th> 36 36 37 37 … … 39 39 40 40 <tr class="odd ajaxtd"> 41 <th > School</th>41 <th >Faculty</th> 42 42 <th align="right">Returning</th> 43 43 <th align="right">New</th> 44 <th align="right">Pre-NCE</th> 44 45 45 <th align="right">Returning</th> 46 46 <th align="right">New</th> 47 <th align="right">Pre-NCE</th> 47 48 48 <th align="right">Returning</th> 49 49 <th align="right">New</th> 50 <th align="right">Pre-NCE</th> 50 51 51 <th align="right">Returning</th> 52 52 <th align="right">New</th> 53 <th align="right">Pre-NCE</th> 53 54 54 55 55 </tr> … … 66 66 </td> 67 67 68 <td width="60px" align="right"> 69 <span tal:content="d/total_dp" /> 70 </td> 71 68 72 69 <td width="60px" align="right"> 73 70 <span tal:content="d/total_Aft" /> … … 78 75 </td> 79 76 80 <td width="60px" align="right"> 81 <span tal:content="d/total_Adp" /> 82 </td> 77 83 78 84 79 <td width="60px" align="right"> … … 90 85 </td> 91 86 92 <td width="60px" align="right"> 93 <span tal:content="d/total_Bdp" /> 94 </td> 87 95 88 96 89 <td width="60px" align="right"> … … 102 95 </td> 103 96 104 <td width="60px" align="right"> 105 <span tal:content="d/total_Cdp" /> 106 </td> 97 107 98 108 99 … … 117 108 <tr><td>Category B: </td> <td>students who registered their courses online (A contains B) in <span tal:content="session_str" /></td></tr> 118 109 <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> 110 <tr><td>New: </td> <td>students in level 100 or 600</td></tr> 121 111 <tr><td> </td><td> </td></tr> 122 112 <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.