ExamManage/TestSelect.aspx.cs

(开头部分) 9KB

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

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

public partial class ExamManage_TestSelect : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["roleid"] != null)
        {
            Authority myauthority = new Authority();
            int RoleID = Convert.ToInt16(Server.HtmlEncode(Request.Cookies["roleid"].Value));
            int ModuleID = 33;
            if (myauthority.QXExists(RoleID, ModuleID))
            {
                if (!IsPostBack)
                {
                    int cid = Convert.ToInt16(Request.QueryString["id"].ToString());
                    Test myt = new Test();
                    myt.GetModel(cid);
                    Literal5.Text = myt.TestTime.ToString();
          
                    Literal4.Text = myt.TestName;
                    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();



                    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";
后面还有 246 行代码,购买后查看完整代码

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

AI 解读 AI

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

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