PersonInfo/SubRedoOne.aspx.cs

(开头部分) 17KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.IO;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Configuration;
using System.Text;
using EasyExam;

public partial class PersonInfo_SubRedoOne : System.Web.UI.Page
{
    protected string strMessage = "";
    PublicFunction ObjFun = new PublicFunction();
    int intPaperID = 0, intUserScoreID = 0, intRemTime = 0, intRemMinute = 0, intRemSecond = 0, intTestAmount = 0;
    int intPassMark = 0, intFillAutoGrade = 0, intSeeResult = 0, intPassState = 0, intAutoJudge = 0, intJudgeState = 0, intJudgeUserID = 0;
    string strRubricID = "", strBaseTestType = "", strUserAnswer = "", strMsg = "";
    double dblUserScore = 0, dblImpScore = 0, dblSubScore = 0;
    string[] strArrTypeStandardAnswer, strArrTypeUserAnswer;
    string[] strArrUserAnswer, strArrStandardAnswer;

    protected void Page_Load(object sender, EventArgs e)
    {
        intPaperID = Convert.ToInt32(Request["PaperID"]);
        intUserScoreID = Convert.ToInt32(Request["UserScoreID"]);
        intRemMinute = Convert.ToInt32(Request["timeminute"]);
        intRemSecond = Convert.ToInt32(Request["timesecond"]);
        intRemTime = intRemMinute * 60 + intRemSecond;//考试剩余时间
        intTestAmount = Convert.ToInt32(Request["irow"]);//试题总数

        intPassMark = Convert.ToInt32(Request["PassMark"]);
        intFillAutoGrade = Convert.ToInt32(Request["FillAutoGrade"]);
        intSeeResult = Convert.ToInt32(Request["SeeResult"]);
        intAutoJudge = Convert.ToInt32(Request["AutoJudge"]);
        if ((intPaperID != 0) && (intUserScoreID != 0))
        {
            try
            {
                string strConn = ConfigurationSettings.AppSettings["strConn"];
                SqlConnection SqlConn = new SqlConnection(strConn);
                SqlCommand ObjCmd = new SqlCommand();
                SqlConn.Open();

                SqlDataAdapter SqlCmdTest = null;
                DataSet SqlDSTest = null;
                
                StringBuilder BuilderRubricID = new StringBuilder();    //试题ID
                StringBuilder BuilderUserAnswer = new StringBuilder();  //答案
                StringBuilder BuilderUserScore = new StringBuilder();   //得分

                SqlCmdTest = new SqlDataAdapter("select a.TestMark,b.StandardAnswer from UserAnswer a,RubricInfo b,PaperTestType c where a.RubricID=b.RubricID and b.TestTypeID=c.TestTypeID and a.UserScoreID=" + intUserScoreID + " and c.PaperID=" + intPaperID + " and a.UserScore = 0 order by c.PaperTestTypeID,a.TestOrder", SqlConn);
                SqlDSTest = new DataSet();
                SqlCmdTest.Fill(SqlDSTest, "UserAnswer");
                dblImpScore = 0; dblSubScore = 0;
后面还有 215 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。