WELOA.Web/yw/staffprint.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 LSBLL;
namespace Web.yw
{
public partial class staffprint : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strStaff = "";
string strDepartment = "";
if (this.Session["rank"] == null)
{
this.Session.Clear();
base.Response.Write("<script language=javascript >window.parent.location.href='../default.aspx'</script>");
}
else if (this.Session["rank"].ToString() == "")
{
this.Session.Clear();
base.Response.Write("<script language=javascript >window.parent.location.href='../default.aspx'</script>");
}
if (base.Request.QueryString["strkey"] != null)
{
strStaff = base.Request.QueryString["strkey"].Replace("^", "");
}
if (base.Request.QueryString["strdepartment"] != null)
{
strDepartment = base.Request.QueryString["strdepartment"].Replace("^", "");
}
DateSetInformation DateSetInformation = new LS_Staff().selectstaff_Department(strStaff, strDepartment);
if (DateSetInformation.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常,请联系管理员处理。')</script>");
}
else
{
this.GridView1.DataSource = DateSetInformation.ds;
this.GridView1.DataBind();
if ((this.Session["company"] != null) && (this.Session["company"].ToString() != ""))
{
this.lbTitle.Text = this.Session["company"].ToString() + "员工明细表";
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
