WinPSI/SM/FrmModifyPwd.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using PSI.BLL;
using PSI.Common.Encrypt;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinPSI.FModels;
namespace WinPSI.SM
{
public partial class FrmModifyPwd : Form
{
public FrmModifyPwd()
{
InitializeComponent();
}
FMPwdModel fModel = null;
UserBLL userBLL = new UserBLL();
private void FrmModifyPwd_Load(object sender, EventArgs e)
{
Action act = () =>
{
//接收传值
if (this.Tag != null)
fModel = this.Tag as FMPwdModel;
//显示账号信息
if(fModel!=null)
{
lblUserName.Text = fModel.UName;
}
};
act.TryCatch("加载修改用户密码信息异常!");
}
private void btnOK_Click(object sender, EventArgs e)
{
Action act = () =>
{
//接收信息
string oldPwd = txtOldPwd.Text.Trim();
string newPwd = txtNewPwd.Text.Trim();
string confirmPwd = txtConfirmPwd.Text.Trim();
//判断 空 正确 新密码是否与原始密码一 致 两次密码输入是否一致
if(string.IsNullOrEmpty(oldPwd))
{
MsgBoxHelper.MsgErrorShow("请输入原始密码!");
txtOldPwd.Focus();
return;
}
if (string.IsNullOrEmpty(newPwd))
{
MsgBoxHelper.MsgErrorShow("请输入新密码!");
txtNewPwd.Focus();
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。