using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
//using DAL;
|
|
namespace SCM
|
{
|
public partial class FrmChangePsd : Form
|
{
|
public FrmChangePsd()
|
{
|
InitializeComponent();
|
}
|
public string UserCode;
|
|
private void button1_Click(object sender, EventArgs e)
|
{
|
if (UserCode.Trim() == "")
|
{
|
MessageBox.Show("此用户不存在!", "提示");
|
return;
|
}
|
if (txtCheckPsd.Text.Trim() != txtNewPsd.Text.Trim())
|
{
|
MessageBox.Show("2次输入密码不一致!", "提示");
|
return;
|
}
|
//ClsUser oUser = new ClsUser();
|
//oUser.UserCode = this.UserCode;
|
//oUser.Psd =DBUtility.ClsPub.StrToPsd(txtNewPsd.Text.Trim());
|
//if (oUser.ChangePsd())
|
//{
|
// MessageBox.Show("修改完毕!","提示");
|
// this.Close();
|
//}
|
//else
|
//{
|
// MessageBox.Show("修改失败!", "提示");
|
//}
|
}
|
|
private void button2_Click(object sender, EventArgs e)
|
{
|
this.Close();
|
}
|
}
|
}
|