public IList <OrderDetailView> GetProdIO(string flow, string region, string startDate, string endDate, string item, string userCode, int pageSize, int pageIndex) { IList <OrderDetailView> baseList = this.GetProdIOBaseList(flow, region, startDate, endDate, item, userCode); IList <OrderDetailView> list = new List <OrderDetailView>(); if (baseList != null && baseList.Count > 0) { int startRow = GridViewHelper.GetStartRow(pageSize, pageIndex); int endRow = GridViewHelper.GetEndRow(pageSize, pageIndex, baseList.Count); for (int i = startRow; i < endRow; i++) { list.Add(baseList[i]); } } foreach (OrderDetailView orderDetailView in list) { orderDetailView.OutList = orderLocTransViewMgr.GetProdIODataList(flow, region, startDate, endDate, orderDetailView.Item.Code, userCode, BusinessConstants.IO_TYPE_OUT); } return(list); }