WELOA.Web/sb/show/overview.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 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;
using LSBLL;
namespace Web.sb.show
{
public partial class overview : System.Web.UI.Page
{
private DateSetInformation dsinfo = new DateSetInformation();
private SB_Get sb_getBLL = new SB_Get();
private SB_Lendandreturn sb_lendandreturnBLL = new SB_Lendandreturn();
private LS_Staff staffBLL = new LS_Staff();
private Polytechnic trinfo = new Polytechnic();
protected void GV_RowDataBound(object sender, GridViewRowEventArgs e)
{
for (int i = 0; i < 10; 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>");
}
this.sb_lendandreturnBLL.clearPreLend();
this.dsinfo = this.sb_lendandreturnBLL.select_Lend_State(10, "预借", this.staffnumber());
if (this.dsinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常,请联系管理员处理。')</script>");
}
else
{
if (this.dsinfo.ds.Tables[0].Rows.Count == 0)
{
this.plPreLend.Visible = false;
this.lbPreLend.Text = "没有预借设备。";
}
this.gvPreLend.DataSource = this.dsinfo.ds;
this.gvPreLend.DataBind();
this.dsinfo = null;
this.dsinfo = this.sb_getBLL.select_Get_State(10, "预领", this.staffnumber());
if (this.dsinfo.nException > 0)
后面还有 76 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
