JinYeTransportCostsSystem/Base/Tsr_Base_UpDatePwd.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace JinYeTransportCostsSystem.Base
{
public partial class Tsr_Base_UpDatePwd : Form
{
public Tsr_Base_UpDatePwd()
{
InitializeComponent();
}
private void Tsr_Base_UpDatePwd_Load(object sender, EventArgs e)
{
lb_UserName.Text = JinYeTransportCostsSystem.Tsr_Main.UserInFo.UserName;
}
private void lb_LoGin_Click(object sender, EventArgs e)
{
if (Tsr.Common.Encrypt.TsrEncrypt(tb_oldPwd.Text)!= JinYeTransportCostsSystem.Tsr_Main.UserInFo.UserPassWord)
{
MessageBox.Show("对不起旧密码不正确!", JinYeTransportCostsSystem.Common.InputDateErr());
return;
}
else if(tb_Pwd.Text!=tb_NewsPwd.Text)
{
MessageBox.Show("两次密码输入不一致!", JinYeTransportCostsSystem.Common.InputDateErr());
return;
}
Tsr.BLL.Fz_User bll = new Tsr.BLL.Fz_User();
Tsr.Model.Fz_User model = new Tsr.Model.Fz_User();
model.UserID = JinYeTransportCostsSystem.Tsr_Main.UserInFo.UserID;
model.UserPassWord = Tsr.Common.Encrypt.TsrEncrypt(tb_NewsPwd.Text).ToString();
bll.UpdatePassword(model);
MessageBox.Show("密码修改成功", "修改提示");
Close();
}
private void label4_Click(object sender, EventArgs e)
{
Close();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
