WELOA.Web/yw/loginlog.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LSBLL;
using WELOA.Model;
namespace Web.yw
{
public partial class loginlog : System.Web.UI.Page
{
private LS_Staff staffBLL = new LS_Staff();
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
for (int i = 0; i < this.GridView1.Rows.Count; i++)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#99CCFF'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
}
}
}
protected void Page_Load(object sender, EventArgs e)
{
if ((this.Session["rank"] == null) || (this.Session["rank"].ToString() == ""))
{
this.Session.Clear();
base.Response.Write("<script language=javascript >window.parent.location.href='../default.aspx'</script>");
}
if ((this.Session["zhengjian"] != null) && (this.Session["zhengjian"].ToString() != ""))
{
DateSetInformation DateSetInformation = this.staffBLL.selectstafflog_Login(this.Session["zhengjian"].ToString());
if (DateSetInformation.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常1,请联系管理员处理。')</script>");
}
else
{
this.GridView1.DataSource = DateSetInformation.ds;
this.GridView1.DataBind();
DateSetInformation = null;
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
