WELOA.Web/yw/staff_manage.aspx.cs

(开头部分) 22KB

这里只显示每个文件的开头 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.yw
{
    public partial class staff_manage : System.Web.UI.Page
    {
        
   
        private LS_Departmentandpost DepartmentandPostBLL = new LS_Departmentandpost();
        private DataSet ds = null;
        private DateSetInformation dsinfo = new DateSetInformation();
      
        private int nPage;
      
        private LS_Permission permissionBLL = new LS_Permission();
     
        private int Record_Per_Page;
     
        private LS_Staff staffBLL = new LS_Staff();
        private string strcodeDepartment = "";
        private string strcodekey = "";
        private string strDepartment = "";
        private string strkey = "";
        private string strPageName;
        private string strRank = "";
        private string[] strStaff;
     
        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>");
后面还有 420 行代码,解锁后查看完整代码

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

AI 解读

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

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