WELOA.Web/sb/admin/login_overview.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WELOA.Model;
using SBBLL;
namespace Web.sb.admin
{
public partial class login_overview : System.Web.UI.Page
{
private DateSetInformation dsinfo = new DateSetInformation();
private SB_Get getBLL = new SB_Get();
private SB_Lendandreturn lendandreturnBLL = new SB_Lendandreturn();
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='../../admin/default.aspx'</script>");
}
else if ((this.Session["rank"].ToString() != "超级管理员") && (this.Session["rank"].ToString() != "设备管理员"))
{
base.Response.Write("<script language=javascript >alert('您没有管理权限。');window.parent.location.href='../../navigation/admin/main.aspx'</script>");
}
this.lendandreturnBLL.clearPreLend();
this.dsinfo = this.lendandreturnBLL.select_Lend_State(10, "预借");
if (this.dsinfo.ds.Tables[0].Rows.Count > 0)
{
this.gvPreLend.DataSource = this.dsinfo.ds;
this.gvPreLend.DataBind();
}
else
{
this.pnPreLend.Visible = false;
this.lbPreLend.Text = "没有借用申请记录。";
}
this.dsinfo = this.getBLL.select_Get_State(10, "预领");
if (this.dsinfo.ds.Tables[0].Rows.Count > 0)
{
this.gvpreGet.DataSource = this.dsinfo.ds;
this.gvpreGet.DataBind();
}
else
{
this.pnPreGet.Visible = false;
this.lbPreGet.Text = "没有领用申请记录。";
}
this.dsinfo = this.lendandreturnBLL.select_Return_State(10, "待还");
if (this.dsinfo.ds.Tables[0].Rows.Count > 0)
{
this.gvPreReturn.DataSource = this.dsinfo.ds;
后面还有 22 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
