Пример #1
0
        /// <summary>
        /// ログイン認証を行うメソッド
        /// </summary>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        public bool Authentication(LoginActReqDto requestDto)
        {
            // サーバモジュールを実行
            using (var proxy = ServiceFactory<ILogin>.Create())
            {
                loginActResDto = proxy.Channel().CheckLogin(requestDto);

                if (loginActResDto.HasError())
                {
                    // ログイン失敗
                    return false;
                }
                else
                {
                    // ログインに成功した場合はログイン情報を退避
                    Const.User = loginActResDto.UserInfo;
                    Const.Org = loginActResDto.OrgInfo;
                    // ログイン成功
                    return true;
                }
            }
        }