Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
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);
        }