Пример #1
0
        public string PhoneScore(string Id, int ping, string ValFrom)
        {
            GetQueryPodService service = new GetQueryPodService();
            var response = service.PingFen(Id, ping, ValFrom);

            return("");
        }
Пример #2
0
        public ActionResult QueryPod(string Id, string Type)
        {
            WeiChartUserConfigMode vm      = new WeiChartUserConfigMode();
            GetQueryPodService     service = new GetQueryPodService();

            vm.PageIndex = 0;
            vm.PageSize  = 0;
            var response = service.WeiQueryPodService(new WinQueryPodRequest()
            {
                WeiQueryPods = null, Id = Id, Type = Type, PageSize = 10,
            });

            if (response.IsSuccess)
            {
                vm.WeiQueryPod = response.Result.WeiQueryPods;
                vm.PageSize    = response.Result.PageCount;
                vm.PageIndex   = response.Result.PageIndex;
                vm.Id          = Id;
                vm.Type        = Type;
            }
            return(View(vm));
        }
Пример #3
0
        public string QueryPod(string Id, int index, string Type)
        {
            WeiChartUserConfigMode vm      = new WeiChartUserConfigMode();
            GetQueryPodService     service = new GetQueryPodService();

            vm.PageIndex = 0;
            vm.PageSize  = 0;
            var response = service.WeiQueryPodService(new WinQueryPodRequest()
            {
                WeiQueryPods = null, Id = Id, Type = Type, PageSize = 10, PageIndex = index
            });

            if (response.IsSuccess)
            {
                vm.WeiQueryPod = response.Result.WeiQueryPods;
                vm.PageSize    = response.Result.PageCount;
                vm.PageIndex   = response.Result.PageIndex;
                vm.Type        = Type;
            }
            JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
            string js = jsonSerializer.Serialize(vm);

            return(js);
        }