예제 #1
0
        public BranchLogoutRs callLogout(BranchLogoutRq request)
        {
            string serviceUrl = ServiceURL.ipServer + ServiceURL.branchLogoutUrl;
            String resJSON    = CallServices.callPost(serviceUrl, request);

            return(JObject.Parse(resJSON).ToObject <BranchLogoutRs>());
        }
        public UIReturn LogutBranch()
        {
            BranchLogoutRq req = BranchLoginService.getInstance().getBranchLogoutRq(BranchSessionModel.loginBranch);
            BranchLogoutRs res = BranchLoginService.getInstance().callLogout(req);

            if (res.header.isSuccess)
            {
                BranchSessionModel.loginBranch = null;
                App.Database.DeleteItem(DBConstants.ID_LOGIN_BRANCH);
            }

            UIReturn ret = new UIReturn(res.header);

            return(ret);
        }
예제 #3
0
        public BranchLogoutRq getBranchLogoutRq(Branch input)
        {
            BranchLogoutRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <BranchLogoutRq>();

            return(ret);
        }