|
|
@@ -50,8 +50,8 @@ namespace UAS_MES.PublicForm
|
|
|
String[] password = new string[1];
|
|
|
String[] username = new string[1];
|
|
|
password[0] = newpwd.Text;
|
|
|
- username[0] = UserName.Text;
|
|
|
- string SQL1 = "update employee set em_password = :passowrd where em_code= :emcode ";
|
|
|
+ username[0] = UserName.Text.ToUpper();
|
|
|
+ string SQL1 = "update employee set em_password = :passowrd where upper(em_code)= :emcode ";
|
|
|
dh.BatchInsert(SQL1, new string[] { "passowrd", "emcode" }, password, username);
|
|
|
MessageBox.Show("修改密码成功");
|
|
|
Close();
|