Ejemplo n.º 1
0
def mapping(request):
    if request.method == 'POST':
        course_id = request.POST.get('course-id')
        coMaps = request.POST.getlist('coMaps')
        
        course = Course_T(course_id, program_id='BSc', noOfCredits=3)
        course.save()
        
        for i in range(len(coMaps)):
            co = CO_T(coNo=i + 1, course_id=course_id, plo_id=coMaps[i])
            co.save()
    
        
    return redirect('dataentry')
Ejemplo n.º 2
0
plo2.save()
plo3.save()
plo4.save()
plo5.save()
plo6.save()
plo7.save()
plo8.save()
plo9.save()
plo10.save()
plo11.save()
plo12.save()

# CO

co = []
co.append(CO_T(coNo=1, course_id='CSE303', plo_id='PLO02'))
co.append(CO_T(coNo=2, course_id='CSE303', plo_id='PLO03'))
co.append(CO_T(coNo=3, course_id='CSE303', plo_id='PLO04'))
co.append(CO_T(coNo=4, course_id='CSE303', plo_id='PLO06'))

co[0].save()
co[1].save()
co[2].save()
co[3].save()

# Assessment

for i in range(1, len(sections) + 1):
    courseID = 'CSE303'
    sectionNo = i
    section_id = Section_T.objects.raw('''
Ejemplo n.º 3
0
# plo2.save()
# plo3.save()
# plo4.save()
# plo5.save()
# plo6.save()
# plo7.save()
# plo8.save()
# plo9.save()
# plo10.save()
# plo11.save()
# plo12.save()

# CO

co = []
co.append(CO_T(coNo=1, course_id=courseNameAll, plo_id='PLO09'))
co.append(CO_T(coNo=2, course_id=courseNameAll, plo_id='PLO10'))
co.append(CO_T(coNo=3, course_id=courseNameAll, plo_id='PLO11'))
co.append(CO_T(coNo=4, course_id=courseNameAll, plo_id='PLO12'))

co[0].save()
co[1].save()
co[2].save()
co[3].save()

# Assessment

for i in range(1, len(sections) + 1):
    courseID = courseNameAll
    sectionNo = i
    section_id = Section_T.objects.raw('''
Ejemplo n.º 4
0
# plo2.save()
# plo3.save()
# plo4.save()
# plo5.save()
# plo6.save()
# plo7.save()
# plo8.save()
# plo9.save()
# plo10.save()
# plo11.save()
# plo12.save()

# CO

co = []
co.append(CO_T(coNo=1, course_id=courseNameAll, plo_id='PLO06'))
co.append(CO_T(coNo=2, course_id=courseNameAll, plo_id='PLO07'))
co.append(CO_T(coNo=3, course_id=courseNameAll, plo_id='PLO08'))
co.append(CO_T(coNo=4, course_id=courseNameAll, plo_id='PLO09'))

co[0].save()
co[1].save()
co[2].save()
co[3].save()

# Assessment

for i in range(1, len(sections) + 1):
    courseID = courseNameAll
    sectionNo = i
    section_id = Section_T.objects.raw('''
Ejemplo n.º 5
0
# plo2.save()
# plo3.save()
# plo4.save()
# plo5.save()
# plo6.save()
# plo7.save()
# plo8.save()
# plo9.save()
# plo10.save()
# plo11.save()
# plo12.save()

# CO

co = []
co.append(CO_T(coNo=1, course_id=courseNameAll, plo_id='PLO02'))
co.append(CO_T(coNo=2, course_id=courseNameAll, plo_id='PLO03'))
co.append(CO_T(coNo=3, course_id=courseNameAll, plo_id='PLO04'))
co.append(CO_T(coNo=4, course_id=courseNameAll, plo_id='PLO05'))

co[0].save()
co[1].save()
co[2].save()
co[3].save()

# Assessment

for i in range(1, len(sections) + 1):
    courseID = courseNameAll
    sectionNo = i
    section_id = Section_T.objects.raw('''
Ejemplo n.º 6
0
# plo3.save()
# plo4.save()
# plo5.save()
# plo6.save()
# plo7.save()
# plo8.save()
# plo9.save()
# plo10.save()
# plo11.save()
# plo12.save()
    

# CO

co = []
co.append(CO_T(coNo=1, course_id='CSE104', plo_id='PLO05'))
co.append(CO_T(coNo=2, course_id='CSE104', plo_id='PLO06'))
co.append(CO_T(coNo=3, course_id='CSE104', plo_id='PLO07'))
co.append(CO_T(coNo=4, course_id='CSE104', plo_id='PLO08'))

co[0].save()
co[1].save()
co[2].save()
co[3].save()


# Assessment

for i in range(1, len(sections) + 1):
    courseID = 'CSE104'
    sectionNo = i