public int ChangePwd(string struser, string strpwd, string strOpwd) { int num; UserModel model = new UserDal(); DB_OPT dbo = new DB_OPT(); try { dbo.Open(); model.UserName = struser; model.Password = QxRoom.QxConst.QxConst.Encrypt(strOpwd, "powerich"); num = model.UpdatePwd(strpwd, dbo); } catch (Exception exception) { throw exception; } finally { dbo.Close(); } return num; }