コード例 #1
0
        protected void btnProceed_Click(object sender, EventArgs e)
        {
            BEStudent objBEStudent = new BEStudent();
            BStudent  objBStudent  = new BStudent();

            objBEStudent.IntTransID = transID;
            objBEStudent.IntResult  = 1;
            objBEStudent.IntType    = 14;
            objBStudent.BUpdateNonProctorExamStatus(objBEStudent);
            objBStudent.BUpdatePLTime(objBEStudent);


            Response.Redirect("CaptureIDImage.aspx?TransID=" + AppSecurity.Encrypt(transID.ToString()), false);
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["TransID"] != null)
            {
                Int64 TransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));

                BEStudent objBEStudent = new BEStudent();
                BStudent  objBStudent  = new BStudent();
                objBEStudent.IntTransID = TransID;
                objBEStudent.IntResult  = 0;

                objBStudent.BUpdateNonProctorExamStatus(objBEStudent);
            }
        }
        protected void btnBegin_Click(object sender, EventArgs e)
        {
            Session["Flowcheck"]      = null;
            Session["NonProctorExam"] = null;
            Session["Isproctorless"]  = null;
            BEStudent objBEStudent = new BEStudent();
            BStudent  objBStudent  = new BStudent();

            objBEStudent.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
            objBEStudent.IntType    = 18;
            objBEStudent.IntResult  = 0;
            objBStudent.BUpdateNonProctorExamStatus(objBEStudent);
            objBStudent.BUpdatePLTime(objBEStudent);


            ScriptManager.RegisterStartupScript(this, Page.GetType(), "newWindow", "window.open('" + GetExamLink() + "','_blank');", true);
        }
コード例 #4
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Int64     TransID      = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
            BEStudent objBEStudent = new BEStudent();
            BStudent  objBStudent  = new BStudent();

            objBEStudent.IntTransID = TransID;
            objBEStudent.IntResult  = 2;
            objBEStudent.IntType    = 9;
            objBStudent.BUpdateNonProctorExamStatus(objBEStudent);
            objBStudent.BUpdatePLTime(objBEStudent);

            if (Session["isexamiFACE"] != null && Session["isexamiFACE"].ToString() == "1")
            {
                BECommon objBECommon = new BECommon();
                BCommon  objBCommon  = new BCommon();
                objBECommon.IntTransID = TransID;
                objBCommon.BGetOpenTokAutoProctorStatus(objBECommon);
                if (objBECommon.IntResult == 1)
                {
                    var client  = new RestClient(System.Configuration.ConfigurationManager.AppSettings["ExamityMeetingService_URL"].ToString());
                    var request = new RestRequest(Method.POST);
                    System.Text.StringBuilder sb = new System.Text.StringBuilder();
                    sb.Append("Method=CreateAutoProctorMeeting&");
                    sb.Append("TransID=" + Request.QueryString["TransID"].ToString());
                    sb.Append("&ClientID=" + System.Configuration.ConfigurationManager.AppSettings["ExamityMeeting_ClientID"].ToString());

                    request.AddParameter("application/x-www-form-urlencoded", sb.ToString(), RestSharp.ParameterType.RequestBody);
                    var response = client.Execute(request);
                    Response.Redirect("BeginAutoProctorExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
                    //Response.Redirect("BeginAutoProctorExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
                }
                else
                {
                    Response.Redirect("BeginAutoExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
                }
            }
            else
            {
                Response.Redirect("BeginExam.aspx?TransID=" + Request.QueryString["TransID"].ToString());
            }
        }