示例#1
0
        private VM_ExamDetail ExamDetail_MyBind(M_Exam_Sys_Papers paperMod = null)
        {
            M_UserInfo mu = tuserBll.GetLogin();

            if (Mid > 0)
            {
                paperMod = paperBll.SelReturnModel(Mid);
            }
            if (DateTime.Now < paperMod.p_BeginTime)
            {
                function.WriteErrMsg("还未到考试时间!"); return(null);
            }
            if (paperMod.p_endTime < DateTime.Now)
            {
                function.WriteErrMsg("考试时间已过!"); return(null);
            }
            if (string.IsNullOrEmpty(paperMod.QIDS))
            {
                function.WriteErrMsg("该试卷没有添加题目!"); return(null);
            }
            VM_ExamDetail model = new VM_ExamDetail(mu, paperMod, Request);

            return(model);
        }