/// <summary> /// 分页实体转换 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="list"></param> /// <returns></returns> /// <remarks>2014-3-25 杨浩 创建</remarks> public static PagedList <T> Map <T>(this Hyt.Model.Pager <T> list) where T : class, new() { StringBuilder strid = new StringBuilder(); if (list.IdRows != null && list.IdRows.Count > 0) { foreach (int i in list.IdRows) { strid.Append(i + ","); } //去掉最後一個,字符 int nLen = strid.Length; strid.Remove(nLen - 1, 1); } return(new PagedList <T> { CurrentPageIndex = list.CurrentPage, TData = list.Rows, Data = list.Rows, IdData = strid.ToString(), PageSize = list.PageSize, TotalItemCount = list.TotalRows }); }
/// <summary> /// 获取配送单集合 /// </summary> /// <param name="pager">分页对象</param> /// <param name="currentUser">当前用户系统编号,若传入则查询当前用户用权限的仓库</param> /// <param name="hasAllWarehouse">是否拥有所有仓库</param> /// <returns></returns> /// <remarks>2013-06-09 沈强 创建</remarks> public abstract void GetLogisticsDeliveryItems(ref Hyt.Model.Pager <Model.CBLgDelivery> pager, int currentUser, bool hasAllWarehouse);