Esempio n. 1
0
        public OpenServiceRs openService(OpenServiceRq request)
        {
            string serviceUrl = ServiceURL.ipServer + ServiceURL.userOpenServiceUrl;
            String resJSON    = CallServices.callPost(serviceUrl, request);

            return(JObject.Parse(resJSON).ToObject <OpenServiceRs>());
        }
Esempio n. 2
0
        public OpenServiceRq getOpenServiceRq(Branch branch, GroupService groupS, String counterNumber)
        {
            OpenServiceRq ret = new OpenServiceRq();

            ret.branchID      = branch.branchID;
            ret.userCode      = UserSessionModel.loginUser.userCode;
            ret.groupID       = groupS.groupID;
            ret.counterNumber = counterNumber;
            return(ret);
        }
        public UIReturn openService(Branch b, GroupService g, String counterNumber)
        {
            if (String.IsNullOrEmpty(counterNumber))
            {
                return(Constants.uiErrorEmptyCounterNumber);
            }

            OpenServiceRq req = UserActionService.getInstance().getOpenServiceRq(b, g, counterNumber);
            OpenServiceRs res = UserActionService.getInstance().openService(req);
            UIReturn      ret = new UIReturn(res.header);

            return(ret);
        }