Browse Source

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 8 years ago
parent
commit
204588bf7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UAS-MES/PublicForm/ChangePwd.cs

+ 2 - 2
UAS-MES/PublicForm/ChangePwd.cs

@@ -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();