WELOA.Web/admin/login_departmentandpost.aspx.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LSBLL;
using WELOA.Model;
using System.Text;
namespace Web.admin
{
public partial class login_departmentandpost : System.Web.UI.Page
{
private LS_Departmentandpost departBLL = new LS_Departmentandpost();
private DateSetInformation dsinfo = new DateSetInformation();
private Polytechnic trinfo = new Polytechnic();
protected void btAddDepartment_Click(object sender, EventArgs e)
{
if (this.Session["rank"] != null)
{
if (this.Session["rank"].ToString() != "超级管理员")
{
base.Response.Write("<script language=javascript >alert('您没有修改权限。')</script>");
return;
}
}
else
{
this.Session.Clear();
base.Response.Write("<script language=javascript >window.parent.location.href='default.aspx'</script>");
}
string strDepartment = this.tbAddDepartment.Text.Trim();
this.trinfo = this.departBLL.insdepartment(strDepartment);
if (this.trinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常1,请联系管理员处理。')</script>");
}
else if (this.trinfo.rowscount > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('部门:'+'" + strDepartment + "'+' 已经存在。不能重复添加。')</script>");
this.tbAddDepartment.Text = "";
}
else if (this.trinfo.rowsnum > 0)
{
this.viewdepartment();
this.lbMessageDepartment.Text = "部门 " + this.tbAddDepartment.Text + " 添加成功!";
this.tbAddDepartment.Text = "";
this.Page.SetFocus(this.tbAddDepartment);
}
}
protected void btAddPost_Click(object sender, EventArgs e)
{
if (this.Session["rank"] != null)
后面还有 247 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
