📄 enter.aspx.cs
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
namespace 金利来服装连锁门店管理系统
{
public partial class Enter : System.Web.UI.Page
{
BLL.Employee.EmployeeBll employeebllshow;
public Enter()
{
employeebllshow = new BLL.Employee.EmployeeBll();
}
protected void Page_Load(object sender, EventArgs e)
{
}
//登陆按钮
protected void btnEnter_Click(object sender, EventArgs e)
{
if (employeebllshow.UserEnt(txtUserName.Text.Trim (), tbPwd.Text.Trim ()) == true)
{
Session["employee_id"] = this.txtUserName.Text;
//通过员工编号查询角色及功能编号
List<Model.Employee.EmployeeModel> em = employeebllshow.SelectRole(this.txtUserName.Text);
foreach (Model.Employee.EmployeeModel item in em)
{
Session["role_id"] = item.role_ID;
//Session["SysFunction_id"] = item.SysFunction_id;
}
Response.Redirect("Home.aspx");
}
else
{
Response.Write("<script>alert('登录失败')</script>");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -