MyExam/OnlineExam.aspx.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class MyExam_OnlineExam : System.Web.UI.Page
{
public string endtime = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["name"] != null)
{
Response.Write(DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss"));
Response.End();
}
if (Request.Cookies["roleid"] != null)
{
Authority myauthority = new Authority();
int RoleID = Convert.ToInt16(Server.HtmlEncode(Request.Cookies["roleid"].Value));
int ModuleID = 37;
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();
endtime = DateTime.Now.AddMinutes(Convert.ToInt16(myt.TestTime)).ToString("MM/dd/yyyy HH:mm:ss");
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();
Literal6.Text = HttpUtility.UrlDecode(HttpContext.Current.Request.Cookies["name"].Value);
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));
后面还有 382 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
