public string ChangePassword(EmployeePO emp, string oldpwd, string password, out bool boolresult, out string spwd) { string result = ""; boolresult = false; spwd = null; var empdat = new EmployeeData(); if (emp.Reserved1 == StringHelper.MD5Encrypt(oldpwd)) { var recount = empdat.ChangePassword(emp.EmployeeNo, StringHelper.MD5Encrypt(password)); if (recount > 0) { boolresult = true; spwd = StringHelper.MD5Encrypt(password); result = "密码修改成功"; } else { result = "密码修改失败"; } } else { result = "原始密码不正确"; } return(result); }