示例#1
0
        void Client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
        {
            try {
                ProxyTracker.GetInstance().Name = e.Result.Name;

                txtWelcome.Text = "Welcome " + e.Result.Name + ", you're connected!";
            }
            catch { }
        }
示例#2
0
 void Client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
 {
     try
     {
         TrackViewerUser user = (TrackViewerUser)e.Result;
         txtName.Text         = user.Name;
         txtEmailAddress.Text = user.Email;
     }
     catch
     {
     }
 }
示例#3
0
文件: Rein.xaml.cs 项目: JuRogn/OA
        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("用户名或密码错误!");
            }
        }
示例#4
0
        void _client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
        {
            Model.UserLogin userLogin = new UserLogin();
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    userLogin.SysUserID    = e.Result.SYSUSERID;
                    userLogin.EmployeeID   = e.Result.EMPLOYEEID;
                    userLogin.UserName     = e.Result.USERNAME;
                    userLogin.UserPassword = e.Result.PASSWORD;
                }
            }

            if (OnGetUserInfoCompleted != null)
            {
                OnGetUserInfoCompleted(this, new GetEntityEventArgs <Model.UserLogin>(userLogin, e.Error));
            }
        }
示例#5
0
        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("用户名或密码错误!");
            }
        }
示例#6
0
 void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
 {
     (App.Current as App).Userinfo = e.Result;
     client.CloseAsync();
 }
示例#7
0
 void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
 {
     (App.Current as App).Userinfo = e.Result;
     client.CloseAsync();
 }
        //处理加载用户信息结果
        void ShowGetUserInfoResult(object sender, GetUserInfoCompletedEventArgs e)
        {
            if (e.Result.Success)
            {
                DataManager.SetValue(DataKey.IWorld_Client_UserInfo, e.Result.Info);

                GetTicketsImport import = new GetTicketsImport { Token = DataManager.GetValue<string>(DataKey.IWorld_Client_Token) };
                LotteryServiceClient client = new LotteryServiceClient();
                client.GetTicketsCompleted += ShowGetTicketsResult;
                this.LoadingMessage = "加载彩票玩法信息(4/7)...";
                client.GetTicketsAsync(import);
            }
            else
            {
                ShowLoginError(e.Result.Error);
            }
        }
示例#9
0
        void _client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e)
        {

            Model.UserLogin userLogin = new UserLogin();
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    userLogin.SysUserID = e.Result.SYSUSERID;
                    userLogin.EmployeeID = e.Result.EMPLOYEEID;
                    userLogin.UserName = e.Result.USERNAME;
                    userLogin.UserPassword = e.Result.PASSWORD;
                }
            }

            if (OnGetUserInfoCompleted != null)
                OnGetUserInfoCompleted(this, new GetEntityEventArgs<Model.UserLogin>(userLogin, e.Error));

        }