示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     jc_Public jcPublic = new jc_Public();
     jc_System jcSystem = new jc_System();
     if (!Page.IsPostBack)
     {
         var str = jcSystem.getLoginUser();
         lbl_LoginUser.Text = jcPublic.GetTrueName(str);
         this.imgLogo.ImageUrl = weburl + "Theme/" + sysTheme + "/images/webLogo.gif";
         Page.ClientScript.RegisterStartupScript(GetType(), "startscript",
             "<script  type=\"text/javascript\"  defer=\"defer\">$('[name=mutative]').show();</script>");
         BindJSKP();
     }
 }
示例#2
0
 public string getLibraryMaxtime(string strParameters)
 {
     jc_System system = new jc_System();
     if (strParameters == "zjlx")
     {
         return system.GetJcSystemByInstalledName("UnitLxTime");
     }
     if (strParameters == "txlx")
     {
         return system.GetJcSystemByInstalledName("PtypeLxTime");
     }
     if (strParameters == "ctlx")
     {
         return system.GetJcSystemByInstalledName("ErrorLxTime");
     }
     string strcmd = "select TestTime from jc_Library where LibraryNo=" + strParameters;
     SqlCommand command = this.db_0.getcmd(strcmd);
     SqlDataReader reader = command.ExecuteReader();
     try
     {
         reader.Read();
         string str3 = reader["TestTime"].ToString();
         reader.Close();
         command.Dispose();
         this.db_0.CnClose();
         return str3;
     }
     catch
     {
         reader.Close();
         command.Dispose();
         this.db_0.CnClose();
         return "Error";
     }
 }
        public string CreatePaper(string requestSubjectNo, string LibraryNo, string CreateType, string OtherVal)
        {
            string str16;
            string str17;
            string str19;
            int num12;
            string str33;
            SqlCommand command2;
            SqlDataReader reader;
            string str34;
            string str35;
            string str36;
            string str = "";
            string str2 = "";
            string str3 = "";
            string str4 = "";
            string str5 = "";
            string str6 = "";
            string str7 = "More";
            int radioNum = 0;
            int moreNum = 0;
            int boolNum = 0;
            int fillNum = 0;
            int qANum = 0;
            int num6 = 0;
            string[] strArray = new string[1];
            string[] strArray2 = new string[1];
            string[] strArray3 = new string[1];
            string[] strArray4 = new string[1];
            string[] strArray5 = new string[1];
            string str8 = OtherVal;
            string str9 = OtherVal;
            string str10 = OtherVal;
            string str11 = "";
            string str12 = "";
            string str13 = "";
            jc_System system = new jc_System();
            string str15 = system.getWebUrl() + "Theme/blue/images/";
            if (LibraryNo != "")
            {
                str = this.Get_LibraryInfo(LibraryNo);
                string[] strArray6 = str.Split(new char[] { '^' });
                str16 = strArray6[0];
                str17 = strArray6[1];
                string str18 = strArray6[2];
                str7 = strArray6[5];
                str19 = strArray6[0x11];
                radioNum = Convert.ToInt32(strArray6[6]);
                moreNum = Convert.ToInt32(strArray6[7]);
                boolNum = Convert.ToInt32(strArray6[8]);
                fillNum = Convert.ToInt32(strArray6[9]);
                qANum = Convert.ToInt32(strArray6[10]);
                if (str18 == "A")
                {
                    string[] strArray7 = strArray6[0x15].ToString().Split(new char[] { '-' });
                    for (int i = 0; i < strArray7.Length; i++)
                    {
                        string[] strArray8 = strArray7[i].Split(new char[] { '|' });
                        if (this.getPType(strArray8[0].ToString()) == "单选")
                        {
                            radioNum = strArray8.Length - 1;
                            strArray = strArray8;
                        }
                        else if (this.getPType(strArray8[0].ToString()) == "多选")
                        {
                            moreNum = strArray8.Length - 1;
                            strArray2 = strArray8;
                        }
                        else if (this.getPType(strArray8[0].ToString()) == "判断")
                        {
                            boolNum = strArray8.Length - 1;
                            strArray3 = strArray8;
                        }
                        else if (this.getPType(strArray8[0].ToString()) == "排序")
                        {
                            fillNum = strArray8.Length - 1;
                            strArray4 = strArray8;
                        }
                        else if (this.getPType(strArray8[0].ToString()) == "问答")
                        {
                            qANum = strArray8.Length - 1;
                            strArray5 = strArray8;
                        }
                    }
                }
                else
                {
                    if (str18 != "B")
                    {
                        HttpContext.Current.Response.Write("生成试卷出错!");
                        HttpContext.Current.Response.End();
                    }
                    string ptypeInfo = strArray6[12].ToString();
                    string str22 = strArray6[13].ToString();
                    string str23 = strArray6[14].ToString();
                    string str24 = strArray6[15].ToString();
                    string str25 = strArray6[0x10].ToString();
                    string str26 = this.CreateTempFixNo(str16, "单选", ptypeInfo);
                    if (str26 != "")
                    {
                        strArray = str26.Split(new char[] { '|' });
                        radioNum = strArray.Length - 1;
                    }
                    str26 = this.CreateTempFixNo(str16, "多选", str22);
                    if (str26 != "")
                    {
                        strArray2 = str26.Split(new char[] { '|' });
                        moreNum = strArray2.Length - 1;
                    }
                    str26 = this.CreateTempFixNo(str16, "判断", str23);
                    if (str26 != "")
                    {
                        strArray3 = str26.Split(new char[] { '|' });
                        boolNum = strArray3.Length - 1;
                    }
                    str26 = this.CreateTempFixNo(str16, "排序", str24);
                    if (str26 != "")
                    {
                        strArray4 = str26.Split(new char[] { '|' });
                        fillNum = strArray4.Length - 1;
                    }
                    str26 = this.CreateTempFixNo(str16, "问答", str25);
                    if (str26 != "")
                    {
                        strArray5 = str26.Split(new char[] { '|' });
                        qANum = strArray5.Length - 1;
                    }
                }
            }
            else
            {
                str17 = "A";
                int num8 = 0;
                if (CreateType == "ctlx")
                {
                    num8 = Convert.ToInt32(system.GetJcSystemByInstalledName("ErrorLxNum"));
                    str7 = system.GetJcSystemByInstalledName("ctlxLayout");
                }
                else if (CreateType == "zjlx")
                {
                    num8 = Convert.ToInt32(system.GetJcSystemByInstalledName("UnitLxNum"));
                    str7 = system.GetJcSystemByInstalledName("zjLxLayout");
                }
                else if (CreateType == "txlx")
                {
                    num8 = Convert.ToInt32(system.GetJcSystemByInstalledName("PtypeLxNum"));
                    str7 = system.GetJcSystemByInstalledName("txlxLayout");
                    num6 = num8;
                }
                else
                {
                    HttpContext.Current.Response.Write("Error");
                    HttpContext.Current.Response.End();
                }
                if ((CreateType == "zjlx") || (CreateType == "ctlx"))
                {
                    radioNum = num8;
                    moreNum = num8;
                    boolNum = num8;
                    fillNum = num8;
                    qANum = num8;
                }
                else if (CreateType == "txlx")
                {
                    switch (str9)
                    {
                        case "单选":
                            radioNum = num6;
                            break;

                        case "多选":
                            moreNum = num6;
                            break;

                        case "判断":
                            boolNum = num6;
                            break;

                        case "排序":
                            fillNum = num6;
                            break;

                        case "问答":
                            qANum = num6;
                            break;
                    }
                }
                str16 = requestSubjectNo;
                str19 = "";
                if (system.GetJcSystemByInstalledName("CheckPaperNum") == "true")
                {
                    SqlCommand command;
                    int num9;
                    string strcmd = "";
                    if (CreateType == "ctlx")
                    {
                        strcmd = "select Count([jc_ErrorPaper].[ID]) \r\n                                                                from [jc_ErrorPaper]\r\n                                                                JOIN [jc_Paper] ON [jc_Paper].[ID]=[jc_ErrorPaper].[PaperNo]\r\n                                                                WHERE \r\n                                                                [jc_Paper].[SubjectNo]='" + str16 + "' \r\n                                                                and [jc_ErrorPaper].[UserIdCard]='" + str10 + "' \r\n                                                                and [jc_Paper].[PaperType]='单选'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < radioNum)
                        {
                            radioNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count([jc_ErrorPaper].[ID]) \r\n                                                                from [jc_ErrorPaper]\r\n                                                                JOIN [jc_Paper] ON [jc_Paper].[ID]=[jc_ErrorPaper].[PaperNo]\r\n                                                                WHERE \r\n                                                                [jc_Paper].[SubjectNo]='" + str16 + "' \r\n                                                                and [jc_ErrorPaper].[UserIdCard]='" + str10 + "' \r\n                                                                and [jc_Paper].[PaperType]='多选'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < moreNum)
                        {
                            moreNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count([jc_ErrorPaper].[ID]) \r\n                                                                from [jc_ErrorPaper]\r\n                                                                JOIN [jc_Paper] ON [jc_Paper].[ID]=[jc_ErrorPaper].[PaperNo]\r\n                                                                WHERE \r\n                                                                [jc_Paper].[SubjectNo]='" + str16 + "' \r\n                                                                and [jc_ErrorPaper].[UserIdCard]='" + str10 + "' \r\n                                                                and [jc_Paper].[PaperType]='判断'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < boolNum)
                        {
                            boolNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count([jc_ErrorPaper].[ID]) \r\n                                                                from [jc_ErrorPaper]\r\n                                                                JOIN [jc_Paper] ON [jc_Paper].[ID]=[jc_ErrorPaper].[PaperNo]\r\n                                                                WHERE \r\n                                                                [jc_Paper].[SubjectNo]='" + str16 + "' \r\n                                                                and [jc_ErrorPaper].[UserIdCard]='" + str10 + "' \r\n                                                                and [jc_Paper].[PaperType]='排序'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < fillNum)
                        {
                            fillNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count([jc_ErrorPaper].[ID]) \r\n                                                                from [jc_ErrorPaper]\r\n                                                                JOIN [jc_Paper] ON [jc_Paper].[ID]=[jc_ErrorPaper].[PaperNo]\r\n                                                                WHERE \r\n                                                                [jc_Paper].[SubjectNo]='" + str16 + "' \r\n                                                                and [jc_ErrorPaper].[UserIdCard]='" + str10 + "' \r\n                                                                and [jc_Paper].[PaperType]='问答'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < qANum)
                        {
                            qANum = num9;
                        }
                        command.Dispose();
                    }
                    else if (CreateType == "zjlx")
                    {
                        strcmd = "select Count(*) from jc_Paper where SubjectNo='" + str16 + "' and UnitId=" + str8 + " and PaperType='单选'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < radioNum)
                        {
                            radioNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count(*) from jc_Paper where SubjectNo='" + str16 + "' and UnitId=" + str8 + " and PaperType='多选'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < moreNum)
                        {
                            moreNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count(*) from jc_Paper where SubjectNo='" + str16 + "' and UnitId=" + str8 + " and PaperType='判断'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < boolNum)
                        {
                            boolNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count(*) from jc_Paper where SubjectNo='" + str16 + "' and UnitId=" + str8 + " and PaperType='排序'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < fillNum)
                        {
                            fillNum = num9;
                        }
                        command.Dispose();
                        strcmd = "select Count(*) from jc_Paper where SubjectNo='" + str16 + "' and UnitId=" + str8 + " and PaperType='问答'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < qANum)
                        {
                            qANum = num9;
                        }
                        command.Dispose();
                        this.db_0.CnClose();
                    }
                    else if (CreateType == "txlx")
                    {
                        strcmd = "select Count(*) from jc_Paper where SubjectNo='" + str16 + "' and PaperType='" + str9 + "'";
                        command = this.db_0.getcmd(strcmd);
                        num9 = Convert.ToInt32(command.ExecuteScalar());
                        if (num9 < num6)
                        {
                            num6 = num9;
                        }
                        command.Dispose();
                        switch (str9)
                        {
                            case "单选":
                                radioNum = num6;
                                break;

                            case "多选":
                                moreNum = num6;
                                break;

                            case "判断":
                                boolNum = num6;
                                break;

                            case "排序":
                                fillNum = num6;
                                break;

                            case "问答":
                                qANum = num6;
                                break;
                        }
                    }
                }
                string str28 = "";
                string str29 = "";
                string str30 = "";
                string str31 = "";
                string str32 = "";
                if (CreateType == "ctlx")
                {
                    if (radioNum > 0)
                    {
                        str28 = this.method_0("ctlx", radioNum.ToString(), str16, "单选", str10);
                    }
                    if (moreNum > 0)
                    {
                        str29 = this.method_0("ctlx", moreNum.ToString(), str16, "多选", str10);
                    }
                    if (boolNum > 0)
                    {
                        str30 = this.method_0("ctlx", boolNum.ToString(), str16, "判断", str10);
                    }
                }
                else if (CreateType == "zjlx")
                {
                    if (radioNum > 0)
                    {
                        str28 = this.method_0("zjlx", radioNum.ToString(), str16, "单选", str8);
                    }
                    if (moreNum > 0)
                    {
                        str29 = this.method_0("zjlx", moreNum.ToString(), str16, "多选", str8);
                    }
                    if (boolNum > 0)
                    {
                        str30 = this.method_0("zjlx", boolNum.ToString(), str16, "判断", str8);
                    }
                    if (fillNum > 0)
                    {
                        str31 = this.method_0("zjlx", fillNum.ToString(), str16, "排序", str8);
                    }
                    if (qANum > 0)
                    {
                        str32 = this.method_0("zjlx", qANum.ToString(), str16, "问答", str8);
                    }
                }
                else if (CreateType == "txlx")
                {
                    switch (str9)
                    {
                        case "单选":
                            str28 = this.method_0("txlx", num6.ToString(), str16, "单选", "");
                            break;

                        case "多选":
                            str29 = this.method_0("txlx", num6.ToString(), str16, "多选", "");
                            break;

                        case "判断":
                            str30 = this.method_0("txlx", num6.ToString(), str16, "判断", "");
                            break;

                        case "排序":
                            str31 = this.method_0("txlx", num6.ToString(), str16, "排序", "");
                            break;

                        case "问答":
                            str32 = this.method_0("txlx", num6.ToString(), str16, "问答", "");
                            break;
                    }
                }
                strArray = str28.Split(new char[] { '|' });
                strArray2 = str29.Split(new char[] { '|' });
                strArray3 = str30.Split(new char[] { '|' });
                strArray4 = str31.Split(new char[] { '|' });
                strArray5 = str32.Split(new char[] { '|' });
            }
            int num10 = 0;
            int num11 = 0;
            if (radioNum > 0)
            {
                if (str7 == "Single")
                {
                    str2 = "<div id=\"PRadio\" class=\"PaperType\">";
                }
                else
                {
                    str2 = "<div id=\"PRadio\" class=\"RadioUI\">";
                }
                num12 = 0;
                while (true)
                {
                    if (num12 >= (strArray.Length - 1))
                    {
                        break;
                    }
                    num10++;
                    num11++;
                    str33 = "select * from jc_Paper where ID=" + strArray[num12].ToString();
                    command2 = this.db_0.getcmd(str33);
                    reader = command2.ExecuteReader();
                    try
                    {
                        reader.Read();
                        str34 = reader["ID"].ToString();
                        str2 = str2 + "<div id=\"PR" + num10.ToString() + "\"";
                        if (num11 != 1)
                        {
                            if (str7 == "Single")
                            {
                                str2 = str2 + "  class=\"hide\" >\n";
                            }
                            else
                            {
                                str2 = str2 + " class=\"SinglePaperUi\" >\n";
                            }
                        }
                        else if (str7 == "Single")
                        {
                            str2 = str2 + " >\n";
                        }
                        else
                        {
                            str2 = str2 + " class=\"SinglePaperUi\" >\n";
                        }
                        if (str7 == "More")
                        {
                            str2 = str2 + "<div class=\"PUI_Top\"></div>";
                        }
                        str35 = str2;
                        str2 = str35 + "<div class=\"P_Text\">" + num10.ToString() + "、" + reader["PaperText"].ToString() + "</div>";
                        str2 = str2 + "<ul class=\"ItemABCD\">\n";
                        str35 = str2;
                        str2 = str35 + "<label for='rr" + num10.ToString() + "A' ><div onclick=\"CountR('" + num10.ToString() + "','A');\" id=\"li" + num10.ToString() + "A\"><input type='radio' id='rr" + num10.ToString() + "A' name='r" + num10.ToString() + "' value='A'  /><span id=\"Rimg" + num10.ToString() + "A\"></span>A、" + reader["ItemA"].ToString() + "</div></label>\n";
                        str35 = str2;
                        str2 = str35 + "<label for='rr" + num10.ToString() + "B'  ><div onclick=\"CountR('" + num10.ToString() + "','B');\" id=\"li" + num10.ToString() + "B\"><input type='radio' id='rr" + num10.ToString() + "B' name='r" + num10.ToString() + "' value='B'  /><span id=\"Rimg" + num10.ToString() + "B\"></span>B、" + reader["ItemB"].ToString() + "</div></label>\n";
                        if (reader["ItemC"].ToString() != "")
                        {
                            str35 = str2;
                            str2 = str35 + "<label for='rr" + num10.ToString() + "C'  ><div onclick=\"CountR('" + num10.ToString() + "','C');\" id=\"li" + num10.ToString() + "C\"><input type='radio' id='rr" + num10.ToString() + "C' name='r" + num10.ToString() + "' value='C'  /><span id=\"Rimg" + num10.ToString() + "C\"></span>C、" + reader["ItemC"].ToString() + "</div></label>\n";
                        }
                        if (reader["ItemD"].ToString() != "")
                        {
                            str35 = str2;
                            str2 = str35 + "<label for='rr" + num10.ToString() + "D'  ><div onclick=\"CountR('" + num10.ToString() + "','D');\" id=\"li" + num10.ToString() + "D\"><input type='radio' id='rr" + num10.ToString() + "D' name='r" + num10.ToString() + "' value='D' /><span id=\"Rimg" + num10.ToString() + "D\"></span>D、" + reader["ItemD"].ToString() + "</div></label>\n";
                        }
                        if (system.SixSelections)
                        {
                            if (reader["ItemE"].ToString() != "")
                            {
                                str35 = str2;
                                str2 = str35 + "<label for='rr" + num10.ToString() + "E'  ><div onclick=\"CountR('" + num10.ToString() + "','E');\" id=\"li" + num10.ToString() + "E\"><input type='radio' id='rr" + num10.ToString() + "E' name='r" + num10.ToString() + "' value='E'  /><span id=\"Rimg" + num10.ToString() + "E\"></span>E、" + reader["ItemE"].ToString() + "</div></label>\n";
                            }
                            if (reader["ItemF"].ToString() != "")
                            {
                                str35 = str2;
                                str2 = str35 + "<label for='rr" + num10.ToString() + "F'  ><div onclick=\"CountR('" + num10.ToString() + "','F');\" id=\"li" + num10.ToString() + "F\"><input type='radio' id='rr" + num10.ToString() + "F' name='r" + num10.ToString() + "' value='F' /><span id=\"Rimg" + num10.ToString() + "F\"></span>F、" + reader["ItemF"].ToString() + "</div></label>\n";
                            }
                        }
                        str2 = str2 + "</ul>\n";
                        str36 = reader["PaperAnalysis"].ToString();
                        if (str7 == "More")
                        {
                            if (str17 == "A")
                            {
                                str2 = str2 + "<div class=\"PUI_Operate\">";
                                if (!string.IsNullOrEmpty(str36))
                                {
                                    str36 = str36.Replace('"', '\'');
                                    str35 = str2;
                                    str2 = str35 + "<img src='" + str15 + "Analysis_1.gif' id='btnAnalysisMore" + num10.ToString() + "' onclick=\"ShowAnalysisMore('RAnalysis','" + num10.ToString() + "')\" />";
                                }
                                str35 = str2;
                                str2 = str35 + "<img src='" + str15 + "show_answer.gif'  id='ianaser" + num10.ToString() + "' onclick=\"ShowAnswer('Radio','" + num10.ToString() + "',this.id);\" /></div>";
                            }
                            str2 = str2 + "<div id='divAnalysis" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str2 = str2 + "<div class=\"PUI_Buttom\"></div>";
                        }
                        str2 = str2 + "</div>";
                        if (str17 == "A")
                        {
                            str35 = str2;
                            str2 = str35 + "<input type=\"hidden\" id=\"RAnalysis" + num10.ToString() + "\" value=\"" + str36 + "\" />";
                            str35 = str2;
                            str2 = str35 + "<input type=\"hidden\" id=\"RAnswer" + num10.ToString() + "\" value=\"" + reader["Answer"].ToString() + "\" />";
                            str35 = str2;
                            str2 = str35 + "<input type=\"hidden\" id=\"RID" + num10.ToString() + "\" value=\"" + str34 + "\" />\n";
                        }
                        else
                        {
                            str11 = str11 + reader["Answer"].ToString() + "^^^";
                            str12 = str12 + str36 + "^^^";
                            str13 = str13 + reader["ID"].ToString() + "^^^";
                        }
                        str2 = str2 + "<input type=\"hidden\" id=\"STRAnswer" + num10.ToString() + "\" value=\"\" />\n";
                        command2.Dispose();
                        reader.Close();
                        if (num11 == radioNum)
                        {
                            break;
                        }
                    }
                    catch
                    {
                        command2.Dispose();
                        reader.Close();
                    }
                    num12++;
                }
                str2 = str2 + "</div>";
            }
            num11 = 0;
            if (moreNum > 0)
            {
                str3 = "<div id=\"PMore\" class=\"hide\">";
                num12 = 0;
                while (true)
                {
                    if (num12 >= (strArray2.Length - 1))
                    {
                        break;
                    }
                    num10++;
                    num11++;
                    str33 = "select * from jc_Paper where ID=" + strArray2[num12].ToString();
                    command2 = this.db_0.getcmd(str33);
                    reader = command2.ExecuteReader();
                    try
                    {
                        reader.Read();
                        str34 = reader["ID"].ToString();
                        str3 = str3 + "<div id=\"PM" + num10.ToString() + "\"";
                        if (num11 != 1)
                        {
                            if (str7 == "Single")
                            {
                                str3 = str3 + "  class=\"hide\" >\n";
                            }
                            else
                            {
                                str3 = str3 + "  class=\"SinglePaperUi\" >\n";
                            }
                        }
                        else if (str7 == "Single")
                        {
                            str3 = str3 + " >\n";
                        }
                        else
                        {
                            str3 = str3 + " class=\"SinglePaperUi\" >\n";
                        }
                        if (str7 == "More")
                        {
                            str3 = str3 + "<div class=\"PUI_Top\"></div>";
                        }
                        str35 = str3;
                        str3 = str35 + "<div class=\"P_Text\">" + num10.ToString() + "、" + reader["PaperText"].ToString() + "</div>";
                        str3 = str3 + "<ul class=\"ItemABCD\">\n";
                        str35 = str3;
                        str3 = str35 + "<label for='mm" + num10.ToString() + "A' ><div id=\"li" + num10.ToString() + "A\" onclick=\"CountM('" + num10.ToString() + "');\"><input type='checkbox' id='mm" + num10.ToString() + "A' name='m" + num10.ToString() + "' value='A' /><span id=\"Rimg" + num10.ToString() + "A\"></span>A、" + reader["ItemA"].ToString() + "</div></label>\n";
                        str35 = str3;
                        str3 = str35 + "<label for='mm" + num10.ToString() + "B'><div id=\"li" + num10.ToString() + "B\" onclick=\"CountM('" + num10.ToString() + "');\"><input type='checkbox'  id='mm" + num10.ToString() + "B' name='m" + num10.ToString() + "'  value='B' /><span id=\"Rimg" + num10.ToString() + "B\"></span>B、" + reader["ItemB"].ToString() + "</div></label>\n";
                        if (reader["ItemC"].ToString() != "")
                        {
                            str35 = str3;
                            str3 = str35 + "<label for='mm" + num10.ToString() + "C'><div id=\"li" + num10.ToString() + "C\" onclick=\"CountM('" + num10.ToString() + "');\"><input type='checkbox'  id='mm" + num10.ToString() + "C' name='m" + num10.ToString() + "'  value='C' /><span id=\"Rimg" + num10.ToString() + "C\"></span>C、" + reader["ItemC"].ToString() + "</div></label>\n";
                        }
                        if (reader["ItemD"].ToString() != "")
                        {
                            str35 = str3;
                            str3 = str35 + "<label for='mm" + num10.ToString() + "D'><div id=\"li" + num10.ToString() + "D\" onclick=\"CountM('" + num10.ToString() + "');\"><input type='checkbox'  id='mm" + num10.ToString() + "D' name='m" + num10.ToString() + "' value='D' /><span id=\"Rimg" + num10.ToString() + "D\"></span>D、" + reader["ItemD"].ToString() + "</div></label>\n";
                        }
                        if (system.SixSelections)
                        {
                            if (reader["ItemE"].ToString() != "")
                            {
                                str35 = str3;
                                str3 = str35 + "<label for='mm" + num10.ToString() + "E'><div id=\"li" + num10.ToString() + "E\" onclick=\"CountM('" + num10.ToString() + "');\"><input type='checkbox'  id='mm" + num10.ToString() + "E' name='m" + num10.ToString() + "'  value='E' /><span id=\"Rimg" + num10.ToString() + "E\"></span>E、" + reader["ItemE"].ToString() + "</div></label>\n";
                            }
                            if (reader["ItemF"].ToString() != "")
                            {
                                str35 = str3;
                                str3 = str35 + "<label for='mm" + num10.ToString() + "F'><div id=\"li" + num10.ToString() + "F\" onclick=\"CountM('" + num10.ToString() + "');\"><input type='checkbox'  id='mm" + num10.ToString() + "F' name='m" + num10.ToString() + "' value='F' /><span id=\"Rimg" + num10.ToString() + "F\"></span>F、" + reader["ItemF"].ToString() + "</div></label>\n";
                            }
                        }
                        str3 = str3 + "</ul>\n";
                        str36 = reader["PaperAnalysis"].ToString();
                        if (str7 == "More")
                        {
                            if (str17 == "A")
                            {
                                str3 = str3 + "<div class=\"PUI_Operate\">";
                                if (!string.IsNullOrEmpty(str36))
                                {
                                    str36 = str36.Replace('"', '\'');
                                    str35 = str3;
                                    str3 = str35 + "<img src='" + str15 + "Analysis_1.gif'  id='btnAnalysisMore" + num10.ToString() + "' onclick=\"ShowAnalysisMore('MAnalysis','" + num10.ToString() + "')\" />";
                                }
                                str35 = str3;
                                str3 = str35 + "<img src='" + str15 + "show_answer.gif'  id='ianaser" + num10.ToString() + "' onclick=\"ShowAnswer('More','" + num10.ToString() + "',this.id);\" /></div>";
                            }
                            str3 = str3 + "<div id='divAnalysis" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str3 = str3 + "<div class=\"PUI_Buttom\"></div>";
                        }
                        str3 = str3 + "</div>";
                        if (str17 == "A")
                        {
                            str35 = str3;
                            str3 = str35 + "<input type=\"hidden\" id=\"MAnalysis" + num10.ToString() + "\" value=\"" + str36 + "\" />";
                            str35 = str3;
                            str3 = str35 + "<input type=\"hidden\" id=\"MAnswer" + num10.ToString() + "\" value=\"" + reader["Answer"].ToString() + "\" />";
                            str35 = str3;
                            str3 = str35 + "<input type=\"hidden\" id=\"MID" + num10.ToString() + "\" value=\"" + str34 + "\" />\n";
                        }
                        else
                        {
                            str11 = str11 + reader["Answer"].ToString() + "^^^";
                            str12 = str12 + str36 + "^^^";
                            str13 = str13 + reader["ID"].ToString() + "^^^";
                        }
                        str3 = str3 + "<input type=\"hidden\" id=\"STMAnswer" + num10.ToString() + "\" value=\"\" />\n";
                        command2.Dispose();
                        reader.Close();
                        if (num11 == moreNum)
                        {
                            break;
                        }
                    }
                    catch
                    {
                        command2.Dispose();
                        reader.Close();
                    }
                    num12++;
                }
                str3 = str3 + "</div>";
            }
            num11 = 0;
            if (boolNum > 0)
            {
                str4 = "<div id=\"PBool\" class=\"hide\">";
                num12 = 0;
                while (true)
                {
                    if (num12 >= (strArray3.Length - 1))
                    {
                        break;
                    }
                    num10++;
                    num11++;
                    str33 = "select * from jc_Paper where ID=" + strArray3[num12].ToString();
                    command2 = this.db_0.getcmd(str33);
                    reader = command2.ExecuteReader();
                    try
                    {
                        reader.Read();
                        str34 = reader["ID"].ToString();
                        str4 = str4 + "<div id=\"PB" + num10.ToString() + "\"";
                        if (num11 != 1)
                        {
                            if (str7 == "Single")
                            {
                                str4 = str4 + "  class=\"hide\" >\n";
                            }
                            else
                            {
                                str4 = str4 + " class=\"SinglePaperUi\" >\n";
                            }
                        }
                        else if (str7 == "Single")
                        {
                            str4 = str4 + " >\n";
                        }
                        else
                        {
                            str4 = str4 + " class=\"SinglePaperUi\" >\n";
                        }
                        if (str7 == "More")
                        {
                            str4 = str4 + "<div class=\"PUI_Top\"></div>";
                        }
                        str35 = str4;
                        str4 = str35 + "<div class=\"P_Text\">" + num10.ToString() + "、" + reader["PaperText"].ToString() + "</div>";
                        str4 = str4 + "<ul class=\"ItemABCD\">\n";
                        str35 = str4;
                        str4 = str35 + "<label for='bb" + num10.ToString() + "A' ><div id=\"li" + num10.ToString() + "A\" onclick=\"CountB('" + num10.ToString() + "','A');\"><input type='radio'  id='bb" + num10.ToString() + "A' name='b" + num10.ToString() + "' value='A' /><span id=\"Rimg" + num10.ToString() + "A\"></span>A、正确</div></label>\n";
                        str35 = str4;
                        str4 = str35 + "<label for='bb" + num10.ToString() + "B' ><div id=\"li" + num10.ToString() + "B\" onclick=\"CountB('" + num10.ToString() + "','B');\"><input type='radio'  id='bb" + num10.ToString() + "B'  name='b" + num10.ToString() + "' value='B' /><span id=\"Rimg" + num10.ToString() + "B\"></span>B、错误</div></label>\n";
                        str4 = str4 + "</ul>\n";
                        str36 = reader["PaperAnalysis"].ToString();
                        if (str7 == "More")
                        {
                            if (str17 == "A")
                            {
                                str4 = str4 + "<div class=\"PUI_Operate\">";
                                if (!string.IsNullOrEmpty(str36))
                                {
                                    str36 = str36.Replace('"', '\'');
                                    str35 = str4;
                                    str4 = str35 + "<img src='" + str15 + "Analysis_1.gif'  id='btnAnalysisMore" + num10.ToString() + "' onclick=\"ShowAnalysisMore('BAnalysis','" + num10.ToString() + "')\" />";
                                }
                                str35 = str4;
                                str4 = str35 + "<img src='" + str15 + "show_answer.gif'  id='ianaser" + num10.ToString() + "' onclick=\"ShowAnswer('Bool','" + num10.ToString() + "',this.id);\" /></div>";
                            }
                            str4 = str4 + "<div id='divAnalysis" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str4 = str4 + "<div class=\"PUI_Buttom\"></div>";
                        }
                        str4 = str4 + "</div>";
                        if (str17 == "A")
                        {
                            str35 = str4;
                            str4 = str35 + "<input type=\"hidden\" id=\"BAnalysis" + num10.ToString() + "\" value=\"" + str36 + "\" />";
                            str35 = str4;
                            str4 = str35 + "<input type=\"hidden\" id=\"BAnswer" + num10.ToString() + "\" value=\"" + reader["Answer"].ToString() + "\" />";
                            str35 = str4;
                            str4 = str35 + "<input type=\"hidden\" id=\"BID" + num10.ToString() + "\" value=\"" + str34 + "\" />\n";
                        }
                        else
                        {
                            str11 = str11 + reader["Answer"].ToString() + "^^^";
                            str12 = str12 + str36 + "^^^";
                            str13 = str13 + reader["ID"].ToString() + "^^^";
                        }
                        str4 = str4 + "<input type=\"hidden\" id=\"STBAnswer" + num10.ToString() + "\" value=\"\" />\n";
                        command2.Dispose();
                        reader.Close();
                        if (num11 == boolNum)
                        {
                            break;
                        }
                    }
                    catch
                    {
                        command2.Dispose();
                        reader.Close();
                    }
                    num12++;
                }
                str4 = str4 + "</div>";
            }
            num11 = 0;
            if (fillNum > 0)
            {
                str5 = "<div id=\"PFill\" class=\"hide\">";
                num12 = 0;
                while (true)
                {
                    if (num12 >= (strArray4.Length - 1))
                    {
                        break;
                    }
                    num10++;
                    num11++;
                    str33 = "select * from jc_Paper where ID=" + strArray4[num12].ToString();
                    command2 = this.db_0.getcmd(str33);
                    reader = command2.ExecuteReader();
                    try
                    {
                        reader.Read();
                        str34 = reader["ID"].ToString();
                        str5 = str5 + "<div id=\"PF" + num10.ToString() + "\"";
                        if (num11 != 1)
                        {
                            if (str7 == "Single")
                            {
                                str5 = str5 + "  class=\"hide\" >\n";
                            }
                            else
                            {
                                str5 = str5 + " class=\"SinglePaperUi\" >\n";
                            }
                        }
                        else if (str7 == "Single")
                        {
                            str5 = str5 + " >\n";
                        }
                        else
                        {
                            str5 = str5 + " class=\"SinglePaperUi\" >\n";
                        }
                        if (str7 == "More")
                        {
                            str5 = str5 + "<div class=\"PUI_Top\"></div>";
                        }
                        str35 = str5;
                        str5 = str35 + "<div class=\"P_Text\">" + num10.ToString() + "、" + reader["PaperText"].ToString() + "</div>";
                        str5 = str5 + "<ul class=\"ItemABCD\">\n";
                        str35 = str5;
                        str5 = str35 + "<li><input type='text' id='ff" + num10.ToString() + "' value='' class=\"txt_item\" onkeyup=\"CountF(" + num10.ToString() + ");\" /></li>\n";
                        if (system.FillAutoScore && (reader["Answer"].ToString().IndexOf("~~") > 0))
                        {
                            str35 = str5;
                            str5 = str35 + "<img class='imgSeparator' src=\"" + str15 + "Separator.gif\" onclick=\"AddSeparator('ff" + num10.ToString() + "');\" id='imgSeparator" + num10.ToString() + "' /><span class='spanSeparator'  id='spanSeparator" + num10.ToString() + "'></span>";
                        }
                        str5 = str5 + "</ul>\n";
                        str36 = reader["PaperAnalysis"].ToString();
                        if (str7 == "More")
                        {
                            if (str17 == "A")
                            {
                                str5 = str5 + "<div class=\"PUI_Operate\">";
                                if (!string.IsNullOrEmpty(str36))
                                {
                                    str36 = str36.Replace('"', '\'');
                                    str35 = str5;
                                    str5 = str35 + "<img src='" + str15 + "Analysis_1.gif'  id='btnAnalysisMore" + num10.ToString() + "' onclick=\"ShowAnalysisMore('FAnalysis','" + num10.ToString() + "')\" />";
                                }
                                str35 = str5;
                                str5 = str35 + "<img src='" + str15 + "show_answer.gif'  id='ianaser" + num10.ToString() + "' onclick=\"ShowAnswer('Fill_More','" + num10.ToString() + "',this.id);\" /></div>";
                            }
                            str5 = str5 + "<div id='divTrueAnswer" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str5 = str5 + "<div id='divAnalysis" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str5 = str5 + "<div class=\"PUI_Buttom\"></div>";
                        }
                        str5 = str5 + "</div>";
                        if (str17 == "A")
                        {
                            str35 = str5;
                            str5 = str35 + "<input type=\"hidden\" id=\"FAnalysis" + num10.ToString() + "\" value=\"" + str36 + "\" />";
                            str35 = str5;
                            str5 = str35 + "<input type=\"hidden\" id=\"Answer" + num10.ToString() + "\" value=\"" + reader["Answer"].ToString() + "\" />";
                            str35 = str5;
                            str5 = str35 + "<input type=\"hidden\" id=\"FID" + num10.ToString() + "\" value=\"" + str34 + "\" />\n";
                        }
                        else
                        {
                            str11 = str11 + reader["Answer"].ToString() + "^^^";
                            str12 = str12 + str36 + "^^^";
                            str13 = str13 + reader["ID"].ToString() + "^^^";
                        }
                        str5 = str5 + "<input type=\"hidden\" id=\"STFAnswer" + num10.ToString() + "\" value=\"\" />\n";
                        command2.Dispose();
                        reader.Close();
                        if (num11 == fillNum)
                        {
                            break;
                        }
                    }
                    catch
                    {
                        command2.Dispose();
                        reader.Close();
                    }
                    num12++;
                }
                str5 = str5 + "</div>";
            }
            num11 = 0;
            if (qANum > 0)
            {
                str6 = "<div id=\"PQA\" class=\"hide\">";
                num12 = 0;
                while (true)
                {
                    if (num12 >= (strArray5.Length - 1))
                    {
                        break;
                    }
                    num10++;
                    num11++;
                    str33 = "select * from jc_Paper where ID=" + strArray5[num12].ToString();
                    command2 = this.db_0.getcmd(str33);
                    reader = command2.ExecuteReader();
                    try
                    {
                        reader.Read();
                        str34 = reader["ID"].ToString();
                        str6 = str6 + "<div id=\"PQ" + num10.ToString() + "\"";
                        if (num11 != 1)
                        {
                            if (str7 == "Single")
                            {
                                str6 = str6 + "  class=\"hide\" >\n";
                            }
                            else
                            {
                                str6 = str6 + " class=\"SinglePaperUi\" >\n";
                            }
                        }
                        else if (str7 == "Single")
                        {
                            str6 = str6 + " >\n";
                        }
                        else
                        {
                            str6 = str6 + " class=\"SinglePaperUi\" >\n";
                        }
                        if (str7 == "More")
                        {
                            str6 = str6 + "<div class=\"PUI_Top\"></div>";
                        }
                        str35 = str6;
                        str6 = str35 + "<div class=\"P_Text\">" + num10.ToString() + "、" + reader["PaperText"].ToString() + "</div>";
                        str6 = str6 + "<ul class=\"ItemABCD\">\n";
                        str35 = str6;
                        str6 = str35 + "<li><textarea id=\"qq" + num10.ToString() + "\" class=\"qatxt\" onkeyup=\"CountQ(" + num10.ToString() + ");\"></textarea></li>\n";
                        str6 = str6 + "</ul>";
                        str36 = reader["PaperAnalysis"].ToString();
                        if (str7 == "More")
                        {
                            if (str17 == "A")
                            {
                                str6 = str6 + "<div class=\"PUI_Operate\">";
                                if (!string.IsNullOrEmpty(str36))
                                {
                                    str36 = str36.Replace('"', '\'');
                                    str35 = str6;
                                    str6 = str35 + "<img src='" + str15 + "Analysis_1.gif'  id='btnAnalysisMore" + num10.ToString() + "' onclick=\"ShowAnalysisMore('QAnalysis','" + num10.ToString() + "')\" />";
                                }
                                str35 = str6;
                                str6 = str35 + "<img src='" + str15 + "show_answer.gif'  id='ianaser" + num10.ToString() + "' onclick=\"ShowAnswer('QA_More','" + num10.ToString() + "',this.id);\" /></div>";
                            }
                            str6 = str6 + "<div id='divTrueAnswer" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str6 = str6 + "<div id='divAnalysis" + num10.ToString() + "' class='divTrunAnswer'></div>";
                            str6 = str6 + "<div class=\"PUI_Buttom\"></div>";
                        }
                        str6 = str6 + "</div>";
                        if (str17 == "A")
                        {
                            str35 = str6;
                            str6 = str35 + "<input type=\"hidden\" id=\"QAnalysis" + num10.ToString() + "\" value=\"" + str36 + "\" />";
                            str35 = str6;
                            str6 = str35 + "<input type=\"hidden\" id=\"Answer" + num10.ToString() + "\" value=\"" + reader["Answer"].ToString() + "\" />";
                            str35 = str6;
                            str6 = str35 + "<input type=\"hidden\" id=\"QID" + num10.ToString() + "\" value=\"" + str34 + "\" />\n";
                        }
                        else
                        {
                            str11 = str11 + reader["Answer"].ToString() + "^^^";
                            str12 = str12 + str36 + "^^^";
                            str13 = str13 + reader["ID"].ToString() + "^^^";
                        }
                        str6 = str6 + "<input type=\"hidden\" id=\"STQAnswer" + num10.ToString() + "\" value=\"\" />\n";
                        command2.Dispose();
                        reader.Close();
                        if (num11 == qANum)
                        {
                            break;
                        }
                    }
                    catch
                    {
                        command2.Dispose();
                        reader.Close();
                    }
                    num12++;
                }
                str6 = str6 + "</div>";
            }
            this.db_0.CnClose();
            string str37 = "";
            if (str7 == "Single")
            {
                str37 = this.CreateSelectList(radioNum, moreNum, boolNum, fillNum, qANum);
            }
            switch (str17)
            {
                case "A":
                    return (str2 + str3 + str4 + str5 + str6 + "|||" + str37 + "|||" + radioNum.ToString() + "," + moreNum.ToString() + "," + boolNum.ToString() + "," + fillNum.ToString() + "," + qANum.ToString() + "|||" + str19 + "|||");

                case "B":
                    return (str2 + str3 + str4 + str5 + str6 + "|||" + str37 + "|||" + radioNum.ToString() + "," + moreNum.ToString() + "," + boolNum.ToString() + "," + fillNum.ToString() + "," + qANum.ToString() + "|||" + str + "|||" + str11 + "|||" + str12 + "|||" + str13);
            }
            return "Error";
        }
示例#4
0
 public string getLibraryList(string sql, string OperateType)
 {
     string str = "";
     jc_System system = new jc_System();
     SqlCommand command = this.db_0.getcmd(sql);
     SqlDataReader reader = command.ExecuteReader();
     try
     {
         while (reader.Read())
         {
             string str2;
             if (reader["LibraryType"].ToString() == "B")
             {
                 if (OperateType == "modify")
                 {
                     str2 = str;
                     str = str2 + "<tr style='color:#00572c; font-weight:bold; background-color:#ffe8e8;' id=\"tr" + reader["LibraryNo"].ToString() + "\" onmousemove=changetr('" + reader["LibraryNo"].ToString() + "') onmouseout=backtr('" + reader["LibraryNo"].ToString() + "')  onclick=SelectDel('" + reader["LibraryNo"].ToString() + "')>";
                     str2 = str;
                     str = str2 + "<td  class=\"td_bg\" style=\"text-align:center;\"><input id=\"chk_" + reader["LibraryNo"].ToString() + "\" type=\"checkbox\" onclick=SelectDel('" + reader["LibraryNo"].ToString() + "') /></td>";
                 }
                 else
                 {
                     str = str + "<tr style='color:#00572c; font-weight:bold; background-color:#ffe8e8;'>";
                 }
             }
             else if (OperateType == "modify")
             {
                 str2 = str;
                 str = str2 + "<tr id=\"tr" + reader["LibraryNo"].ToString() + "\" onmousemove=changetr('" + reader["LibraryNo"].ToString() + "') onmouseout=backtr('" + reader["LibraryNo"].ToString() + "')  class=\"trr_bg1\" onclick=SelectDel('" + reader["LibraryNo"].ToString() + "')>";
                 str2 = str;
                 str = str2 + "<td style=\"text-align:center;\"><input id=\"chk_" + reader["LibraryNo"].ToString() + "\" type=\"checkbox\" onclick=SelectDel('" + reader["LibraryNo"].ToString() + "') /></td>";
             }
             else
             {
                 str = str + "<tr>";
             }
             str = str + "<td class=\"td_bg\">" + reader["LibraryName"].ToString() + "</td>";
             if (reader["LibraryType"].ToString() == "A")
             {
                 str = str + "<td class=\"td_bg\">练习试卷</td>";
             }
             else if (reader["LibraryType"].ToString() == "B")
             {
                 str = str + "<td class=\"td_bg\">考试试卷</td>";
             }
             if (reader["LibraryProperties"].ToString() == "A")
             {
                 str = str + "<td class=\"td_bg\">固定试卷</td>";
             }
             else if (reader["LibraryProperties"].ToString() == "B")
             {
                 str = str + "<td class=\"td_bg\">随机试卷</td>";
             }
             string str3 = "<span style='color:#808080;'>0</span>";
             if (reader["Radio"].ToString() == "0")
             {
                 str = str + "<td class=\"td_bg\">" + str3 + "道</td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\">" + reader["Radio"].ToString() + "道</td>";
             }
             if (reader["More"].ToString() == "0")
             {
                 str = str + "<td class=\"td_bg\">" + str3 + "道</td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\">" + reader["More"].ToString() + "道</td>";
             }
             if (reader["Bool"].ToString() == "0")
             {
                 str = str + "<td class=\"td_bg\">" + str3 + "道</td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\">" + reader["Bool"].ToString() + "道</td>";
             }
             if (reader["Fill"].ToString() == "0")
             {
                 str = str + "<td class=\"td_bg\">" + str3 + "道</td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\">" + reader["Fill"].ToString() + "道</td>";
             }
             str = str + "<td class=\"td_bg\">" + reader["Total"].ToString() + "道</td>";
             string[] strArray2 = reader["LibraryScore"].ToString().Split(new char[] { ',' });
             str3 = "";
             if (strArray2[0] == "0")
             {
                 str3 = "单选:<span style='color:#808080;'>未抽题</span><br />";
             }
             else
             {
                 str3 = "单选:" + strArray2[0] + "分<br />";
             }
             if (strArray2[1] == "0")
             {
                 str3 = str3 + "多选:<span style='color:#808080;'>未抽题</span><br />";
             }
             else
             {
                 str3 = str3 + "多选:" + strArray2[1] + "分<br />";
             }
             if (strArray2[2] == "0")
             {
                 str3 = str3 + "判断:<span style='color:#808080;'>未抽题</span><br />";
             }
             else
             {
                 str3 = str3 + "判断:" + strArray2[2] + "分<br />";
             }
             if (strArray2[3] == "0")
             {
                 str3 = str3 + "排序:<span style='color:#808080;'>未抽题</span><br />";
             }
             else
             {
                 str3 = str3 + "排序:" + strArray2[3] + "分<br />";
             }
             if (strArray2[4] == "0")
             {
                 str3 = str3 + "问答:<span style='color:#808080;'>未抽题</span><br />";
             }
             else
             {
                 str3 = str3 + "问答:" + strArray2[4] + "分<br />";
             }
             str = str + "<td class=\"td_bg\">" + str3 + "</td>";
             str = str + "<td class=\"td_bg\">" + reader["TotalScore"].ToString() + "分</td>";
             str = str + "<td class=\"td_bg\">" + reader["PassingGrade"].ToString() + "分</td>";
             str = str + "<td class=\"td_bg\">" + reader["TestTime"].ToString() + "分钟</td>";
             string str4 = reader["fixedNo"].ToString();
             if (str4 != "")
             {
                 str = str + "<td class=\"td_bg\"><span style=' cursor:pointer;' onclick='showFixNo(\"" + str4 + "\");'>显示编号</span></td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\"><span  style='color:#808080;'>无</span></td>";
             }
             if (reader["LibraryLayout"].ToString() == "More")
             {
                 str = str + "<td class=\"td_bg\">题型模式</td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\">单题模式</td>";
             }
             if (system.Reexam)
             {
                 if (reader["Reexam"].ToString() == "True")
                 {
                     str = str + "<td class=\"td_bg\">可复考</td>";
                 }
                 else
                 {
                     str = str + "<td class=\"td_bg\">禁止复考</td>";
                 }
             }
             if ((reader["StartDate"].ToString() != "") && (reader["EndDate"].ToString() != ""))
             {
                 str2 = str;
                 str = str2 + "<td class=\"td_bg\">" + reader["StartDate"].ToString() + "<br />至<br />" + reader["EndDate"].ToString() + "</td>";
             }
             else
             {
                 str = str + "<td class=\"td_bg\"><span style='color:red;text-align:center;'>任何时间</span></td>";
             }
             if (OperateType == "modify")
             {
                 str = str + "<td  class=\"td_bg\"><a href=Md_Library.aspx?LibraryNo=" + reader["LibraryNo"].ToString() + " name='a_md'><img src=\"../images/Modiy.gif\" border=\"0\" /></a><br />";
                 str = str + "<img src=\"../images/delete.gif\" style=\" cursor:pointer;\" border=\"0\" onclick=\"del('" + reader["LibraryNo"].ToString() + "');\" /></td></tr>";
             }
             str = str + "</tr>";
         }
         reader.Close();
         command.Dispose();
         this.db_0.CnClose();
     }
     catch
     {
         reader.Close();
         command.Dispose();
         this.db_0.CnClose();
     }
     return str;
 }
 public string LoadAutoSavePaper(string UserIdCard)
 {
     jc_System system = new jc_System();
     string str2 = system.getWebUrl() + "Theme/blue/images/";
     string str3 = "";
     string str4 = "";
     string str5 = "";
     string strcmd = "select * from jc_AutoSave where UserIdCard='" + UserIdCard + "'";
     string str7 = "";
     string libraryNo = "";
     string str9 = "";
     SqlCommand command = this.db_0.getcmd(strcmd);
     SqlDataReader reader = command.ExecuteReader();
     try
     {
         reader.Read();
         str7 = reader["SaveText"].ToString();
         libraryNo = reader["LibraryNo"].ToString();
         str9 = reader["TimerLong"].ToString();
         reader.Close();
         command.Dispose();
     }
     catch
     {
         reader.Close();
         command.Dispose();
         this.db_0.CnClose();
         return "Error";
     }
     string str11 = this.Get_LibraryInfo(libraryNo);
     string[] strArray = str11.Split(new char[] { '^' });
     strArray[2].ToString();
     strArray[20].ToString();
     strArray[0x12].ToString();
     string str12 = strArray[5];
     strArray[0x11].Split(new char[] { ',' });
     string str13 = "";
     string str14 = "";
     string str15 = "";
     string str16 = "";
     string str17 = "";
     string str18 = "";
     int radioNum = 0;
     int moreNum = 0;
     int boolNum = 0;
     int fillNum = 0;
     int qANum = 0;
     int num6 = 0;
     int num7 = 0;
     string[] strArray2 = str7.Split(new char[] { '`' });
     string[] strArray3 = new string[1];
     string[] strArray4 = new string[1];
     string[] strArray5 = new string[1];
     string[] strArray6 = new string[1];
     string[] strArray7 = new string[1];
     for (int i = 0; i < strArray2.Length; i++)
     {
         string[] strArray9;
         string str20;
         string str21;
         string str22;
         string str23;
         string str19 = strArray2[i].ToString().Substring(0, 1);
         num7 = 0;
         switch (str19)
         {
             case "M":
                 {
                     string[] strArray11 = strArray2[i].ToString().Split(new char[] { '-' })[1].ToString().Split(new char[] { '|' });
                     moreNum = strArray11.Length - 1;
                     if (moreNum > 0)
                     {
                         str14 = "<div id=\"PMore\" class=\"hide\">";
                         for (int j = 0; j < moreNum; j++)
                         {
                             num6++;
                             num7++;
                             strArray9 = strArray11[j].ToString().Split(new char[] { '^' });
                             str20 = strArray9[0].ToString();
                             str21 = strArray9[1].ToString();
                             strcmd = "select * from jc_Paper where ID=" + str20;
                             command = this.db_0.getcmd(strcmd);
                             reader = command.ExecuteReader();
                             try
                             {
                                 reader.Read();
                                 reader["ID"].ToString();
                                 str14 = str14 + "<div id=\"PM" + num6.ToString() + "\"";
                                 if (num7 != 1)
                                 {
                                     if (str12 == "Single")
                                     {
                                         str14 = str14 + "  class=\"hide\" >\n";
                                     }
                                     else
                                     {
                                         str14 = str14 + "  class=\"SinglePaperUi\" >\n";
                                     }
                                 }
                                 else if (str12 == "Single")
                                 {
                                     str14 = str14 + " >\n";
                                 }
                                 else
                                 {
                                     str14 = str14 + " class=\"SinglePaperUi\" >\n";
                                 }
                                 if (str12 == "More")
                                 {
                                     str14 = str14 + "<div class=\"PUI_Top\"></div>";
                                 }
                                 str22 = str14;
                                 str14 = (str22 + "<div class=\"P_Text\">" + num6.ToString() + "、" + reader["PaperText"].ToString() + "</div>") + "<ul class=\"ItemABCD\">\n";
                                 if (str21.IndexOf("A") >= 0)
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "A' ><div id=\"li" + num6.ToString() + "A\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox' id='mm" + num6.ToString() + "A' name='m" + num6.ToString() + "' value='A' checked=\"checked\" />A、" + reader["ItemA"].ToString() + "</div></label>\n";
                                 }
                                 else
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "A' ><div id=\"li" + num6.ToString() + "A\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox' id='mm" + num6.ToString() + "A' name='m" + num6.ToString() + "' value='A' />A、" + reader["ItemA"].ToString() + "</div></label>\n";
                                 }
                                 if (str21.IndexOf("B") >= 0)
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "B'><div id=\"li" + num6.ToString() + "B\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "B' name='m" + num6.ToString() + "'  value='B' checked=\"checked\" />B、" + reader["ItemB"].ToString() + "</div></label>\n";
                                 }
                                 else
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "B'><div id=\"li" + num6.ToString() + "B\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "B' name='m" + num6.ToString() + "'  value='B' />B、" + reader["ItemB"].ToString() + "</div></label>\n";
                                 }
                                 if (str21.IndexOf("C") >= 0)
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "C'><div id=\"li" + num6.ToString() + "C\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "C' name='m" + num6.ToString() + "'  value='C'  checked=\"checked\" />C、" + reader["ItemC"].ToString() + "</div></label>\n";
                                 }
                                 else if (reader["ItemC"].ToString() != "")
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "C'><div id=\"li" + num6.ToString() + "C\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "C' name='m" + num6.ToString() + "'  value='C' />C、" + reader["ItemC"].ToString() + "</div></label>\n";
                                 }
                                 if (str21.IndexOf("D") >= 0)
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "D'><div id=\"li" + num6.ToString() + "D\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "D' name='m" + num6.ToString() + "' value='D'  checked=\"checked\" />D、" + reader["ItemD"].ToString() + "</div></label>\n";
                                 }
                                 else if (reader["ItemD"].ToString() != "")
                                 {
                                     str22 = str14;
                                     str14 = str22 + "<label for='mm" + num6.ToString() + "D'><div id=\"li" + num6.ToString() + "D\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "D' name='m" + num6.ToString() + "' value='D' />D、" + reader["ItemD"].ToString() + "</div></label>\n";
                                 }
                                 if (system.SixSelections)
                                 {
                                     if (str21.IndexOf("E") >= 0)
                                     {
                                         str22 = str14;
                                         str14 = str22 + "<label for='mm" + num6.ToString() + "E'><div id=\"li" + num6.ToString() + "E\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "E' name='m" + num6.ToString() + "'  value='E'  checked=\"checked\" />E、" + reader["ItemE"].ToString() + "</div></label>\n";
                                     }
                                     else if (reader["ItemE"].ToString() != "")
                                     {
                                         str22 = str14;
                                         str14 = str22 + "<label for='mm" + num6.ToString() + "E'><div id=\"li" + num6.ToString() + "E\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "E' name='m" + num6.ToString() + "'  value='E' />E、" + reader["ItemE"].ToString() + "</div></label>\n";
                                     }
                                     if (str21.IndexOf("F") >= 0)
                                     {
                                         str22 = str14;
                                         str14 = str22 + "<label for='mm" + num6.ToString() + "F'><div id=\"li" + num6.ToString() + "F\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "F' name='m" + num6.ToString() + "' value='F'  checked=\"checked\" />F、" + reader["ItemF"].ToString() + "</div></label>\n";
                                     }
                                     else if (reader["ItemE"].ToString() != "")
                                     {
                                         str22 = str14;
                                         str14 = str22 + "<label for='mm" + num6.ToString() + "F'><div id=\"li" + num6.ToString() + "F\" onclick=\"CountM('" + num6.ToString() + "');\"><input type='checkbox'  id='mm" + num6.ToString() + "F' name='m" + num6.ToString() + "' value='F' />F、" + reader["ItemF"].ToString() + "</div></label>\n";
                                     }
                                 }
                                 str14 = str14 + "</ul>\n";
                                 if (str12 == "More")
                                 {
                                     str14 = (str14 + "<div id='divAnalysis" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div class=\"PUI_Buttom\"></div>";
                                 }
                                 str14 = str14 + "</div>";
                                 str3 = str3 + reader["Answer"].ToString() + "^^^";
                                 str23 = reader["PaperAnalysis"].ToString();
                                 if (!string.IsNullOrEmpty(str23))
                                 {
                                     str23 = str23.Replace('"', '\'');
                                 }
                                 str4 = str4 + str23 + "^^^";
                                 str5 = str5 + reader["ID"].ToString() + "^^^";
                                 str22 = str18;
                                 str18 = str22 + "<input type=\"hidden\" id=\"STMAnswer" + num6.ToString() + "\" value=\"" + str21 + "\" />\n";
                                 strArray9 = null;
                                 reader.Close();
                                 command.Dispose();
                             }
                             catch
                             {
                                 reader.Close();
                                 command.Dispose();
                                 this.db_0.CnClose();
                                 return "Error";
                             }
                         }
                         str14 = str14 + "</div>";
                     }
                     break;
                 }
             case "B":
                 {
                     string[] strArray12 = strArray2[i].ToString().Split(new char[] { '-' })[1].ToString().Split(new char[] { '|' });
                     boolNum = strArray12.Length - 1;
                     if (boolNum > 0)
                     {
                         str15 = "<div id=\"PBool\" class=\"hide\">";
                         for (int k = 0; k < boolNum; k++)
                         {
                             num6++;
                             num7++;
                             strArray9 = strArray12[k].ToString().Split(new char[] { '^' });
                             str20 = strArray9[0].ToString();
                             str21 = strArray9[1].ToString();
                             strcmd = "select * from jc_Paper where ID=" + str20;
                             command = this.db_0.getcmd(strcmd);
                             reader = command.ExecuteReader();
                             try
                             {
                                 reader.Read();
                                 reader["ID"].ToString();
                                 str15 = str15 + "<div id=\"PB" + num6.ToString() + "\"";
                                 if (num7 != 1)
                                 {
                                     if (str12 == "Single")
                                     {
                                         str15 = str15 + "  class=\"hide\" >\n";
                                     }
                                     else
                                     {
                                         str15 = str15 + " class=\"SinglePaperUi\" >\n";
                                     }
                                 }
                                 else if (str12 == "Single")
                                 {
                                     str15 = str15 + " >\n";
                                 }
                                 else
                                 {
                                     str15 = str15 + " class=\"SinglePaperUi\" >\n";
                                 }
                                 if (str12 == "More")
                                 {
                                     str15 = str15 + "<div class=\"PUI_Top\"></div>";
                                 }
                                 str22 = str15;
                                 str15 = (str22 + "<div class=\"P_Text\">" + num6.ToString() + "、" + reader["PaperText"].ToString() + "</div>") + "<ul class=\"ItemABCD\">\n";
                                 if (str21 == "A")
                                 {
                                     str22 = str15;
                                     str15 = str22 + "<label for='bb" + num6.ToString() + "A' ><div id=\"li" + num6.ToString() + "A\" onclick=\"CountB('" + num6.ToString() + "','A');\"><input type='radio'  id='bb" + num6.ToString() + "A' name='b" + num6.ToString() + "' value='A'  checked=\"checked\" />A、正确</div></label>\n";
                                 }
                                 else
                                 {
                                     str22 = str15;
                                     str15 = str22 + "<label for='bb" + num6.ToString() + "A' ><div id=\"li" + num6.ToString() + "A\" onclick=\"CountB('" + num6.ToString() + "','A');\"><input type='radio'  id='bb" + num6.ToString() + "A' name='b" + num6.ToString() + "' value='A' />A、正确</div></label>\n";
                                 }
                                 if (str21 == "B")
                                 {
                                     str22 = str15;
                                     str15 = str22 + "<label for='bb" + num6.ToString() + "B' ><div id=\"li" + num6.ToString() + "B\" onclick=\"CountB('" + num6.ToString() + "','B');\"><input type='radio'  id='bb" + num6.ToString() + "B'  name='b" + num6.ToString() + "' value='B'  checked=\"checked\" />B、错误</div></label>\n";
                                 }
                                 else
                                 {
                                     str22 = str15;
                                     str15 = str22 + "<label for='bb" + num6.ToString() + "B' ><div id=\"li" + num6.ToString() + "B\" onclick=\"CountB('" + num6.ToString() + "','B');\"><input type='radio'  id='bb" + num6.ToString() + "B'  name='b" + num6.ToString() + "' value='B' />B、错误</div></label>\n";
                                 }
                                 str15 = str15 + "</ul>\n";
                                 if (str12 == "More")
                                 {
                                     str15 = (str15 + "<div id='divAnalysis" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div class=\"PUI_Buttom\"></div>";
                                 }
                                 str15 = str15 + "</div>";
                                 str3 = str3 + reader["Answer"].ToString() + "^^^";
                                 str23 = reader["PaperAnalysis"].ToString();
                                 if (!string.IsNullOrEmpty(str23))
                                 {
                                     str23 = str23.Replace('"', '\'');
                                 }
                                 str4 = str4 + str23 + "^^^";
                                 str5 = str5 + reader["ID"].ToString() + "^^^";
                                 str22 = str18;
                                 str18 = str22 + "<input type=\"hidden\" id=\"STBAnswer" + num6.ToString() + "\" value=\"" + str21 + "\" />\n";
                                 strArray9 = null;
                                 command.Dispose();
                                 reader.Close();
                             }
                             catch
                             {
                                 command.Dispose();
                                 reader.Close();
                                 this.db_0.CnClose();
                                 return "Error";
                             }
                         }
                         str15 = str15 + "</div>";
                     }
                     break;
                 }
             case "F":
                 {
                     string[] strArray13 = strArray2[i].ToString().Split(new char[] { '-' })[1].ToString().Split(new char[] { '|' });
                     fillNum = strArray13.Length - 1;
                     if (fillNum > 0)
                     {
                         str16 = "<div id=\"PFill\" class=\"hide\">";
                         for (int m = 0; m < fillNum; m++)
                         {
                             num6++;
                             num7++;
                             strArray9 = strArray13[m].ToString().Split(new char[] { '^' });
                             str20 = strArray9[0].ToString();
                             str21 = strArray9[1].ToString();
                             strcmd = "select * from jc_Paper where ID=" + str20;
                             command = this.db_0.getcmd(strcmd);
                             reader = command.ExecuteReader();
                             try
                             {
                                 reader.Read();
                                 reader["ID"].ToString();
                                 str16 = str16 + "<div id=\"PF" + num6.ToString() + "\"";
                                 if (num7 != 1)
                                 {
                                     if (str12 == "Single")
                                     {
                                         str16 = str16 + "  class=\"hide\" >\n";
                                     }
                                     else
                                     {
                                         str16 = str16 + " class=\"SinglePaperUi\" >\n";
                                     }
                                 }
                                 else if (str12 == "Single")
                                 {
                                     str16 = str16 + " >\n";
                                 }
                                 else
                                 {
                                     str16 = str16 + " class=\"SinglePaperUi\" >\n";
                                 }
                                 if (str12 == "More")
                                 {
                                     str16 = str16 + "<div class=\"PUI_Top\"></div>";
                                 }
                                 str22 = str16;
                                 str22 = (str22 + "<div class=\"P_Text\">" + num6.ToString() + "、" + reader["PaperText"].ToString() + "</div>") + "<ul class=\"ItemABCD\">\n";
                                 str16 = str22 + "<li><input type='text' id='ff" + num6.ToString() + "' value='" + str21 + "' class=\"txt_item\" onkeyup=\"CountF('" + num6.ToString() + "');\" onblur=\"CountF('" + num6.ToString() + "');\" /></li>\n";
                                 if (system.FillAutoScore && (reader["Answer"].ToString().IndexOf("~~") > 0))
                                 {
                                     str22 = str16;
                                     str16 = str22 + "<img class='imgSeparator' src=\"" + str2 + "Separator.gif\" onclick=\"AddSeparator('ff" + num6.ToString() + "');\" id='imgSeparator" + num6.ToString() + "' /><span class='spanSeparator' id='spanSeparator" + num6.ToString() + "'></span>";
                                 }
                                 str16 = str16 + "</ul>\n";
                                 if (str12 == "More")
                                 {
                                     str16 = ((str16 + "<div id='divTrueAnswer" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div id='divAnalysis" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div class=\"PUI_Buttom\"></div>";
                                 }
                                 str16 = str16 + "</div>";
                                 str22 = str18;
                                 str18 = str22 + "<input type=\"hidden\" id=\"STFAnswer" + num6.ToString() + "\" value=\"" + str21 + "\" />\n";
                                 str3 = str3 + reader["Answer"].ToString() + "^^^";
                                 str23 = reader["PaperAnalysis"].ToString();
                                 if (!string.IsNullOrEmpty(str23))
                                 {
                                     str23 = str23.Replace('"', '\'');
                                 }
                                 str4 = str4 + str23 + "^^^";
                                 str5 = str5 + reader["ID"].ToString() + "^^^";
                                 strArray9 = null;
                                 command.Dispose();
                                 reader.Close();
                             }
                             catch
                             {
                                 command.Dispose();
                                 reader.Close();
                                 this.db_0.CnClose();
                                 return "Error";
                             }
                         }
                         str16 = str16 + "</div>";
                     }
                     break;
                 }
             case "Q":
                 {
                     string[] strArray14 = strArray2[i].ToString().Split(new char[] { '-' })[1].ToString().Split(new char[] { '|' });
                     qANum = strArray14.Length - 1;
                     if (qANum > 0)
                     {
                         str17 = "<div id=\"PQA\" class=\"hide\">";
                         for (int n = 0; n < qANum; n++)
                         {
                             num6++;
                             num7++;
                             strArray9 = strArray14[n].ToString().Split(new char[] { '^' });
                             str20 = strArray9[0].ToString();
                             str21 = strArray9[1].ToString();
                             strcmd = "select * from jc_Paper where ID=" + str20;
                             command = this.db_0.getcmd(strcmd);
                             reader = command.ExecuteReader();
                             try
                             {
                                 reader.Read();
                                 reader["ID"].ToString();
                                 str17 = str17 + "<div id=\"PQ" + num6.ToString() + "\"";
                                 if (num7 != 1)
                                 {
                                     if (str12 == "Single")
                                     {
                                         str17 = str17 + "  class=\"hide\" >\n";
                                     }
                                     else
                                     {
                                         str17 = str17 + " class=\"SinglePaperUi\" >\n";
                                     }
                                 }
                                 else if (str12 == "Single")
                                 {
                                     str17 = str17 + " >\n";
                                 }
                                 else
                                 {
                                     str17 = str17 + " class=\"SinglePaperUi\" >\n";
                                 }
                                 if (str12 == "More")
                                 {
                                     str17 = str17 + "<div class=\"PUI_Top\"></div>";
                                 }
                                 str22 = str17;
                                 str22 = (str22 + "<div class=\"P_Text\">" + num6.ToString() + "、" + reader["PaperText"].ToString() + "</div>") + "<ul class=\"ItemABCD\">\n";
                                 str17 = (str22 + "<li><textarea id=\"qq" + num6.ToString() + "\" class=\"qatxt\" onkeyup=\"CountQ('" + num6.ToString() + "');\" onkeyup=\"CountQ('" + num6.ToString() + "');\" >" + str21 + "</textarea></li>\n") + "</ul>\n";
                                 if (str12 == "More")
                                 {
                                     str17 = ((str17 + "<div id='divTrueAnswer" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div id='divAnalysis" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div class=\"PUI_Buttom\"></div>";
                                 }
                                 str17 = str17 + "</div>";
                                 str3 = str3 + reader["Answer"].ToString() + "^^^";
                                 str23 = reader["PaperAnalysis"].ToString();
                                 if (!string.IsNullOrEmpty(str23))
                                 {
                                     str23 = str23.Replace('"', '\'');
                                 }
                                 str4 = str4 + str23 + "^^^";
                                 str5 = str5 + reader["ID"].ToString() + "^^^";
                                 str22 = str18;
                                 str18 = str22 + "<input type=\"hidden\" id=\"STQAnswer" + num6.ToString() + "\" value=\"" + str21 + "\" />\n";
                                 strArray9 = null;
                                 command.Dispose();
                                 reader.Close();
                             }
                             catch
                             {
                                 command.Dispose();
                                 reader.Close();
                                 this.db_0.CnClose();
                                 return "Error";
                             }
                         }
                         str17 = str17 + "</div>";
                     }
                     break;
                 }
             case "R":
                 {
                     string[] strArray8 = strArray2[i].ToString().Split(new char[] { '-' })[1].ToString().Split(new char[] { '|' });
                     radioNum = strArray8.Length - 1;
                     if (radioNum > 0)
                     {
                         if (str12 == "Single")
                         {
                             str13 = "<div id=\"PRadio\" class=\"PaperType\">";
                         }
                         else
                         {
                             str13 = "<div id=\"PRadio\" class=\"RadioUI\">";
                         }
                         for (int num9 = 0; num9 < radioNum; num9++)
                         {
                             num6++;
                             num7++;
                             strArray9 = strArray8[num9].ToString().Split(new char[] { '^' });
                             str20 = strArray9[0].ToString();
                             str21 = strArray9[1].ToString();
                             strcmd = "select * from jc_Paper where ID=" + str20;
                             command = this.db_0.getcmd(strcmd);
                             reader = command.ExecuteReader();
                             try
                             {
                                 reader.Read();
                                 reader["ID"].ToString();
                                 str13 = str13 + "<div id=\"PR" + num6.ToString() + "\"";
                                 if (num7 != 1)
                                 {
                                     if (str12 == "Single")
                                     {
                                         str13 = str13 + "  class=\"hide\" >\n";
                                     }
                                     else
                                     {
                                         str13 = str13 + " class=\"SinglePaperUi\" >\n";
                                     }
                                 }
                                 else if (str12 == "Single")
                                 {
                                     str13 = str13 + " >\n";
                                 }
                                 else
                                 {
                                     str13 = str13 + " class=\"SinglePaperUi\" >\n";
                                 }
                                 if (str12 == "More")
                                 {
                                     str13 = str13 + "<div class=\"PUI_Top\"></div>";
                                 }
                                 str22 = str13;
                                 str13 = (str22 + "<div class=\"P_Text\">" + num6.ToString() + "、" + reader["PaperText"].ToString() + "</div>") + "<ul class=\"ItemABCD\">\n";
                                 if (str21 == "A")
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "A' ><div onclick=\"CountR('" + num6.ToString() + "','A');\" id=\"li" + num6.ToString() + "A\"><input type='radio' id='rr" + num6.ToString() + "A' name='r" + num6.ToString() + "' value='A'  checked=\"checked\" />A、" + reader["ItemA"].ToString() + "</div></label>\n";
                                 }
                                 else
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "A' ><div onclick=\"CountR('" + num6.ToString() + "','A');\" id=\"li" + num6.ToString() + "A\"><input type='radio' id='rr" + num6.ToString() + "A' name='r" + num6.ToString() + "' value='A'  />A、" + reader["ItemA"].ToString() + "</div></label>\n";
                                 }
                                 if (str21 == "B")
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "B'  ><div onclick=\"CountR('" + num6.ToString() + "','B');\" id=\"li" + num6.ToString() + "B\"><input type='radio' id='rr" + num6.ToString() + "B' name='r" + num6.ToString() + "' value='B' checked=\"checked\"  />B、" + reader["ItemB"].ToString() + "</div></label>\n";
                                 }
                                 else
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "B'  ><div onclick=\"CountR('" + num6.ToString() + "','B');\" id=\"li" + num6.ToString() + "B\"><input type='radio' id='rr" + num6.ToString() + "B' name='r" + num6.ToString() + "' value='B'  />B、" + reader["ItemB"].ToString() + "</div></label>\n";
                                 }
                                 if (str21 == "C")
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "C'  ><div onclick=\"CountR('" + num6.ToString() + "','C');\" id=\"li" + num6.ToString() + "C\"><input type='radio' id='rr" + num6.ToString() + "C' name='r" + num6.ToString() + "' value='C'  checked=\"checked\" />C、" + reader["ItemC"].ToString() + "</div></label>\n";
                                 }
                                 else if (reader["ItemC"].ToString() != "")
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "C'  ><div onclick=\"CountR('" + num6.ToString() + "','C');\" id=\"li" + num6.ToString() + "C\"><input type='radio' id='rr" + num6.ToString() + "C' name='r" + num6.ToString() + "' value='C'  />C、" + reader["ItemC"].ToString() + "</div></label>\n";
                                 }
                                 if (str21 == "D")
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "D'  ><div onclick=\"CountR('" + num6.ToString() + "','D');\" id=\"li" + num6.ToString() + "D\"><input type='radio' id='rr" + num6.ToString() + "D' name='r" + num6.ToString() + "' value='D'  checked=\"checked\" />D、" + reader["ItemD"].ToString() + "</div></label>\n";
                                 }
                                 else if (reader["ItemD"].ToString() != "")
                                 {
                                     str22 = str13;
                                     str13 = str22 + "<label for='rr" + num6.ToString() + "D'  ><div onclick=\"CountR('" + num6.ToString() + "','D');\" id=\"li" + num6.ToString() + "D\"><input type='radio' id='rr" + num6.ToString() + "D' name='r" + num6.ToString() + "' value='D' />D、" + reader["ItemD"].ToString() + "</div></label>\n";
                                 }
                                 if (system.SixSelections)
                                 {
                                     if (str21 == "E")
                                     {
                                         str22 = str13;
                                         str13 = str22 + "<label for='rr" + num6.ToString() + "E'  ><div onclick=\"CountR('" + num6.ToString() + "','E');\" id=\"li" + num6.ToString() + "E\"><input type='radio' id='rr" + num6.ToString() + "E' name='r" + num6.ToString() + "' value='E'  checked=\"checked\" />E、" + reader["ItemE"].ToString() + "</div></label>\n";
                                     }
                                     else if (reader["ItemE"].ToString() != "")
                                     {
                                         str22 = str13;
                                         str13 = str22 + "<label for='rr" + num6.ToString() + "E'  ><div onclick=\"CountR('" + num6.ToString() + "','E');\" id=\"li" + num6.ToString() + "E\"><input type='radio' id='rr" + num6.ToString() + "E' name='r" + num6.ToString() + "' value='E'  />E、" + reader["ItemE"].ToString() + "</div></label>\n";
                                     }
                                     if (str21 == "F")
                                     {
                                         str22 = str13;
                                         str13 = str22 + "<label for='rr" + num6.ToString() + "F'  ><div onclick=\"CountR('" + num6.ToString() + "','F');\" id=\"li" + num6.ToString() + "F\"><input type='radio' id='rr" + num6.ToString() + "F' name='r" + num6.ToString() + "' value='F'  checked=\"checked\" />F、" + reader["ItemF"].ToString() + "</div></label>\n";
                                     }
                                     else if (reader["ItemF"].ToString() != "")
                                     {
                                         str22 = str13;
                                         str13 = str22 + "<label for='rr" + num6.ToString() + "F'  ><div onclick=\"CountR('" + num6.ToString() + "','F');\" id=\"li" + num6.ToString() + "F\"><input type='radio' id='rr" + num6.ToString() + "F' name='r" + num6.ToString() + "' value='F' />F、" + reader["ItemF"].ToString() + "</div></label>\n";
                                     }
                                 }
                                 str13 = str13 + "</ul>\n";
                                 if (str12 == "More")
                                 {
                                     str13 = (str13 + "<div id='divAnalysis" + num6.ToString() + "' class='divTrunAnswer'></div>") + "<div class=\"PUI_Buttom\"></div>";
                                 }
                                 str13 = str13 + "</div>";
                                 str3 = str3 + reader["Answer"].ToString() + "^^^";
                                 str23 = reader["PaperAnalysis"].ToString();
                                 if (!string.IsNullOrEmpty(str23))
                                 {
                                     str23 = str23.Replace('"', '\'');
                                 }
                                 str4 = str4 + str23 + "^^^";
                                 str5 = str5 + reader["ID"].ToString() + "^^^";
                                 str22 = str18;
                                 str18 = str22 + "<input type=\"hidden\" id=\"STRAnswer" + num6.ToString() + "\" value=\"" + str21 + "\" />\n";
                                 strArray9 = null;
                                 reader.Close();
                                 command.Dispose();
                             }
                             catch
                             {
                                 reader.Close();
                                 command.Dispose();
                                 this.db_0.CnClose();
                                 return "Error";
                             }
                         }
                         str13 = str13 + "</div>";
                     }
                     break;
                 }
         }
     }
     string str24 = "";
     if (str12 == "Single")
     {
         str24 = this.CreateSelectList(radioNum, moreNum, boolNum, fillNum, qANum);
     }
     return (str13 + str14 + str15 + str16 + str17 + str18 + "|||" + str24 + "|||" + radioNum.ToString() + "," + moreNum.ToString() + "," + boolNum.ToString() + "," + fillNum.ToString() + "," + qANum.ToString() + "|||" + str11 + "|||" + str3 + "|||" + str4 + "|||" + str5 + "|||" + str9);
 }