void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { T_SYS_USER user = e.Result; if (user != null && user.PASSWORD == paw.Password) { // SMT.SAAS.Main.CurrentContext.Common.CurrentConfig.CurrentUser.UserInfo = user; //TODO: 暂时注销用户权限 client.GetUserPermissionByUserAsync(user.SYSUSERID); personelClient.GetEmployeeDetailByIDAsync(user.EMPLOYEEID); MainPage mainPage = new MainPage(); App.Navigation(mainPage); } else { MessageBox.Show("用户名或密码错误!"); } }