ProcessManag/AbsentUser.aspx.cs
(开头部分) 10KB这里只显示每个文件的开头 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;
using System.IO;
namespace EasyExam.ProcessManag
{
/// <summary>
/// AbsentUser 的摘要说明。
/// </summary>
public partial class AbsentUser : System.Web.UI.Page
{
PublicFunction ObjFun=new PublicFunction();
protected int RowNum=0;
string strSql="";
string myLoginID="";
int intPaperID=0;
#region//*******初始化信息********
protected void Page_Load(object sender, System.EventArgs e)
{
try
{
myLoginID=Session["LoginID"].ToString();
}
catch
{
}
if (myLoginID=="")
{
Response.Redirect("../Login.aspx");
}
//清除缓存
Response.Expires=0;
Response.Buffer=true;
Response.Clear();
intPaperID=Convert.ToInt32(Request["PaperID"]);
labPaperName.Text=Convert.ToString(Request["PaperName"]);
strSql="select distinct a.UserID,a.LoginID,a.UserName,a.UserSex,convert(varchar(10),a.Birthday,2) as Birthday,b.DeptName,c.JobName,case a.UserType when 1 then '管理帐户' when 0 then '普通帐户' end as UserType,case a.UserState when 1 then '正常' when 0 then '禁止' end as UserState from UserInfo a LEFT OUTER JOIN DeptInfo b ON a.DeptID=b.DeptID LEFT OUTER JOIN JobInfo c ON a.JobID=c.JobID,PaperInfo d where ((d.ExamAccount=1) or (d.ExamAccount=2 and exists(select * from PaperUser where PaperUser.PaperID=d.PaperID and PaperUser.UserID=a.UserID and PaperUser.UserType=0) or Exists(select * from UserInfo e,DeptInfo f,PaperUser g where e.UserID=a.UserID and e.DeptID=f.DeptID and f.DeptID=g.DeptID and g.PaperID=d.PaperID))) and not exists(select * from UserScore where UserScore.PaperID=d.PaperID and UserScore.UserID=a.UserID and UserScore.ExamState>=0) and d.PaperID="+intPaperID+" order by a.LoginID asc";
if (!IsPostBack)
{
if (ObjFun.GetValues("select UserType from UserInfo where LoginID='"+myLoginID+"' and UserType=1 and (RoleMenu=1 or (RoleMenu=2 and Exists(select OptionID from UserPower where UserID=UserInfo.UserID and PowerID=3 and OptionID=5)))","UserType")!="1")
{
Response.Write("<script>alert('对不起,您没有此操作权限!')</script>");
Response.End();
}
else
{
后面还有 220 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
