Esempio n. 1
0
        public JsonResult GetFeedList()
        {
            List <FeedInfo> FeedList = jobBll.GetFeedList();
            var             gridData = new { Rows = FeedList, Total = FeedList.Count };

            return(Json(gridData, JsonRequestBehavior.AllowGet));

            #region wcfclient
            //FeedInfo[] feedInfo = client.GetFeedInfoList();
            //List<FeedInfo> listfeedInfo = new List<FeedInfo>();
            //foreach (var item in feedInfo)
            //{
            //    listfeedInfo.Add(new FeedInfo()
            //    {
            //        feid = item.feid,
            //        feleng = item.feleng,
            //        fename = item.fename,
            //        fetdate = item.fetdate,
            //        jid = item.jid,
            //        jrank = item.jrank,
            //        jstat = item.jstat,
            //        stid = item.stid,
            //        ttid = item.ttid
            //    });
            //}
            //var gridData = new { Rows = listfeedInfo, Total = listfeedInfo.Count };
            //return Json(gridData, JsonRequestBehavior.AllowGet);
            #endregion
        }