Beispiel #1
0
def finalReportView(request, pid, is_submited=False):
    context = finalReportViewWork(request, pid,
                                  is_submited[SUBMIT_STATUS_FINAL])
    loginfo(p=is_submited, label="is_submited")
    # if context['redirect']:
    #     return HttpResponseRedirect('/teacher/finalinfo')
    return render(request, "college/final.html", context)
def finalReportView(request, is_submited):
    re_id = request.GET.get("re_id")
    re_obj = Re_Project_Expert.objects.get(id = re_id)
    pid = re_obj.project.project_id
    score_table ,created= getFinalScoreTable(re_obj.project).objects.get_or_create(re_obj = re_obj)

    context = finalReportViewWork(request, pid, is_submited[SUBMIT_STATUS_FINAL])
    file_list = getSingleProjectURLList(re_obj.project)[1:]

    context = dict(context, **fileUploadManage(request, pid, is_submited))

    if request.method == "GET":
        score_form = getFinalScoreForm(re_obj.project)(instance = score_table)

        context.update({
            'score_form': score_form,
            're_obj': re_obj,
            'file_list': file_list,
            'user': '******',
        })
        return render(request,"expert/final.html",context)
    else:
        score_form = getFinalScoreForm(re_obj.project)(request.POST, instance = score_table)
        if score_form.is_valid():
            score_form.save()
            return HttpResponseRedirect("/expert/redirect/?is_first_round=0")
        else:
            context.update({
                'score_form': score_form,
                're_obj': re_obj,
                'file_list': file_list,
                'error': score_form.errors,
                'user': '******',
            })
            return render(request,"expert/final.html",context)
Beispiel #3
0
def finalReportView(request,pid,is_submited):
    context = finalReportViewWork(request,pid,is_submited[SUBMIT_STATUS_FINAL])
    context = dict(context, **fileUploadManage(request, pid, is_submited))
    context['is_submited'] = is_submited
    context['user'] = "******"
    loginfo(p=is_submited,label="is_submited")
    if context['redirect']:
		return HttpResponseRedirect('/teacher/finalinfo')
    return render(request,"school/final.html",context)
Beispiel #4
0
def finalReportView(request,pid,is_submited={}):
    print "YYA" * 10
    context = finalReportViewWork(request,pid,is_submited[SUBMIT_STATUS_FINAL])
    context = dict(context, **fileUploadManage(request, pid,is_submited))
    context['is_submited'] = is_submited
    context['user'] = "******"
    loginfo(p=is_submited,label="is_submited")
    # if context['redirect']:
    #     return HttpResponseRedirect('/teacher/finalinfo')
    return render(request,"adminStaff/final.html",context)
Beispiel #5
0
def finalReportView(request, pid, is_submited):
    context = finalReportViewWork(request, pid,
                                  is_submited[SUBMIT_STATUS_FINAL])
    context = dict(context, **fileUploadManage(request, pid, is_submited))
    context['is_submited'] = is_submited
    context['user'] = "******"
    loginfo(p=is_submited, label="is_submited")
    if context['redirect']:
        return HttpResponseRedirect('/teacher/finalinfo')
    return render(request, "school/final.html", context)
Beispiel #6
0
def finalReportView(request, pid, is_submited={}):
    print "YYA" * 10
    context = finalReportViewWork(request, pid,
                                  is_submited[SUBMIT_STATUS_FINAL])
    context = dict(context, **fileUploadManage(request, pid, is_submited))
    context['is_submited'] = is_submited
    context['user'] = "******"
    loginfo(p=is_submited, label="is_submited")
    # if context['redirect']:
    #     return HttpResponseRedirect('/teacher/finalinfo')
    return render(request, "adminStaff/final.html", context)
Beispiel #7
0
def finalReportView(request,pid,is_submited=False):
    context = finalReportViewWork(request,pid,is_submited[SUBMIT_STATUS_FINAL])
    loginfo(p=is_submited,label="is_submited")
    # if context['redirect']:
    #     return HttpResponseRedirect('/teacher/finalinfo')
    return render(request,"college/final.html",context)
Beispiel #8
0
def finalReportView(request,pid,is_submited):
    context = finalReportViewWork(request,pid,is_submited[SUBMIT_STATUS_FINAL])
    if context['redirect']:
        return HttpResponseRedirect('/teacher/finalinfo')
    return render(request,"teacher/final.html",context)
Beispiel #9
0
def financeAuditingView(request,pid):
    context=finalReportViewWork(request,pid,False)
    return render(request,"finance/financeAuditing.html",context)
Beispiel #10
0
def finalReportView(request,pid,is_submited):
    context = finalReportViewWork(request,pid,is_submited[SUBMIT_STATUS_FINAL])
    return render(request,"finance/final.html",context)