admin/ShowShiJuan.aspx.cs
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class admin_ShowShiJuan : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
InitExam();
if (Session["kstime"] != null)
{
daotime = Convert.ToInt32(Session["kstime"]);
}
string times = E_time.Text;
if (times == "")
{
times = "0";
}
Localize1.Text = Convert.ToString(Convert.ToInt32(times) - daotime);
}
}
private void InitExam()
{
string eid = "0";
if (Request["eid"] != null && Request["eid"].ToString().Length < 8)
{
eid = Request["eid"].ToString();
}
string stuid = "0";
if (Request["stuid"] != null)
{
stuid = Request["stuid"].ToString();
}
SqlParameter[] sp = new SqlParameter[1];
string sql = "select * from tb_ExamPaper where id=@id";
sp[0] = new SqlParameter("@id", eid);
DataTable dt = Exam.SqlHelper.ExecuteDataset(BaseClass.DBCon(), CommandType.Text, sql, sp).Tables[0];
if (dt != null && dt.Rows.Count > 0)
{
E_Name.Text = dt.Rows[0]["PaperName"].ToString();
E_time.Text = dt.Rows[0]["KaoShiTime"].ToString();
E_FenShu.Text = "总分: " + dt.Rows[0]["ExamZongFen"].ToString() + " 分";
Dan_Xuan.Text = "一、单选题(" + Convert.ToInt32(dt.Rows[0]["DanCount"]) * Convert.ToDouble(dt.Rows[0]["DanFen"]) + " 分,每小题 " + dt.Rows[0]["DanFen"].ToString() + " 分)";
BindDanXuan(eid, stuid);
后面还有 469 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
