using Interface; using Models; using Models.Entity.LottomatBaseDB; using Services; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Business.TK { public static class TrendChartBLL { private static ZXInterface services; static TrendChartBLL() { services = new ZXServic(); } public static List GetList(int page, int rows, Dictionary queryParam, out int count, string order = null, bool isDesc = true) { List listexp = new List(); if (queryParam.Keys.Count > 0) { if (queryParam.ContainsKey("CategoryId")) { string CategoryId = queryParam["CategoryId"].ToString(); listexp.Add(new EExpression("CategoryId", "=", CategoryId)); } if (queryParam.ContainsKey("EqTitle")) { string Title = queryParam["EqTitle"].ToString(); listexp.Add(new EExpression("Title", "=", Title)); } if (queryParam.ContainsKey("LikeTitle")&& (!queryParam.ContainsKey("EqTitle"))) { string Title = queryParam["LikeTitle"].ToString(); listexp.Add(new EExpression("Title", EnumExpression.like, "%"+Title+"%")); } } var data = services.GetList(page,rows,order, listexp,isDesc); count = services.GetPageListCount(listexp); return data; } public static List GetList(string order,List list,bool isdesc=false) { return services.GetList(order, list, isdesc); } } }