//渠道统计ChannelYk public static string ChannelYk(string comid, int pageindex, int pagesize, string issuetype) { var totalcount = 0; try { var prodata = new MemberChannelData(); var list = prodata.ChannelYk(comid, pageindex, pagesize, issuetype, out totalcount); IEnumerable result = ""; if (list != null) { result = from pro in list select new { Yknum = pro.Com_id, //验卡数量 Companyname = pro.Channeltypename //门市名称 } } ; return(JsonConvert.SerializeObject(new { type = 100, totalCount = totalcount, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); throw; } }