Web/Admin/Test/AddTest.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using Entity;
using BLL;
public partial class Admin_Test_AddTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
RoleCheck.DenyLogin();
if (!IsPostBack)
{
bj();
switch(paperType)
{
case PaperType.ByInput:
linkViewPaper.NavigateUrl = "../Paper/PaperDetail.aspx?paperID=" + paperID;
break;
case PaperType.BySelection:
{
linkViewPaper.NavigateUrl = "../Paper/PaperByManualSelectionDetail.aspx?paperID=" + paperID;
txtTotalScores.Text = SessionClass.GetTotalScores().ToString();
txtPassScores.Text = ((int)(SessionClass.GetTotalScores() * 0.6)).ToString();
txtTestName.Text = SessionClass.GetPaperTitle();
SessionClass.SetTotalScores(0);
SessionClass.SetPaperTilte(null);
}
break;
case PaperType.ByRandom:
{
linkViewPaper.NavigateUrl = "../Paper/PaperByRandomSelectionDetail.aspx?paperID=" + paperID;
txtTotalScores.Text = SessionClass.GetTotalScores().ToString();
txtPassScores.Text = ((int)(SessionClass.GetTotalScores() * 0.6)).ToString();
txtTestName.Text = SessionClass.GetPaperTitle();
SessionClass.SetTotalScores(0);
SessionClass.SetPaperTilte(null);
}
break;
default:
break;
}
DateTime now = DateTime.Now;
txtEnableDate.Text = now.ToShortDateString();
txtUnableDate.Text = now.ToShortDateString();
}
}
后面还有 207 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
