Ejemplo n.º 1
0
        private void _client_GetSystemTypeByUserIDCompleted(object sender, GetSystemTypeByUserIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.StrResult.Length <= 0)
                {
                    #region 获取用户具有的系统编号
                    string[] codelist = e.Result.Split(',');//"1,2,3,4"

                    _userLogin.SystemCode = codelist;
                    Utility.UserLogin     = _userLogin;
                    #endregion
                    if (UserLoginCompleted != null)
                    {
                        UserLoginCompleted(this, new GetEntityEventArgs <UserLogin>(_userLogin, e.Error));
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void _client_GetSystemTypeByUserIDCompleted(object sender, GetSystemTypeByUserIDCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.StrResult.Length <= 0)
                {
                    #region 获取用户具有的系统编号
                    string[] codelist = e.Result.Split(',');//"1,2,3,4"

                    _userLogin.SystemCode = codelist;
                    Utility.UserLogin = _userLogin;
                    #endregion
                    if (UserLoginCompleted != null)
                    {
                        UserLoginCompleted(this, new GetEntityEventArgs<UserLogin>(_userLogin, e.Error));
                    }
                }
            }
           
        }