Web/UserManage/UserProfile.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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 Maticsoft.BLL;
using Maticsoft.Common;
using Maticsoft.Model;
namespace Maticsoft.Web.UserManage
{
public partial class UserProfile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
Maticsoft.BLL.US_USER UserBll = new Maticsoft.BLL.US_USER();
Maticsoft.Model.US_USER ModelUser = (Maticsoft.Model.US_USER)(Session["SESS_NOWUSER"]);
ModelUser.UserCode = this.txtCode.Text;
ModelUser.UserName = this.txtRealName.Text;
ModelUser.Address = this.txtAddress.Text;
if (this.txtBirthDate.Text != string.Empty)
{
ModelUser.Birthday = Convert.ToDateTime(this.txtBirthDate.Text);
}
ModelUser.CardID = this.txtCardID.Text;
ModelUser.DepartmentID = Convert.ToInt32(this.ddl_Depart.SelectedValue);
if (this.txtHireDate.Text != string.Empty)
{
ModelUser.HireDate = Convert.ToDateTime(this.txtHireDate.Text);
}
if (ddlSex.SelectedIndex == 0)
{
ModelUser.Sex = 1;
}
else
{
ModelUser.Sex = 2;
}
ModelUser.Email = this.txtEmail.Text;
ModelUser.InsuranceType = Convert.ToInt32(this.ddl_Instance.SelectedValue);
ModelUser.LeaderID = Convert.ToInt32(this.ddl_Leader.SelectedValue);
ModelUser.Remark = this.txtRemark.Text;
ModelUser.Salary = Convert.ToDecimal(this.txt_Salary.Text);
ModelUser.Status = Convert.ToInt32(this.ddl_Status.SelectedValue);
ModelUser.UserType = Convert.ToInt32(this.ddl_UserType.SelectedValue);
ModelUser.Telephone = this.txtPhone.Text;
UserBll.Update(ModelUser);
Session["SESS_NOWUSER"] = ModelUser;
this.lblMessage.Text = "个人资料修改成功!";
}
if (!IsPostBack)
{
后面还有 104 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
