WELOA.Web/sb/admin/login_returnprint.aspx.cs
(完整代码) 2KBusing 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_returnprint : System.Web.UI.Page
{
private DateSetInformation dsinfo = new DateSetInformation();
private SB_Lendandreturn sb_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>");
}
string strReceiptid = base.Request.QueryString["strReceiptid"];
if ((strReceiptid != null) && (strReceiptid != ""))
{
this.dsinfo = this.sb_LendandreturnBLL.select_Return_Receiptid(strReceiptid);
if (this.dsinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常1,请联系管理员处理。')</script>");
}
else if (this.dsinfo.ds.Tables[0].Rows.Count > 0)
{
this.DataList1.DataSource = this.dsinfo.ds;
this.DataList1.DataBind();
this.lbTitle.Text = this.Session["company"].ToString() + "设备归还凭证";
this.lbLender.Text = "借用人证件号:" + this.dsinfo.ds.Tables[0].Rows[0]["lenderid"].ToString() + " 姓名:" + this.dsinfo.ds.Tables[0].Rows[0]["lender"].ToString();
this.lbReceiptid.Text = "归还凭证编号:" + this.dsinfo.ds.Tables[0].Rows[0]["receiptid"].ToString();
this.lbLerderWord.Text = "接收人:_________________";
}
else
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('没查到借用数据。')</script>");
}
}
else
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常2,请联系管理员处理。')</script>");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
