ExamManage/SelectExam.aspx.cs

(开头部分) 10KB

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

using System;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ExamManage_SelectExam : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["roleid"] != null)
        {

            if (!IsPostBack)
            {
                int cid = Convert.ToInt16(Request.QueryString["id"].ToString());
                Test myt = new Test();
                myt.GetModel(cid);

                Literal4.Text = myt.TestName;
                Literal5.Text = myt.TestTime.ToString();
                Literal2.Text = myt.DanFS.ToString();
                Literal9.Text = myt.DuoFS.ToString();
                Literal12.Text = myt.PanFS.ToString();
                Literal18.Text = myt.TianFS.ToString();
                Literal15.Text = myt.ObjFS.ToString();

                User myU = new User();
                myU.GetModel(Convert.ToInt16(Request.QueryString["sid"].ToString()));
                Literal6.Text = myU.Name;


                int zf = 0;
                if (myt.DanID != "" && myt.DanID != null)
                {
                    string[] aryStr1 = myt.DanID.Split(new char[] { ',' });
                    Literal3.Text = "0";
                    if (aryStr1[0] != "")
                    {
                        Literal3.Text = (aryStr1.Length - 1).ToString();
                        Literal1.Text = ((aryStr1.Length - 1) * myt.DanFS).ToString();
                        zf = zf + ((aryStr1.Length - 1) * Convert.ToInt16(myt.DanFS));
                    }
                }
                if (myt.DuoID != "" && myt.DuoID != null)
                {
                    string[] aryStr2 = myt.DuoID.Split(new char[] { ',' });
                    Literal8.Text = "0";
                    if (aryStr2[0] != "")
                    {
                        Literal8.Text = (aryStr2.Length - 1).ToString();
                        Literal10.Text = ((aryStr2.Length - 1) * myt.DuoFS).ToString();
                        zf = zf + ((aryStr2.Length - 1) * Convert.ToInt16(myt.DuoFS));
                    }
                }
                if (myt.PanID != "" && myt.PanID != null)
                {
                    string[] aryStr3 = myt.PanID.Split(new char[] { ',' });
                    Literal11.Text = "0";
                    if (aryStr3[0] != "")
后面还有 246 行代码,购买后查看完整代码

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

AI 解读 AI

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

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