Default.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : WebPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    #region 事件产生的函数
    protected void btnLogin_Click(object sender, ImageClickEventArgs e)
    {
        switch (this.lstLoginType.SelectedValue)
        {
            case "管理员":
                AdminMgr aMgr = new AdminMgr();
                Admin admin = aMgr.GetAdmin(this.txtLoginName.Text);
                if (admin.AdminID != "")
                {
                    if (this.txtPassword.Text == admin.Password)
                    {
                        this.eUserID = admin.AdminID;
                        this.eUserName = admin.AdminName;
                        this.eUserType = "管理员";
                        Response.Redirect("MainFrame.aspx");
                    }
                    else
                    {
                        this.SendMessage("密码不正确");
                    }
                }
                else
                {
                    this.SendMessage("没有找到该用户");
                }
                break;
            case "员工":
                PersonMgr pMgr = new PersonMgr();
                Person person = pMgr.GetPerson(this.txtLoginName.Text);
                if (person.PersonID != "")
                {
                    if (this.txtPassword.Text == person.Password)
                    {
                        this.eUserID = person.PersonID;
                        this.eUserName = person.PersonName;
                        this.eUserType = "员工";
                        Response.Redirect("MainFrame.aspx");
                    }
                    else
                    {
                        this.SendMessage("密码不正确");
                    }
后面还有 10 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

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