protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int userID = BLL.Util.GetLoginUserID(); if (!BLL.Util.CheckRight(userID, "SYS024MOD3004")) { Response.Write(BLL.Util.GetNotAccessMsgPage("您没有访问该页面的权限")); Response.End(); } RequestEIID = BLL.Util.DecryptString(Request["eiid"]); if (come == "1" && Type == "1") { RequestEIID = BLL.MakeUpExamInfo.Instance.GetMakeUpExamInfo(Convert.ToInt32(BLL.Util.DecryptString(Request["eiid"]))).EIID.ToString(); } //come为1是查看个人成绩,come为2是管理员,质检员,质检经理查看成绩,come为3是阅卷 username = BitAuto.YanFa.SysRightManager.Common.UserInfo.GerTrueName(Convert.ToInt32(ExamPersonID)); //取是否已阅 SumScore = GetSumScore(out IsMarking); EOLID = GetEOLID(); fenshu.Visible = true; if (come == "1") { ViewType = "成绩查看"; //ExamPersonID = BLL.Util.GetLoginUserID().ToString(); username = BitAuto.YanFa.SysRightManager.Common.UserInfo.GerTrueName(BLL.Util.GetLoginUserID()); //fenshu.Visible = true; } else if (come == "2") { ViewType = "成绩查看"; //fenshu.Visible = true; } else if (come == "3" && IsMarking != "1") { ViewType = "阅卷"; //fenshu.Visible = false; } else if (come == "3" && IsMarking == "1") { ViewType = "成绩查看"; //fenshu.Visible = true; } if (!string.IsNullOrEmpty(RequestEPID)) { Entities.ExamPaper model = BLL.ExamPaper.Instance.GetExamPaper(Convert.ToInt32(RequestEPID)); ExamperName = model.Name; Entities.ExamPaperInfo ExamPaperInfo = BLL.ExamPaper.Instance.GetExamPaperInfo(Convert.ToInt32(RequestEPID)); if (ExamPaperInfo.ExamBigQuestioninfoList != null) { repeaterTableList.DataSource = ExamPaperInfo.ExamBigQuestioninfoList; repeaterTableList.DataBind(); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (ISPDF != "1") { BitAuto.YanFa.SysRightManager.Common.UserInfo.Check(); } if (!string.IsNullOrEmpty(RequestEPID)) { Entities.ExamPaper model = BLL.ExamPaper.Instance.GetExamPaper(Convert.ToInt32(RequestEPID)); ExamperName = model.Name; Entities.ExamPaperInfo ExamPaperInfo = BLL.ExamPaper.Instance.GetExamPaperInfo(Convert.ToInt32(RequestEPID)); this.ExamPaperView1.ExamPaperInfo = ExamPaperInfo; } } }