public PageList <StockItem> PageListItems(StockItemSearchParam param, int pageIndex = 1, int pageSize = 20)
        {
            var util = param.ToSearchUtil();

            return(db.Query <StockItem>(util, pageIndex, pageSize));
        }
Beispiel #2
0
        /// <summary>
        /// 获取符合条件的所有盘点项
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public IEnumerable <StockItemDto> FetchDto(StockItemSearchParam param)
        {
            var util = param.ToSearchUtil();

            return(_db.Fetch <StockItemDto>(util, "StockItemView"));
        }
        public IEnumerable <StockItem> Items(StockItemSearchParam param)
        {
            var util = param.ToSearchUtil();

            return(db.Fetch <StockItem>(util));
        }