WELOA.Web/admin/login_staff.aspx.cs

(开头部分) 28KB

这里只显示每个文件的开头 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 System.Data;
using WELOA.Model;
using System.Web.Security;
using System.IO;
using System.Text;

namespace Web.admin
{
    public partial class login_staff : System.Web.UI.Page
    {
     
        private LS_IsPage Allowpages = new LS_IsPage();
       
        private LS_Departmentandpost DepartmentandPostBLL = new LS_Departmentandpost();
        private DataSet ds = null;
        private DateSetInformation dsinfo = new DateSetInformation();
        
        private int nPage;
       
        private int Record_Per_Page;
        
        private LS_Staff staffBLL = new LS_Staff();
        private string strDepartment = "全部";
        private string strLock = "全部";
        private string strLoginselect = "全部";
        private string strPageName;
        private string strPost = "全部";
        private string strStaff = "";
        private string strState = "全部";
        
        private Polytechnic trinfo = new Polytechnic();
        private LS_xls xlsBLL = new LS_xls();

        
        protected void btAdd_Click(object sender, EventArgs e)
        {
            string strStaffId = this.tbAddStaffId.Text.Trim();
            string strLoginName = this.tbAddLoginName.Text.Trim();
            string strPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(FormsAuthentication.HashPasswordForStoringInConfigFile(this.tbAddPassword.Text.Trim(), "MD5"), "MD5");
            string strStaffName = this.tbAddStaffName.Text.Trim();
            string strDepartment = this.ddlAddDepartment.Text.Trim();
            string strPost = this.ddlAddPost.Text.Trim();
            string strTel = this.tbAddTel.Text.Trim();
            string strEmail = this.tbAddEmail.Text.Trim();
            this.trinfo = this.staffBLL.insstaff(strStaffId, strLoginName, strPassword, strStaffName, strDepartment, strPost, strTel, strEmail);
            if (this.trinfo.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常13,请联系管理员处理。')</script>");
            }
            else if (this.trinfo.rowscount > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('登录名或证件号已经存在。不能重复添加。')</script>");
            }
后面还有 554 行代码,解锁后查看完整代码

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

AI 解读

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

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