WELOA.Web/yw/staffinfo.aspx.cs

(开头部分) 7KB

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

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 LSBLL;
using System.Web.Security;

namespace Web.yw
{
    public partial class staffinfo : System.Web.UI.Page
    {
      
        private DateSetInformation dsinfo = new DateSetInformation();
     
        private LS_Permission permissionBLL = new LS_Permission();
        
        private LS_Staff staffBLL = new LS_Staff();
        private string[] strStaff;
      

        
        protected void btEdit_Click(object sender, EventArgs e)
        {
            int nid = Convert.ToInt32(this.lbEditId.Text);
            string text = this.tbEditLoginName.Text;
            string strTel = this.tbTel.Text;
            string strEmail = this.tbEditEmail.Text;
            Polytechnic Polytechnic = this.staffBLL.updatestaff(nid, text, strTel, strEmail);
            if (Polytechnic.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常2,请联系管理员处理。')</script>");
            }
            else if (Polytechnic.rowscount > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('登录名或证件号已经存在。不能重复添加。')</script>");
            }
            else
            {
                if (Polytechnic.rowsnum > 0)
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('个人信息修改成功。')</script>");
                }
                else
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('个人信息修改失败。')</script>");
                }
                this.viewList();
            }
        }

        protected void btEditPassword_Click(object sender, EventArgs e)
        {
            this.pnPassword.Visible = true;
        }

        protected void btEditPasswordOK_Click(object sender, EventArgs e)
        {
后面还有 110 行代码,解锁后查看完整代码

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

AI 解读

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

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