12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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<Base_TrendChart> GetList(int page, int rows, Dictionary<string, Object> queryParam, out int count, string order = null, bool isDesc = true)
- {
- List<EExpression> listexp = new List<EExpression>();
- 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<Base_TrendChart>(page,rows,order, listexp,isDesc);
- count = services.GetPageListCount<Base_TrendChart>(listexp);
- return data;
- }
- public static List<Base_TrendChart> GetList(string order,List<EExpression> list,bool isdesc=false)
- {
- return services.GetList<Base_TrendChart>(order, list, isdesc);
- }
- }
- }
|