Person_Edit.aspx.cs

(开头部分) 4KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
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;
using System.IO;

public partial class Person_Edit : WebPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.ValidateUser("管理员");
        if (!this.IsPostBack)
        {
            this.txtPersonID.Text = Request.QueryString["PersonID"] + "";
            this.initList();
            this.initForm();
        }
    }

    #region 事件产生的函数
    protected void btnOK_Click(object sender, EventArgs e)
    {
        PersonMgr sMgr = new PersonMgr();
        Person person = new Person();
        if (this.txtPersonID.ReadOnly == false)
        {
            if (sMgr.ExistsPerson(this.txtPersonID.Text))
            {
                this.SendMessage("该登录名称已经存在");
                return;
            }
            person.Password = "12345";
            person.StatusName = "入职";
        }
        else
        {
            person = sMgr.GetPerson(this.txtPersonID.Text);
        }

        person.PersonID = this.txtPersonID.Text.Trim();
        person.PersonName = this.txtPersonName.Text.Trim();
        if (this.txtPassword.Text != "")
        {
            person.Password = this.txtPassword.Text;
        }
        person.Card = this.txtCard.Text;
        person.Dept.DeptID = this.lstDeptID.SelectedValue;
        person.Sex = this.lstSex.SelectedValue;
        person.Birtyday = this.txtBirthday.Text;
        person.WorkDate = this.txtWorkDate.Text;
        person.Tel = this.txtTel.Text;
        person.Pay = double.Parse(this.txtPay.Text.Trim());
        person.InputDate = DateTime.Parse(this.txtInputDate.Text.Trim());

后面还有 83 行代码,购买后查看完整代码

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

AI 解读 AI

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

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