WELOA.Web/sb/admin/login_lendprint.aspx.cs

(完整代码) 2KB

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_lendprint : 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 strIouid = base.Request.QueryString["strIouid"];
            if ((strIouid != null) && (strIouid != ""))
            {
                this.dsinfo = this.sb_LendandreturnBLL.select_Lend(strIouid);
                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.lbIouid.Text = "借出凭证编号:" + this.dsinfo.ds.Tables[0].Rows[0]["iouid"].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 积分,解读结果公开显示在下面。

还没有人解读过这个文件。