Exemplo n.º 1
0
        public GridPager<Webuser> GetPagerList(GridPagerParam param,List<int> searchIds)
        {
            var r = new GridPager<Webuser>(false);

            r.Data = webuserDal.GetPagerList(param, searchIds);
            r.ActionResult = (r.Data != null) ? true : false;

            return r;
        }
Exemplo n.º 2
0
 public GridPager<WebuserContact> GetPagerList(string searchName, DateTime? startTime, DateTime? endTime, GridPagerParam param, long operationBy, bool isUnion = false)
 {
     ArgumentHelper.AssertInRange("operationBy", (int)operationBy, 1, int.MaxValue);
     startTime = startTime.HasValue ? startTime.Value : DateTime.Now.AddDays(-1.0);
     endTime = endTime.HasValue ? endTime.Value : DateTime.Now.AddDays(1.0);
     var r = new GridPager<WebuserContact>(false);
     int total = 0;
     if (isUnion)
     {
         r.Data = webusercontactDal.GetUnion(searchName, startTime.Value, endTime.Value, param, operationBy, out total);
         r.ActionResult = (r.Data != null) ? true : false;
     }
     else
     {
         r.Data = webusercontactDal.GetJoin(searchName, startTime.Value, endTime.Value, param, operationBy, out total);
         r.ActionResult = (r.Data != null) ? true : false;
     } return r;
 }