PersonInfo/JoinJob.aspx.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Configuration;
namespace EasyExam.PersonalInfo
{
/// <summary>
/// JoinJob 的摘要说明。
/// </summary>
public partial class JoinJob : System.Web.UI.Page
{
protected System.Web.UI.WebControls.ImageButton ImgButSubject;
protected System.Web.UI.WebControls.TextBox txtSubjectName;
protected int RowNum=0;
string strSql="";
string myUserID="";
string myLoginID="";
PublicFunction ObjFun=new PublicFunction();
int intUserID=0;
#region//*******初始化信息********
protected void Page_Load(object sender, System.EventArgs e)
{
try
{
myUserID=Session["UserID"].ToString();
myLoginID=Session["LoginID"].ToString();
intUserID=Convert.ToInt32(myUserID);
}
catch
{
}
if (myLoginID=="")
{
Response.Redirect("../Login.aspx");
}
strSql="select a.PaperID,a.PaperName,a.PaperType,case a.ProduceWay when 1 then '题序固定' when 2 then '题序随机' when 3 then '试题随机' end as ProduceWay,case a.ShowModal when 1 then '整卷模式' when 2 then '逐题模式' end as ShowModal,a.ExamTime,a.StartTime,a.EndTime,a.TestCount,a.PaperMark,a.CreateWay,b.LoginID as CreateLoginID from PaperInfo a LEFT OUTER JOIN UserInfo b ON a.CreateUserID=b.UserID where a.PaperType=2 and a.StartTime<Getdate() and a.EndTime>Getdate() and (a.ExamAccount=1 or (a.ExamAccount=2 and Exists(select * from PaperUser where PaperUser.PaperID=a.PaperID and PaperUser.UserType=0 and PaperUser.UserID="+intUserID+")) or Exists(select * from UserInfo d,DeptInfo e,PaperUser f where d.UserID="+intUserID+" and d.DeptID=e.DeptID and e.DeptID=f.DeptID and f.PaperID=a.PaperID and f.UserType=0)) and (a.RepeatExam=1 or ((a.RepeatExam=0) and (not Exists (select * from UserScore where UserScore.PaperID=a.PaperID and UserScore.UserID="+intUserID+" and UserScore.ExamState=1)))) order by a.PaperID desc";
if (!IsPostBack)
{
if (DataGridPaper.Attributes["SortExpression"] == null)
{
DataGridPaper.Attributes["SortExpression"] = "PaperID";
DataGridPaper.Attributes["SortDirection"] = "DESC";
}
ShowData(strSql);
}
}
#endregion
#region//*******显示数据列表*******
后面还有 196 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
